synstate-react-hooks 3.1.1 → 3.2.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.
- package/README.md +2 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ synstate-react-hooks re-exports all exports from synstate except for `createStat
|
|
|
4
4
|
|
|
5
5
|
The first element of the array returned by the `createState<T>` function provided by synstate-react-hooks is changed from `InitializedObservable<T>` to a React hook `() => T`, and the `InitializedObservable<T>` has been moved to the `state` property in the object at index 2.
|
|
6
6
|
|
|
7
|
+
Their options, such as `equals` (the second argument of `createState` and `createBooleanState`, the third of `createReducer`), are passed to synstate as they are.
|
|
8
|
+
|
|
7
9
|
## Installation
|
|
8
10
|
|
|
9
11
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "synstate-react-hooks",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Type-safe State Management Library for TypeScript/JavaScript",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"LICENSE"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"synstate": "3.
|
|
31
|
+
"synstate": "3.2.0",
|
|
32
32
|
"ts-data-forge": "^14.7.1",
|
|
33
33
|
"ts-type-forge": "^9.2.2"
|
|
34
34
|
},
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"@testing-library/react": "16.3.3",
|
|
39
39
|
"@types/react": "19.3.0",
|
|
40
40
|
"@types/react-dom": "19.3.0",
|
|
41
|
-
"@vitest/browser-playwright": "5.0.
|
|
42
|
-
"eslint-config-typed": "5.17.
|
|
43
|
-
"eslint-plugin-ts-data-forge": "0.8.
|
|
44
|
-
"eslint-plugin-ts-fortress": "1.3.
|
|
45
|
-
"eslint-plugin-ts-type-forge": "0.8.
|
|
41
|
+
"@vitest/browser-playwright": "5.0.3",
|
|
42
|
+
"eslint-config-typed": "5.17.1",
|
|
43
|
+
"eslint-plugin-ts-data-forge": "0.8.4",
|
|
44
|
+
"eslint-plugin-ts-fortress": "1.3.1",
|
|
45
|
+
"eslint-plugin-ts-type-forge": "0.8.6",
|
|
46
46
|
"playwright": "1.63.0",
|
|
47
47
|
"prettier": "3.9.9",
|
|
48
48
|
"prettier-plugin-organize-imports": "4.3.0",
|