synstate-react-hooks 3.0.3 → 3.0.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.
- package/README.md +1 -1
- package/package.json +36 -35
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
synstate-react-hooks re-exports all exports from synstate except for `createState`, `createReducer`, and `createBooleanState`, and exports modified versions of those creation functions.
|
|
4
4
|
|
|
5
|
-
The first element of the array returned by the `createState<T>` function provided by synstate-
|
|
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
7
|
## Installation
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "synstate-react-hooks",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "Type-safe State Management Library for TypeScript/JavaScript",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,28 +28,28 @@
|
|
|
28
28
|
"LICENSE"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"synstate": "3.0.
|
|
31
|
+
"synstate": "3.0.5",
|
|
32
32
|
"ts-data-forge": "^14.7.1",
|
|
33
33
|
"ts-type-forge": "^9.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@sumi-lang/cli": "0.0.
|
|
37
|
-
"@testing-library/dom": "10.4.
|
|
36
|
+
"@sumi-lang/cli": "0.0.4",
|
|
37
|
+
"@testing-library/dom": "10.4.2",
|
|
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.
|
|
43
|
-
"eslint-plugin-ts-data-forge": "0.
|
|
44
|
-
"eslint-plugin-ts-fortress": "1.2.
|
|
45
|
-
"eslint-plugin-ts-type-forge": "0.8.
|
|
46
|
-
"playwright": "1.
|
|
47
|
-
"prettier": "3.9.
|
|
41
|
+
"@vitest/browser-playwright": "5.0.1",
|
|
42
|
+
"eslint-config-typed": "5.15.0",
|
|
43
|
+
"eslint-plugin-ts-data-forge": "0.8.1",
|
|
44
|
+
"eslint-plugin-ts-fortress": "1.2.3",
|
|
45
|
+
"eslint-plugin-ts-type-forge": "0.8.4",
|
|
46
|
+
"playwright": "1.63.0",
|
|
47
|
+
"prettier": "3.9.8",
|
|
48
48
|
"prettier-plugin-organize-imports": "4.3.0",
|
|
49
49
|
"prettier-plugin-packagejson": "3.0.2",
|
|
50
|
-
"react": "19.
|
|
51
|
-
"react-dom": "19.
|
|
52
|
-
"ts-repo-utils": "10.
|
|
50
|
+
"react": "19.3.0",
|
|
51
|
+
"react-dom": "19.3.0",
|
|
52
|
+
"ts-repo-utils": "10.7.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"react": ">=18.0.0"
|
|
@@ -64,32 +64,33 @@
|
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/build.mts",
|
|
67
|
-
"build:min": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/build.mts --skip-check",
|
|
68
67
|
"check:ext": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/check-ext.mts",
|
|
68
|
+
"check:lint": "eslint .",
|
|
69
|
+
"check:sumi": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../languages/sumi/cli/src/cmd/sumi.mts check ./tsconfig.sumi.json",
|
|
70
|
+
"check:test": "pnpm run z:vitest:node run",
|
|
71
|
+
"check:test:browser": "pnpm run z:vitest --project='Browser' run",
|
|
72
|
+
"check:test:cov": "pnpm run z:vitest run --coverage",
|
|
73
|
+
"check:types": "node ../../node_modules/typescript-native/bin/tsc --noEmit",
|
|
69
74
|
"check-all": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/check-all.mts",
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"fmt": "
|
|
75
|
-
"
|
|
76
|
-
"fmt
|
|
77
|
-
"gen
|
|
75
|
+
"doc": "run-s gen:readme gen:jsdoc fix:fmt",
|
|
76
|
+
"fix:codemod": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-codemod-cli/src/cmd/ts-codemod.mts --transformer convert-to-readonly '{src,samples,test}/**/*.{mts,tsx}'",
|
|
77
|
+
"fix:fmt": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-repo-utils/src/cmd/format-uncommitted.mts --cwd .",
|
|
78
|
+
"fix:fmt:diff": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-repo-utils/src/cmd/format-diff-from.mts origin/main --cwd .",
|
|
79
|
+
"fix:fmt:full": "pnpm run z:prettier .",
|
|
80
|
+
"fix:lint": "eslint . --fix",
|
|
81
|
+
"fmt": "pnpm run fix:fmt",
|
|
82
|
+
"gen": "run-s gen:index gen:re-export gen:readme gen:jsdoc",
|
|
83
|
+
"gen:index": "run-s gen:index:src fix:fmt",
|
|
84
|
+
"gen:index:src": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-repo-utils/src/cmd/gen-index-ts.mts ./src --index-ext .mts --export-ext .mjs --target-ext .mts --target-ext .tsx --exclude entry-point.mts",
|
|
85
|
+
"gen:jsdoc": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/embed-examples-in-jsdoc.mts",
|
|
86
|
+
"gen:re-export": "run-s gen:re-export:script fix:fmt",
|
|
78
87
|
"gen:re-export:script": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/generate-re-export-script.mts",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"lint": "eslint .",
|
|
82
|
-
"lint:fix": "eslint . --fix",
|
|
83
|
-
"sumi:check": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../languages/sumi/cli/src/cmd/sumi.mts check ./tsconfig.sumi.json",
|
|
84
|
-
"test": "pnpm run z:vitest:node run",
|
|
85
|
-
"test:browser": "pnpm run z:vitest --project='Browser' run",
|
|
86
|
-
"test:cov": "pnpm run z:vitest run --coverage",
|
|
88
|
+
"gen:readme": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/embed-examples.mts",
|
|
89
|
+
"test": "pnpm run check:test",
|
|
87
90
|
"test:cov:ui": "vite preview --outDir ./coverage",
|
|
88
91
|
"test:ui": "pnpm run z:vitest:node --ui",
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"tscw": "node ../../node_modules/typescript-native/bin/tsc --noEmit --watch",
|
|
92
|
-
"type-check": "node ../../node_modules/typescript-native/bin/tsc --noEmit",
|
|
92
|
+
"watch:test": "pnpm run z:vitest:node watch",
|
|
93
|
+
"watch:types": "node ../../node_modules/typescript-native/bin/tsc --noEmit --watch",
|
|
93
94
|
"z:prettier": "prettier --config ../../.prettierrc --ignore-path ../../.prettierignore --ignore-path ../../.gitignore --ignore-unknown --no-error-on-unmatched-pattern --write",
|
|
94
95
|
"z:vitest": "vitest --config ./configs/vitest.config.mts",
|
|
95
96
|
"z:vitest:node": "pnpm run z:vitest --project='Node.js'"
|