extra-react-hooks 0.6.3 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +16 -0
  2. package/lib/index.d.ts +22 -21
  3. package/lib/index.js +22 -21
  4. package/lib/index.js.map +1 -1
  5. package/lib/types.d.ts +3 -3
  6. package/lib/types.js +1 -1
  7. package/lib/use-callback-async.d.ts +2 -2
  8. package/lib/use-callback-async.js +19 -19
  9. package/lib/use-effect-async.d.ts +2 -2
  10. package/lib/use-effect-async.js +19 -19
  11. package/lib/use-finite-state-machine.d.ts +3 -3
  12. package/lib/use-finite-state-machine.js +13 -13
  13. package/lib/use-force-update.d.ts +1 -1
  14. package/lib/use-force-update.js +8 -8
  15. package/lib/use-get-set.d.ts +1 -1
  16. package/lib/use-get-set.js +15 -15
  17. package/lib/use-iife.d.ts +2 -2
  18. package/lib/use-iife.js +20 -20
  19. package/lib/use-increment.d.ts +1 -1
  20. package/lib/use-increment.js +11 -11
  21. package/lib/use-intersection-observer.d.ts +3 -0
  22. package/lib/use-intersection-observer.js +33 -0
  23. package/lib/use-intersection-observer.js.map +1 -0
  24. package/lib/use-is-first-render.d.ts +1 -1
  25. package/lib/use-is-first-render.js +23 -23
  26. package/lib/use-is-mounted.d.ts +1 -1
  27. package/lib/use-is-mounted.js +15 -15
  28. package/lib/use-memo-with-cleanup.d.ts +2 -2
  29. package/lib/use-memo-with-cleanup.js +8 -8
  30. package/lib/use-mount-async.d.ts +1 -1
  31. package/lib/use-mount-async.js +4 -4
  32. package/lib/use-mount.d.ts +2 -2
  33. package/lib/use-mount.js +4 -4
  34. package/lib/use-multiple-selection.d.ts +9 -9
  35. package/lib/use-multiple-selection.js +49 -49
  36. package/lib/use-render-counter.d.ts +1 -1
  37. package/lib/use-render-counter.js +6 -6
  38. package/lib/use-resize-observer.d.ts +2 -2
  39. package/lib/use-resize-observer.js +12 -13
  40. package/lib/use-resize-observer.js.map +1 -1
  41. package/lib/use-single-selection.d.ts +7 -7
  42. package/lib/use-single-selection.js +22 -22
  43. package/lib/use-state-cycle.d.ts +2 -2
  44. package/lib/use-state-cycle.js +15 -15
  45. package/lib/use-step.d.ts +2 -2
  46. package/lib/use-step.js +25 -25
  47. package/lib/use-toggle.d.ts +1 -1
  48. package/lib/use-toggle.js +8 -8
  49. package/lib/use-unmount.d.ts +1 -1
  50. package/lib/use-unmount.js +4 -4
  51. package/lib/use-update-effect.d.ts +2 -2
  52. package/lib/use-update-effect.js +10 -10
  53. package/package.json +1 -1
  54. package/src/index.ts +1 -0
  55. package/src/use-intersection-observer.ts +66 -0
  56. package/src/use-resize-observer.ts +1 -2
  57. package/CHANGELOG.md +0 -234
