react-timing-hooks
Advanced tools
Comparing version 3.2.0 to 3.2.1
import useTimeoutEffect from './timeout/useTimeoutEffect'; | ||
import { TimeoutEffectCallback } from './timeout/types'; | ||
import useTimeout from './timeout/useTimeout'; | ||
import useInterval from './interval/useInterval'; | ||
import useInterval, { IntervalControls } from './interval/useInterval'; | ||
import useTimer from './interval/useTimer'; | ||
@@ -13,2 +13,4 @@ import useIdleCallbackEffect from './idle-callback/useIdleCallbackEffect'; | ||
import { ClockOptions } from './interval/useClock'; | ||
export { useAnimationFrame, useAnimationFrameLoop, useClock, useIdleCallback, useIdleCallbackEffect, useInterval, useTimer, useTimeout, useTimeoutEffect, IdleCallbackEffectCallback, TimeoutEffectCallback, ClockOptions, }; | ||
import useCounter from './interval/useCounter'; | ||
import useCountdown from './interval/useCountdown'; | ||
export { useAnimationFrame, useAnimationFrameLoop, useClock, useIdleCallback, useIdleCallbackEffect, useInterval, useTimer, useTimeout, useTimeoutEffect, useCounter, useCountdown, IntervalControls, IdleCallbackEffectCallback, TimeoutEffectCallback, ClockOptions, }; |
@@ -230,2 +230,4 @@ import { useRef, useCallback, useEffect, useState } from 'react'; | ||
export { useAnimationFrame, useAnimationFrameLoop, useClock, useIdleCallback, useIdleCallbackEffect, useInterval, useTimeout, useTimeoutEffect, useTimer }; | ||
const useCountdown = (start) => useCounter({ start, interval: 1000, stepSize: -1 }); | ||
export { useAnimationFrame, useAnimationFrameLoop, useClock, useCountdown, useCounter, useIdleCallback, useIdleCallbackEffect, useInterval, useTimeout, useTimeoutEffect, useTimer }; |
@@ -234,5 +234,9 @@ 'use strict'; | ||
const useCountdown = (start) => useCounter({ start, interval: 1000, stepSize: -1 }); | ||
exports.useAnimationFrame = useAnimationFrame; | ||
exports.useAnimationFrameLoop = useAnimationFrameLoop; | ||
exports.useClock = useClock; | ||
exports.useCountdown = useCountdown; | ||
exports.useCounter = useCounter; | ||
exports.useIdleCallback = useIdleCallback; | ||
@@ -239,0 +243,0 @@ exports.useIdleCallbackEffect = useIdleCallbackEffect; |
{ | ||
"name": "react-timing-hooks", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "React hooks for setTimeout, setInterval, requestAnimationFrame, requestIdleCallback", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -24,3 +24,3 @@ <img alt="logo" src="https://github.com/EricLambrecht/react-timing-hooks/raw/master/logo.png" width="680" /> | ||
* Full **Typescript** support | ||
* **[Lightweight](https://bundlephobia.com/result?p=react-timing-hooks)** (less than 1KB minzipped, no transitive dependencies!) | ||
* **[Lightweight](https://bundlephobia.com/result?p=react-timing-hooks)** (ca. 1KB minzipped, no transitive dependencies!) | ||
* **Tree-shakable** — You only bundle what you use! | ||
@@ -27,0 +27,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35122
558