mirror of https://gitee.com/antv-l7/antv-l7
54 KiB
54 KiB
13.8.1 (2019-11-21)
Bug Fixes
- useAsyncFn does not discard old promises and might produce races (022fa0b)
13.8.0 (2019-11-14)
Features
- useStateValidator: Refactor method and improve typings; (436c210)
13.7.0 (2019-11-14)
Features
- Add useSet hook (095b4de)
13.6.3 (2019-11-12)
Bug Fixes
- remove any types in useThrottleFn (bb5baea)
13.6.2 (2019-11-11)
Bug Fixes
- restrict useThrottleFn types (61a83d1)
13.6.1 (2019-11-10)
Bug Fixes
- 🐛 check window.Event constructor exists in useLocation (ad09431)
13.6.0 (2019-11-10)
Features
13.5.0 (2019-11-08)
Bug Fixes
- resolveHookState: by accident removed needed type. (59aa41c)
Features
- useList: reimplemented useList hook; (1840b57)
13.4.0 (2019-11-08)
Features
- useStateList: implemented
currentIndex
,setState
,setStateAt
methods as requested in #634; (43cb6aa)
13.3.0 (2019-11-06)
Features
13.2.2 (2019-11-06)
Bug Fixes
13.2.1 (2019-11-04)
Bug Fixes
- yarn.lock: re-create the yarn.lock file with nailed versions in devDeps (f094a3a)
13.2.0 (2019-11-04)
Features
- re-create yarn.lock (d48e03e)
- re-create yarn.lock (ccdffe0)
- usePreviousDistinct: add tests for undefined value behaviour; (cb373f9)
- usePreviousDistinct: improve types; (30f53e8)
- usePreviousDistinct: now predicate not called on initial render; (fbe9b13)
- useStateList: rework useStateList to make it work properly. (242c274)
- useTitle: reworked hook to make it synchronous without useUpdate; (a133267)
- useWindowSize: A bit changed lyfecycle and added types; (03bdecf)
13.1.0 (2019-11-01)
Features
- pull request template for features (1dc21f3)
13.0.1 (2019-11-01)
Bug Fixes
- useLockBodyScroll: infer overflow type directly from declaration. (26baf47)
13.0.0 (2019-11-01)
Features
- remove useRefMounted hook (ad74d3d)
- useRefMounted: remove obsolete hook; (dc364c8)
- useWait: removed from package due to it is simple reexport of other package; (d7c38bd)
BREAKING CHANGES
- useWait hook has been removed from react-use
- deprecated useRefMounted hook is now removed, use useMountedState hook instead
12.13.0 (2019-10-31)
Features
- useCounter: reworked with use of new resolveHookState function plus improved memory usage; (befcf84)
- useGetSet: reworked with use of new resolveHookState function plus improved memory usage; (9b5d0f2)
- react-like state resolver to use it in stateful hooks; (9fd02eb)
12.12.0 (2019-10-31)
Features
- add typings for createReducer (f1cf036)
12.11.0 (2019-10-31)
Features
- useWait: add deprecation messages to readme and export; (d338245)
12.10.0 (2019-10-30)
Features
- useUpdate: improve memory usage - now single function instance to increment all counters; (0f02fd0)
12.9.1 (2019-10-28)
Bug Fixes
- useSize avoid crash in Safari 11 (da0e66b)
12.9.0 (2019-10-26)
Features
- add createBreakpoint (79ba4ef)
12.8.0 (2019-10-25)
Features
- add ensuredForwardRef and useEnsuredForwardedRef (1bfe063)
12.7.2 (2019-10-23)
Bug Fixes
- 🐛 bump set-harmonic-interval package version (f7c709a)
12.7.1 (2019-10-17)
Bug Fixes
12.7.0 (2019-10-17)
Bug Fixes
Features
- useMultiStateValidator (ae26988)
12.6.0 (2019-10-16)
Features
12.5.0 (2019-10-13)
Features
12.4.0 (2019-10-12)
Features
12.3.2 (2019-10-12)
Bug Fixes
12.3.1 (2019-10-10)
Bug Fixes
12.3.0 (2019-10-07)
Features
12.2.3 (2019-10-05)
Bug Fixes
12.2.2 (2019-09-26)
Bug Fixes
12.2.1 (2019-09-23)
Bug Fixes
12.2.0 (2019-09-02)
Features
- improve useWindowSize performance rAF (60a4937)
12.1.0 (2019-09-01)
Features
- 🎸 add useSearchParam() hook (b22f32f)
- 🎸 support server-side rendering in useSearchParam() hook (64ac924)
12.0.0 (2019-09-01)
Features
- store "paused" instead of "isPlaying" in media state (ff900d5)
BREAKING CHANGES
- now media players return "paused" instead of "isPlaying" in their state.
11.3.2 (2019-08-25)
Bug Fixes
- useThrottle & useThrottleFn proper timeout type; (e2cdb94)
11.3.1 (2019-08-25)
Bug Fixes
- update createReducer to fix initial state (fd083f2)
11.3.0 (2019-08-25)
Features
11.2.0 (2019-08-25)
Features
- add useCircularIterate (8d84340)
11.1.1 (2019-08-25)
Bug Fixes
11.1.0 (2019-08-25)
Features
- 🎸 add useHarmonicIntervalFn() hook (d9f21e3)
11.0.2 (2019-08-23)
Bug Fixes
11.0.1 (2019-08-23)
Bug Fixes
- correct useSpring() hook behaviour (d7a622d)
11.0.0 (2019-08-22)
Features
BREAKING CHANGES
- useTimeout now returns a tuple
10.8.0 (2019-08-20)
Bug Fixes
Features
- 🎸 support useBattery hook on server side (5d31cf0)
- 🎸 use only one useState and one useEffect call (2d0fabf)
10.7.1 (2019-08-20)
Bug Fixes
10.7.0 (2019-08-19)
Features
10.6.4 (2019-08-19)
Bug Fixes
10.6.3 (2019-08-19)
Bug Fixes
- allow import default for ESM (bd3a062)
- rollup build error: Cannot call a namespace ('writeText') (b3e672b)
10.6.2 (2019-08-18)
Bug Fixes
- 🐛 fix master (d1df7a5)
10.6.1 (2019-08-17)
Bug Fixes
- useUpdateEffect run on the wrong time (1d5cd10)
10.6.0 (2019-08-17)
Features
- add min/max to useNumber (586faab)
10.5.0 (2019-08-03)
Features
- add useRafLoop hook (be7d7c3)
10.4.0 (2019-08-02)
Features
- add useMountedState hook (9081b99)
10.3.1 (2019-08-02)
Bug Fixes
- storybook: fix useKeyboardJs import path (b7481f6)
- useKeyboardJs: fix argument type error (8c820ce)
- allow string list in useKeyboardJs hook (aecbd0b)
10.3.0 (2019-07-26)
Features
- add useDefault hook (ade0557)
10.2.0 (2019-07-25)
Features
- useWindowScroll - for cross-browser compatibility (5987cc8)
- useWindowScroll - for cross-browser compatibility (#480) (e37dd8d)
10.1.2 (2019-07-21)
Bug Fixes
- remove OpenCollective postinstall hook (26dcebc)
10.1.1 (2019-07-21)
Bug Fixes
- useMouse & useMouseHovered type definitions for SVG (9e97451)
- useMouse & useMouseHovered type definitions for SVG (#479) (e2e4a60)
10.1.0 (2019-07-17)
Features
- add latest
react-wait
types (6ebe3bb)
10.0.0 (2019-07-17)
Features
- remove big libs from peerDependencies (1dbdc5d)
BREAKING CHANGES
useSpring
anduseKeyboardJs
hooks need to be imported directly now and libs they depend on are not in peerDependencies anymore.
9.12.0 (2019-07-16)
Bug Fixes
- 🐛 fix useDebounce import (40b33da)
Features
- add useInterval hook (6645ed9)
9.11.2 (2019-07-16)
Bug Fixes
- support useMedia usage server-side (50a5160)
9.11.1 (2019-07-16)
Bug Fixes
- createReducer stable dispatch function identity (9780545)
9.11.0 (2019-07-11)
Features
9.10.0 (2019-07-10)
Features
9.9.0 (2019-07-10)
Features
9.8.3 (2019-07-10)
Bug Fixes
- useLocalStorage types for functional updates (e2b8278)
9.8.2 (2019-07-08)
Bug Fixes
- useSize: prevents accessing iframe's property when it's not defined (c9b5cdc), closes #442
- useSize: prevents accessing iframe's property when it's not… (#443) (8f04e8f)
- iframe can be null (a9e3bab)
9.8.1 (2019-06-30)
Bug Fixes
- lint fixes via lint:fix (7ce8e4f)
- useMap uses prevMap state which is safer (3554f79)
- useMap: remove now also uses prevMap state to not overwrite or lose state (0a59869)
9.8.0 (2019-06-30)
Bug Fixes
- 🐛 fix test and add pre-push hook (1353b6c)
Features
9.7.2 (2019-06-27)
Bug Fixes
- save to localStorage only when state changes (ba6d375)
- use correct list variable in useList (#412) (b937296)
9.7.1 (2019-06-23)
Bug Fixes
- 🐛 use synchronouse effect to subscribe to observables (376eea3)
9.7.0 (2019-06-19)
Features
9.6.0 (2019-06-18)
Bug Fixes
Features
- 🎸 add useScrolling hook (bd9928e)
- 🎸 add useScrolling hook to index (b3ba702)
- add useScrolling docs (25a93f6)
- add useScrolling story (760edf1)
9.5.0 (2019-06-16)
Bug Fixes
- add missing
rate
property (fb795a6)
Features
9.4.1 (2019-06-12)
Bug Fixes
- fix Storybook docs Markdown import (962a312)
9.4.0 (2019-06-04)
Bug Fixes
Features
9.3.0 (2019-05-31)
Features
- improve useAsync and useAsyncFn (3ab1d5d)
9.2.0 (2019-05-31)
Features
9.1.2 (2019-05-24)
Bug Fixes
- useAudio: src change should reset isPlaying state (65bffca)
9.1.1 (2019-05-24)
Bug Fixes
- useMap: more stringent type (7bbbe47)
9.1.0 (2019-05-24)
Features
- pass arguments to useAsyncFn function (6789d10)
9.0.0 (2019-05-09)
Features
- improve useToggle interface (81b1cac)
BREAKING CHANGES
- useToggle interface changed
8.4.0 (2019-05-07)
Features
- add usePrevious hook (4861a39)
8.3.1 (2019-04-29)
Bug Fixes
- useRefMounted: only run and cleanup once (6a651be)
8.3.0 (2019-04-29)
Features
- add type define for createMemo (6638c1a)
8.2.0 (2019-04-23)
Bug Fixes
- make options useGeolocation optional (01959a1)
Features
- support options for useGeolocation (7d4c59e)
8.1.4 (2019-04-23)
Bug Fixes
- 🐛 support click away on iOS, allow user to chose events (f14e1d7)
8.1.3 (2019-04-18)
Bug Fixes
- 🐛 don't fire typing event on modifier keys pressed (ce76edf)
8.1.2 (2019-04-12)
Bug Fixes
- useIdle: include 'ms' prop in uesEffect dependencies (7a670a2)
8.1.1 (2019-04-09)
Bug Fixes
- 🐛 make useLocation work on server, improve hook (6f6030a)
8.1.0 (2019-04-08)
Features
- add useAsyncCallback hook (c6ecb36)
8.0.0 (2019-04-08)
Features
- change useCopyToClipboard implementation (c391038)
BREAKING CHANGES
- useCopyToClipboard interface changed
7.6.0 (2019-04-07)
Bug Fixes
- 🐛 handle case when activeElement is empty (3d83705)
Features
- 🎸 add useStartTypings hook (5fda2e0)
7.5.0 (2019-04-07)
Features
- 🎸 add onCopy and onError events and use NPM copy library (2553225)
- 🎸 improve useCopyToClipboard() hook (f185044)
- 🎸 make useCopyToClipboard hook interface more idiomatic (0a6d773)
- add useCopyToClipboard() hook (4d8e276)
7.4.0 (2019-04-07)
Features
- add useDeepCompareEffect hook (77e015b)
7.3.1 (2019-03-31)
Bug Fixes
- 🐛 call key{up/donw} callbacks in useKeyPressEvent correct (60064a6)
7.3.0 (2019-03-31)
Features
- add useEffectOnce hook (06c12d4)
7.2.0 (2019-03-31)
Features
- default dependency array for useAsync and useAsyncRetry (cb140a0)
7.1.1 (2019-03-30)
Bug Fixes
- consistent refs in useFullscreen hook (dc85499)
7.1.0 (2019-03-29)
Bug Fixes
- useClickAway TypeScript typings (4b20083)
Features
- pass click event in useClickAway to user (01e38bc)
7.0.2 (2019-03-29)
Bug Fixes
- 🐛 add rebound and keyboards deps back to peerDependencies (4fc46aa)
7.0.1 (2019-03-29)
Bug Fixes
- add optional attributes in AsyncState (b0c9770)
7.0.0 (2019-03-28)
Bug Fixes
- 🐛 fix TypeScript build errors (5c95f28)
- 🐛 make sure all paths in usePageLeave return (6655092)
- 🐛 track "over" state better in useDrop hook (acc355c)
Features
- 🎸 add clear() to useList, use fn for state updates (b20cf7c)
- 🎸 add createRenderProp function for creating render-props (f4fd748)
- 🎸 add useDrop hook (6e415cf)
- 🎸 add useDropArea hook (676d0de)
- 🎸 add useEvent hook (2a13cfb)
- 🎸 add useKey hook (299fd86)
- 🎸 add useKeyboardJs hook (3516aa6)
- 🎸 add usePageLeave hook (33ac91b)
- 🎸 add useThrottleFn hook that throttles function (0ccdf95)
- 🎸 improve useFullscreen hook (7c38165)
- 🎸 keep keyboard events in useKeyPress hook (00fecab)
- 🎸 refactor useKeyPressEvent hook (c0658f6)
- 🎸 return events from useKeyboardJs hook (aa277b8)
- 🎸 simplify and improve useThrottle hook (452e8d9)
- 🎸 useKeyPress hook now uses useKey, KeyboardJS removed (727743b)
BREAKING CHANGES
- 🧨 useKeyPressEvent hook modified for dependency injection and providing event objects to user
- 🧨 KeyboardJS now available anymore in useKeyPress hook, instead it will be a separate useKeyPressKJ hook.
- 🧨 useThrottle is now a completely different hook
6.2.2 (2019-03-28)
Bug Fixes
- fix deps arg and union type in useAsync and useAsyncRetry (929e726)
6.2.1 (2019-03-27)
Bug Fixes
- set 'module' field properly (35d4fc2)
6.2.0 (2019-03-27)
Bug Fixes
Features
- emit code in ES Module mode (464642e)
6.1.0 (2019-03-26)
Features
- add useThrottle hook (756bc99)
6.0.0 (2019-03-26)
Bug Fixes
chore
- 🤖 don't install only large dependencies (6170067)
Features
- 🎸 add {bound} option to useMouse (9bb02a1)
- 🎸 implement useClickAway, remove useOutsideClick (a03143a)
- 🎸 keep global state of all useLockBodyScroll hooks (5dd10e9)
- 🎸 move extra mouse functionality into useMouseHovered (8b0580e)
- more precise size for useMouse (b887075)
BREAKING CHANGES
- 🧨 error is logged instead of thrown in development environment
- 🧨 useOutsideClick is now useClickAway
- 🧨 useCallbag hook is removed, some hooks KeyboardJS and Rebound installed separately
5.16.1 (2019-03-26)
Bug Fixes
- types for useGeolocation (b72c098)
5.16.0 (2019-03-25)
Features
- more precise size for useMouse (1761031)
5.15.0 (2019-03-25)
Features
- add useMouse hook (17dfa8e)
5.14.0 (2019-03-24)
Features
5.13.0 (2019-03-23)
Features
- add useScroll hook (a92e9b2)
5.12.1 (2019-03-23)
Bug Fixes
- 🐛 cancel animation frame on un-mount in useWindowScroll() (bc021ce)
5.12.0 (2019-03-23)
Features
- add useWindowScroll hook (076d0de)
5.11.0 (2019-03-22)
Features
- 🎸 refresh useCss hook (0116cc9)
5.10.0 (2019-03-21)
Features
- add useUpdateEffect hook (c2afd23)
5.9.0 (2019-03-21)
Features
- add useAsyncRetry hook (576cf42)
Performance Improvements
- remove asyn/await wrapper (8e3de1c)
5.8.1 (2019-03-20)
Bug Fixes
- 🐛 use useLayoutEffect() in useCss() to inject CSS quick (7328f26)
5.8.0 (2019-03-19)
Features
- release useKeyPressEvent() (96798e2)
5.7.1 (2019-03-15)
Bug Fixes
- 🐛 allow every promise in usePromise() hook have own type (d60fef7)
5.7.0 (2019-03-15)
Bug Fixes
- 🐛 fix TypeScript typings for usePromise() (ba0acb6)
Features
- 🎸 add usePromise() hook (aad368b)
5.6.0 (2019-03-13)
Features
- transpile down to ES5 (61382e3)
5.5.6 (2019-03-11)
Bug Fixes
5.5.5 (2019-03-04)
Bug Fixes
- 🐛 make useWindowSize work on server (8f93853)
5.5.4 (2019-02-25)
Bug Fixes
5.5.3 (2019-02-25)
Bug Fixes
- deps: update dependency use-callbag to ^0.2.0 (4d49d0b)
5.5.2 (2019-02-24)
Bug Fixes
- deps: update dependency use-onclickoutside to ^0.3.0 (0baae6d)
5.5.1 (2019-02-24)
Bug Fixes
- deps: update dependency ts-easing to ^0.2.0 (3321e11)
5.5.0 (2019-02-23)
Bug Fixes
Features
- Add remove method for useList (5a295d9)
5.4.1 (2019-02-19)
Bug Fixes
5.4.0 (2019-02-19)
Features
- add error and loading fields to useGeolocation (6909a69)
5.3.1 (2019-02-17)
Bug Fixes
- 🐛 fix typings in useOrientation sensor (afbacac)
- 🐛 fix useSetState after React update (524abe5), closes #107 #107
- useOrientation breaks in some devices (d89bd54)
5.3.0 (2019-02-07)
Features
- Add updateAt method for useList (ad05609)
5.2.3 (2019-02-07)
Bug Fixes
- 🐛 fix build and update React deps (27e26a0)
5.2.2 (2019-02-02)
Bug Fixes
- release useDebounce and useToggle fixes (12ad880)
5.2.1 (2019-01-04)
Bug Fixes
- use function to correctly update state in useToggle (d854d27)
5.2.0 (2019-01-02)
Features
5.1.2 (2018-12-29)
Bug Fixes
- reset state when calling useEffect in useAsync (2f5af2c)
5.1.1 (2018-12-20)
Bug Fixes
5.1.0 (2018-12-19)
Bug Fixes
- 🐛 just use any for setTimeout because of diff environments (55673cb)
- 🐛 memoized does not receive arguments (244a533)
- 🐛 use Timeout type for build to work (8c66abe)
Features
5.0.0 (2018-12-17)
Features
- 🎸 list all useAsync state props so that TS dont complain (7c1b107)
- 🎸 remove experimental hooks (533e26f)
- use discriminated union in useAsync (966af4a)
BREAKING CHANGES
- useRenderProp and useAsync are removed
4.11.1 (2018-12-16)
Bug Fixes
4.11.0 (2018-12-05)
Features
- 🎸 add useRefMounted hook (dfb0510)
4.10.0 (2018-11-10)
Features
- bump useWait (124ef99)
4.9.0 (2018-11-06)
Features
4.8.0 (2018-11-02)
Features
- allow useSetState setter to accept function (bfd114a)
4.7.0 (2018-10-30)
Features
- 🎸 add useHoverDirty hook (c2aee59)
4.6.0 (2018-10-30)
Features
- 🎸 implement useLocalStorage without events (d211722)
4.5.0 (2018-10-29)
Features
4.4.0 (2018-10-29)
Features
- 🎸 add useCallbag hook (ead142c)
4.3.0 (2018-10-29)
Features
- 🎸 add useOutsideClick hook (90d2c22)
4.2.0 (2018-10-29)
Features
- 🎸 add useVideo hook (ff05419)
- 🎸 allow to pass React
4.1.0 (2018-10-29)
Features
- 🎸 add createMemo hook factory (8730eaa)
4.0.0 (2018-10-29)
Features
BREAKING CHANGES
- useCounter interface changed
3.1.0 (2018-10-29)
Features
- 🎸 add useGetSetState (dcd1013)
Performance Improvements
- ⚡️ wrape useGetSetState callbacks in useCallback (3c1e57d)
3.0.0 (2018-10-29)
Features
- 🎸 accept any value type in useToggle and cast it to bool (869f767)
BREAKING CHANGES
- now useToggle and useBoolean accept any value type and cast it to boolean.
2.3.0 (2018-10-29)
Features
- 🎸 add useBoolean hook (ce6de24)
2.2.0 (2018-10-29)
Features
2.1.0 (2018-10-28)
Features
- 🎸 add useObservable (711e831)
2.0.0 (2018-10-28)
Features
BREAKING CHANGES
- useToggle interface changed
1.0.0 (2018-10-28)
chore
- 🤖 release v1 (4236cf0)
Continuous Integration
- 🎡 store CircleCI artifacts, add git-cz (690dd5e)
Features
- 🎸 add useAsync hook (258d696)
- 🎸 add useAudio hook (4336aa1)
- 🎸 add useBattery hook (73ce535)
- 🎸 add useCounter hook (79e5b8c)
- 🎸 add useCss hook (2c0a7e4)
- 🎸 add useFavicon hook (ab1739a)
- 🎸 add useGeolocation hook (13a7326)
- 🎸 add useHover hook (406af20)
- 🎸 add useIdle hook (74d3ece)
- 🎸 add useLifecycles hook (f99c89f)
- 🎸 add useList hook (4bea508)
- 🎸 add useLocation hook (46a8e2c)
- 🎸 add useLogger hook (7c38b75)
- 🎸 add useMap hook (6509c25)
- 🎸 add useMedia hook (e1cc9ab)
- 🎸 add useMediaDevices hook (4ea0277)
- 🎸 add useMotion hook (91eb4ea)
- 🎸 add useMount and useUnmount hooks (63a1444)
- 🎸 add useNetwork hook (5881fa6)
- 🎸 add useOrientation hook (c533b97)
- 🎸 add useRaf hook (26b2593)
- 🎸 add useSetState hook (972541d)
- 🎸 add useSize hook (620b171)
- 🎸 add useSpeech hook (3b971a2)
- 🎸 add useSprgin hook (b4fe5b0)
- 🎸 add useTimeout hook (86f094e)
- 🎸 add useTitle hook (1bff6d8)
- 🎸 add useToggle() hook (a36dceb)
- 🎸 add useTween hook (877343e)
- 🎸 add useWindowSize() hook (2c46899)
- 🎸 do work on useLocaStorage (2541716)
- 🎸 improve useSize, pass through state to the element (5b1356a)
BREAKING CHANGES
- make semantic-release bump version
- Released v1.0.0