synstate-preact-hooks 3.1.1 → 3.2.1

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 (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +10 -10
package/README.md CHANGED
@@ -4,6 +4,8 @@ synstate-preact-hooks re-exports all exports from synstate except for `createSta
4
4
 
5
5
  The first element of the array returned by the `createState<T>` function provided by synstate-preact-hooks is changed from `InitializedObservable<T>` to a Preact 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-preact-hooks",
3
- "version": "3.1.1",
3
+ "version": "3.2.1",
4
4
  "description": "Type-safe State Management Library for TypeScript/JavaScript",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,19 +28,19 @@
28
28
  "LICENSE"
29
29
  ],
30
30
  "dependencies": {
31
- "synstate": "3.1.0",
31
+ "synstate": "3.2.1",
32
32
  "ts-data-forge": "^14.7.1",
33
33
  "ts-type-forge": "^9.2.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@sumi-lang/cli": "0.0.5",
37
37
  "@testing-library/preact": "3.2.4",
38
- "@vitest/browser-playwright": "5.0.2",
39
- "eslint-config-typed": "5.17.0",
40
- "eslint-plugin-ts-data-forge": "0.8.3",
41
- "eslint-plugin-ts-fortress": "1.3.0",
42
- "eslint-plugin-ts-type-forge": "0.8.5",
43
- "playwright": "1.63.0",
38
+ "@vitest/browser-playwright": "5.0.3",
39
+ "eslint-config-typed": "5.17.4",
40
+ "eslint-plugin-ts-data-forge": "0.8.6",
41
+ "eslint-plugin-ts-fortress": "1.3.3",
42
+ "eslint-plugin-ts-type-forge": "0.8.8",
43
+ "playwright": "1.64.0",
44
44
  "preact": "10.29.8",
45
45
  "prettier": "3.9.9",
46
46
  "prettier-plugin-organize-imports": "4.3.0",
@@ -61,7 +61,7 @@
61
61
  "scripts": {
62
62
  "build": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/build.mts",
63
63
  "check:ext": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ./scripts/cmd/check-ext.mts",
64
- "check:lint": "eslint .",
64
+ "check:lint": "oxlint . && eslint .",
65
65
  "check:sumi": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../languages/sumi/cli/src/cmd/sumi.mts check ./tsconfig.sumi.json",
66
66
  "check:test": "pnpm run z:vitest:node run",
67
67
  "check:test:browser": "pnpm run z:vitest --project='Browser' run",
@@ -73,7 +73,7 @@
73
73
  "fix:fmt": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-repo-utils/src/cmd/format-uncommitted.mts --cwd .",
74
74
  "fix:fmt:diff": "tsx --tsconfig ../../tools/configs/tsconfig.tsx.json ../../libs/ts-repo-utils/src/cmd/format-diff-from.mts origin/main --cwd .",
75
75
  "fix:fmt:full": "pnpm run z:prettier .",
76
- "fix:lint": "eslint . --fix",
76
+ "fix:lint": "oxlint . --fix && eslint . --fix",
77
77
  "fmt": "pnpm run fix:fmt",
78
78
  "gen": "run-s gen:index gen:re-export gen:readme gen:jsdoc",
79
79
  "gen:index": "run-s gen:index:src fix:fmt",