package/CHANGELOG.md DELETED
@@ -1,234 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ### [0.6.3](https://github.com/BlackGlory/extra-react-hooks/compare/v0.6.2...v0.6.3) (2023-06-13)
6
-
7
-
8
- ### Features
9
-
10
- * add `useMemoWithCleanup`, `useGetSet` ([9ed180b](https://github.com/BlackGlory/extra-react-hooks/commit/9ed180be34e193371ea6c2beb3adcf2e6ce6356c))
11
-
12
- ### [0.6.2](https://github.com/BlackGlory/extra-react-hooks/compare/v0.6.1...v0.6.2) (2023-06-13)
13
-
14
-
15
- ### Bug Fixes
16
-
17
- * **useCallbackAsync:** replace useEffect with useLayoutEffect ([8f8f5f5](https://github.com/BlackGlory/extra-react-hooks/commit/8f8f5f511444bd30132e9eadb781a1a72ccbacb3))
18
-
19
- ### [0.6.1](https://github.com/BlackGlory/extra-react-hooks/compare/v0.6.0...v0.6.1) (2023-06-13)
20
-
21
-
22
- ### Bug Fixes
23
-
24
- * **useCallbackAsync:** deps ([3a13d8f](https://github.com/BlackGlory/extra-react-hooks/commit/3a13d8f86c51c52fd6af65da61734608487f595d))
25
-
26
- ## [0.6.0](https://github.com/BlackGlory/extra-react-hooks/compare/v0.5.4...v0.6.0) (2023-06-12)
27
-
28
-
29
- ### ⚠ BREAKING CHANGES
30
-
31
- * Removed React v16 support
32
-
33
- * remove React v16 support ([919613e](https://github.com/BlackGlory/extra-react-hooks/commit/919613e08b8c89803b2063e33444f8c21d328198))
34
-
35
- ### [0.5.4](https://github.com/BlackGlory/extra-react-hooks/compare/v0.5.3...v0.5.4) (2023-06-12)
36
-
37
-
38
- ### Bug Fixes
39
-
40
- * deps for React 18 ([4b98acd](https://github.com/BlackGlory/extra-react-hooks/commit/4b98acd9fee6bca2ae448e6628bf6c016c8ce994))
41
-
42
- ### [0.5.3](https://github.com/BlackGlory/extra-react-hooks/compare/v0.5.2...v0.5.3) (2023-06-10)
43
-
44
-
45
- ### Bug Fixes
46
-
47
- * export src ([d8d24e3](https://github.com/BlackGlory/extra-react-hooks/commit/d8d24e3fadea11e266c6276dc4cd7cf3a90910b8))
48
-
49
- ### [0.5.2](https://github.com/BlackGlory/extra-react-hooks/compare/v0.5.1...v0.5.2) (2023-04-17)
50
-
51
-
52
- ### Features
53
-
54
- * add `useMountAsync` ([90f43bd](https://github.com/BlackGlory/extra-react-hooks/commit/90f43bd05005f6f80653405e209c3ccfb96265d9))
55
-
56
- ### [0.5.1](https://github.com/BlackGlory/extra-react-hooks/compare/v0.5.0...v0.5.1) (2023-04-16)
57
-
58
-
59
- ### Features
60
-
61
- * add `useEffectAsync`, `useCallbackAsync` ([f01bf2e](https://github.com/BlackGlory/extra-react-hooks/commit/f01bf2ed298ff741806b93a098c842671e9fe492))
62
-
63
- ## [0.5.0](https://github.com/BlackGlory/extra-react-hooks/compare/v0.4.3...v0.5.0) (2023-03-04)
64
-
65
-
66
- ### ⚠ BREAKING CHANGES
67
-
68
- * The minimal version of Node.js is 16
69
-
70
- * upgrade dependencies ([c4f0e97](https://github.com/BlackGlory/extra-react-hooks/commit/c4f0e97c89e752491a4bc2a036946c54c70a8929))
71
-
72
- ### [0.4.3](https://github.com/BlackGlory/extra-react-hooks/compare/v0.4.2...v0.4.3) (2023-01-28)
73
-
74
-
75
- ### Bug Fixes
76
-
77
- * dependencies ([c04a0ac](https://github.com/BlackGlory/extra-react-hooks/commit/c04a0acf76476c37f7dbc52de843df828d333d52))
78
-
79
- ### [0.4.2](https://github.com/BlackGlory/extra-react-hooks/compare/v0.4.1...v0.4.2) (2023-01-22)
80
-
81
- ### [0.4.1](https://github.com/BlackGlory/extra-react-hooks/compare/v0.4.0...v0.4.1) (2023-01-21)
82
-
83
-
84
- ### Bug Fixes
85
-
86
- * exports ([6782f4a](https://github.com/BlackGlory/extra-react-hooks/commit/6782f4a40921a8d5bc0fa4f38fc37b218ba5a989))
87
-
88
- ## [0.4.0](https://github.com/BlackGlory/extra-react-hooks/compare/v0.3.4...v0.4.0) (2023-01-21)
89
-
90
-
91
- ### ⚠ BREAKING CHANGES
92
-
93
- * CommonJS => ESM
94
-
95
- * commonjs => esm, remove es2015 support ([a560890](https://github.com/BlackGlory/extra-react-hooks/commit/a560890e0d48892c37efa1e3e0a474816ecedae4))
96
-
97
- ### [0.3.4](https://github.com/BlackGlory/extra-react-hooks/compare/v0.3.3...v0.3.4) (2023-01-21)
98
-
99
- ### [0.3.3](https://github.com/BlackGlory/extra-react-hooks/compare/v0.3.2...v0.3.3) (2022-10-24)
100
-
101
- ### [0.3.2](https://github.com/BlackGlory/extra-react-hooks/compare/v0.3.1...v0.3.2) (2022-09-24)
102
-
103
- ### [0.3.1](https://github.com/BlackGlory/extra-react-hooks/compare/v0.3.0...v0.3.1) (2022-07-22)
104
-
105
-
106
- ### Bug Fixes
107
-
108
- * toggle ([3075106](https://github.com/BlackGlory/extra-react-hooks/commit/307510652ed2e286d729c12e303231df1aa2bc20))
109
-
110
- ## [0.3.0](https://github.com/BlackGlory/extra-react-hooks/compare/v0.2.1...v0.3.0) (2022-07-22)
111
-
112
-
113
- ### ⚠ BREAKING CHANGES
114
-
115
- * - Rewrite `useSingleSelection`
116
- - Rewrite `useMultipleSelection`
117
-
118
- ### Features
119
-
120
- * add useUnmount, useIIFE ([fb5eb9d](https://github.com/BlackGlory/extra-react-hooks/commit/fb5eb9d181c461c2eeac9f497b7a551482763049))
121
-
122
-
123
- ### Bug Fixes
124
-
125
- * add props into deps ([def8482](https://github.com/BlackGlory/extra-react-hooks/commit/def8482f3d944bd304cf834e89fa5154b0dbb223))
126
-
127
-
128
- * improve hooks ([69932c2](https://github.com/BlackGlory/extra-react-hooks/commit/69932c2d2a420dc04225dcf245a2bbc3fd03f1fd))
129
-
130
- ### [0.2.1](https://github.com/BlackGlory/extra-react-hooks/compare/v0.2.0...v0.2.1) (2022-07-21)
131
-
132
- ## [0.2.0](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.15...v0.2.0) (2022-07-21)
133
-
134
-
135
- ### ⚠ BREAKING CHANGES
136
-
137
- * - The return value of `useSingleSelection`:
138
- - Rename `value` to `selectedValue`
139
- - The return value of `useMultipleSelection`:
140
- - Rename `values` to `selectedValues`
141
-
142
- * rename props of return values ([87e357b](https://github.com/BlackGlory/extra-react-hooks/commit/87e357be9e502cd915b4505979184bf85f2819ba))
143
-
144
- ### [0.1.15](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.14...v0.1.15) (2022-07-21)
145
-
146
-
147
- ### Features
148
-
149
- * add useRenderCounter ([c522357](https://github.com/BlackGlory/extra-react-hooks/commit/c5223571d7e1d83cd49349b8e17c005a898e4b0a))
150
-
151
- ### [0.1.14](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.13...v0.1.14) (2022-07-21)
152
-
153
-
154
- ### Features
155
-
156
- * add useIsFirstRender, useUpdateEffect ([b4f315b](https://github.com/BlackGlory/extra-react-hooks/commit/b4f315bcd8f6fd367bdb8044bade741bbdc8d9b9))
157
-
158
- ### [0.1.13](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.12...v0.1.13) (2022-07-21)
159
-
160
-
161
- ### Features
162
-
163
- * add useMultipleSelection ([2dcfbe6](https://github.com/BlackGlory/extra-react-hooks/commit/2dcfbe65f713bf35915eec967d400c5c44b86e7c))
164
-
165
- ### [0.1.12](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.11...v0.1.12) (2022-06-20)
166
-
167
- ### [0.1.11](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.10...v0.1.11) (2022-03-19)
168
-
169
- ### [0.1.10](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.9...v0.1.10) (2022-01-05)
170
-
171
- ### [0.1.9](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.8...v0.1.9) (2021-12-13)
172
-
173
-
174
- ### Features
175
-
176
- * add useFiniteStateMachine ([e6e8962](https://github.com/BlackGlory/extra-react-hooks/commit/e6e8962724774a8b217a1fd5332c13ba4ee051f7))
177
-
178
- ### [0.1.8](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.7...v0.1.8) (2021-12-13)
179
-
180
-
181
- ### Features
182
-
183
- * add useForceUpdate ([f747227](https://github.com/BlackGlory/extra-react-hooks/commit/f747227c02c5bb2f0a0f1889de1c022bc9ca1e4d))
184
-
185
- ### [0.1.7](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.6...v0.1.7) (2021-12-10)
186
-
187
-
188
- ### Features
189
-
190
- * add useStep ([f404846](https://github.com/BlackGlory/extra-react-hooks/commit/f4048462cc254499d7fd06cd51e16e98acd978ca))
191
-
192
- ### [0.1.6](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.5...v0.1.6) (2021-11-15)
193
-
194
-
195
- ### Features
196
-
197
- * add useResizeObserver ([8a4e317](https://github.com/BlackGlory/extra-react-hooks/commit/8a4e317921387fa26e768796e52c8fe44e9b347e))
198
-
199
- ### [0.1.5](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.4...v0.1.5) (2021-10-04)
200
-
201
-
202
- ### Features
203
-
204
- * add useIncrement ([e5f1fc4](https://github.com/BlackGlory/extra-react-hooks/commit/e5f1fc442a2c69aa490fed873cc21fe4ad9ff76b))
205
-
206
- ### [0.1.4](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.3...v0.1.4) (2021-08-18)
207
-
208
-
209
- ### Features
210
-
211
- * add useIsMounted ([32a1295](https://github.com/BlackGlory/extra-react-hooks/commit/32a12951aab92ae5734f4caddf45021e2bbed793))
212
-
213
- ### [0.1.3](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.2...v0.1.3) (2021-08-18)
214
-
215
-
216
- ### Features
217
-
218
- * add useStateCycle ([a48da21](https://github.com/BlackGlory/extra-react-hooks/commit/a48da211f364688daa63a0bd5406fa2f2c61eba7))
219
-
220
- ### [0.1.2](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.1...v0.1.2) (2021-07-03)
221
-
222
- ### [0.1.1](https://github.com/BlackGlory/extra-react-hooks/compare/v0.1.0...v0.1.1) (2021-06-29)
223
-
224
-
225
- ### Features
226
-
227
- * add useMount ([070045a](https://github.com/BlackGlory/extra-react-hooks/commit/070045ac0f209712eadd0f4e79c1328d20745b04))
228
-
229
- ## 0.1.0 (2021-06-04)
230
-
231
-
232
- ### Features
233
-
234
- * add useToggle, useSingleSelection ([0b9ee92](https://github.com/BlackGlory/extra-react-hooks/commit/0b9ee92597a230989b51b7242f529f0a36590d1f))