orchestore 0.1.7 → 0.1.8
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 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +11 -2
package/README.md
CHANGED
|
@@ -434,9 +434,8 @@ methods: {
|
|
|
434
434
|
|
|
435
435
|
**Rules:**
|
|
436
436
|
|
|
437
|
-
-
|
|
437
|
+
- Names should not contain `"."` or `"/"`, because they are reserved for nested slice paths
|
|
438
438
|
- Two slices cannot share the same name
|
|
439
|
-
- Registering the same slice instance multiple times with the same name is not allowed
|
|
440
439
|
|
|
441
440
|
---
|
|
442
441
|
|
package/dist/index.d.cts
CHANGED
|
@@ -69,7 +69,7 @@ type sliceOptions<S extends Obj, R extends Mutations<S, C>, M, C> = {
|
|
|
69
69
|
children?: C;
|
|
70
70
|
};
|
|
71
71
|
/** Defines the mutations available on a slice. */
|
|
72
|
-
type Mutations<S extends Obj, C> = Dict<(state: SliceState.Draft<S, C>, ...args: any[]) => void | S
|
|
72
|
+
type Mutations<S extends Obj, C> = Dict<(state: SliceState.Draft<S, C>, ...args: any[]) => void | SliceState.Draft<S, C>>;
|
|
73
73
|
/** Derived state shape exposed by a slice, excluding internal framework fields. */
|
|
74
74
|
declare namespace SliceState {
|
|
75
75
|
type InferState<C> = C extends Obj ? (C["getState"] extends () => infer S ? S extends Obj ? S : never : never) : never;
|
package/dist/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ type sliceOptions<S extends Obj, R extends Mutations<S, C>, M, C> = {
|
|
|
69
69
|
children?: C;
|
|
70
70
|
};
|
|
71
71
|
/** Defines the mutations available on a slice. */
|
|
72
|
-
type Mutations<S extends Obj, C> = Dict<(state: SliceState.Draft<S, C>, ...args: any[]) => void | S
|
|
72
|
+
type Mutations<S extends Obj, C> = Dict<(state: SliceState.Draft<S, C>, ...args: any[]) => void | SliceState.Draft<S, C>>;
|
|
73
73
|
/** Derived state shape exposed by a slice, excluding internal framework fields. */
|
|
74
74
|
declare namespace SliceState {
|
|
75
75
|
type InferState<C> = C extends Obj ? (C["getState"] extends () => infer S ? S extends Obj ? S : never : never) : never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orchestore",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "A function-oriented architecture built on top of Redux Toolkit for simplifying and automating application development.",
|
|
5
5
|
"author": "Oussama Saadaoui",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"init": "node scripts/install.mjs",
|
|
13
13
|
"start": "tsup && node scripts/build.mjs",
|
|
14
14
|
"build": "tsup && node scripts/build.mjs",
|
|
15
|
+
"test": "node scripts/test.mjs",
|
|
15
16
|
"deploy": "tsup && node scripts/publish.mjs",
|
|
16
17
|
"check": "tsc --noEmit",
|
|
17
18
|
"lint": "eslint ."
|
|
@@ -69,6 +70,14 @@
|
|
|
69
70
|
"typescript",
|
|
70
71
|
"orchestration",
|
|
71
72
|
"state-management",
|
|
72
|
-
"state-orchestration"
|
|
73
|
+
"state-orchestration",
|
|
74
|
+
"pinia",
|
|
75
|
+
"vuex",
|
|
76
|
+
"react-pinia",
|
|
77
|
+
"react-vuex",
|
|
78
|
+
"redux-pinia",
|
|
79
|
+
"redux-vuex",
|
|
80
|
+
"store-pinia",
|
|
81
|
+
"store-vuex"
|
|
73
82
|
]
|
|
74
83
|
}
|