extra-react-hooks 0.6.2 → 0.6.4

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