@fringeworks/react-utils 0.9.2 → 0.10.0

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 (55) hide show
  1. package/README.ja.md +110 -10
  2. package/README.md +110 -10
  3. package/_helpers/_useExecutionHandler.cjs +37 -0
  4. package/_helpers/_useExecutionHandler.d.cts +18 -0
  5. package/_helpers/_useExecutionHandler.d.mts +18 -0
  6. package/_helpers/_useExecutionHandler.mjs +36 -0
  7. package/hooks/index.cjs +17 -2
  8. package/hooks/index.d.cts +8 -3
  9. package/hooks/index.d.mts +8 -3
  10. package/hooks/index.mjs +13 -3
  11. package/hooks/useExecutionEffect/index.cjs +5 -0
  12. package/hooks/useExecutionEffect/index.d.cts +2 -0
  13. package/hooks/useExecutionEffect/index.d.mts +2 -0
  14. package/hooks/useExecutionEffect/index.mjs +3 -0
  15. package/hooks/useExecutionEffect/useExecutionEffect.cjs +37 -0
  16. package/hooks/useExecutionEffect/useExecutionEffect.d.cts +27 -0
  17. package/hooks/useExecutionEffect/useExecutionEffect.d.mts +27 -0
  18. package/hooks/useExecutionEffect/useExecutionEffect.mjs +36 -0
  19. package/hooks/useExecutionLayoutEffect/index.cjs +5 -0
  20. package/hooks/useExecutionLayoutEffect/index.d.cts +2 -0
  21. package/hooks/useExecutionLayoutEffect/index.d.mts +2 -0
  22. package/hooks/useExecutionLayoutEffect/index.mjs +3 -0
  23. package/hooks/useExecutionLayoutEffect/useExecutionLayoutEffect.cjs +24 -0
  24. package/hooks/useExecutionLayoutEffect/useExecutionLayoutEffect.d.cts +14 -0
  25. package/hooks/useExecutionLayoutEffect/useExecutionLayoutEffect.d.mts +14 -0
  26. package/hooks/useExecutionLayoutEffect/useExecutionLayoutEffect.mjs +23 -0
  27. package/hooks/useIsHydrated/index.cjs +5 -0
  28. package/hooks/useIsHydrated/index.d.cts +2 -0
  29. package/hooks/useIsHydrated/index.d.mts +2 -0
  30. package/hooks/useIsHydrated/index.mjs +3 -0
  31. package/hooks/useIsHydrated/useIsHydrated.cjs +28 -0
  32. package/hooks/useIsHydrated/useIsHydrated.d.cts +15 -0
  33. package/hooks/useIsHydrated/useIsHydrated.d.mts +15 -0
  34. package/hooks/useIsHydrated/useIsHydrated.mjs +27 -0
  35. package/hooks/useRerender/index.cjs +5 -0
  36. package/hooks/useRerender/index.d.cts +2 -0
  37. package/hooks/useRerender/index.d.mts +2 -0
  38. package/hooks/useRerender/index.mjs +3 -0
  39. package/hooks/useRerender/useRerender.cjs +19 -0
  40. package/hooks/useRerender/useRerender.d.cts +11 -0
  41. package/hooks/useRerender/useRerender.d.mts +11 -0
  42. package/hooks/useRerender/useRerender.mjs +18 -0
  43. package/hooks/useStableCallback/index.cjs +5 -0
  44. package/hooks/useStableCallback/index.d.cts +2 -0
  45. package/hooks/useStableCallback/index.d.mts +2 -0
  46. package/hooks/useStableCallback/index.mjs +3 -0
  47. package/hooks/useStableCallback/useStableCallback.cjs +25 -0
  48. package/hooks/useStableCallback/useStableCallback.d.cts +15 -0
  49. package/hooks/useStableCallback/useStableCallback.d.mts +15 -0
  50. package/hooks/useStableCallback/useStableCallback.mjs +24 -0
  51. package/index.cjs +11 -1
  52. package/index.d.cts +8 -3
  53. package/index.d.mts +8 -3
  54. package/index.mjs +7 -2
  55. package/package.json +51 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fringeworks/react-utils",
3
- "version": "0.9.2",
3
+ "version": "0.10.0",
4
4
  "description": "A library some will find handy, providing utilities for React.",
5
5
  "keywords": [
6
6
  "react"
@@ -64,6 +64,36 @@
64
64
  "default": "./hooks/useExecutionAt/index.cjs"
65
65
  }
66
66
  },
67
+ "./hooks/useExecutionEffect": {
68
+ "import": {
69
+ "types": "./hooks/useExecutionEffect/index.d.mts",
70
+ "default": "./hooks/useExecutionEffect/index.mjs"
71
+ },
72
+ "require": {
73
+ "types": "./hooks/useExecutionEffect/index.d.cts",
74
+ "default": "./hooks/useExecutionEffect/index.cjs"
75
+ }
76
+ },
77
+ "./hooks/useExecutionLayoutEffect": {
78
+ "import": {
79
+ "types": "./hooks/useExecutionLayoutEffect/index.d.mts",
80
+ "default": "./hooks/useExecutionLayoutEffect/index.mjs"
81
+ },
82
+ "require": {
83
+ "types": "./hooks/useExecutionLayoutEffect/index.d.cts",
84
+ "default": "./hooks/useExecutionLayoutEffect/index.cjs"
85
+ }
86
+ },
87
+ "./hooks/useIsHydrated": {
88
+ "import": {
89
+ "types": "./hooks/useIsHydrated/index.d.mts",
90
+ "default": "./hooks/useIsHydrated/index.mjs"
91
+ },
92
+ "require": {
93
+ "types": "./hooks/useIsHydrated/index.d.cts",
94
+ "default": "./hooks/useIsHydrated/index.cjs"
95
+ }
96
+ },
67
97
  "./hooks/useIsMounted": {
68
98
  "import": {
69
99
  "types": "./hooks/useIsMounted/index.d.mts",
@@ -94,6 +124,26 @@
94
124
  "default": "./hooks/usePreviousValue/index.cjs"
95
125
  }
96
126
  },
127
+ "./hooks/useRerender": {
128
+ "import": {
129
+ "types": "./hooks/useRerender/index.d.mts",
130
+ "default": "./hooks/useRerender/index.mjs"
131
+ },
132
+ "require": {
133
+ "types": "./hooks/useRerender/index.d.cts",
134
+ "default": "./hooks/useRerender/index.cjs"
135
+ }
136
+ },
137
+ "./hooks/useStableCallback": {
138
+ "import": {
139
+ "types": "./hooks/useStableCallback/index.d.mts",
140
+ "default": "./hooks/useStableCallback/index.mjs"
141
+ },
142
+ "require": {
143
+ "types": "./hooks/useStableCallback/index.d.cts",
144
+ "default": "./hooks/useStableCallback/index.cjs"
145
+ }
146
+ },
97
147
  "./hooks/useStableLength": {
98
148
  "import": {
99
149
  "types": "./hooks/useStableLength/index.d.mts",