dantian 0.0.2-beta.7 → 0.0.2-beta.9

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.
@@ -5,7 +5,9 @@ export declare function createEventStore<T extends object>(initialState: T, opti
5
5
  hydrator?: () => Promise<T>;
6
6
  persist?: (state: T) => Promise<void>;
7
7
  }): {
8
- useStoreValue: <K extends PropertyPath<T>>(type: K) => [GetValueType<T, K>, (payload: GetValueType<T, K>) => void];
8
+ useStoreValue: <K extends PropertyPath<T>>(type: K, options?: {
9
+ disableCache?: boolean;
10
+ }) => [GetValueType<T, K>, (payload: GetValueType<T, K>) => void];
9
11
  useHydrateStore: () => (payload: T) => void;
10
12
  useIsHydrated: () => boolean;
11
13
  publish: <TType extends PropertyPath<T>, TPayload extends GetValueType<T, TType>>(type: TType, payload: TPayload) => void;
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "dantian",
3
- "version": "0.0.2-beta.7",
3
+ "license": "MIT",
4
+ "version": "0.0.2-beta.9",
4
5
  "type": "module",
5
6
  "main": "./dist/dantian.cjs",
6
7
  "module": "./dist/dantian.js",
7
8
  "types": "./dist/index.d.ts",
8
9
  "files": [
9
- "dist"
10
+ "dist",
11
+ "LICENSE",
12
+ "README.md",
13
+ "CHANGELOG.md"
10
14
  ],
11
15
  "scripts": {
12
16
  "dev": "vite",