1 | ## [17.5.1](https://github.com/streamich/react-use/compare/v17.5.0...v17.5.1) (2024-07-20)
|
---|
2 |
|
---|
3 |
|
---|
4 | ### Bug Fixes
|
---|
5 |
|
---|
6 | * ๐ bump nano-css dependency ([adfb337](https://github.com/streamich/react-use/commit/adfb337d5b11427798afc5a21c6ebdaa76212182))
|
---|
7 |
|
---|
8 | # [17.5.0](https://github.com/streamich/react-use/compare/v17.4.4...v17.5.0) (2024-01-22)
|
---|
9 |
|
---|
10 |
|
---|
11 | ### Features
|
---|
12 |
|
---|
13 | * add `isFirst` and `isLast` methods to `useStateList` hook ([ac64414](https://github.com/streamich/react-use/commit/ac64414bea4c8afadfb382da9fea44ee89b41e2d))
|
---|
14 | * **pencil:** add isFirst and isLast return value to 'useStateList' ([75218e4](https://github.com/streamich/react-use/commit/75218e45dfdcdc6ea193e278cb97ceee98c00f1b))
|
---|
15 | * **pencil:** fix with yarn lint:fix ([6a9dde5](https://github.com/streamich/react-use/commit/6a9dde596ae25c0dd2fa97b0cf354143fbc5b5ff))
|
---|
16 |
|
---|
17 | ## [17.4.4](https://github.com/streamich/react-use/compare/v17.4.3...v17.4.4) (2024-01-21)
|
---|
18 |
|
---|
19 |
|
---|
20 | ### Bug Fixes
|
---|
21 |
|
---|
22 | * typo in example ([0534648](https://github.com/streamich/react-use/commit/05346481a15a321b13838eead0bda3024b0d163f))
|
---|
23 |
|
---|
24 | ## [17.4.3](https://github.com/streamich/react-use/compare/v17.4.2...v17.4.3) (2024-01-13)
|
---|
25 |
|
---|
26 |
|
---|
27 | ### Bug Fixes
|
---|
28 |
|
---|
29 | * update useMedia hook to use recommended approach of MDN ([e7379f0](https://github.com/streamich/react-use/commit/e7379f088787cbf9274c1fc21d36061f04855e4c))
|
---|
30 |
|
---|
31 | ## [17.4.2](https://github.com/streamich/react-use/compare/v17.4.1...v17.4.2) (2023-12-01)
|
---|
32 |
|
---|
33 |
|
---|
34 | ### Bug Fixes
|
---|
35 |
|
---|
36 | * correct peer dependencies ([d770587](https://github.com/streamich/react-use/commit/d77058729654397b68b251e8211bf0edc0b4ed50))
|
---|
37 |
|
---|
38 | ## [17.4.1](https://github.com/streamich/react-use/compare/v17.4.0...v17.4.1) (2023-11-28)
|
---|
39 |
|
---|
40 |
|
---|
41 | ### Bug Fixes
|
---|
42 |
|
---|
43 | * ๐ bump nano-css version ([812952b](https://github.com/streamich/react-use/commit/812952bb9ff004a844ec4285ad6c65d39597b11c))
|
---|
44 |
|
---|
45 | # [17.4.0](https://github.com/streamich/react-use/compare/v17.3.3...v17.4.0) (2022-05-20)
|
---|
46 |
|
---|
47 |
|
---|
48 | ### Features
|
---|
49 |
|
---|
50 | * add usePinchZoom sensor hook ([3e042cb](https://github.com/streamich/react-use/commit/3e042cb2f3022349a53199b5cc5c380e3ebd9975))
|
---|
51 |
|
---|
52 | ## [17.3.3](https://github.com/streamich/react-use/compare/v17.3.2...v17.3.3) (2022-05-20)
|
---|
53 |
|
---|
54 |
|
---|
55 | ### Bug Fixes
|
---|
56 |
|
---|
57 | * bump React peer dependency version ([532e865](https://github.com/streamich/react-use/commit/532e8653a50d39dd439d9664d4813a1d7a5b4f3c))
|
---|
58 | * resolve [#2319](https://github.com/streamich/react-use/issues/2319) ([4884b2c](https://github.com/streamich/react-use/commit/4884b2c74085e0841af7c36cca34e16d698d1b4c))
|
---|
59 | * resolve @types/react@18 break change, React.FC ([20b7817](https://github.com/streamich/react-use/commit/20b78178d0033cc2e0c2a904e413b20ee864c816))
|
---|
60 |
|
---|
61 | ## [17.3.2](https://github.com/streamich/react-use/compare/v17.3.1...v17.3.2) (2021-12-30)
|
---|
62 |
|
---|
63 |
|
---|
64 | ### Bug Fixes
|
---|
65 |
|
---|
66 | * useMedia SSR hydration bug with defaultState ([#2216](https://github.com/streamich/react-use/issues/2216)) ([5c01189](https://github.com/streamich/react-use/commit/5c0118941280bb265ca7813afb987f89c8c97a17))
|
---|
67 |
|
---|
68 | ## [17.3.1](https://github.com/streamich/react-use/compare/v17.3.0...v17.3.1) (2021-08-31)
|
---|
69 |
|
---|
70 |
|
---|
71 | ### Performance Improvements
|
---|
72 |
|
---|
73 | * โก๏ธ change title only if it changed ([51ef8d9](https://github.com/streamich/react-use/commit/51ef8d99bad31186ec5420d8b729748507c8a1bf))
|
---|
74 |
|
---|
75 | # [17.3.0](https://github.com/streamich/react-use/compare/v17.2.4...v17.3.0) (2021-08-31)
|
---|
76 |
|
---|
77 |
|
---|
78 | ### Bug Fixes
|
---|
79 |
|
---|
80 | * do not re-render unncessarily in useAsyncFn hook ([fa3ba25](https://github.com/streamich/react-use/commit/fa3ba2520ede6866b599f6df55fdfa6395058cd2))
|
---|
81 |
|
---|
82 |
|
---|
83 | ### Features
|
---|
84 |
|
---|
85 | * useAudio add playing state ([3203610](https://github.com/streamich/react-use/commit/3203610efdcb8e1fe3c6a17ea19e41bacbeb851b))
|
---|
86 |
|
---|
87 | ## [17.2.4](https://github.com/streamich/react-use/compare/v17.2.3...v17.2.4) (2021-04-23)
|
---|
88 |
|
---|
89 |
|
---|
90 | ### Bug Fixes
|
---|
91 |
|
---|
92 | * lint issues. ([66b0f23](https://github.com/streamich/react-use/commit/66b0f235477c5f93807df75a53a84b3c5cd053e5))
|
---|
93 | * **useLocalStorage:** reinitialize on key change ([fdd1b23](https://github.com/streamich/react-use/commit/fdd1b23fd7ba6ae30139eeef02c552a8c7d6d333))
|
---|
94 | * add generic typing to createHTMLMediaHook. no typecheck problem with ref anymore. ([1f547ef](https://github.com/streamich/react-use/commit/1f547efb12d6cbe7687e86925ad80bd85fac3dfd))
|
---|
95 | * add generic typing to createHTMLMediaHook. no typecheck problem with ref anymore. ([ac4dd78](https://github.com/streamich/react-use/commit/ac4dd786f42a2c59bdaaf9ddebe2e830982d7fcc))
|
---|
96 |
|
---|
97 | ## [17.2.3](https://github.com/streamich/react-use/compare/v17.2.2...v17.2.3) (2021-04-06)
|
---|
98 |
|
---|
99 |
|
---|
100 | ### Bug Fixes
|
---|
101 |
|
---|
102 | * lint issues. ([5a5a575](https://github.com/streamich/react-use/commit/5a5a5755bc1f10add9c7a100ea6577ab6d427c0c))
|
---|
103 |
|
---|
104 | ## [17.2.2](https://github.com/streamich/react-use/compare/v17.2.1...v17.2.2) (2021-04-06)
|
---|
105 |
|
---|
106 |
|
---|
107 | ### Bug Fixes
|
---|
108 |
|
---|
109 | * **useStateWithHistory:** support callback style setState ([fca687d](https://github.com/streamich/react-use/commit/fca687d32c37148dab3072f053109f6c4d3c36ba))
|
---|
110 |
|
---|
111 | ## [17.2.1](https://github.com/streamich/react-use/compare/v17.2.0...v17.2.1) (2021-03-11)
|
---|
112 |
|
---|
113 |
|
---|
114 | ### Bug Fixes
|
---|
115 |
|
---|
116 | * lint issues. ([3e8af15](https://github.com/streamich/react-use/commit/3e8af15086135c873d18079a0b92b21da668a2ff))
|
---|
117 | * useMeasure type definitions for SVG ([e200f7f](https://github.com/streamich/react-use/commit/e200f7fcbb371a1d794be8d350f9559f940e5760))
|
---|
118 | * useUnmountPromise stops on immediate update ([9ff5c09](https://github.com/streamich/react-use/commit/9ff5c09e671c4f07f25f30a60617fca7660e7607))
|
---|
119 |
|
---|
120 | # [17.2.0](https://github.com/streamich/react-use/compare/v17.1.1...v17.2.0) (2021-03-10)
|
---|
121 |
|
---|
122 |
|
---|
123 | ### Bug Fixes
|
---|
124 |
|
---|
125 | * delete isClient ([72f4cb9](https://github.com/streamich/react-use/commit/72f4cb9b405b3729975bca3acb06658ca467d15b))
|
---|
126 | * lint issues. ([dc5bbe0](https://github.com/streamich/react-use/commit/dc5bbe0e94d131dda90942ba90c14b200df3f34e))
|
---|
127 | * **useOrientation:** handle orientation being 0 ([793b053](https://github.com/streamich/react-use/commit/793b0539f0305e2512e7022c45a5c33b842d24d5))
|
---|
128 | * **useOrientation:** update tests to increase coverage ([f9c743f](https://github.com/streamich/react-use/commit/f9c743fa8375ef726d33f85285d4a5af608f9a42))
|
---|
129 | * use window inside useEffect ([2f33aa8](https://github.com/streamich/react-use/commit/2f33aa8182c92bf56d49ec3184e6b20f0c0c1e1e))
|
---|
130 |
|
---|
131 |
|
---|
132 | ### Features
|
---|
133 |
|
---|
134 | * **useOrientation:** add tests ([f45cb70](https://github.com/streamich/react-use/commit/f45cb707b52363f1cb1b32a0ebf2fdbdae79b322))
|
---|
135 |
|
---|
136 | ## [17.1.1](https://github.com/streamich/react-use/compare/v17.1.0...v17.1.1) (2021-02-10)
|
---|
137 |
|
---|
138 |
|
---|
139 | ### Bug Fixes
|
---|
140 |
|
---|
141 | * useMountedState should not change state on componentDidUpdate lifecycle ([701b306](https://github.com/streamich/react-use/commit/701b306ed97382cbec73c834f6d3dd7baa58e339))
|
---|
142 |
|
---|
143 | # [17.1.0](https://github.com/streamich/react-use/compare/v17.0.2...v17.1.0) (2021-02-01)
|
---|
144 |
|
---|
145 |
|
---|
146 | ### Features
|
---|
147 |
|
---|
148 | * **prettier:** make prettier a part of eslint. ([b6993a6](https://github.com/streamich/react-use/commit/b6993a6f95a1b493945c03aecc44dafd10870816))
|
---|
149 |
|
---|
150 | ## [17.0.2](https://github.com/streamich/react-use/compare/v17.0.1...v17.0.2) (2021-02-01)
|
---|
151 |
|
---|
152 |
|
---|
153 | ### Bug Fixes
|
---|
154 |
|
---|
155 | * proper definition for `useMeasure` ([1461527](https://github.com/streamich/react-use/commit/1461527ffc55b2a1e3c9dc6a0efc2572b66e5381))
|
---|
156 |
|
---|
157 | ## [17.0.1](https://github.com/streamich/react-use/compare/v17.0.0...v17.0.1) (2021-01-31)
|
---|
158 |
|
---|
159 |
|
---|
160 | ### Bug Fixes
|
---|
161 |
|
---|
162 | * proper definition for isBrowser and isNavigator states. ([a087deb](https://github.com/streamich/react-use/commit/a087deb48e57b1f0a23a2d0a28d0c2d10a640cd6)), closes [#1777](https://github.com/streamich/react-use/issues/1777)
|
---|
163 |
|
---|
164 | # [17.0.0](https://github.com/streamich/react-use/compare/v16.1.0...v17.0.0) (2021-01-31)
|
---|
165 |
|
---|
166 |
|
---|
167 | ### Features
|
---|
168 |
|
---|
169 | * refactor the useNetwork hook. ([23037f2](https://github.com/streamich/react-use/commit/23037f207d07604dd2cd7e2cc4ba9475221be780))
|
---|
170 |
|
---|
171 |
|
---|
172 | ### BREAKING CHANGES
|
---|
173 |
|
---|
174 | * `useNetwork` hook renamed to `useNetworkState`.
|
---|
175 |
|
---|
176 | # [16.1.0](https://github.com/streamich/react-use/compare/v16.0.0...v16.1.0) (2021-01-31)
|
---|
177 |
|
---|
178 |
|
---|
179 | ### Features
|
---|
180 |
|
---|
181 | * improve `on` and `off` util functions typing. ([723c588](https://github.com/streamich/react-use/commit/723c588fef6aba9f10ea9f5ea7bc444532519f9a))
|
---|
182 |
|
---|
183 | # [16.0.0](https://github.com/streamich/react-use/compare/v15.3.8...v16.0.0) (2021-01-30)
|
---|
184 |
|
---|
185 |
|
---|
186 | ### chore
|
---|
187 |
|
---|
188 | * refactoring and rearrangement. ([a27f09f](https://github.com/streamich/react-use/commit/a27f09fd367f8b172866b5fcbaf66f9a5a3481bb))
|
---|
189 |
|
---|
190 |
|
---|
191 | ### BREAKING CHANGES
|
---|
192 |
|
---|
193 | * all `create*` factories been moved to `factory` subdirectory and in case direct import should be imported like `react-use/esm/factory/createBreakpoint`
|
---|
194 | * `comps` directory renamed to `component`
|
---|
195 |
|
---|
196 | ## [15.3.8](https://github.com/streamich/react-use/compare/v15.3.7...v15.3.8) (2021-01-08)
|
---|
197 |
|
---|
198 |
|
---|
199 | ### Bug Fixes
|
---|
200 |
|
---|
201 | * improve useStateValidator and useMultiStateValidator typings. ([acff81d](https://github.com/streamich/react-use/commit/acff81d99abdbbefcc2985297ee01c3cda9ef4c9))
|
---|
202 |
|
---|
203 | ## [15.3.7](https://github.com/streamich/react-use/compare/v15.3.6...v15.3.7) (2021-01-08)
|
---|
204 |
|
---|
205 |
|
---|
206 | ### Bug Fixes
|
---|
207 |
|
---|
208 | * [#1646](https://github.com/streamich/react-use/issues/1646) ([ebc7094](https://github.com/streamich/react-use/commit/ebc7094bbc156be57b3de855c6984c1d056cf0e6))
|
---|
209 |
|
---|
210 | ## [15.3.6](https://github.com/streamich/react-use/compare/v15.3.5...v15.3.6) (2021-01-07)
|
---|
211 |
|
---|
212 |
|
---|
213 | ### Bug Fixes
|
---|
214 |
|
---|
215 | * Fix issues in tests ([7668ce5](https://github.com/streamich/react-use/commit/7668ce5c5f0f186437907f1c352d3a62e3ae8ba7))
|
---|
216 |
|
---|
217 | ## [15.3.4](https://github.com/streamich/react-use/compare/v15.3.3...v15.3.4) (2020-09-04)
|
---|
218 |
|
---|
219 |
|
---|
220 | ### Bug Fixes
|
---|
221 |
|
---|
222 | * useLongPress hook linting fixes. ([479dd99](https://github.com/streamich/react-use/commit/479dd9977bfcc43ccadc58eb93690adee462a16e))
|
---|
223 |
|
---|
224 | ## [15.3.3](https://github.com/streamich/react-use/compare/v15.3.2...v15.3.3) (2020-07-24)
|
---|
225 |
|
---|
226 |
|
---|
227 | ### Bug Fixes
|
---|
228 |
|
---|
229 | * replace createFactory usages with createElement ([ad29bea](https://github.com/streamich/react-use/commit/ad29bea7b03f46aa697e6623bdf7a17347ace651))
|
---|
230 |
|
---|
231 | ## [15.3.2](https://github.com/streamich/react-use/compare/v15.3.1...v15.3.2) (2020-06-29)
|
---|
232 |
|
---|
233 |
|
---|
234 | ### Bug Fixes
|
---|
235 |
|
---|
236 | * **useFullscreen:** fix typings so [#1205](https://github.com/streamich/react-use/issues/1205) can be merged. ([e6e55a3](https://github.com/streamich/react-use/commit/e6e55a3f94993b621566ac66488fd973e992704f))
|
---|
237 |
|
---|
238 | ## [15.3.1](https://github.com/streamich/react-use/compare/v15.3.0...v15.3.1) (2020-06-29)
|
---|
239 |
|
---|
240 |
|
---|
241 | ### Bug Fixes
|
---|
242 |
|
---|
243 | * **usePrevious:** revert the reworked variant as a fix of [#1315](https://github.com/streamich/react-use/issues/1315) ([a4279eb](https://github.com/streamich/react-use/commit/a4279eb660f6b433ed88e0d90c2bb0b3158d3b00))
|
---|
244 |
|
---|
245 | # [15.3.0](https://github.com/streamich/react-use/compare/v15.2.5...v15.3.0) (2020-06-19)
|
---|
246 |
|
---|
247 |
|
---|
248 | ### Features
|
---|
249 |
|
---|
250 | * **usePrevious:** reworked the hook, now it is more memory-efficient. ([8c6f467](https://github.com/streamich/react-use/commit/8c6f4675beac9c71e96126dd6f06f455c4e4bf01))
|
---|
251 |
|
---|
252 | ## [15.2.5](https://github.com/streamich/react-use/compare/v15.2.4...v15.2.5) (2020-06-15)
|
---|
253 |
|
---|
254 |
|
---|
255 | ### Bug Fixes
|
---|
256 |
|
---|
257 | * bump react-universal-interface ([1540c1a](https://github.com/streamich/react-use/commit/1540c1ab8f338dfa2f53de16506fbf47803d45ba))
|
---|
258 |
|
---|
259 | ## [15.2.4](https://github.com/streamich/react-use/compare/v15.2.3...v15.2.4) (2020-06-13)
|
---|
260 |
|
---|
261 |
|
---|
262 | ### Bug Fixes
|
---|
263 |
|
---|
264 | * doesn't unlock the body on unmount ([1ead4ef](https://github.com/streamich/react-use/commit/1ead4efab6c67131e480570b578b0ce803204953))
|
---|
265 |
|
---|
266 | ## [15.2.3](https://github.com/streamich/react-use/compare/v15.2.2...v15.2.3) (2020-06-13)
|
---|
267 |
|
---|
268 |
|
---|
269 | ### Bug Fixes
|
---|
270 |
|
---|
271 | * ๐ improve how text is dropped in useDrop hook ([b2f46d1](https://github.com/streamich/react-use/commit/b2f46d10f25c5e658bb7f790950a1fd9a4e5e288))
|
---|
272 |
|
---|
273 | ## [15.2.2](https://github.com/streamich/react-use/compare/v15.2.1...v15.2.2) (2020-06-08)
|
---|
274 |
|
---|
275 |
|
---|
276 | ### Bug Fixes
|
---|
277 |
|
---|
278 | * repair useKeyboardJs hook ([8410bb0](https://github.com/streamich/react-use/commit/8410bb042fec8f1996e8bcecb85fadfbb414b3f9))
|
---|
279 |
|
---|
280 | ## [15.2.1](https://github.com/streamich/react-use/compare/v15.2.0...v15.2.1) (2020-06-08)
|
---|
281 |
|
---|
282 |
|
---|
283 | ### Bug Fixes
|
---|
284 |
|
---|
285 | * ๐ bump fast-deep-equal, and consume it through ES import ([f3c715c](https://github.com/streamich/react-use/commit/f3c715c12412224be815e0d1bc3e2285f275df26))
|
---|
286 |
|
---|
287 | # [15.2.0](https://github.com/streamich/react-use/compare/v15.1.1...v15.2.0) (2020-06-07)
|
---|
288 |
|
---|
289 |
|
---|
290 | ### Features
|
---|
291 |
|
---|
292 | * add useMouseWheel hook ([d714b12](https://github.com/streamich/react-use/commit/d714b12e8b2d071c65fe4dc7643be10f69dc5dba))
|
---|
293 |
|
---|
294 | ## [15.1.1](https://github.com/streamich/react-use/compare/v15.1.0...v15.1.1) (2020-05-30)
|
---|
295 |
|
---|
296 |
|
---|
297 | ### Bug Fixes
|
---|
298 |
|
---|
299 | * ๐ use useIsomorphicLayoutEffect everywhere ([dad26e5](https://github.com/streamich/react-use/commit/dad26e507d3409300f945bc57930f88c5a11953d))
|
---|
300 |
|
---|
301 | # [15.1.0](https://github.com/streamich/react-use/compare/v15.0.3...v15.1.0) (2020-05-18)
|
---|
302 |
|
---|
303 |
|
---|
304 | ### Bug Fixes
|
---|
305 |
|
---|
306 | * display alert timeout in story ([2bb65ef](https://github.com/streamich/react-use/commit/2bb65ef3d85e82b6bd134a714e51e27876037734))
|
---|
307 | * mutate ref in render directly ([5488f5e](https://github.com/streamich/react-use/commit/5488f5eb3e8504dcae03584b5797a48659e16623))
|
---|
308 |
|
---|
309 |
|
---|
310 | ### Features
|
---|
311 |
|
---|
312 | * add useLatest hook ([d6fe267](https://github.com/streamich/react-use/commit/d6fe2676153f19302ce170b03ceadc3bab5a945a))
|
---|
313 |
|
---|
314 | ## [15.0.3](https://github.com/streamich/react-use/compare/v15.0.2...v15.0.3) (2020-05-18)
|
---|
315 |
|
---|
316 |
|
---|
317 | ### Bug Fixes
|
---|
318 |
|
---|
319 | * ๐ correct useMeasure typings ([bedbad7](https://github.com/streamich/react-use/commit/bedbad723171ed1946bc80f72609432983d4c1ba))
|
---|
320 |
|
---|
321 | ## [15.0.2](https://github.com/streamich/react-use/compare/v15.0.1...v15.0.2) (2020-05-17)
|
---|
322 |
|
---|
323 |
|
---|
324 | ### Bug Fixes
|
---|
325 |
|
---|
326 | * ๐ dont memoize useScratch event handlers ([ffc7579](https://github.com/streamich/react-use/commit/ffc75790e329cb26000a174074c07d80283b5443))
|
---|
327 |
|
---|
328 | ## [15.0.1](https://github.com/streamich/react-use/compare/v15.0.0...v15.0.1) (2020-05-16)
|
---|
329 |
|
---|
330 |
|
---|
331 | ### Bug Fixes
|
---|
332 |
|
---|
333 | * **deps:** update dependency tslib to v2 ([6aebf3c](https://github.com/streamich/react-use/commit/6aebf3c25e14d12d8f34e62ecbaecfd3125cf2d9))
|
---|
334 |
|
---|
335 | # [15.0.0](https://github.com/streamich/react-use/compare/v14.3.0...v15.0.0) (2020-05-16)
|
---|
336 |
|
---|
337 |
|
---|
338 | * v15 release ([0f82ba6](https://github.com/streamich/react-use/commit/0f82ba650ed3e8b05b5458a243e7eb246fd954d2))
|
---|
339 |
|
---|
340 |
|
---|
341 | ### Bug Fixes
|
---|
342 |
|
---|
343 | * ๐ better serialization handling in useLocalStorage hook ([68fb835](https://github.com/streamich/react-use/commit/68fb835ea64cf5587c99645a09c6de93ab1b71df))
|
---|
344 | * ๐ correctly test if env is browser in useMeasure ([9ae494f](https://github.com/streamich/react-use/commit/9ae494fc1874619aad2f3856df790cbc1a2a8239))
|
---|
345 | * ๐ make useMeasure work on server ([2daf769](https://github.com/streamich/react-use/commit/2daf76990d0e1040f8c0f31e16e7c1eebd94c9bf))
|
---|
346 | * ๐ remove set dependencies in useSet hook ([90ba9d0](https://github.com/streamich/react-use/commit/90ba9d000ff35039028cb66753114a6b0b452491))
|
---|
347 | * ๐ revert useMeasure defaults to zeros ([dc92b64](https://github.com/streamich/react-use/commit/dc92b646d0cd0f12868fde370c83e94ca3c7e297))
|
---|
348 | * remove console log ๐ค ([f17c8a0](https://github.com/streamich/react-use/commit/f17c8a0f8e63bfddb8f13a094edbea1e3ee9680b))
|
---|
349 | * **useLocalStorage:** using undefined for empty value instead of null ([1620e01](https://github.com/streamich/react-use/commit/1620e019fff94fb4a7a711fd3121ec02c7e99301))
|
---|
350 | * use latest set object in useSet "has" method ([41f9452](https://github.com/streamich/react-use/commit/41f9452722d6fb7d2628480d7ce657e4f08e441a))
|
---|
351 |
|
---|
352 |
|
---|
353 | ### Features
|
---|
354 |
|
---|
355 | * ๐ธ add useScratch() sensor hook ([58db2f9](https://github.com/streamich/react-use/commit/58db2f989d5d4f75ac5e8ef54c25a9df8bb173a5))
|
---|
356 | * ๐ธ catch up with v14 ([be69035](https://github.com/streamich/react-use/commit/be69035caf13f551e7717d3de0ea339c8943a9de))
|
---|
357 | * ๐ธ improve implementation of useMeasure() hook ([a164843](https://github.com/streamich/react-use/commit/a1648439021a45c781c2074489d7c6aaaa867406))
|
---|
358 | * ๐ธ improve implementation of useMeasure() hook ([4d88240](https://github.com/streamich/react-use/commit/4d8824064a0afbeba5a15597b007f8463fdbe027))
|
---|
359 | * ๐ธ mock useMeasure() hook on server and w/o ResizeObserver ([866f3d7](https://github.com/streamich/react-use/commit/866f3d740b08d4772dfbad9c48b3b0b8bac69a28))
|
---|
360 | * ๐ธ mock useMeasure() hook on server and w/o ResizeObserver ([2bbc73a](https://github.com/streamich/react-use/commit/2bbc73a5f08e9a21bb3054527fc8ff9fd51cfd47))
|
---|
361 | * ๐ธ remove resize-observer-polyfill from useMeasure ([2a13fba](https://github.com/streamich/react-use/commit/2a13fbae45af3a26c984de03130139181c0c3839))
|
---|
362 | * ๐ธ remove resize-observer-polyfill from useMeasure ([bf11131](https://github.com/streamich/react-use/commit/bf11131052c4a4ab2b9306486f0b171ac15057b0))
|
---|
363 | * Dependencies inference for useCustomCompareEffect ([477c164](https://github.com/streamich/react-use/commit/477c1644a7225513c53294337be3c5b50126712f))
|
---|
364 | * improve useAsyncFn and useAsync typings ([85967e2](https://github.com/streamich/react-use/commit/85967e294ce268bd1edc57968f2c3f85a3ee6cb7))
|
---|
365 | * keep previous state in useAsyncFn ([54ac91b](https://github.com/streamich/react-use/commit/54ac91b28dca0f5c276b092d563b9c821cbab081))
|
---|
366 | * use useReducer in useUpdate hook, instead of useState + useCallback ([6575b14](https://github.com/streamich/react-use/commit/6575b14985ede9b8f45fdad068ee9238d6f7ab80))
|
---|
367 | * **useLocalStorage:** add remove feature. ([#229](https://github.com/streamich/react-use/issues/229)) ([587de16](https://github.com/streamich/react-use/commit/587de16ef5c85497d01e63247a578116d0605ff9))
|
---|
368 |
|
---|
369 |
|
---|
370 | ### BREAKING CHANGES
|
---|
371 |
|
---|
372 | * implementation of useMeasure and useLocalStorage changed
|
---|
373 | * resize-observer-polyfill package is not used with useMeasure() hook
|
---|
374 | anymore.
|
---|
375 | * useMeasure() now defaults all values to -1, if they were not set and
|
---|
376 | internal implementation heavily refactored.
|
---|
377 | * useAsyncFn now keeps hold of old result/error when called multiple times
|
---|
378 | * resize-observer-polyfill package is not used with useMeasure() hook
|
---|
379 | anymore.
|
---|
380 | * useMeasure() now defaults all values to -1, if they were not set and
|
---|
381 | internal implementation heavily refactored.
|
---|
382 |
|
---|
383 | # [14.3.0](https://github.com/streamich/react-use/compare/v14.2.0...v14.3.0) (2020-05-16)
|
---|
384 |
|
---|
385 |
|
---|
386 | ### Features
|
---|
387 |
|
---|
388 | * ๐ธ add useScratch hook ([2a2a298](https://github.com/streamich/react-use/commit/2a2a298b73f7beb9a2a61c309e649be3d2527473))
|
---|
389 |
|
---|
390 | # [14.2.0](https://github.com/streamich/react-use/compare/v14.1.1...v14.2.0) (2020-04-24)
|
---|
391 |
|
---|
392 |
|
---|
393 | ### Features
|
---|
394 |
|
---|
395 | * ๐ธ onScrubStop provide value where scrub stopped ([138b43c](https://github.com/streamich/react-use/commit/138b43cd1ac9ea7c76a1a42fca48ebdcb94e1006))
|
---|
396 |
|
---|
397 | ## [14.1.1](https://github.com/streamich/react-use/compare/v14.1.0...v14.1.1) (2020-04-11)
|
---|
398 |
|
---|
399 |
|
---|
400 | ### Bug Fixes
|
---|
401 |
|
---|
402 | * **deps:** update dependency @types/js-cookie to v2.2.6 ([f9f4fae](https://github.com/streamich/react-use/commit/f9f4fae6a9a136fdd6763dd2b2214c1746fb0595))
|
---|
403 |
|
---|
404 | # [14.1.0](https://github.com/streamich/react-use/compare/v14.0.0...v14.1.0) (2020-04-08)
|
---|
405 |
|
---|
406 |
|
---|
407 | ### Features
|
---|
408 |
|
---|
409 | * add useHash hook ([44a6cde](https://github.com/streamich/react-use/commit/44a6cde00e1c74831d7c38b8ae4946f6f2171cf5))
|
---|
410 |
|
---|
411 | # [14.0.0](https://github.com/streamich/react-use/compare/v13.27.1...v14.0.0) (2020-04-04)
|
---|
412 |
|
---|
413 |
|
---|
414 | ### Features
|
---|
415 |
|
---|
416 | * **useRafLoop:** implement [#1090](https://github.com/streamich/react-use/issues/1090) ([1ef1272](https://github.com/streamich/react-use/commit/1ef1272d6dbe8fbcc2d08223cd80ef32ce28a9c9))
|
---|
417 | * **useRafLoop:** reworked the hook, now it do not re-render parent component. ([baa2f75](https://github.com/streamich/react-use/commit/baa2f7511e18fc9fec29376afa27af73de633d8f))
|
---|
418 |
|
---|
419 |
|
---|
420 | ### BREAKING CHANGES
|
---|
421 |
|
---|
422 | * **useRafLoop:** changed return array, now it returns only functions in next order: [stop, start, isActive].
|
---|
423 |
|
---|
424 | Parent component is not re-rendered on loop start/stop.
|
---|
425 |
|
---|
426 | ## [13.27.1](https://github.com/streamich/react-use/compare/v13.27.0...v13.27.1) (2020-03-25)
|
---|
427 |
|
---|
428 |
|
---|
429 | ### Bug Fixes
|
---|
430 |
|
---|
431 | * **deps:** update dependency @xobotyi/scrollbar-width to v1.9.5 ([9751390](https://github.com/streamich/react-use/commit/97513900de7b60d8da62db35125e2f81458a4f25))
|
---|
432 |
|
---|
433 | # [13.27.0](https://github.com/streamich/react-use/compare/v13.26.5...v13.27.0) (2020-03-03)
|
---|
434 |
|
---|
435 |
|
---|
436 | ### Features
|
---|
437 |
|
---|
438 | * **useSet:** add toggle a method ([#968](https://github.com/streamich/react-use/issues/968)) ([477614f](https://github.com/streamich/react-use/commit/477614f9ef84d3cfa75f9c8a97dbc73d30dd411d))
|
---|
439 |
|
---|
440 | ## [13.26.5](https://github.com/streamich/react-use/compare/v13.26.4...v13.26.5) (2020-03-02)
|
---|
441 |
|
---|
442 |
|
---|
443 | ### Bug Fixes
|
---|
444 |
|
---|
445 | * **deps:** update dependency @xobotyi/scrollbar-width to v1.9.4 ([29d017b](https://github.com/streamich/react-use/commit/29d017b2417f53455ee182aa1ad9574a3ee098d6))
|
---|
446 |
|
---|
447 | ## [13.26.4](https://github.com/streamich/react-use/compare/v13.26.3...v13.26.4) (2020-02-29)
|
---|
448 |
|
---|
449 |
|
---|
450 | ### Bug Fixes
|
---|
451 |
|
---|
452 | * useHoverDirty eslint fix ([0ed6521](https://github.com/streamich/react-use/commit/0ed6521179fe193007f504b3b221a6c5295f9fa0))
|
---|
453 |
|
---|
454 | ## [13.26.3](https://github.com/streamich/react-use/compare/v13.26.2...v13.26.3) (2020-02-26)
|
---|
455 |
|
---|
456 |
|
---|
457 | ### Bug Fixes
|
---|
458 |
|
---|
459 | * **deps:** update dependency @types/js-cookie to v2.2.5 ([1f3217a](https://github.com/streamich/react-use/commit/1f3217a07f0b11ed4d6264687188f587501c133b))
|
---|
460 |
|
---|
461 | ## [13.26.2](https://github.com/streamich/react-use/compare/v13.26.1...v13.26.2) (2020-02-24)
|
---|
462 |
|
---|
463 |
|
---|
464 | ### Bug Fixes
|
---|
465 |
|
---|
466 | * **deps:** update dependency @xobotyi/scrollbar-width to v1.9.3 ([6e2287d](https://github.com/streamich/react-use/commit/6e2287d7e84ef1e455da7209ee32cf86643b00a5))
|
---|
467 |
|
---|
468 | ## [13.26.1](https://github.com/streamich/react-use/compare/v13.26.0...v13.26.1) (2020-02-16)
|
---|
469 |
|
---|
470 |
|
---|
471 | ### Bug Fixes
|
---|
472 |
|
---|
473 | * **deps:** update dependency @xobotyi/scrollbar-width to v1.9.0 ([601d787](https://github.com/streamich/react-use/commit/601d7871a0325677a24a7a93fc9ce2b11132370f))
|
---|
474 |
|
---|
475 | # [13.26.0](https://github.com/streamich/react-use/compare/v13.25.1...v13.26.0) (2020-02-15)
|
---|
476 |
|
---|
477 |
|
---|
478 | ### Bug Fixes
|
---|
479 |
|
---|
480 | * add initialState to deps ([b394f3d](https://github.com/streamich/react-use/commit/b394f3d72356d331dbce48acd3686bbb64d331b5))
|
---|
481 |
|
---|
482 |
|
---|
483 | ### Features
|
---|
484 |
|
---|
485 | * add useMethods state hook ([7554b9a](https://github.com/streamich/react-use/commit/7554b9a61eb9b4744b9feb113775ff538b16beaf))
|
---|
486 |
|
---|
487 | ## [13.25.1](https://github.com/streamich/react-use/compare/v13.25.0...v13.25.1) (2020-02-15)
|
---|
488 |
|
---|
489 |
|
---|
490 | ### Bug Fixes
|
---|
491 |
|
---|
492 | * ๐ support default event in useClickAway() ([24281cd](https://github.com/streamich/react-use/commit/24281cdf042da5f83068c6108c67a36fe0cfc74d))
|
---|
493 | * generic type on event arg in onClickAway callback on useClickAway ([4ffe454](https://github.com/streamich/react-use/commit/4ffe4542aec840bd6150223489d2c38821954336))
|
---|
494 |
|
---|
495 | # [13.25.0](https://github.com/streamich/react-use/compare/v13.24.1...v13.25.0) (2020-02-15)
|
---|
496 |
|
---|
497 |
|
---|
498 | ### Features
|
---|
499 |
|
---|
500 | * **useBeforeUnload:** allow passing a dirty function ([#842](https://github.com/streamich/react-use/issues/842)) ([c4a14a4](https://github.com/streamich/react-use/commit/c4a14a4fb370c7628e4cc5861e31cc64a66b64b0))
|
---|
501 |
|
---|
502 | ## [13.24.1](https://github.com/streamich/react-use/compare/v13.24.0...v13.24.1) (2020-02-15)
|
---|
503 |
|
---|
504 |
|
---|
505 | ### Performance Improvements
|
---|
506 |
|
---|
507 | * use fast-deep-equal for deep comparisons ([b9a8aad](https://github.com/streamich/react-use/commit/b9a8aad053a40028f119192ddecedb5c7ec05247))
|
---|
508 |
|
---|
509 | # [13.24.0](https://github.com/streamich/react-use/compare/v13.23.0...v13.24.0) (2020-02-04)
|
---|
510 |
|
---|
511 |
|
---|
512 | ### Features
|
---|
513 |
|
---|
514 | * add createReducerContext and createStateContext factories ([84b8310](https://github.com/streamich/react-use/commit/84b83101c2253f8935b2804a48ade081e41982a8))
|
---|
515 |
|
---|
516 | # [13.23.0](https://github.com/streamich/react-use/compare/v13.22.5...v13.23.0) (2020-02-04)
|
---|
517 |
|
---|
518 |
|
---|
519 | ### Features
|
---|
520 |
|
---|
521 | * add createGlobalState hook generator ([fda7199](https://github.com/streamich/react-use/commit/fda7199b7da23f321e68d0784deb1f0f3d273e3c))
|
---|
522 |
|
---|
523 | ## [13.22.5](https://github.com/streamich/react-use/compare/v13.22.4...v13.22.5) (2020-02-04)
|
---|
524 |
|
---|
525 |
|
---|
526 | ### Bug Fixes
|
---|
527 |
|
---|
528 | * ๐ don't throw in useMediaDevices on missing browser API ([0f119fe](https://github.com/streamich/react-use/commit/0f119fe23e837e0d8c2a8c882b1aaf3b62cbc7d2))
|
---|
529 | * handle undefined mediaDevices ([6f68437](https://github.com/streamich/react-use/commit/6f68437359704dace7d518f1f013bc3516400c67))
|
---|
530 |
|
---|
531 | ## [13.22.4](https://github.com/streamich/react-use/compare/v13.22.3...v13.22.4) (2020-01-30)
|
---|
532 |
|
---|
533 |
|
---|
534 | ### Bug Fixes
|
---|
535 |
|
---|
536 | * **deps:** update dependency @xobotyi/scrollbar-width to v1.8.2 ([#930](https://github.com/streamich/react-use/issues/930)) ([727b950](https://github.com/streamich/react-use/commit/727b95096ec6654ba4da22f6825e6d8982258033))
|
---|
537 |
|
---|
538 | ## [13.22.3](https://github.com/streamich/react-use/compare/v13.22.2...v13.22.3) (2020-01-28)
|
---|
539 |
|
---|
540 |
|
---|
541 | ### Bug Fixes
|
---|
542 |
|
---|
543 | * **useIntersection:** disconnect an old IntersectionObserver instance when the ref changes ([ac2f54a](https://github.com/streamich/react-use/commit/ac2f54a8f683296feecfeeb6354738b9ebbc36d0))
|
---|
544 | * **useIntersection:** reset an intersectionObserverEntry when the ref changes ([3f8687e](https://github.com/streamich/react-use/commit/3f8687e1f51cc48efbf6be3f0677f5bd06ecba08))
|
---|
545 | * **useIntersection:** return null if IntersectionObserver is not supported ([4f6d388](https://github.com/streamich/react-use/commit/4f6d3887be5cf62ce42357a7bf27f4ae8b080eba))
|
---|
546 |
|
---|
547 | ## [13.22.2](https://github.com/streamich/react-use/compare/v13.22.1...v13.22.2) (2020-01-27)
|
---|
548 |
|
---|
549 |
|
---|
550 | ### Bug Fixes
|
---|
551 |
|
---|
552 | * **deps:** update dependency @xobotyi/scrollbar-width to v1.7.0 ([db74101](https://github.com/streamich/react-use/commit/db741019324c3d20a17bbc20a014cedd21e66b1a))
|
---|
553 |
|
---|
554 | ## [13.22.1](https://github.com/streamich/react-use/compare/v13.22.0...v13.22.1) (2020-01-27)
|
---|
555 |
|
---|
556 |
|
---|
557 | ### Bug Fixes
|
---|
558 |
|
---|
559 | * **deps:** update dependency @xobotyi/scrollbar-width to v1.6.0 ([431ba5d](https://github.com/streamich/react-use/commit/431ba5d0816cb7701b03460c5efa5199ad27cbc4))
|
---|
560 |
|
---|
561 | # [13.22.0](https://github.com/streamich/react-use/compare/v13.21.0...v13.22.0) (2020-01-24)
|
---|
562 |
|
---|
563 |
|
---|
564 | ### Bug Fixes
|
---|
565 |
|
---|
566 | * Fail testing and update doc ([57b9041](https://github.com/streamich/react-use/commit/57b904118e2cd1f1b4e367c9a14e2a981db2f06a))
|
---|
567 |
|
---|
568 |
|
---|
569 | ### Features
|
---|
570 |
|
---|
571 | * add useLongPress hook ([45681b8](https://github.com/streamich/react-use/commit/45681b88e3fd3d9337a38da07248c46ec6d5956e))
|
---|
572 |
|
---|
573 | # [13.21.0](https://github.com/streamich/react-use/compare/v13.20.0...v13.21.0) (2020-01-20)
|
---|
574 |
|
---|
575 |
|
---|
576 | ### Features
|
---|
577 |
|
---|
578 | * Typings for `useDefault` ([fa0f53b](https://github.com/streamich/react-use/commit/fa0f53bf86a712f4b7e503cdf4718a8ff5448e05))
|
---|
579 |
|
---|
580 | # [13.20.0](https://github.com/streamich/react-use/compare/v13.19.0...v13.20.0) (2020-01-17)
|
---|
581 |
|
---|
582 |
|
---|
583 | ### Features
|
---|
584 |
|
---|
585 | * `useMap`: allow resetting with provided value other then initial ([7645f72](https://github.com/streamich/react-use/commit/7645f7249dbf52db140dfc8b7866cb4a171e439c))
|
---|
586 |
|
---|
587 | # [13.19.0](https://github.com/streamich/react-use/compare/v13.18.0...v13.19.0) (2020-01-16)
|
---|
588 |
|
---|
589 |
|
---|
590 | ### Features
|
---|
591 |
|
---|
592 | * add useError hook ([65f3644](https://github.com/streamich/react-use/commit/65f364420524bacebe8f8149b8197fb62bff1a08))
|
---|
593 |
|
---|
594 | # [13.18.0](https://github.com/streamich/react-use/compare/v13.17.0...v13.18.0) (2020-01-16)
|
---|
595 |
|
---|
596 |
|
---|
597 | ### Bug Fixes
|
---|
598 |
|
---|
599 | * check for null ([d619c39](https://github.com/streamich/react-use/commit/d619c39a21e9f0b4b4bfc6a209311bf0bd495f9b))
|
---|
600 |
|
---|
601 |
|
---|
602 | ### Features
|
---|
603 |
|
---|
604 | * add serializer/deserializer option to useLocalStorage ([5316510](https://github.com/streamich/react-use/commit/5316510babf7606a2f4b78de2b0eb85c930890cf))
|
---|
605 |
|
---|
606 | # [13.17.0](https://github.com/streamich/react-use/compare/v13.16.1...v13.17.0) (2020-01-15)
|
---|
607 |
|
---|
608 |
|
---|
609 | ### Features
|
---|
610 |
|
---|
611 | * add support for body lock on iOS ([d778408](https://github.com/streamich/react-use/commit/d7784084fe84aca72efe85260101b00ef1df7580))
|
---|
612 |
|
---|
613 | ## [13.16.1](https://github.com/streamich/react-use/compare/v13.16.0...v13.16.1) (2020-01-14)
|
---|
614 |
|
---|
615 |
|
---|
616 | ### Bug Fixes
|
---|
617 |
|
---|
618 | * update the types dep for js-cookie ([5c55d59](https://github.com/streamich/react-use/commit/5c55d59a7d1d799cba7af87e15ab4a4b27a8fc67))
|
---|
619 |
|
---|
620 | # [13.16.0](https://github.com/streamich/react-use/compare/v13.15.0...v13.16.0) (2020-01-14)
|
---|
621 |
|
---|
622 |
|
---|
623 | ### Features
|
---|
624 |
|
---|
625 | * add option to useTitle to restore title on un-mount ([b8b3e47](https://github.com/streamich/react-use/commit/b8b3e479cea6071d4310bac29f138bd8917eee0b))
|
---|
626 |
|
---|
627 | # [13.15.0](https://github.com/streamich/react-use/compare/v13.14.3...v13.15.0) (2020-01-13)
|
---|
628 |
|
---|
629 |
|
---|
630 | ### Features
|
---|
631 |
|
---|
632 | * add useCookie hook ([4e5c90f](https://github.com/streamich/react-use/commit/4e5c90f021f56ae2008dc25daad69c43063f608f))
|
---|
633 |
|
---|
634 | ## [13.14.3](https://github.com/streamich/react-use/compare/v13.14.2...v13.14.3) (2020-01-08)
|
---|
635 |
|
---|
636 |
|
---|
637 | ### Bug Fixes
|
---|
638 |
|
---|
639 | * useUpdateEffect cleanup test returns false positive ([9b31c42](https://github.com/streamich/react-use/commit/9b31c42ccb42fe13fc24f7434b00a1bcbee8cd8a))
|
---|
640 | * useUpdateEffect test returning false positive ([#865](https://github.com/streamich/react-use/issues/865)) ([1946006](https://github.com/streamich/react-use/commit/1946006c4224bc61eabb797f4cdd7d20fff7ab25))
|
---|
641 |
|
---|
642 | ## [13.14.2](https://github.com/streamich/react-use/compare/v13.14.1...v13.14.2) (2020-01-08)
|
---|
643 |
|
---|
644 |
|
---|
645 | ### Bug Fixes
|
---|
646 |
|
---|
647 | * bump fast-shallow-equal ([19b2b39](https://github.com/streamich/react-use/commit/19b2b39eeae3898bd8d8e3478eb7459372bb09d5))
|
---|
648 |
|
---|
649 | ## [13.14.1](https://github.com/streamich/react-use/compare/v13.14.0...v13.14.1) (2020-01-07)
|
---|
650 |
|
---|
651 |
|
---|
652 | ### Bug Fixes
|
---|
653 |
|
---|
654 | * useUpdateEffect returns optional cleanup function ([0ce421c](https://github.com/streamich/react-use/commit/0ce421ced78fd6eb06a5676fefb856e18bfcacc1))
|
---|
655 | * useUpdateEffect returns optional cleanup function ([#864](https://github.com/streamich/react-use/issues/864)) ([7960127](https://github.com/streamich/react-use/commit/7960127a98c0d3c33000088fbd97804d41084f7d))
|
---|
656 |
|
---|
657 | # [13.14.0](https://github.com/streamich/react-use/compare/v13.13.0...v13.14.0) (2020-01-03)
|
---|
658 |
|
---|
659 |
|
---|
660 | ### Features
|
---|
661 |
|
---|
662 | * ๐ธ add [vertical] flag to useSlider() hook ([777865c](https://github.com/streamich/react-use/commit/777865c3ac6772fbda2bc0a6f58cde3eff7dec43))
|
---|
663 |
|
---|
664 | # [13.13.0](https://github.com/streamich/react-use/compare/v13.12.2...v13.13.0) (2019-12-27)
|
---|
665 |
|
---|
666 |
|
---|
667 | ### Features
|
---|
668 |
|
---|
669 | * add useShallowCompareEffect and useCustomCompareEffect hooks ([ba8803e](https://github.com/streamich/react-use/commit/ba8803eab26d2d48028a4b7120a7354c6d318aea))
|
---|
670 |
|
---|
671 | ## [13.12.2](https://github.com/streamich/react-use/compare/v13.12.1...v13.12.2) (2019-12-10)
|
---|
672 |
|
---|
673 |
|
---|
674 | ### Bug Fixes
|
---|
675 |
|
---|
676 | * **useSet:** "has" method in useSet updated to reference latest set object ([4f1d8c2](https://github.com/streamich/react-use/commit/4f1d8c2cbd773f2a26e2eee4fbad88883ea4b405))
|
---|
677 |
|
---|
678 | ## [13.12.1](https://github.com/streamich/react-use/compare/v13.12.0...v13.12.1) (2019-12-09)
|
---|
679 |
|
---|
680 |
|
---|
681 | ### Bug Fixes
|
---|
682 |
|
---|
683 | * **useMap:** methods with side effects should be stable across renders. ([020b4db](https://github.com/streamich/react-use/commit/020b4dbc6c47ab25243ab8af257dd045e6c1bf6d))
|
---|
684 |
|
---|
685 | # [13.12.0](https://github.com/streamich/react-use/compare/v13.11.0...v13.12.0) (2019-12-09)
|
---|
686 |
|
---|
687 |
|
---|
688 | ### Features
|
---|
689 |
|
---|
690 | * useScrollbarWidth hook; ([#825](https://github.com/streamich/react-use/issues/825)) ([125c7e9](https://github.com/streamich/react-use/commit/125c7e96a188405aea36e94ed1bb3d984232b2f6))
|
---|
691 |
|
---|
692 | # [13.11.0](https://github.com/streamich/react-use/compare/v13.10.2...v13.11.0) (2019-12-08)
|
---|
693 |
|
---|
694 |
|
---|
695 | ### Features
|
---|
696 |
|
---|
697 | * ๐ธ add useUnmountPromise hook ([01421bc](https://github.com/streamich/react-use/commit/01421bc634b941044e95c611f37eb87339486241))
|
---|
698 |
|
---|
699 | ## [13.10.2](https://github.com/streamich/react-use/compare/v13.10.1...v13.10.2) (2019-12-05)
|
---|
700 |
|
---|
701 |
|
---|
702 | ### Bug Fixes
|
---|
703 |
|
---|
704 | * useUpdate hitting maxInt, failing to trigger rerender ([93e7291](https://github.com/streamich/react-use/commit/93e72910abf2dafe5bdff625a21f633afd6e52c5))
|
---|
705 |
|
---|
706 | ## [13.10.1](https://github.com/streamich/react-use/compare/v13.10.0...v13.10.1) (2019-12-03)
|
---|
707 |
|
---|
708 |
|
---|
709 | ### Bug Fixes
|
---|
710 |
|
---|
711 | * "get" method in useMap updated to reference latest map object ([044d267](https://github.com/streamich/react-use/commit/044d2677aa474d19da776444b78bd3d2594c6ae5))
|
---|
712 |
|
---|
713 | # [13.10.0](https://github.com/streamich/react-use/compare/v13.9.0...v13.10.0) (2019-11-28)
|
---|
714 |
|
---|
715 |
|
---|
716 | ### Features
|
---|
717 |
|
---|
718 | * useStateHistory ([#709](https://github.com/streamich/react-use/issues/709)) ([0a66359](https://github.com/streamich/react-use/commit/0a6635914319e9ef7a2902189a3c2dea90a2bf7f))
|
---|
719 |
|
---|
720 | # [13.9.0](https://github.com/streamich/react-use/compare/v13.8.2...v13.9.0) (2019-11-23)
|
---|
721 |
|
---|
722 |
|
---|
723 | ### Features
|
---|
724 |
|
---|
725 | * add useFirstMountState & useRendersCount hooks ([#769](https://github.com/streamich/react-use/issues/769)) ([30abe2b](https://github.com/streamich/react-use/commit/30abe2b22e3cb7a3e4c6dedd2466d74ce660911d))
|
---|
726 |
|
---|
727 | ## [13.8.2](https://github.com/streamich/react-use/compare/v13.8.1...v13.8.2) (2019-11-22)
|
---|
728 |
|
---|
729 |
|
---|
730 | ### Bug Fixes
|
---|
731 |
|
---|
732 | * **#792:** make useUnmount invoke the current callback version instead of very first ([75284c6](https://github.com/streamich/react-use/commit/75284c62c8e4a68dfeb41a8d98a1e636e9ef531a)), closes [#792](https://github.com/streamich/react-use/issues/792)
|
---|
733 |
|
---|
734 | ## [13.8.1](https://github.com/streamich/react-use/compare/v13.8.0...v13.8.1) (2019-11-21)
|
---|
735 |
|
---|
736 |
|
---|
737 | ### Bug Fixes
|
---|
738 |
|
---|
739 | * useAsyncFn does not discard old promises and might produce races ([022fa0b](https://github.com/streamich/react-use/commit/022fa0b7b77d582a10c6ca61a3dcd901770011c8))
|
---|
740 |
|
---|
741 | # [13.8.0](https://github.com/streamich/react-use/compare/v13.7.0...v13.8.0) (2019-11-14)
|
---|
742 |
|
---|
743 |
|
---|
744 | ### Features
|
---|
745 |
|
---|
746 | * **useStateValidator:** Refactor method and improve typings; ([436c210](https://github.com/streamich/react-use/commit/436c210f7b577c6958e47df3a244907b07a4db9f))
|
---|
747 |
|
---|
748 | # [13.7.0](https://github.com/streamich/react-use/compare/v13.6.3...v13.7.0) (2019-11-14)
|
---|
749 |
|
---|
750 |
|
---|
751 | ### Features
|
---|
752 |
|
---|
753 | * Add useSet hook ([095b4de](https://github.com/streamich/react-use/commit/095b4de2321b8bf3431e3f66139629b0495f1ac9))
|
---|
754 |
|
---|
755 | ## [13.6.3](https://github.com/streamich/react-use/compare/v13.6.2...v13.6.3) (2019-11-12)
|
---|
756 |
|
---|
757 |
|
---|
758 | ### Bug Fixes
|
---|
759 |
|
---|
760 | * remove any types in useThrottleFn ([bb5baea](https://github.com/streamich/react-use/commit/bb5baea30cf59721098ca9e3185105bf1b82218b))
|
---|
761 |
|
---|
762 | ## [13.6.2](https://github.com/streamich/react-use/compare/v13.6.1...v13.6.2) (2019-11-11)
|
---|
763 |
|
---|
764 |
|
---|
765 | ### Bug Fixes
|
---|
766 |
|
---|
767 | * restrict useThrottleFn types ([61a83d1](https://github.com/streamich/react-use/commit/61a83d124d35d5606b6c0700faf1361fd3170ca4))
|
---|
768 |
|
---|
769 | ## [13.6.1](https://github.com/streamich/react-use/compare/v13.6.0...v13.6.1) (2019-11-10)
|
---|
770 |
|
---|
771 |
|
---|
772 | ### Bug Fixes
|
---|
773 |
|
---|
774 | * ๐ check window.Event constructor exists in useLocation ([ad09431](https://github.com/streamich/react-use/commit/ad094311454c48873ba7143654a29b8a0c54459d))
|
---|
775 |
|
---|
776 | # [13.6.0](https://github.com/streamich/react-use/compare/v13.5.0...v13.6.0) (2019-11-10)
|
---|
777 |
|
---|
778 |
|
---|
779 | ### Features
|
---|
780 |
|
---|
781 | * **useCounter:** `reset` to the newest initialValue ([#667](https://github.com/streamich/react-use/issues/667)) ([e653383](https://github.com/streamich/react-use/commit/e65338372adfccd4800496b377f63bcdf6646788))
|
---|
782 |
|
---|
783 | # [13.5.0](https://github.com/streamich/react-use/compare/v13.4.0...v13.5.0) (2019-11-08)
|
---|
784 |
|
---|
785 |
|
---|
786 | ### Bug Fixes
|
---|
787 |
|
---|
788 | * **resolveHookState:** by accident removed needed type. ([59aa41c](https://github.com/streamich/react-use/commit/59aa41cff435f5adf7f38d361649761b8dd69794))
|
---|
789 |
|
---|
790 |
|
---|
791 | ### Features
|
---|
792 |
|
---|
793 | * **useList:** reimplemented useList hook; ([1840b57](https://github.com/streamich/react-use/commit/1840b577e2a3d321b8dbb44d5ae443e84d4d9e20))
|
---|
794 |
|
---|
795 | # [13.4.0](https://github.com/streamich/react-use/compare/v13.3.0...v13.4.0) (2019-11-08)
|
---|
796 |
|
---|
797 |
|
---|
798 | ### Features
|
---|
799 |
|
---|
800 | * **useStateList:** implemented `currentIndex`, `setState`, `setStateAt` methods as requested in [#634](https://github.com/streamich/react-use/issues/634); ([43cb6aa](https://github.com/streamich/react-use/commit/43cb6aa612ae869e24f67acf6f0a1712a65f128b))
|
---|
801 |
|
---|
802 | # [13.3.0](https://github.com/streamich/react-use/compare/v13.2.2...v13.3.0) (2019-11-06)
|
---|
803 |
|
---|
804 |
|
---|
805 | ### Features
|
---|
806 |
|
---|
807 | * useDebounce add cancel ([693aec8](https://github.com/streamich/react-use/commit/693aec8307c378697c88c635a401832f24d3531a))
|
---|
808 | * useDebounce add cancel ([26cab31](https://github.com/streamich/react-use/commit/26cab31f10a995ec45d6c1e2a2f724d9994d801f))
|
---|
809 |
|
---|
810 | ## [13.2.2](https://github.com/streamich/react-use/compare/v13.2.1...v13.2.2) (2019-11-06)
|
---|
811 |
|
---|
812 |
|
---|
813 | ### Bug Fixes
|
---|
814 |
|
---|
815 | * **#749:** now should work with SSR ([c12976c](https://github.com/streamich/react-use/commit/c12976cad26577a4be3ac65133268f41bbdc82da)), closes [#749](https://github.com/streamich/react-use/issues/749)
|
---|
816 |
|
---|
817 | ## [13.2.1](https://github.com/streamich/react-use/compare/v13.2.0...v13.2.1) (2019-11-04)
|
---|
818 |
|
---|
819 |
|
---|
820 | ### Bug Fixes
|
---|
821 |
|
---|
822 | * **yarn.lock:** re-create the yarn.lock file with nailed versions in devDeps ([f094a3a](https://github.com/streamich/react-use/commit/f094a3ae833f406137b9d5355843a6615af20164))
|
---|
823 |
|
---|
824 | # [13.2.0](https://github.com/streamich/react-use/compare/v13.1.0...v13.2.0) (2019-11-04)
|
---|
825 |
|
---|
826 |
|
---|
827 | ### Features
|
---|
828 |
|
---|
829 | * re-create yarn.lock ([d48e03e](https://github.com/streamich/react-use/commit/d48e03e9ee38555ff29ca46fb6e75c13e9c23aba))
|
---|
830 | * re-create yarn.lock ([ccdffe0](https://github.com/streamich/react-use/commit/ccdffe027fba15bdca1f35dc375a0c32739aee6f))
|
---|
831 | * **usePreviousDistinct:** add tests for undefined value behaviour; ([cb373f9](https://github.com/streamich/react-use/commit/cb373f951fb3f34b9e54793687de14000a2dc08e))
|
---|
832 | * **usePreviousDistinct:** improve types; ([30f53e8](https://github.com/streamich/react-use/commit/30f53e8c5d7e8b27bf3f273ebfcacabf30146ba3))
|
---|
833 | * **usePreviousDistinct:** now predicate not called on initial render; ([fbe9b13](https://github.com/streamich/react-use/commit/fbe9b1303c0433d5608ca5b507d9c76711b5cb68))
|
---|
834 | * **useStateList:** rework useStateList to make it work properly. ([242c274](https://github.com/streamich/react-use/commit/242c274dd49779fa80f8b9e451c699205279339e))
|
---|
835 | * **useTitle:** reworked hook to make it synchronous without useUpdate; ([a133267](https://github.com/streamich/react-use/commit/a13326779ffd6885ac531240b984a77bcad3bee6))
|
---|
836 | * **useWindowSize:** A bit changed lyfecycle and added types; ([03bdecf](https://github.com/streamich/react-use/commit/03bdecf7ac6aa0ad863a1efd71c056aa41df62b7))
|
---|
837 |
|
---|
838 | # [13.1.0](https://github.com/streamich/react-use/compare/v13.0.1...v13.1.0) (2019-11-01)
|
---|
839 |
|
---|
840 |
|
---|
841 | ### Features
|
---|
842 |
|
---|
843 | * pull request template for features ([1dc21f3](https://github.com/streamich/react-use/commit/1dc21f3))
|
---|
844 |
|
---|
845 | ## [13.0.1](https://github.com/streamich/react-use/compare/v13.0.0...v13.0.1) (2019-11-01)
|
---|
846 |
|
---|
847 |
|
---|
848 | ### Bug Fixes
|
---|
849 |
|
---|
850 | * **useLockBodyScroll:** infer overflow type directly from declaration. ([26baf47](https://github.com/streamich/react-use/commit/26baf47))
|
---|
851 |
|
---|
852 | # [13.0.0](https://github.com/streamich/react-use/compare/v12.13.0...v13.0.0) (2019-11-01)
|
---|
853 |
|
---|
854 |
|
---|
855 | * Merge pull request #711 from streamich/remove-react-wait ([8d40f18](https://github.com/streamich/react-use/commit/8d40f18)), closes [#711](https://github.com/streamich/react-use/issues/711)
|
---|
856 |
|
---|
857 |
|
---|
858 | ### Features
|
---|
859 |
|
---|
860 | * remove useRefMounted hook ([ad74d3d](https://github.com/streamich/react-use/commit/ad74d3d))
|
---|
861 | * **useRefMounted:** remove obsolete hook; ([dc364c8](https://github.com/streamich/react-use/commit/dc364c8))
|
---|
862 | * **useWait:** removed from package due to it is simple reexport of other package; ([d7c38bd](https://github.com/streamich/react-use/commit/d7c38bd))
|
---|
863 |
|
---|
864 |
|
---|
865 | ### BREAKING CHANGES
|
---|
866 |
|
---|
867 | * useWait hook has been removed from react-use
|
---|
868 | * deprecated useRefMounted hook is now removed, use useMountedState hook instead
|
---|
869 |
|
---|
870 | # [12.13.0](https://github.com/streamich/react-use/compare/v12.12.0...v12.13.0) (2019-10-31)
|
---|
871 |
|
---|
872 |
|
---|
873 | ### Features
|
---|
874 |
|
---|
875 | * **useCounter:** reworked with use of new resolveHookState function plus improved memory usage; ([befcf84](https://github.com/streamich/react-use/commit/befcf84))
|
---|
876 | * **useGetSet:** reworked with use of new resolveHookState function plus improved memory usage; ([9b5d0f2](https://github.com/streamich/react-use/commit/9b5d0f2))
|
---|
877 | * react-like state resolver to use it in stateful hooks; ([9fd02eb](https://github.com/streamich/react-use/commit/9fd02eb))
|
---|
878 |
|
---|
879 | # [12.12.0](https://github.com/streamich/react-use/compare/v12.11.0...v12.12.0) (2019-10-31)
|
---|
880 |
|
---|
881 |
|
---|
882 | ### Features
|
---|
883 |
|
---|
884 | * add typings for createReducer ([f1cf036](https://github.com/streamich/react-use/commit/f1cf036))
|
---|
885 |
|
---|
886 | # [12.11.0](https://github.com/streamich/react-use/compare/v12.10.0...v12.11.0) (2019-10-31)
|
---|
887 |
|
---|
888 |
|
---|
889 | ### Features
|
---|
890 |
|
---|
891 | * **useWait:** add deprecation messages to readme and export; ([d338245](https://github.com/streamich/react-use/commit/d338245))
|
---|
892 |
|
---|
893 | # [12.10.0](https://github.com/streamich/react-use/compare/v12.9.1...v12.10.0) (2019-10-30)
|
---|
894 |
|
---|
895 |
|
---|
896 | ### Features
|
---|
897 |
|
---|
898 | * **useUpdate:** improve memory usage - now single function instance to increment all counters; ([0f02fd0](https://github.com/streamich/react-use/commit/0f02fd0))
|
---|
899 |
|
---|
900 | ## [12.9.1](https://github.com/streamich/react-use/compare/v12.9.0...v12.9.1) (2019-10-28)
|
---|
901 |
|
---|
902 |
|
---|
903 | ### Bug Fixes
|
---|
904 |
|
---|
905 | * useSize avoid crash in Safari 11 ([da0e66b](https://github.com/streamich/react-use/commit/da0e66b))
|
---|
906 |
|
---|
907 | # [12.9.0](https://github.com/streamich/react-use/compare/v12.8.0...v12.9.0) (2019-10-26)
|
---|
908 |
|
---|
909 |
|
---|
910 | ### Features
|
---|
911 |
|
---|
912 | * add createBreakpoint ([79ba4ef](https://github.com/streamich/react-use/commit/79ba4ef))
|
---|
913 |
|
---|
914 | # [12.8.0](https://github.com/streamich/react-use/compare/v12.7.2...v12.8.0) (2019-10-25)
|
---|
915 |
|
---|
916 |
|
---|
917 | ### Features
|
---|
918 |
|
---|
919 | * add ensuredForwardRef and useEnsuredForwardedRef ([1bfe063](https://github.com/streamich/react-use/commit/1bfe063))
|
---|
920 |
|
---|
921 | ## [12.7.2](https://github.com/streamich/react-use/compare/v12.7.1...v12.7.2) (2019-10-23)
|
---|
922 |
|
---|
923 |
|
---|
924 | ### Bug Fixes
|
---|
925 |
|
---|
926 | * ๐ bump set-harmonic-interval package version ([f7c709a](https://github.com/streamich/react-use/commit/f7c709a))
|
---|
927 |
|
---|
928 | ## [12.7.1](https://github.com/streamich/react-use/compare/v12.7.0...v12.7.1) (2019-10-17)
|
---|
929 |
|
---|
930 |
|
---|
931 | ### Bug Fixes
|
---|
932 |
|
---|
933 | * example in the docs; ([7f54cad](https://github.com/streamich/react-use/commit/7f54cad))
|
---|
934 | * rename story's mediator and add `g` flag to it's regex; ([652b318](https://github.com/streamich/react-use/commit/652b318))
|
---|
935 |
|
---|
936 | # [12.7.0](https://github.com/streamich/react-use/compare/v12.6.0...v12.7.0) (2019-10-17)
|
---|
937 |
|
---|
938 |
|
---|
939 | ### Bug Fixes
|
---|
940 |
|
---|
941 | * error throw tests; ([056875b](https://github.com/streamich/react-use/commit/056875b))
|
---|
942 | * useMultiStateValidator readme description; ([8c7f7f5](https://github.com/streamich/react-use/commit/8c7f7f5))
|
---|
943 |
|
---|
944 |
|
---|
945 | ### Features
|
---|
946 |
|
---|
947 | * useMultiStateValidator ([ae26988](https://github.com/streamich/react-use/commit/ae26988))
|
---|
948 |
|
---|
949 | # [12.6.0](https://github.com/streamich/react-use/compare/v12.5.0...v12.6.0) (2019-10-16)
|
---|
950 |
|
---|
951 |
|
---|
952 | ### Features
|
---|
953 |
|
---|
954 | * useRafState ([#684](https://github.com/streamich/react-use/issues/684)) ([00816a4](https://github.com/streamich/react-use/commit/00816a4))
|
---|
955 |
|
---|
956 | # [12.5.0](https://github.com/streamich/react-use/compare/v12.4.0...v12.5.0) (2019-10-13)
|
---|
957 |
|
---|
958 |
|
---|
959 | ### Features
|
---|
960 |
|
---|
961 | * useList allow pushing multiple items ([#621](https://github.com/streamich/react-use/issues/621)) ([a624364](https://github.com/streamich/react-use/commit/a624364))
|
---|
962 |
|
---|
963 | # [12.4.0](https://github.com/streamich/react-use/compare/v12.3.2...v12.4.0) (2019-10-12)
|
---|
964 |
|
---|
965 |
|
---|
966 | ### Features
|
---|
967 |
|
---|
968 | * useIntersection ([#652](https://github.com/streamich/react-use/issues/652)) ([d5f359f](https://github.com/streamich/react-use/commit/d5f359f))
|
---|
969 |
|
---|
970 | ## [12.3.2](https://github.com/streamich/react-use/compare/v12.3.1...v12.3.2) (2019-10-12)
|
---|
971 |
|
---|
972 |
|
---|
973 | ### Bug Fixes
|
---|
974 |
|
---|
975 | * improve use of refs in dependency lists ([#655](https://github.com/streamich/react-use/issues/655)) ([ed8e26d](https://github.com/streamich/react-use/commit/ed8e26d))
|
---|
976 |
|
---|
977 | ## [12.3.1](https://github.com/streamich/react-use/compare/v12.3.0...v12.3.1) (2019-10-10)
|
---|
978 |
|
---|
979 |
|
---|
980 | ### Bug Fixes
|
---|
981 |
|
---|
982 | * move [@types](https://github.com/types)/react-wait to dependencies, closes [#661](https://github.com/streamich/react-use/issues/661) ([#662](https://github.com/streamich/react-use/issues/662)) ([6bdd74e](https://github.com/streamich/react-use/commit/6bdd74e))
|
---|
983 |
|
---|
984 | # [12.3.0](https://github.com/streamich/react-use/compare/v12.2.3...v12.3.0) (2019-10-07)
|
---|
985 |
|
---|
986 |
|
---|
987 | ### Features
|
---|
988 |
|
---|
989 | * reset util callback for useList ([#654](https://github.com/streamich/react-use/issues/654)) ([9ea3548](https://github.com/streamich/react-use/commit/9ea3548))
|
---|
990 |
|
---|
991 | ## [12.2.3](https://github.com/streamich/react-use/compare/v12.2.2...v12.2.3) (2019-10-05)
|
---|
992 |
|
---|
993 |
|
---|
994 | ### Bug Fixes
|
---|
995 |
|
---|
996 | * move react-wait types to dev dependencies, closes [#644](https://github.com/streamich/react-use/issues/644) ([49372ac](https://github.com/streamich/react-use/commit/49372ac))
|
---|
997 |
|
---|
998 | ## [12.2.2](https://github.com/streamich/react-use/compare/v12.2.1...v12.2.2) (2019-09-26)
|
---|
999 |
|
---|
1000 |
|
---|
1001 | ### Bug Fixes
|
---|
1002 |
|
---|
1003 | * useDebounce remove deps from function arguments ([#623](https://github.com/streamich/react-use/issues/623)) ([23d6a5a](https://github.com/streamich/react-use/commit/23d6a5a))
|
---|
1004 |
|
---|
1005 | ## [12.2.1](https://github.com/streamich/react-use/compare/v12.2.0...v12.2.1) (2019-09-23)
|
---|
1006 |
|
---|
1007 |
|
---|
1008 | ### Bug Fixes
|
---|
1009 |
|
---|
1010 | * remove attempt from deps of retry in useAsyncRetry ([#614](https://github.com/streamich/react-use/issues/614)) ([adce59e](https://github.com/streamich/react-use/commit/adce59e))
|
---|
1011 |
|
---|
1012 | # [12.2.0](https://github.com/streamich/react-use/compare/v12.1.0...v12.2.0) (2019-09-02)
|
---|
1013 |
|
---|
1014 |
|
---|
1015 | ### Features
|
---|
1016 |
|
---|
1017 | * improve useWindowSize performance rAF ([60a4937](https://github.com/streamich/react-use/commit/60a4937))
|
---|
1018 |
|
---|
1019 | # [12.1.0](https://github.com/streamich/react-use/compare/v12.0.0...v12.1.0) (2019-09-01)
|
---|
1020 |
|
---|
1021 |
|
---|
1022 | ### Features
|
---|
1023 |
|
---|
1024 | * ๐ธ add useSearchParam() hook ([b22f32f](https://github.com/streamich/react-use/commit/b22f32f))
|
---|
1025 | * ๐ธ support server-side rendering in useSearchParam() hook ([64ac924](https://github.com/streamich/react-use/commit/64ac924))
|
---|
1026 |
|
---|
1027 | # [12.0.0](https://github.com/streamich/react-use/compare/v11.3.2...v12.0.0) (2019-09-01)
|
---|
1028 |
|
---|
1029 |
|
---|
1030 | ### Features
|
---|
1031 |
|
---|
1032 | * store "paused" instead of "isPlaying" in media state ([ff900d5](https://github.com/streamich/react-use/commit/ff900d5))
|
---|
1033 |
|
---|
1034 |
|
---|
1035 | ### BREAKING CHANGES
|
---|
1036 |
|
---|
1037 | * now media players return "paused" instead of "isPlaying" in their state.
|
---|
1038 |
|
---|
1039 | ## [11.3.2](https://github.com/streamich/react-use/compare/v11.3.1...v11.3.2) (2019-08-25)
|
---|
1040 |
|
---|
1041 |
|
---|
1042 | ### Bug Fixes
|
---|
1043 |
|
---|
1044 | * useThrottle & useThrottleFn proper timeout type; ([e2cdb94](https://github.com/streamich/react-use/commit/e2cdb94))
|
---|
1045 |
|
---|
1046 | ## [11.3.1](https://github.com/streamich/react-use/compare/v11.3.0...v11.3.1) (2019-08-25)
|
---|
1047 |
|
---|
1048 |
|
---|
1049 | ### Bug Fixes
|
---|
1050 |
|
---|
1051 | * update createReducer to fix initial state ([fd083f2](https://github.com/streamich/react-use/commit/fd083f2))
|
---|
1052 |
|
---|
1053 | # [11.3.0](https://github.com/streamich/react-use/compare/v11.2.0...v11.3.0) (2019-08-25)
|
---|
1054 |
|
---|
1055 |
|
---|
1056 | ### Features
|
---|
1057 |
|
---|
1058 | * add usePreviousDistinct ([#551](https://github.com/streamich/react-use/issues/551)) ([6c3e569](https://github.com/streamich/react-use/commit/6c3e569))
|
---|
1059 |
|
---|
1060 | # [11.2.0](https://github.com/streamich/react-use/compare/v11.1.1...v11.2.0) (2019-08-25)
|
---|
1061 |
|
---|
1062 |
|
---|
1063 | ### Features
|
---|
1064 |
|
---|
1065 | * add useCircularIterate ([8d84340](https://github.com/streamich/react-use/commit/8d84340))
|
---|
1066 |
|
---|
1067 | ## [11.1.1](https://github.com/streamich/react-use/compare/v11.1.0...v11.1.1) (2019-08-25)
|
---|
1068 |
|
---|
1069 |
|
---|
1070 | ### Bug Fixes
|
---|
1071 |
|
---|
1072 | * [#550](https://github.com/streamich/react-use/issues/550) ([2617d74](https://github.com/streamich/react-use/commit/2617d74))
|
---|
1073 |
|
---|
1074 | # [11.1.0](https://github.com/streamich/react-use/compare/v11.0.2...v11.1.0) (2019-08-25)
|
---|
1075 |
|
---|
1076 |
|
---|
1077 | ### Features
|
---|
1078 |
|
---|
1079 | * ๐ธ add useHarmonicIntervalFn() hook ([d9f21e3](https://github.com/streamich/react-use/commit/d9f21e3))
|
---|
1080 |
|
---|
1081 | ## [11.0.2](https://github.com/streamich/react-use/compare/v11.0.1...v11.0.2) (2019-08-23)
|
---|
1082 |
|
---|
1083 |
|
---|
1084 | ### Bug Fixes
|
---|
1085 |
|
---|
1086 | * **useSetState:** memoize setState callback ([0275329](https://github.com/streamich/react-use/commit/0275329))
|
---|
1087 | * **useSetState:** memoize setState callback ([16f023f](https://github.com/streamich/react-use/commit/16f023f))
|
---|
1088 |
|
---|
1089 | ## [11.0.1](https://github.com/streamich/react-use/compare/v11.0.0...v11.0.1) (2019-08-23)
|
---|
1090 |
|
---|
1091 |
|
---|
1092 | ### Bug Fixes
|
---|
1093 |
|
---|
1094 | * correct useSpring() hook behaviour ([d7a622d](https://github.com/streamich/react-use/commit/d7a622d))
|
---|
1095 |
|
---|
1096 | # [11.0.0](https://github.com/streamich/react-use/compare/v10.8.0...v11.0.0) (2019-08-22)
|
---|
1097 |
|
---|
1098 |
|
---|
1099 | ### Features
|
---|
1100 |
|
---|
1101 | * add cancel and reset methods to useTimeout ([283045a](https://github.com/streamich/react-use/commit/283045a))
|
---|
1102 | * add useTimeoutFn ([284e6fd](https://github.com/streamich/react-use/commit/284e6fd))
|
---|
1103 |
|
---|
1104 |
|
---|
1105 | ### BREAKING CHANGES
|
---|
1106 |
|
---|
1107 | * useTimeout now returns a tuple
|
---|
1108 |
|
---|
1109 | # [10.8.0](https://github.com/streamich/react-use/compare/v10.7.1...v10.8.0) (2019-08-20)
|
---|
1110 |
|
---|
1111 |
|
---|
1112 | ### Bug Fixes
|
---|
1113 |
|
---|
1114 | * Reworked useBattery hook ([1069060](https://github.com/streamich/react-use/commit/1069060))
|
---|
1115 | * succeed useRafLoop tests ([09167df](https://github.com/streamich/react-use/commit/09167df))
|
---|
1116 |
|
---|
1117 |
|
---|
1118 | ### Features
|
---|
1119 |
|
---|
1120 | * ๐ธ support useBattery hook on server side ([5d31cf0](https://github.com/streamich/react-use/commit/5d31cf0))
|
---|
1121 | * ๐ธ use only one useState and one useEffect call ([2d0fabf](https://github.com/streamich/react-use/commit/2d0fabf))
|
---|
1122 |
|
---|
1123 | ## [10.7.1](https://github.com/streamich/react-use/compare/v10.7.0...v10.7.1) (2019-08-20)
|
---|
1124 |
|
---|
1125 |
|
---|
1126 | ### Bug Fixes
|
---|
1127 |
|
---|
1128 | * async test warnings ([#543](https://github.com/streamich/react-use/issues/543)) ([7af237e](https://github.com/streamich/react-use/commit/7af237e))
|
---|
1129 |
|
---|
1130 | # [10.7.0](https://github.com/streamich/react-use/compare/v10.6.4...v10.7.0) (2019-08-19)
|
---|
1131 |
|
---|
1132 |
|
---|
1133 | ### Features
|
---|
1134 |
|
---|
1135 | * ๐ธ add useUpsert ([6875e13](https://github.com/streamich/react-use/commit/6875e13))
|
---|
1136 | * ๐ธ export useUpsert from index ([3eda2b2](https://github.com/streamich/react-use/commit/3eda2b2))
|
---|
1137 | * add useUpsert ([a7c2899](https://github.com/streamich/react-use/commit/a7c2899))
|
---|
1138 |
|
---|
1139 | ## [10.6.4](https://github.com/streamich/react-use/compare/v10.6.3...v10.6.4) (2019-08-19)
|
---|
1140 |
|
---|
1141 |
|
---|
1142 | ### Bug Fixes
|
---|
1143 |
|
---|
1144 | * return from useUpdateEffect ([2f70dc2](https://github.com/streamich/react-use/commit/2f70dc2))
|
---|
1145 | * useUpdateEffect add return ([8b24df4](https://github.com/streamich/react-use/commit/8b24df4))
|
---|
1146 |
|
---|
1147 | ## [10.6.3](https://github.com/streamich/react-use/compare/v10.6.2...v10.6.3) (2019-08-19)
|
---|
1148 |
|
---|
1149 |
|
---|
1150 | ### Bug Fixes
|
---|
1151 |
|
---|
1152 | * allow import default for ESM ([bd3a062](https://github.com/streamich/react-use/commit/bd3a062))
|
---|
1153 | * rollup build error: Cannot call a namespace ('writeText') ([b3e672b](https://github.com/streamich/react-use/commit/b3e672b))
|
---|
1154 |
|
---|
1155 | ## [10.6.2](https://github.com/streamich/react-use/compare/v10.6.1...v10.6.2) (2019-08-18)
|
---|
1156 |
|
---|
1157 |
|
---|
1158 | ### Bug Fixes
|
---|
1159 |
|
---|
1160 | * ๐ fix master ([d1df7a5](https://github.com/streamich/react-use/commit/d1df7a5))
|
---|
1161 |
|
---|
1162 | ## [10.6.1](https://github.com/streamich/react-use/compare/v10.6.0...v10.6.1) (2019-08-17)
|
---|
1163 |
|
---|
1164 |
|
---|
1165 | ### Bug Fixes
|
---|
1166 |
|
---|
1167 | * useUpdateEffect run on the wrong time ([1d5cd10](https://github.com/streamich/react-use/commit/1d5cd10))
|
---|
1168 |
|
---|
1169 | # [10.6.0](https://github.com/streamich/react-use/compare/v10.5.0...v10.6.0) (2019-08-17)
|
---|
1170 |
|
---|
1171 |
|
---|
1172 | ### Features
|
---|
1173 |
|
---|
1174 | * add min/max to useNumber ([586faab](https://github.com/streamich/react-use/commit/586faab))
|
---|
1175 |
|
---|
1176 | # [10.5.0](https://github.com/streamich/react-use/compare/v10.4.0...v10.5.0) (2019-08-03)
|
---|
1177 |
|
---|
1178 |
|
---|
1179 | ### Features
|
---|
1180 |
|
---|
1181 | * add useRafLoop hook ([be7d7c3](https://github.com/streamich/react-use/commit/be7d7c3))
|
---|
1182 |
|
---|
1183 | # [10.4.0](https://github.com/streamich/react-use/compare/v10.3.1...v10.4.0) (2019-08-02)
|
---|
1184 |
|
---|
1185 |
|
---|
1186 | ### Features
|
---|
1187 |
|
---|
1188 | * add useMountedState hook ([9081b99](https://github.com/streamich/react-use/commit/9081b99))
|
---|
1189 |
|
---|
1190 | ## [10.3.1](https://github.com/streamich/react-use/compare/v10.3.0...v10.3.1) (2019-08-02)
|
---|
1191 |
|
---|
1192 |
|
---|
1193 | ### Bug Fixes
|
---|
1194 |
|
---|
1195 | * **storybook:** fix useKeyboardJs import path ([b7481f6](https://github.com/streamich/react-use/commit/b7481f6))
|
---|
1196 | * **useKeyboardJs:** fix argument type error ([8c820ce](https://github.com/streamich/react-use/commit/8c820ce))
|
---|
1197 | * allow string list in useKeyboardJs hook ([aecbd0b](https://github.com/streamich/react-use/commit/aecbd0b))
|
---|
1198 |
|
---|
1199 | # [10.3.0](https://github.com/streamich/react-use/compare/v10.2.0...v10.3.0) (2019-07-26)
|
---|
1200 |
|
---|
1201 |
|
---|
1202 | ### Features
|
---|
1203 |
|
---|
1204 | * add useDefault hook ([ade0557](https://github.com/streamich/react-use/commit/ade0557))
|
---|
1205 |
|
---|
1206 | # [10.2.0](https://github.com/streamich/react-use/compare/v10.1.2...v10.2.0) (2019-07-25)
|
---|
1207 |
|
---|
1208 |
|
---|
1209 | ### Features
|
---|
1210 |
|
---|
1211 | * useWindowScroll - for cross-browser compatibility ([5987cc8](https://github.com/streamich/react-use/commit/5987cc8))
|
---|
1212 | * useWindowScroll - for cross-browser compatibility ([#480](https://github.com/streamich/react-use/issues/480)) ([e37dd8d](https://github.com/streamich/react-use/commit/e37dd8d))
|
---|
1213 |
|
---|
1214 | ## [10.1.2](https://github.com/streamich/react-use/compare/v10.1.1...v10.1.2) (2019-07-21)
|
---|
1215 |
|
---|
1216 |
|
---|
1217 | ### Bug Fixes
|
---|
1218 |
|
---|
1219 | * remove OpenCollective postinstall hook ([26dcebc](https://github.com/streamich/react-use/commit/26dcebc))
|
---|
1220 |
|
---|
1221 | ## [10.1.1](https://github.com/streamich/react-use/compare/v10.1.0...v10.1.1) (2019-07-21)
|
---|
1222 |
|
---|
1223 |
|
---|
1224 | ### Bug Fixes
|
---|
1225 |
|
---|
1226 | * useMouse & useMouseHovered type definitions for SVG ([9e97451](https://github.com/streamich/react-use/commit/9e97451))
|
---|
1227 | * useMouse & useMouseHovered type definitions for SVG ([#479](https://github.com/streamich/react-use/issues/479)) ([e2e4a60](https://github.com/streamich/react-use/commit/e2e4a60))
|
---|
1228 |
|
---|
1229 | # [10.1.0](https://github.com/streamich/react-use/compare/v10.0.0...v10.1.0) (2019-07-17)
|
---|
1230 |
|
---|
1231 |
|
---|
1232 | ### Features
|
---|
1233 |
|
---|
1234 | * add latest `react-wait` types ([6ebe3bb](https://github.com/streamich/react-use/commit/6ebe3bb))
|
---|
1235 |
|
---|
1236 | # [10.0.0](https://github.com/streamich/react-use/compare/v9.12.0...v10.0.0) (2019-07-17)
|
---|
1237 |
|
---|
1238 |
|
---|
1239 | ### Features
|
---|
1240 |
|
---|
1241 | * remove big libs from peerDependencies ([1dbdc5d](https://github.com/streamich/react-use/commit/1dbdc5d))
|
---|
1242 |
|
---|
1243 |
|
---|
1244 | ### BREAKING CHANGES
|
---|
1245 |
|
---|
1246 | * `useSpring` and `useKeyboardJs` hooks need to be imported directly now and libs they depend on are not in peerDependencies anymore.
|
---|
1247 |
|
---|
1248 | # [9.12.0](https://github.com/streamich/react-use/compare/v9.11.2...v9.12.0) (2019-07-16)
|
---|
1249 |
|
---|
1250 |
|
---|
1251 | ### Bug Fixes
|
---|
1252 |
|
---|
1253 | * ๐ fix useDebounce import ([40b33da](https://github.com/streamich/react-use/commit/40b33da))
|
---|
1254 |
|
---|
1255 |
|
---|
1256 | ### Features
|
---|
1257 |
|
---|
1258 | * add useInterval hook ([6645ed9](https://github.com/streamich/react-use/commit/6645ed9))
|
---|
1259 |
|
---|
1260 | ## [9.11.2](https://github.com/streamich/react-use/compare/v9.11.1...v9.11.2) (2019-07-16)
|
---|
1261 |
|
---|
1262 |
|
---|
1263 | ### Bug Fixes
|
---|
1264 |
|
---|
1265 | * support useMedia usage server-side ([50a5160](https://github.com/streamich/react-use/commit/50a5160))
|
---|
1266 |
|
---|
1267 | ## [9.11.1](https://github.com/streamich/react-use/compare/v9.11.0...v9.11.1) (2019-07-16)
|
---|
1268 |
|
---|
1269 |
|
---|
1270 | ### Bug Fixes
|
---|
1271 |
|
---|
1272 | * createReducer stable dispatch function identity ([9780545](https://github.com/streamich/react-use/commit/9780545))
|
---|
1273 |
|
---|
1274 | # [9.11.0](https://github.com/streamich/react-use/compare/v9.10.0...v9.11.0) (2019-07-11)
|
---|
1275 |
|
---|
1276 |
|
---|
1277 | ### Features
|
---|
1278 |
|
---|
1279 | * useMedia - initialize state with call to media query ([#454](https://github.com/streamich/react-use/issues/454)) ([ab81897](https://github.com/streamich/react-use/commit/ab81897))
|
---|
1280 |
|
---|
1281 | # [9.10.0](https://github.com/streamich/react-use/compare/v9.9.0...v9.10.0) (2019-07-10)
|
---|
1282 |
|
---|
1283 |
|
---|
1284 | ### Features
|
---|
1285 |
|
---|
1286 | * expose useIsomorphicLayoutEffect + docs ([#451](https://github.com/streamich/react-use/issues/451)) ([8dcbbf1](https://github.com/streamich/react-use/commit/8dcbbf1))
|
---|
1287 |
|
---|
1288 | # [9.9.0](https://github.com/streamich/react-use/compare/v9.8.3...v9.9.0) (2019-07-10)
|
---|
1289 |
|
---|
1290 |
|
---|
1291 | ### Features
|
---|
1292 |
|
---|
1293 | * add usePermission ([4da40b9](https://github.com/streamich/react-use/commit/4da40b9))
|
---|
1294 | * usePermission ([588a0c5](https://github.com/streamich/react-use/commit/588a0c5))
|
---|
1295 |
|
---|
1296 | ## [9.8.3](https://github.com/streamich/react-use/compare/v9.8.2...v9.8.3) (2019-07-10)
|
---|
1297 |
|
---|
1298 |
|
---|
1299 | ### Bug Fixes
|
---|
1300 |
|
---|
1301 | * useLocalStorage types for functional updates ([e2b8278](https://github.com/streamich/react-use/commit/e2b8278))
|
---|
1302 |
|
---|
1303 | ## [9.8.2](https://github.com/streamich/react-use/compare/v9.8.1...v9.8.2) (2019-07-08)
|
---|
1304 |
|
---|
1305 |
|
---|
1306 | ### Bug Fixes
|
---|
1307 |
|
---|
1308 | * **useSize:** prevents accessing iframe's property when it's not defined ([c9b5cdc](https://github.com/streamich/react-use/commit/c9b5cdc)), closes [#442](https://github.com/streamich/react-use/issues/442)
|
---|
1309 | * **useSize:** prevents accessing iframe's property when it's notโฆ ([#443](https://github.com/streamich/react-use/issues/443)) ([8f04e8f](https://github.com/streamich/react-use/commit/8f04e8f))
|
---|
1310 | * iframe can be null ([a9e3bab](https://github.com/streamich/react-use/commit/a9e3bab))
|
---|
1311 |
|
---|
1312 | ## [9.8.1](https://github.com/streamich/react-use/compare/v9.8.0...v9.8.1) (2019-06-30)
|
---|
1313 |
|
---|
1314 |
|
---|
1315 | ### Bug Fixes
|
---|
1316 |
|
---|
1317 | * lint fixes via lint:fix ([7ce8e4f](https://github.com/streamich/react-use/commit/7ce8e4f))
|
---|
1318 | * useMap uses prevMap state which is safer ([3554f79](https://github.com/streamich/react-use/commit/3554f79))
|
---|
1319 | * **useMap:** remove now also uses prevMap state to not overwrite or lose state ([0a59869](https://github.com/streamich/react-use/commit/0a59869))
|
---|
1320 |
|
---|
1321 | # [9.8.0](https://github.com/streamich/react-use/compare/v9.7.2...v9.8.0) (2019-06-30)
|
---|
1322 |
|
---|
1323 |
|
---|
1324 | ### Bug Fixes
|
---|
1325 |
|
---|
1326 | * ๐ fix test and add pre-push hook ([1353b6c](https://github.com/streamich/react-use/commit/1353b6c))
|
---|
1327 |
|
---|
1328 |
|
---|
1329 | ### Features
|
---|
1330 |
|
---|
1331 | * add voice option in use speech ([6dc2dd5](https://github.com/streamich/react-use/commit/6dc2dd5))
|
---|
1332 | * add voice option in useSpeech ([#422](https://github.com/streamich/react-use/issues/422)) ([c32d02b](https://github.com/streamich/react-use/commit/c32d02b))
|
---|
1333 |
|
---|
1334 | ## [9.7.2](https://github.com/streamich/react-use/compare/v9.7.1...v9.7.2) (2019-06-27)
|
---|
1335 |
|
---|
1336 |
|
---|
1337 | ### Bug Fixes
|
---|
1338 |
|
---|
1339 | * save to localStorage only when state changes ([ba6d375](https://github.com/streamich/react-use/commit/ba6d375))
|
---|
1340 | * use correct list variable in useList ([#412](https://github.com/streamich/react-use/issues/412)) ([b937296](https://github.com/streamich/react-use/commit/b937296))
|
---|
1341 |
|
---|
1342 | ## [9.7.1](https://github.com/streamich/react-use/compare/v9.7.0...v9.7.1) (2019-06-23)
|
---|
1343 |
|
---|
1344 |
|
---|
1345 | ### Bug Fixes
|
---|
1346 |
|
---|
1347 | * ๐ use synchronouse effect to subscribe to observables ([376eea3](https://github.com/streamich/react-use/commit/376eea3))
|
---|
1348 |
|
---|
1349 | # [9.7.0](https://github.com/streamich/react-use/compare/v9.6.0...v9.7.0) (2019-06-19)
|
---|
1350 |
|
---|
1351 |
|
---|
1352 | ### Features
|
---|
1353 |
|
---|
1354 | * improve useClickAway() hook ([#394](https://github.com/streamich/react-use/issues/394)) ([c60df19](https://github.com/streamich/react-use/commit/c60df19))
|
---|
1355 |
|
---|
1356 | # [9.6.0](https://github.com/streamich/react-use/compare/v9.5.0...v9.6.0) (2019-06-18)
|
---|
1357 |
|
---|
1358 |
|
---|
1359 | ### Bug Fixes
|
---|
1360 |
|
---|
1361 | * add additional ref check on clean up ([d18d2d8](https://github.com/streamich/react-use/commit/d18d2d8))
|
---|
1362 | * always return something from effect ([3355426](https://github.com/streamich/react-use/commit/3355426))
|
---|
1363 |
|
---|
1364 |
|
---|
1365 | ### Features
|
---|
1366 |
|
---|
1367 | * ๐ธ add useScrolling hook ([bd9928e](https://github.com/streamich/react-use/commit/bd9928e))
|
---|
1368 | * ๐ธ add useScrolling hook to index ([b3ba702](https://github.com/streamich/react-use/commit/b3ba702))
|
---|
1369 | * add useScrolling docs ([25a93f6](https://github.com/streamich/react-use/commit/25a93f6))
|
---|
1370 | * add useScrolling story ([760edf1](https://github.com/streamich/react-use/commit/760edf1))
|
---|
1371 |
|
---|
1372 | # [9.5.0](https://github.com/streamich/react-use/compare/v9.4.1...v9.5.0) (2019-06-16)
|
---|
1373 |
|
---|
1374 |
|
---|
1375 | ### Bug Fixes
|
---|
1376 |
|
---|
1377 | * add missing `rate` property ([fb795a6](https://github.com/streamich/react-use/commit/fb795a6))
|
---|
1378 |
|
---|
1379 |
|
---|
1380 | ### Features
|
---|
1381 |
|
---|
1382 | * add rate option in useSpeech ([f52f1f7](https://github.com/streamich/react-use/commit/f52f1f7))
|
---|
1383 | * add rate option in useSpeech ([#399](https://github.com/streamich/react-use/issues/399)) ([0e4ebc6](https://github.com/streamich/react-use/commit/0e4ebc6))
|
---|
1384 |
|
---|
1385 | ## [9.4.1](https://github.com/streamich/react-use/compare/v9.4.0...v9.4.1) (2019-06-12)
|
---|
1386 |
|
---|
1387 |
|
---|
1388 | ### Bug Fixes
|
---|
1389 |
|
---|
1390 | * fix Storybook docs Markdown import ([962a312](https://github.com/streamich/react-use/commit/962a312))
|
---|
1391 |
|
---|
1392 | # [9.4.0](https://github.com/streamich/react-use/compare/v9.3.0...v9.4.0) (2019-06-04)
|
---|
1393 |
|
---|
1394 |
|
---|
1395 | ### Bug Fixes
|
---|
1396 |
|
---|
1397 | * fix TypeScript error ([72e3036](https://github.com/streamich/react-use/commit/72e3036))
|
---|
1398 | * **docs:** syntax error, improve examples ([8bbe9d8](https://github.com/streamich/react-use/commit/8bbe9d8))
|
---|
1399 |
|
---|
1400 |
|
---|
1401 | ### Features
|
---|
1402 |
|
---|
1403 | * improve createReducer function ([6ba2d93](https://github.com/streamich/react-use/commit/6ba2d93)), closes [#164](https://github.com/streamich/react-use/issues/164)
|
---|
1404 |
|
---|
1405 | # [9.3.0](https://github.com/streamich/react-use/compare/v9.2.0...v9.3.0) (2019-05-31)
|
---|
1406 |
|
---|
1407 |
|
---|
1408 | ### Features
|
---|
1409 |
|
---|
1410 | * improve useAsync and useAsyncFn ([3ab1d5d](https://github.com/streamich/react-use/commit/3ab1d5d))
|
---|
1411 |
|
---|
1412 | # [9.2.0](https://github.com/streamich/react-use/compare/v9.1.2...v9.2.0) (2019-05-31)
|
---|
1413 |
|
---|
1414 |
|
---|
1415 | ### Features
|
---|
1416 |
|
---|
1417 | * ๐ธ improve useObservable() type annotations ([d0c3713](https://github.com/streamich/react-use/commit/d0c3713))
|
---|
1418 | * improve useSetState() typings ([fad4440](https://github.com/streamich/react-use/commit/fad4440))
|
---|
1419 |
|
---|
1420 | ## [9.1.2](https://github.com/streamich/react-use/compare/v9.1.1...v9.1.2) (2019-05-24)
|
---|
1421 |
|
---|
1422 |
|
---|
1423 | ### Bug Fixes
|
---|
1424 |
|
---|
1425 | * **useAudio:** src change should reset isPlaying state ([65bffca](https://github.com/streamich/react-use/commit/65bffca))
|
---|
1426 |
|
---|
1427 | ## [9.1.1](https://github.com/streamich/react-use/compare/v9.1.0...v9.1.1) (2019-05-24)
|
---|
1428 |
|
---|
1429 |
|
---|
1430 | ### Bug Fixes
|
---|
1431 |
|
---|
1432 | * **useMap:** more stringent type ([7bbbe47](https://github.com/streamich/react-use/commit/7bbbe47))
|
---|
1433 |
|
---|
1434 | # [9.1.0](https://github.com/streamich/react-use/compare/v9.0.0...v9.1.0) (2019-05-24)
|
---|
1435 |
|
---|
1436 |
|
---|
1437 | ### Features
|
---|
1438 |
|
---|
1439 | * pass arguments to useAsyncFn function ([6789d10](https://github.com/streamich/react-use/commit/6789d10))
|
---|
1440 |
|
---|
1441 | # [9.0.0](https://github.com/streamich/react-use/compare/v8.4.0...v9.0.0) (2019-05-09)
|
---|
1442 |
|
---|
1443 |
|
---|
1444 | ### Features
|
---|
1445 |
|
---|
1446 | * improve useToggle interface ([81b1cac](https://github.com/streamich/react-use/commit/81b1cac))
|
---|
1447 |
|
---|
1448 |
|
---|
1449 | ### BREAKING CHANGES
|
---|
1450 |
|
---|
1451 | * useToggle interface changed
|
---|
1452 |
|
---|
1453 | # [8.4.0](https://github.com/streamich/react-use/compare/v8.3.1...v8.4.0) (2019-05-07)
|
---|
1454 |
|
---|
1455 |
|
---|
1456 | ### Features
|
---|
1457 |
|
---|
1458 | * add usePrevious hook ([4861a39](https://github.com/streamich/react-use/commit/4861a39))
|
---|
1459 |
|
---|
1460 | ## [8.3.1](https://github.com/streamich/react-use/compare/v8.3.0...v8.3.1) (2019-04-29)
|
---|
1461 |
|
---|
1462 |
|
---|
1463 | ### Bug Fixes
|
---|
1464 |
|
---|
1465 | * **useRefMounted:** only run and cleanup once ([6a651be](https://github.com/streamich/react-use/commit/6a651be))
|
---|
1466 |
|
---|
1467 | # [8.3.0](https://github.com/streamich/react-use/compare/v8.2.0...v8.3.0) (2019-04-29)
|
---|
1468 |
|
---|
1469 |
|
---|
1470 | ### Features
|
---|
1471 |
|
---|
1472 | * add type define for createMemo ([6638c1a](https://github.com/streamich/react-use/commit/6638c1a))
|
---|
1473 |
|
---|
1474 | # [8.2.0](https://github.com/streamich/react-use/compare/v8.1.4...v8.2.0) (2019-04-23)
|
---|
1475 |
|
---|
1476 |
|
---|
1477 | ### Bug Fixes
|
---|
1478 |
|
---|
1479 | * make options useGeolocation optional ([01959a1](https://github.com/streamich/react-use/commit/01959a1))
|
---|
1480 |
|
---|
1481 |
|
---|
1482 | ### Features
|
---|
1483 |
|
---|
1484 | * support options for useGeolocation ([7d4c59e](https://github.com/streamich/react-use/commit/7d4c59e))
|
---|
1485 |
|
---|
1486 | ## [8.1.4](https://github.com/streamich/react-use/compare/v8.1.3...v8.1.4) (2019-04-23)
|
---|
1487 |
|
---|
1488 |
|
---|
1489 | ### Bug Fixes
|
---|
1490 |
|
---|
1491 | * ๐ support click away on iOS, allow user to chose events ([f14e1d7](https://github.com/streamich/react-use/commit/f14e1d7))
|
---|
1492 |
|
---|
1493 | ## [8.1.3](https://github.com/streamich/react-use/compare/v8.1.2...v8.1.3) (2019-04-18)
|
---|
1494 |
|
---|
1495 |
|
---|
1496 | ### Bug Fixes
|
---|
1497 |
|
---|
1498 | * ๐ don't fire typing event on modifier keys pressed ([ce76edf](https://github.com/streamich/react-use/commit/ce76edf))
|
---|
1499 |
|
---|
1500 | ## [8.1.2](https://github.com/streamich/react-use/compare/v8.1.1...v8.1.2) (2019-04-12)
|
---|
1501 |
|
---|
1502 |
|
---|
1503 | ### Bug Fixes
|
---|
1504 |
|
---|
1505 | * **useIdle:** include 'ms' prop in uesEffect dependencies ([7a670a2](https://github.com/streamich/react-use/commit/7a670a2))
|
---|
1506 |
|
---|
1507 | ## [8.1.1](https://github.com/streamich/react-use/compare/v8.1.0...v8.1.1) (2019-04-09)
|
---|
1508 |
|
---|
1509 |
|
---|
1510 | ### Bug Fixes
|
---|
1511 |
|
---|
1512 | * ๐ make useLocation work on server, improve hook ([6f6030a](https://github.com/streamich/react-use/commit/6f6030a))
|
---|
1513 |
|
---|
1514 | # [8.1.0](https://github.com/streamich/react-use/compare/v8.0.0...v8.1.0) (2019-04-08)
|
---|
1515 |
|
---|
1516 |
|
---|
1517 | ### Features
|
---|
1518 |
|
---|
1519 | * add useAsyncCallback hook ([c6ecb36](https://github.com/streamich/react-use/commit/c6ecb36))
|
---|
1520 |
|
---|
1521 | # [8.0.0](https://github.com/streamich/react-use/compare/v7.6.0...v8.0.0) (2019-04-08)
|
---|
1522 |
|
---|
1523 |
|
---|
1524 | ### Features
|
---|
1525 |
|
---|
1526 | * change useCopyToClipboard implementation ([c391038](https://github.com/streamich/react-use/commit/c391038))
|
---|
1527 |
|
---|
1528 |
|
---|
1529 | ### BREAKING CHANGES
|
---|
1530 |
|
---|
1531 | * useCopyToClipboard interface changed
|
---|
1532 |
|
---|
1533 | # [7.6.0](https://github.com/streamich/react-use/compare/v7.5.0...v7.6.0) (2019-04-07)
|
---|
1534 |
|
---|
1535 |
|
---|
1536 | ### Bug Fixes
|
---|
1537 |
|
---|
1538 | * ๐ handle case when activeElement is empty ([3d83705](https://github.com/streamich/react-use/commit/3d83705))
|
---|
1539 |
|
---|
1540 |
|
---|
1541 | ### Features
|
---|
1542 |
|
---|
1543 | * ๐ธ add useStartTypings hook ([5fda2e0](https://github.com/streamich/react-use/commit/5fda2e0))
|
---|
1544 |
|
---|
1545 | # [7.5.0](https://github.com/streamich/react-use/compare/v7.4.0...v7.5.0) (2019-04-07)
|
---|
1546 |
|
---|
1547 |
|
---|
1548 | ### Features
|
---|
1549 |
|
---|
1550 | * ๐ธ add onCopy and onError events and use NPM copy library ([2553225](https://github.com/streamich/react-use/commit/2553225))
|
---|
1551 | * ๐ธ improve useCopyToClipboard() hook ([f185044](https://github.com/streamich/react-use/commit/f185044))
|
---|
1552 | * ๐ธ make useCopyToClipboard hook interface more idiomatic ([0a6d773](https://github.com/streamich/react-use/commit/0a6d773))
|
---|
1553 | * add useCopyToClipboard() hook ([4d8e276](https://github.com/streamich/react-use/commit/4d8e276))
|
---|
1554 |
|
---|
1555 | # [7.4.0](https://github.com/streamich/react-use/compare/v7.3.1...v7.4.0) (2019-04-07)
|
---|
1556 |
|
---|
1557 |
|
---|
1558 | ### Features
|
---|
1559 |
|
---|
1560 | * add useDeepCompareEffect hook ([77e015b](https://github.com/streamich/react-use/commit/77e015b))
|
---|
1561 |
|
---|
1562 | ## [7.3.1](https://github.com/streamich/react-use/compare/v7.3.0...v7.3.1) (2019-03-31)
|
---|
1563 |
|
---|
1564 |
|
---|
1565 | ### Bug Fixes
|
---|
1566 |
|
---|
1567 | * ๐ call key{up/donw} callbacks in useKeyPressEvent correct ([60064a6](https://github.com/streamich/react-use/commit/60064a6))
|
---|
1568 |
|
---|
1569 | # [7.3.0](https://github.com/streamich/react-use/compare/v7.2.0...v7.3.0) (2019-03-31)
|
---|
1570 |
|
---|
1571 |
|
---|
1572 | ### Features
|
---|
1573 |
|
---|
1574 | * add useEffectOnce hook ([06c12d4](https://github.com/streamich/react-use/commit/06c12d4))
|
---|
1575 |
|
---|
1576 | # [7.2.0](https://github.com/streamich/react-use/compare/v7.1.1...v7.2.0) (2019-03-31)
|
---|
1577 |
|
---|
1578 |
|
---|
1579 | ### Features
|
---|
1580 |
|
---|
1581 | * default dependency array for useAsync and useAsyncRetry ([cb140a0](https://github.com/streamich/react-use/commit/cb140a0))
|
---|
1582 |
|
---|
1583 | ## [7.1.1](https://github.com/streamich/react-use/compare/v7.1.0...v7.1.1) (2019-03-30)
|
---|
1584 |
|
---|
1585 |
|
---|
1586 | ### Bug Fixes
|
---|
1587 |
|
---|
1588 | * consistent refs in useFullscreen hook ([dc85499](https://github.com/streamich/react-use/commit/dc85499))
|
---|
1589 |
|
---|
1590 | # [7.1.0](https://github.com/streamich/react-use/compare/v7.0.2...v7.1.0) (2019-03-29)
|
---|
1591 |
|
---|
1592 |
|
---|
1593 | ### Bug Fixes
|
---|
1594 |
|
---|
1595 | * useClickAway TypeScript typings ([4b20083](https://github.com/streamich/react-use/commit/4b20083))
|
---|
1596 |
|
---|
1597 |
|
---|
1598 | ### Features
|
---|
1599 |
|
---|
1600 | * pass click event in useClickAway to user ([01e38bc](https://github.com/streamich/react-use/commit/01e38bc))
|
---|
1601 |
|
---|
1602 | ## [7.0.2](https://github.com/streamich/react-use/compare/v7.0.1...v7.0.2) (2019-03-29)
|
---|
1603 |
|
---|
1604 |
|
---|
1605 | ### Bug Fixes
|
---|
1606 |
|
---|
1607 | * ๐ add rebound and keyboards deps back to peerDependencies ([4fc46aa](https://github.com/streamich/react-use/commit/4fc46aa))
|
---|
1608 |
|
---|
1609 | ## [7.0.1](https://github.com/streamich/react-use/compare/v7.0.0...v7.0.1) (2019-03-29)
|
---|
1610 |
|
---|
1611 |
|
---|
1612 | ### Bug Fixes
|
---|
1613 |
|
---|
1614 | * add optional attributes in AsyncState ([b0c9770](https://github.com/streamich/react-use/commit/b0c9770))
|
---|
1615 |
|
---|
1616 | # [7.0.0](https://github.com/streamich/react-use/compare/v6.2.2...v7.0.0) (2019-03-28)
|
---|
1617 |
|
---|
1618 |
|
---|
1619 | ### Bug Fixes
|
---|
1620 |
|
---|
1621 | * ๐ fix TypeScript build errors ([5c95f28](https://github.com/streamich/react-use/commit/5c95f28))
|
---|
1622 | * ๐ make sure all paths in usePageLeave return ([6655092](https://github.com/streamich/react-use/commit/6655092))
|
---|
1623 | * ๐ track "over" state better in useDrop hook ([acc355c](https://github.com/streamich/react-use/commit/acc355c))
|
---|
1624 |
|
---|
1625 |
|
---|
1626 | ### Features
|
---|
1627 |
|
---|
1628 | * ๐ธ add clear() to useList, use fn for state updates ([b20cf7c](https://github.com/streamich/react-use/commit/b20cf7c))
|
---|
1629 | * ๐ธ add createRenderProp function for creating render-props ([f4fd748](https://github.com/streamich/react-use/commit/f4fd748))
|
---|
1630 | * ๐ธ add useDrop hook ([6e415cf](https://github.com/streamich/react-use/commit/6e415cf))
|
---|
1631 | * ๐ธ add useDropArea hook ([676d0de](https://github.com/streamich/react-use/commit/676d0de))
|
---|
1632 | * ๐ธ add useEvent hook ([2a13cfb](https://github.com/streamich/react-use/commit/2a13cfb))
|
---|
1633 | * ๐ธ add useKey hook ([299fd86](https://github.com/streamich/react-use/commit/299fd86))
|
---|
1634 | * ๐ธ add useKeyboardJs hook ([3516aa6](https://github.com/streamich/react-use/commit/3516aa6))
|
---|
1635 | * ๐ธ add usePageLeave hook ([33ac91b](https://github.com/streamich/react-use/commit/33ac91b))
|
---|
1636 | * ๐ธ add useThrottleFn hook that throttles function ([0ccdf95](https://github.com/streamich/react-use/commit/0ccdf95))
|
---|
1637 | * ๐ธ improve useFullscreen hook ([7c38165](https://github.com/streamich/react-use/commit/7c38165))
|
---|
1638 | * ๐ธ keep keyboard events in useKeyPress hook ([00fecab](https://github.com/streamich/react-use/commit/00fecab))
|
---|
1639 | * ๐ธ refactor useKeyPressEvent hook ([c0658f6](https://github.com/streamich/react-use/commit/c0658f6))
|
---|
1640 | * ๐ธ return events from useKeyboardJs hook ([aa277b8](https://github.com/streamich/react-use/commit/aa277b8))
|
---|
1641 | * ๐ธ simplify and improve useThrottle hook ([452e8d9](https://github.com/streamich/react-use/commit/452e8d9))
|
---|
1642 | * ๐ธ useKeyPress hook now uses useKey, KeyboardJS removed ([727743b](https://github.com/streamich/react-use/commit/727743b))
|
---|
1643 |
|
---|
1644 |
|
---|
1645 | ### BREAKING CHANGES
|
---|
1646 |
|
---|
1647 | * ๐งจ useKeyPressEvent hook modified for dependency injection and providing
|
---|
1648 | event objects to user
|
---|
1649 | * ๐งจ KeyboardJS now available anymore in useKeyPress hook, instead it will be
|
---|
1650 | a separate useKeyPressKJ hook.
|
---|
1651 | * ๐งจ useThrottle is now a completely different hook
|
---|
1652 |
|
---|
1653 | ## [6.2.2](https://github.com/streamich/react-use/compare/v6.2.1...v6.2.2) (2019-03-28)
|
---|
1654 |
|
---|
1655 |
|
---|
1656 | ### Bug Fixes
|
---|
1657 |
|
---|
1658 | * fix deps arg and union type in useAsync and useAsyncRetry ([929e726](https://github.com/streamich/react-use/commit/929e726))
|
---|
1659 |
|
---|
1660 | ## [6.2.1](https://github.com/streamich/react-use/compare/v6.2.0...v6.2.1) (2019-03-27)
|
---|
1661 |
|
---|
1662 |
|
---|
1663 | ### Bug Fixes
|
---|
1664 |
|
---|
1665 | * set 'module' field properly ([35d4fc2](https://github.com/streamich/react-use/commit/35d4fc2))
|
---|
1666 |
|
---|
1667 | # [6.2.0](https://github.com/streamich/react-use/compare/v6.1.0...v6.2.0) (2019-03-27)
|
---|
1668 |
|
---|
1669 |
|
---|
1670 | ### Bug Fixes
|
---|
1671 |
|
---|
1672 | * add esm to 'files' in package.json ([fc1ba07](https://github.com/streamich/react-use/commit/fc1ba07))
|
---|
1673 | * clean esm folder as well ([0a10a6e](https://github.com/streamich/react-use/commit/0a10a6e))
|
---|
1674 |
|
---|
1675 |
|
---|
1676 | ### Features
|
---|
1677 |
|
---|
1678 | * emit code in ES Module mode ([464642e](https://github.com/streamich/react-use/commit/464642e))
|
---|
1679 |
|
---|
1680 | # [6.1.0](https://github.com/streamich/react-use/compare/v6.0.0...v6.1.0) (2019-03-26)
|
---|
1681 |
|
---|
1682 |
|
---|
1683 | ### Features
|
---|
1684 |
|
---|
1685 | * add useThrottle hook ([756bc99](https://github.com/streamich/react-use/commit/756bc99))
|
---|
1686 |
|
---|
1687 | # [6.0.0](https://github.com/streamich/react-use/compare/v5.16.1...v6.0.0) (2019-03-26)
|
---|
1688 |
|
---|
1689 |
|
---|
1690 | ### Bug Fixes
|
---|
1691 |
|
---|
1692 | * ๐ bump nano-css ([f1f36dc](https://github.com/streamich/react-use/commit/f1f36dc)), closes [#90](https://github.com/streamich/react-use/issues/90)
|
---|
1693 | * ๐ don't throw only in development ([f5faba5](https://github.com/streamich/react-use/commit/f5faba5))
|
---|
1694 |
|
---|
1695 |
|
---|
1696 | ### chore
|
---|
1697 |
|
---|
1698 | * ๐ค don't install only large dependencies ([6170067](https://github.com/streamich/react-use/commit/6170067))
|
---|
1699 |
|
---|
1700 |
|
---|
1701 | ### Features
|
---|
1702 |
|
---|
1703 | * ๐ธ add {bound} option to useMouse ([9bb02a1](https://github.com/streamich/react-use/commit/9bb02a1))
|
---|
1704 | * ๐ธ implement useClickAway, remove useOutsideClick ([a03143a](https://github.com/streamich/react-use/commit/a03143a))
|
---|
1705 | * ๐ธ keep global state of all useLockBodyScroll hooks ([5dd10e9](https://github.com/streamich/react-use/commit/5dd10e9))
|
---|
1706 | * ๐ธ move extra mouse functionality into useMouseHovered ([8b0580e](https://github.com/streamich/react-use/commit/8b0580e))
|
---|
1707 | * more precise size for useMouse ([b887075](https://github.com/streamich/react-use/commit/b887075))
|
---|
1708 |
|
---|
1709 |
|
---|
1710 | ### BREAKING CHANGES
|
---|
1711 |
|
---|
1712 | * ๐งจ error is logged instead of thrown in development environment
|
---|
1713 | * ๐งจ useOutsideClick is now useClickAway
|
---|
1714 | * ๐งจ useCallbag hook is removed, some hooks KeyboardJS and Rebound installed
|
---|
1715 | separately
|
---|
1716 |
|
---|
1717 | ## [5.16.1](https://github.com/streamich/react-use/compare/v5.16.0...v5.16.1) (2019-03-26)
|
---|
1718 |
|
---|
1719 |
|
---|
1720 | ### Bug Fixes
|
---|
1721 |
|
---|
1722 | * types for useGeolocation ([b72c098](https://github.com/streamich/react-use/commit/b72c098))
|
---|
1723 |
|
---|
1724 | # [5.16.0](https://github.com/streamich/react-use/compare/v5.15.0...v5.16.0) (2019-03-25)
|
---|
1725 |
|
---|
1726 |
|
---|
1727 | ### Features
|
---|
1728 |
|
---|
1729 | * more precise size for useMouse ([1761031](https://github.com/streamich/react-use/commit/1761031))
|
---|
1730 |
|
---|
1731 | # [5.15.0](https://github.com/streamich/react-use/compare/v5.14.0...v5.15.0) (2019-03-25)
|
---|
1732 |
|
---|
1733 |
|
---|
1734 | ### Features
|
---|
1735 |
|
---|
1736 | * add useMouse hook ([17dfa8e](https://github.com/streamich/react-use/commit/17dfa8e))
|
---|
1737 |
|
---|
1738 | # [5.14.0](https://github.com/streamich/react-use/compare/v5.13.0...v5.14.0) (2019-03-24)
|
---|
1739 |
|
---|
1740 |
|
---|
1741 | ### Features
|
---|
1742 |
|
---|
1743 | * ๐ธ keep global state of all useLockBodyScroll hooks ([9bb7047](https://github.com/streamich/react-use/commit/9bb7047))
|
---|
1744 | * add useLockBodyScroll hook ([d990db4](https://github.com/streamich/react-use/commit/d990db4))
|
---|
1745 |
|
---|
1746 | # [5.13.0](https://github.com/streamich/react-use/compare/v5.12.1...v5.13.0) (2019-03-23)
|
---|
1747 |
|
---|
1748 |
|
---|
1749 | ### Features
|
---|
1750 |
|
---|
1751 | * add useScroll hook ([a92e9b2](https://github.com/streamich/react-use/commit/a92e9b2))
|
---|
1752 |
|
---|
1753 | ## [5.12.1](https://github.com/streamich/react-use/compare/v5.12.0...v5.12.1) (2019-03-23)
|
---|
1754 |
|
---|
1755 |
|
---|
1756 | ### Bug Fixes
|
---|
1757 |
|
---|
1758 | * ๐ cancel animation frame on un-mount in useWindowScroll() ([bc021ce](https://github.com/streamich/react-use/commit/bc021ce))
|
---|
1759 |
|
---|
1760 | # [5.12.0](https://github.com/streamich/react-use/compare/v5.11.0...v5.12.0) (2019-03-23)
|
---|
1761 |
|
---|
1762 |
|
---|
1763 | ### Features
|
---|
1764 |
|
---|
1765 | * add useWindowScroll hook ([076d0de](https://github.com/streamich/react-use/commit/076d0de))
|
---|
1766 |
|
---|
1767 | # [5.11.0](https://github.com/streamich/react-use/compare/v5.10.0...v5.11.0) (2019-03-22)
|
---|
1768 |
|
---|
1769 |
|
---|
1770 | ### Features
|
---|
1771 |
|
---|
1772 | * ๐ธ refresh useCss hook ([0116cc9](https://github.com/streamich/react-use/commit/0116cc9))
|
---|
1773 |
|
---|
1774 | # [5.10.0](https://github.com/streamich/react-use/compare/v5.9.0...v5.10.0) (2019-03-21)
|
---|
1775 |
|
---|
1776 |
|
---|
1777 | ### Features
|
---|
1778 |
|
---|
1779 | * add useUpdateEffect hook ([c2afd23](https://github.com/streamich/react-use/commit/c2afd23))
|
---|
1780 |
|
---|
1781 | # [5.9.0](https://github.com/streamich/react-use/compare/v5.8.1...v5.9.0) (2019-03-21)
|
---|
1782 |
|
---|
1783 |
|
---|
1784 | ### Features
|
---|
1785 |
|
---|
1786 | * add useAsyncRetry hook ([576cf42](https://github.com/streamich/react-use/commit/576cf42))
|
---|
1787 |
|
---|
1788 |
|
---|
1789 | ### Performance Improvements
|
---|
1790 |
|
---|
1791 | * remove asyn/await wrapper ([8e3de1c](https://github.com/streamich/react-use/commit/8e3de1c))
|
---|
1792 |
|
---|
1793 | ## [5.8.1](https://github.com/streamich/react-use/compare/v5.8.0...v5.8.1) (2019-03-20)
|
---|
1794 |
|
---|
1795 |
|
---|
1796 | ### Bug Fixes
|
---|
1797 |
|
---|
1798 | * ๐ use useLayoutEffect() in useCss() to inject CSS quick ([7328f26](https://github.com/streamich/react-use/commit/7328f26))
|
---|
1799 |
|
---|
1800 | # [5.8.0](https://github.com/streamich/react-use/compare/v5.7.1...v5.8.0) (2019-03-19)
|
---|
1801 |
|
---|
1802 |
|
---|
1803 | ### Features
|
---|
1804 |
|
---|
1805 | * release useKeyPressEvent() ([96798e2](https://github.com/streamich/react-use/commit/96798e2))
|
---|
1806 |
|
---|
1807 | ## [5.7.1](https://github.com/streamich/react-use/compare/v5.7.0...v5.7.1) (2019-03-15)
|
---|
1808 |
|
---|
1809 |
|
---|
1810 | ### Bug Fixes
|
---|
1811 |
|
---|
1812 | * ๐ allow every promise in usePromise() hook have own type ([d60fef7](https://github.com/streamich/react-use/commit/d60fef7))
|
---|
1813 |
|
---|
1814 | # [5.7.0](https://github.com/streamich/react-use/compare/v5.6.0...v5.7.0) (2019-03-15)
|
---|
1815 |
|
---|
1816 |
|
---|
1817 | ### Bug Fixes
|
---|
1818 |
|
---|
1819 | * ๐ fix TypeScript typings for usePromise() ([ba0acb6](https://github.com/streamich/react-use/commit/ba0acb6))
|
---|
1820 |
|
---|
1821 |
|
---|
1822 | ### Features
|
---|
1823 |
|
---|
1824 | * ๐ธ add usePromise() hook ([aad368b](https://github.com/streamich/react-use/commit/aad368b))
|
---|
1825 |
|
---|
1826 | # [5.6.0](https://github.com/streamich/react-use/compare/v5.5.6...v5.6.0) (2019-03-13)
|
---|
1827 |
|
---|
1828 |
|
---|
1829 | ### Features
|
---|
1830 |
|
---|
1831 | * transpile down to ES5 ([61382e3](https://github.com/streamich/react-use/commit/61382e3))
|
---|
1832 |
|
---|
1833 | ## [5.5.6](https://github.com/streamich/react-use/compare/v5.5.5...v5.5.6) (2019-03-11)
|
---|
1834 |
|
---|
1835 |
|
---|
1836 | ### Bug Fixes
|
---|
1837 |
|
---|
1838 | * correct createMemo.md ([4e2d639](https://github.com/streamich/react-use/commit/4e2d639))
|
---|
1839 | * correct createMemo.story ([9c8e093](https://github.com/streamich/react-use/commit/9c8e093))
|
---|
1840 |
|
---|
1841 | ## [5.5.5](https://github.com/streamich/react-use/compare/v5.5.4...v5.5.5) (2019-03-04)
|
---|
1842 |
|
---|
1843 |
|
---|
1844 | ### Bug Fixes
|
---|
1845 |
|
---|
1846 | * ๐ make useWindowSize work on server ([8f93853](https://github.com/streamich/react-use/commit/8f93853))
|
---|
1847 |
|
---|
1848 | ## [5.5.4](https://github.com/streamich/react-use/compare/v5.5.3...v5.5.4) (2019-02-25)
|
---|
1849 |
|
---|
1850 |
|
---|
1851 | ### Bug Fixes
|
---|
1852 |
|
---|
1853 | * ๐ new React behaviour needs useState to set something ([e926faf](https://github.com/streamich/react-use/commit/e926faf)), closes [#128](https://github.com/streamich/react-use/issues/128)
|
---|
1854 |
|
---|
1855 | ## [5.5.3](https://github.com/streamich/react-use/compare/v5.5.2...v5.5.3) (2019-02-25)
|
---|
1856 |
|
---|
1857 |
|
---|
1858 | ### Bug Fixes
|
---|
1859 |
|
---|
1860 | * **deps:** update dependency use-callbag to ^0.2.0 ([4d49d0b](https://github.com/streamich/react-use/commit/4d49d0b))
|
---|
1861 |
|
---|
1862 | ## [5.5.2](https://github.com/streamich/react-use/compare/v5.5.1...v5.5.2) (2019-02-24)
|
---|
1863 |
|
---|
1864 |
|
---|
1865 | ### Bug Fixes
|
---|
1866 |
|
---|
1867 | * **deps:** update dependency use-onclickoutside to ^0.3.0 ([0baae6d](https://github.com/streamich/react-use/commit/0baae6d))
|
---|
1868 |
|
---|
1869 | ## [5.5.1](https://github.com/streamich/react-use/compare/v5.5.0...v5.5.1) (2019-02-24)
|
---|
1870 |
|
---|
1871 |
|
---|
1872 | ### Bug Fixes
|
---|
1873 |
|
---|
1874 | * **deps:** update dependency ts-easing to ^0.2.0 ([3321e11](https://github.com/streamich/react-use/commit/3321e11))
|
---|
1875 |
|
---|
1876 | # [5.5.0](https://github.com/streamich/react-use/compare/v5.4.1...v5.5.0) (2019-02-23)
|
---|
1877 |
|
---|
1878 |
|
---|
1879 | ### Bug Fixes
|
---|
1880 |
|
---|
1881 | * add type definition for useList() remove() method ([ea2dc43](https://github.com/streamich/react-use/commit/ea2dc43))
|
---|
1882 | * useSetState bug ([83611a1](https://github.com/streamich/react-use/commit/83611a1))
|
---|
1883 |
|
---|
1884 |
|
---|
1885 | ### Features
|
---|
1886 |
|
---|
1887 | * Add remove method for useList ([5a295d9](https://github.com/streamich/react-use/commit/5a295d9))
|
---|
1888 |
|
---|
1889 | ## [5.4.1](https://github.com/streamich/react-use/compare/v5.4.0...v5.4.1) (2019-02-19)
|
---|
1890 |
|
---|
1891 |
|
---|
1892 | ### Bug Fixes
|
---|
1893 |
|
---|
1894 | * ๐ better async loading for keyboardjs ([2096bae](https://github.com/streamich/react-use/commit/2096bae)), closes [#103](https://github.com/streamich/react-use/issues/103)
|
---|
1895 |
|
---|
1896 | # [5.4.0](https://github.com/streamich/react-use/compare/v5.3.1...v5.4.0) (2019-02-19)
|
---|
1897 |
|
---|
1898 |
|
---|
1899 | ### Features
|
---|
1900 |
|
---|
1901 | * add error and loading fields to useGeolocation ([6909a69](https://github.com/streamich/react-use/commit/6909a69))
|
---|
1902 |
|
---|
1903 | ## [5.3.1](https://github.com/streamich/react-use/compare/v5.3.0...v5.3.1) (2019-02-17)
|
---|
1904 |
|
---|
1905 |
|
---|
1906 | ### Bug Fixes
|
---|
1907 |
|
---|
1908 | * ๐ fix typings in useOrientation sensor ([afbacac](https://github.com/streamich/react-use/commit/afbacac))
|
---|
1909 | * ๐ fix useSetState after React update ([524abe5](https://github.com/streamich/react-use/commit/524abe5)), closes [#107](https://github.com/streamich/react-use/issues/107) [#107](https://github.com/streamich/react-use/issues/107)
|
---|
1910 | * useOrientation breaks in some devices ([d89bd54](https://github.com/streamich/react-use/commit/d89bd54))
|
---|
1911 |
|
---|
1912 | # [5.3.0](https://github.com/streamich/react-use/compare/v5.2.3...v5.3.0) (2019-02-07)
|
---|
1913 |
|
---|
1914 |
|
---|
1915 | ### Features
|
---|
1916 |
|
---|
1917 | * Add updateAt method for useList ([ad05609](https://github.com/streamich/react-use/commit/ad05609))
|
---|
1918 |
|
---|
1919 | ## [5.2.3](https://github.com/streamich/react-use/compare/v5.2.2...v5.2.3) (2019-02-07)
|
---|
1920 |
|
---|
1921 |
|
---|
1922 | ### Bug Fixes
|
---|
1923 |
|
---|
1924 | * ๐ fix build and update React deps ([27e26a0](https://github.com/streamich/react-use/commit/27e26a0))
|
---|
1925 |
|
---|
1926 | ## [5.2.2](https://github.com/streamich/react-use/compare/v5.2.1...v5.2.2) (2019-02-02)
|
---|
1927 |
|
---|
1928 |
|
---|
1929 | ### Bug Fixes
|
---|
1930 |
|
---|
1931 | * release useDebounce and useToggle fixes ([12ad880](https://github.com/streamich/react-use/commit/12ad880))
|
---|
1932 |
|
---|
1933 | ## [5.2.1](https://github.com/streamich/react-use/compare/v5.2.0...v5.2.1) (2019-01-04)
|
---|
1934 |
|
---|
1935 |
|
---|
1936 | ### Bug Fixes
|
---|
1937 |
|
---|
1938 | * use function to correctly update state in useToggle ([d854d27](https://github.com/streamich/react-use/commit/d854d27))
|
---|
1939 |
|
---|
1940 | # [5.2.0](https://github.com/streamich/react-use/compare/v5.1.2...v5.2.0) (2019-01-02)
|
---|
1941 |
|
---|
1942 |
|
---|
1943 | ### Features
|
---|
1944 |
|
---|
1945 | * ๐ธ add useKeyPress hook ([01df885](https://github.com/streamich/react-use/commit/01df885))
|
---|
1946 | * **useKeyPress:** allow complex bindings via key combos ([e53a20f](https://github.com/streamich/react-use/commit/e53a20f))
|
---|
1947 |
|
---|
1948 | ## [5.1.2](https://github.com/streamich/react-use/compare/v5.1.1...v5.1.2) (2018-12-29)
|
---|
1949 |
|
---|
1950 |
|
---|
1951 | ### Bug Fixes
|
---|
1952 |
|
---|
1953 | * reset state when calling useEffect in useAsync ([2f5af2c](https://github.com/streamich/react-use/commit/2f5af2c))
|
---|
1954 |
|
---|
1955 | ## [5.1.1](https://github.com/streamich/react-use/compare/v5.1.0...v5.1.1) (2018-12-20)
|
---|
1956 |
|
---|
1957 |
|
---|
1958 | ### Bug Fixes
|
---|
1959 |
|
---|
1960 | * lock react and react-dom to a fixed version ([#83](https://github.com/streamich/react-use/issues/83)) ([455812d](https://github.com/streamich/react-use/commit/455812d))
|
---|
1961 |
|
---|
1962 | # [5.1.0](https://github.com/streamich/react-use/compare/v5.0.0...v5.1.0) (2018-12-19)
|
---|
1963 |
|
---|
1964 |
|
---|
1965 | ### Bug Fixes
|
---|
1966 |
|
---|
1967 | * ๐ just use any for setTimeout because of diff environments ([55673cb](https://github.com/streamich/react-use/commit/55673cb))
|
---|
1968 | * ๐ memoized does not receive arguments ([244a533](https://github.com/streamich/react-use/commit/244a533))
|
---|
1969 | * ๐ use Timeout type for build to work ([8c66abe](https://github.com/streamich/react-use/commit/8c66abe))
|
---|
1970 |
|
---|
1971 |
|
---|
1972 | ### Features
|
---|
1973 |
|
---|
1974 | * added useDebounce ([91ff6ba](https://github.com/streamich/react-use/commit/91ff6ba))
|
---|
1975 | * pass arguments to memoized callback ([#81](https://github.com/streamich/react-use/issues/81)) ([88dd513](https://github.com/streamich/react-use/commit/88dd513))
|
---|
1976 |
|
---|
1977 | # [5.0.0](https://github.com/streamich/react-use/compare/v4.11.1...v5.0.0) (2018-12-17)
|
---|
1978 |
|
---|
1979 |
|
---|
1980 | ### Features
|
---|
1981 |
|
---|
1982 | * ๐ธ list all useAsync state props so that TS dont complain ([7c1b107](https://github.com/streamich/react-use/commit/7c1b107))
|
---|
1983 | * ๐ธ remove experimental hooks ([533e26f](https://github.com/streamich/react-use/commit/533e26f))
|
---|
1984 | * use discriminated union in useAsync ([966af4a](https://github.com/streamich/react-use/commit/966af4a))
|
---|
1985 |
|
---|
1986 |
|
---|
1987 | ### BREAKING CHANGES
|
---|
1988 |
|
---|
1989 | * useRenderProp and useAsync are removed
|
---|
1990 |
|
---|
1991 | ## [4.11.1](https://github.com/streamich/react-use/compare/v4.11.0...v4.11.1) (2018-12-16)
|
---|
1992 |
|
---|
1993 |
|
---|
1994 | ### Bug Fixes
|
---|
1995 |
|
---|
1996 | * synchronously re-render bug of useRaf hook ([#77](https://github.com/streamich/react-use/issues/77)) ([5d74348](https://github.com/streamich/react-use/commit/5d74348))
|
---|
1997 |
|
---|
1998 | # [4.11.0](https://github.com/streamich/react-use/compare/v4.10.0...v4.11.0) (2018-12-05)
|
---|
1999 |
|
---|
2000 |
|
---|
2001 | ### Features
|
---|
2002 |
|
---|
2003 | * ๐ธ add useRefMounted hook ([dfb0510](https://github.com/streamich/react-use/commit/dfb0510))
|
---|
2004 |
|
---|
2005 | # [4.10.0](https://github.com/streamich/react-use/compare/v4.9.0...v4.10.0) (2018-11-10)
|
---|
2006 |
|
---|
2007 |
|
---|
2008 | ### Features
|
---|
2009 |
|
---|
2010 | * bump useWait ([124ef99](https://github.com/streamich/react-use/commit/124ef99))
|
---|
2011 |
|
---|
2012 | # [4.9.0](https://github.com/streamich/react-use/compare/v4.8.0...v4.9.0) (2018-11-06)
|
---|
2013 |
|
---|
2014 |
|
---|
2015 | ### Features
|
---|
2016 |
|
---|
2017 | * add useSessionStorage hook ([eca432a](https://github.com/streamich/react-use/commit/eca432a))
|
---|
2018 | * add useWait hook ([61c6058](https://github.com/streamich/react-use/commit/61c6058))
|
---|
2019 |
|
---|
2020 | # [4.8.0](https://github.com/streamich/react-use/compare/v4.7.0...v4.8.0) (2018-11-02)
|
---|
2021 |
|
---|
2022 |
|
---|
2023 | ### Features
|
---|
2024 |
|
---|
2025 | * allow useSetState setter to accept function ([bfd114a](https://github.com/streamich/react-use/commit/bfd114a))
|
---|
2026 |
|
---|
2027 | # [4.7.0](https://github.com/streamich/react-use/compare/v4.6.0...v4.7.0) (2018-10-30)
|
---|
2028 |
|
---|
2029 |
|
---|
2030 | ### Features
|
---|
2031 |
|
---|
2032 | * ๐ธ add useHoverDirty hook ([c2aee59](https://github.com/streamich/react-use/commit/c2aee59))
|
---|
2033 |
|
---|
2034 | # [4.6.0](https://github.com/streamich/react-use/compare/v4.5.0...v4.6.0) (2018-10-30)
|
---|
2035 |
|
---|
2036 |
|
---|
2037 | ### Features
|
---|
2038 |
|
---|
2039 | * ๐ธ implement useLocalStorage without events ([d211722](https://github.com/streamich/react-use/commit/d211722))
|
---|
2040 |
|
---|
2041 | # [4.5.0](https://github.com/streamich/react-use/compare/v4.4.0...v4.5.0) (2018-10-29)
|
---|
2042 |
|
---|
2043 |
|
---|
2044 | ### Features
|
---|
2045 |
|
---|
2046 | * ๐ธ add useAdopt hook ([91bee9a](https://github.com/streamich/react-use/commit/91bee9a))
|
---|
2047 | * ๐ธ add useRenderProp hook ([2d85c61](https://github.com/streamich/react-use/commit/2d85c61))
|
---|
2048 |
|
---|
2049 | # [4.4.0](https://github.com/streamich/react-use/compare/v4.3.0...v4.4.0) (2018-10-29)
|
---|
2050 |
|
---|
2051 |
|
---|
2052 | ### Features
|
---|
2053 |
|
---|
2054 | * ๐ธ add useCallbag hook ([ead142c](https://github.com/streamich/react-use/commit/ead142c))
|
---|
2055 |
|
---|
2056 | # [4.3.0](https://github.com/streamich/react-use/compare/v4.2.0...v4.3.0) (2018-10-29)
|
---|
2057 |
|
---|
2058 |
|
---|
2059 | ### Features
|
---|
2060 |
|
---|
2061 | * ๐ธ add useOutsideClick hook ([90d2c22](https://github.com/streamich/react-use/commit/90d2c22))
|
---|
2062 |
|
---|
2063 | # [4.2.0](https://github.com/streamich/react-use/compare/v4.1.0...v4.2.0) (2018-10-29)
|
---|
2064 |
|
---|
2065 |
|
---|
2066 | ### Features
|
---|
2067 |
|
---|
2068 | * ๐ธ add useVideo hook ([ff05419](https://github.com/streamich/react-use/commit/ff05419))
|
---|
2069 | * ๐ธ allow to pass React <video> el in useVideo and useAudio ([8670c74](https://github.com/streamich/react-use/commit/8670c74))
|
---|
2070 |
|
---|
2071 | # [4.1.0](https://github.com/streamich/react-use/compare/v4.0.0...v4.1.0) (2018-10-29)
|
---|
2072 |
|
---|
2073 |
|
---|
2074 | ### Features
|
---|
2075 |
|
---|
2076 | * ๐ธ add createMemo hook factory ([8730eaa](https://github.com/streamich/react-use/commit/8730eaa))
|
---|
2077 |
|
---|
2078 | # [4.0.0](https://github.com/streamich/react-use/compare/v3.1.0...v4.0.0) (2018-10-29)
|
---|
2079 |
|
---|
2080 |
|
---|
2081 | ### Features
|
---|
2082 |
|
---|
2083 | * ๐ธ add useNumber alias ([a58a4a7](https://github.com/streamich/react-use/commit/a58a4a7))
|
---|
2084 | * ๐ธ improve useCounter interface ([395e82b](https://github.com/streamich/react-use/commit/395e82b))
|
---|
2085 |
|
---|
2086 |
|
---|
2087 | ### BREAKING CHANGES
|
---|
2088 |
|
---|
2089 | * useCounter interface changed
|
---|
2090 |
|
---|
2091 | # [3.1.0](https://github.com/streamich/react-use/compare/v3.0.0...v3.1.0) (2018-10-29)
|
---|
2092 |
|
---|
2093 |
|
---|
2094 | ### Features
|
---|
2095 |
|
---|
2096 | * ๐ธ add useGetSetState ([dcd1013](https://github.com/streamich/react-use/commit/dcd1013))
|
---|
2097 |
|
---|
2098 |
|
---|
2099 | ### Performance Improvements
|
---|
2100 |
|
---|
2101 | * โก๏ธ wrape useGetSetState callbacks in useCallback ([3c1e57d](https://github.com/streamich/react-use/commit/3c1e57d))
|
---|
2102 |
|
---|
2103 | # [3.0.0](https://github.com/streamich/react-use/compare/v2.3.0...v3.0.0) (2018-10-29)
|
---|
2104 |
|
---|
2105 |
|
---|
2106 | ### Features
|
---|
2107 |
|
---|
2108 | * ๐ธ accept any value type in useToggle and cast it to bool ([869f767](https://github.com/streamich/react-use/commit/869f767))
|
---|
2109 |
|
---|
2110 |
|
---|
2111 | ### BREAKING CHANGES
|
---|
2112 |
|
---|
2113 | * now useToggle and useBoolean accept any value type and cast it to
|
---|
2114 | boolean.
|
---|
2115 |
|
---|
2116 | # [2.3.0](https://github.com/streamich/react-use/compare/v2.2.0...v2.3.0) (2018-10-29)
|
---|
2117 |
|
---|
2118 |
|
---|
2119 | ### Features
|
---|
2120 |
|
---|
2121 | * ๐ธ add useBoolean hook ([ce6de24](https://github.com/streamich/react-use/commit/ce6de24))
|
---|
2122 |
|
---|
2123 | # [2.2.0](https://github.com/streamich/react-use/compare/v2.1.0...v2.2.0) (2018-10-29)
|
---|
2124 |
|
---|
2125 |
|
---|
2126 | ### Features
|
---|
2127 |
|
---|
2128 | * ๐ธ add useGetSet hook ([bfc30b9](https://github.com/streamich/react-use/commit/bfc30b9))
|
---|
2129 | * ๐ธ add useUpdate hook ([c00f308](https://github.com/streamich/react-use/commit/c00f308))
|
---|
2130 |
|
---|
2131 | # [2.1.0](https://github.com/streamich/react-use.git/compare/v2.0.0...v2.1.0) (2018-10-28)
|
---|
2132 |
|
---|
2133 |
|
---|
2134 | ### Features
|
---|
2135 |
|
---|
2136 | * ๐ธ add useObservable ([711e831](https://github.com/streamich/react-use.git/commit/711e831))
|
---|
2137 |
|
---|
2138 | # [2.0.0](https://github.com/streamich/react-use.git/compare/v1.0.0...v2.0.0) (2018-10-28)
|
---|
2139 |
|
---|
2140 |
|
---|
2141 | ### Features
|
---|
2142 |
|
---|
2143 | * ๐ธ change API for useToggle hook ([#16](https://github.com/streamich/react-use.git/issues/16)) ([5a6da18](https://github.com/streamich/react-use.git/commit/5a6da18))
|
---|
2144 |
|
---|
2145 |
|
---|
2146 | ### BREAKING CHANGES
|
---|
2147 |
|
---|
2148 | * useToggle interface changed
|
---|
2149 |
|
---|
2150 | # 1.0.0 (2018-10-28)
|
---|
2151 |
|
---|
2152 |
|
---|
2153 | ### chore
|
---|
2154 |
|
---|
2155 | * ๐ค release v1 ([4236cf0](https://github.com/streamich/react-use.git/commit/4236cf0))
|
---|
2156 |
|
---|
2157 |
|
---|
2158 | ### Continuous Integration
|
---|
2159 |
|
---|
2160 | * ๐ก store CircleCI artifacts, add git-cz ([690dd5e](https://github.com/streamich/react-use.git/commit/690dd5e))
|
---|
2161 |
|
---|
2162 |
|
---|
2163 | ### Features
|
---|
2164 |
|
---|
2165 | * ๐ธ add useAsync hook ([258d696](https://github.com/streamich/react-use.git/commit/258d696))
|
---|
2166 | * ๐ธ add useAudio hook ([4336aa1](https://github.com/streamich/react-use.git/commit/4336aa1))
|
---|
2167 | * ๐ธ add useBattery hook ([73ce535](https://github.com/streamich/react-use.git/commit/73ce535))
|
---|
2168 | * ๐ธ add useCounter hook ([79e5b8c](https://github.com/streamich/react-use.git/commit/79e5b8c))
|
---|
2169 | * ๐ธ add useCss hook ([2c0a7e4](https://github.com/streamich/react-use.git/commit/2c0a7e4))
|
---|
2170 | * ๐ธ add useFavicon hook ([ab1739a](https://github.com/streamich/react-use.git/commit/ab1739a))
|
---|
2171 | * ๐ธ add useGeolocation hook ([13a7326](https://github.com/streamich/react-use.git/commit/13a7326))
|
---|
2172 | * ๐ธ add useHover hook ([406af20](https://github.com/streamich/react-use.git/commit/406af20))
|
---|
2173 | * ๐ธ add useIdle hook ([74d3ece](https://github.com/streamich/react-use.git/commit/74d3ece))
|
---|
2174 | * ๐ธ add useLifecycles hook ([f99c89f](https://github.com/streamich/react-use.git/commit/f99c89f))
|
---|
2175 | * ๐ธ add useList hook ([4bea508](https://github.com/streamich/react-use.git/commit/4bea508))
|
---|
2176 | * ๐ธ add useLocation hook ([46a8e2c](https://github.com/streamich/react-use.git/commit/46a8e2c))
|
---|
2177 | * ๐ธ add useLogger hook ([7c38b75](https://github.com/streamich/react-use.git/commit/7c38b75))
|
---|
2178 | * ๐ธ add useMap hook ([6509c25](https://github.com/streamich/react-use.git/commit/6509c25))
|
---|
2179 | * ๐ธ add useMedia hook ([e1cc9ab](https://github.com/streamich/react-use.git/commit/e1cc9ab))
|
---|
2180 | * ๐ธ add useMediaDevices hook ([4ea0277](https://github.com/streamich/react-use.git/commit/4ea0277))
|
---|
2181 | * ๐ธ add useMotion hook ([91eb4ea](https://github.com/streamich/react-use.git/commit/91eb4ea))
|
---|
2182 | * ๐ธ add useMount and useUnmount hooks ([63a1444](https://github.com/streamich/react-use.git/commit/63a1444))
|
---|
2183 | * ๐ธ add useNetwork hook ([5881fa6](https://github.com/streamich/react-use.git/commit/5881fa6))
|
---|
2184 | * ๐ธ add useOrientation hook ([c533b97](https://github.com/streamich/react-use.git/commit/c533b97))
|
---|
2185 | * ๐ธ add useRaf hook ([26b2593](https://github.com/streamich/react-use.git/commit/26b2593))
|
---|
2186 | * ๐ธ add useSetState hook ([972541d](https://github.com/streamich/react-use.git/commit/972541d))
|
---|
2187 | * ๐ธ add useSize hook ([620b171](https://github.com/streamich/react-use.git/commit/620b171))
|
---|
2188 | * ๐ธ add useSpeech hook ([3b971a2](https://github.com/streamich/react-use.git/commit/3b971a2))
|
---|
2189 | * ๐ธ add useSprgin hook ([b4fe5b0](https://github.com/streamich/react-use.git/commit/b4fe5b0))
|
---|
2190 | * ๐ธ add useTimeout hook ([86f094e](https://github.com/streamich/react-use.git/commit/86f094e))
|
---|
2191 | * ๐ธ add useTitle hook ([1bff6d8](https://github.com/streamich/react-use.git/commit/1bff6d8))
|
---|
2192 | * ๐ธ add useToggle() hook ([a36dceb](https://github.com/streamich/react-use.git/commit/a36dceb))
|
---|
2193 | * ๐ธ add useTween hook ([877343e](https://github.com/streamich/react-use.git/commit/877343e))
|
---|
2194 | * ๐ธ add useWindowSize() hook ([2c46899](https://github.com/streamich/react-use.git/commit/2c46899))
|
---|
2195 | * ๐ธ do work on useLocaStorage ([2541716](https://github.com/streamich/react-use.git/commit/2541716))
|
---|
2196 | * ๐ธ improve useSize, pass through state to the element ([5b1356a](https://github.com/streamich/react-use.git/commit/5b1356a))
|
---|
2197 |
|
---|
2198 |
|
---|
2199 | ### BREAKING CHANGES
|
---|
2200 |
|
---|
2201 | * make semantic-release bump version
|
---|
2202 | * Released v1.0.0
|
---|