synstate-preact-hooks 1.0.0 → 1.0.2
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type InitializedObservable } from 'synstate';
|
|
2
|
+
import { type Reducer } from 'ts-type-forge';
|
|
2
3
|
export declare const createReducer: <S, A>(reducer: Reducer<S, A>, initialState: S) => readonly [useCurrentValue: () => S, dispatch: (action: A) => S, Readonly<{
|
|
3
4
|
state: InitializedObservable<S>;
|
|
4
5
|
getSnapshot: () => S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-reducer.d.mts","sourceRoot":"","sources":["../src/create-reducer.mts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"create-reducer.d.mts","sourceRoot":"","sources":["../src/create-reducer.mts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,CAAC,EAChC,SAAS,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EACtB,cAAc,CAAC,KACd,SAAS,CACV,eAAe,EAAE,MAAM,CAAC,EACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAC1B,QAAQ,CAAC;IACP,KAAK,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC,CAAC;IACrB,YAAY,EAAE,CAAC,CAAC;CACjB,CAAC,CAUH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-reducer.mjs","sources":["../src/create-reducer.mts"],"sourcesContent":[null],"names":["createReducerBase"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"create-reducer.mjs","sources":["../src/create-reducer.mts"],"sourcesContent":[null],"names":["createReducerBase"],"mappings":";;;MAOa,aAAa,GAAG,CAC3B,OAAsB,EACtB,YAAe,KASb;AACF,IAAA,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,CAAC,GAAGA,eAAiB,CAC1D,OAAO,EACP,YAAY,CACb;IAED,MAAM,eAAe,GAAG,MAAS,kBAAkB,CAAC,KAAK,CAAC;AAE1D,IAAA,OAAO,CAAC,eAAe,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;AAC1E;;;;"}
|
package/dist/types.d.mts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './entry-point.mjs';
|
|
1
|
+
export * from './entry-point.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "synstate-preact-hooks",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Type-safe State Management Library for TypeScript/JavaScript",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,13 +27,14 @@
|
|
|
27
27
|
"LICENSE"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"ts-data-forge": "^6.
|
|
31
|
-
"
|
|
30
|
+
"ts-data-forge": "^6.9.6",
|
|
31
|
+
"ts-type-forge": "^3.1.0",
|
|
32
|
+
"synstate": "1.0.2"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
|
-
"@types/argparse": "
|
|
35
|
-
"argparse": "
|
|
36
|
-
"preact": "
|
|
35
|
+
"@types/argparse": "2.0.17",
|
|
36
|
+
"argparse": "2.0.1",
|
|
37
|
+
"preact": "10.29.1"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
40
|
"preact": ">=10.0.0"
|
|
@@ -47,7 +48,8 @@
|
|
|
47
48
|
"doc": "run-s doc:embed doc:embed:jsdoc",
|
|
48
49
|
"doc:embed": "tsx ./scripts/cmd/embed-examples.mts",
|
|
49
50
|
"doc:embed:jsdoc": "tsx ./scripts/cmd/embed-examples-in-jsdoc.mts",
|
|
50
|
-
"fmt": "format-uncommitted",
|
|
51
|
+
"fmt": "format-uncommitted --cwd .",
|
|
52
|
+
"fmt:diff": "format-diff-from origin/main --cwd .",
|
|
51
53
|
"fmt:full": "pnpm run z:prettier .",
|
|
52
54
|
"gen:re-export": "run-s gen:re-export:script fmt",
|
|
53
55
|
"gen:re-export:script": "tsx ./scripts/cmd/generate-re-export-script.mts",
|
package/src/create-reducer.mts
CHANGED
package/dist/globals.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="ts-type-forge" />
|
package/src/globals.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="ts-type-forge" />
|