use-synchronized-state 1.0.12 → 1.0.14

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,39 @@
1
+ ## 1.0.13 (Jan 8, 2026)
2
+ - Correct docs
3
+ - Add CHANGELOG.md
4
+
5
+ ## 1.0.12 (Jan 8, 2026)
6
+ - Cleanup the "files" field in package.json
7
+
8
+ ## 1.0.11 (Jan 8, 2026)
9
+ - Mimic the useState hook's behavior when setting the same state (add bailing out)
10
+
11
+ ## 1.0.10 (Jan 8, 2026)
12
+ - Prevent re-renders when setting the same state
13
+
14
+ ## 1.0.8 (Jan 8, 2026)
15
+ - Add an extra keyword
16
+
17
+ ## 1.0.7 (Jan 8, 2026)
18
+ - Improve the packaging
19
+
20
+ ## 1.0.6 (Jan 8, 2026)
21
+ - Cleanup docs
22
+
23
+ ## 1.0.5 (Jan 8, 2026)
24
+ - Fix a bug with the rendering
25
+
26
+ ## 1.0.4 (Jan 7, 2026)
27
+ - Fix docs
28
+
29
+ ## 1.0.3 (Jan 7, 2026)
30
+ - Fix docs
31
+
32
+ ## 1.0.2 (Jan 7, 2026)
33
+ - Add keywords to package.json
34
+
35
+ ## 1.0.1 (Jan 7, 2026)
36
+ - Improve docs
37
+
38
+ ## 1.0.0 (Jan 7, 2026)
39
+ - First version
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  - Removes the cascading update problem
6
6
  - Same API as useState
7
7
  - No extra dependencies
8
- - Written in react with typescript
8
+ - Written in React with Typescript
9
9
  - Typescript support
10
10
  - Small bundle size
11
11
 
@@ -110,7 +110,7 @@ What react docs tell us to do in this case can be found here
110
110
  https://react.dev/learn/you-might-not-need-an-effect#adjusting-some-state-when-a-prop-changes.
111
111
  I have changed the above example to match it. It still rerenders the ChildComponent twice, which still causes a
112
112
  performance penalty, is hard to reason about and works only for states defined in the same component
113
- (if syncSate was a prop, it wouldn't work).
113
+ (if syncState was a prop, it wouldn't work).
114
114
 
115
115
  ```typescript
116
116
  function ChildComponent({ parentState }: { parentState: number }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "use-synchronized-state",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "A React hook that creates a synchronized state with a reactive value in react (fixing the Cascading updates issue)",
5
5
  "homepage": "https://github.com/rhorge/use-safe-context#readme",
6
6
  "bugs": {
@@ -67,7 +67,8 @@
67
67
  "typescript": "^3.8.3"
68
68
  },
69
69
  "files": [
70
- "/dist/*"
70
+ "/dist/*",
71
+ "CHANGELOG.md"
71
72
  ],
72
73
  "keywords": [
73
74
  "react",