floppy-disk 3.2.0-beta.1 → 3.2.0

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/esm/index.d.mts CHANGED
@@ -1 +1 @@
1
- export * from "./vanilla.ts";
1
+ export * from "./vanilla.mjs";
@@ -1,4 +1,4 @@
1
- import { type InitStoreOptions, type SetState } from "../vanilla.ts";
1
+ import { type InitStoreOptions, type SetState } from "../vanilla.mjs";
2
2
  /**
3
3
  * Represents the state of a mutation.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { type InitStoreOptions, type SetState } from "../vanilla.ts";
1
+ import { type InitStoreOptions, type SetState } from "../vanilla.mjs";
2
2
  /**
3
3
  * Represents the state of a query.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { type InitStoreOptions } from "../vanilla.ts";
1
+ import { type InitStoreOptions } from "../vanilla.mjs";
2
2
  /**
3
3
  * Creates a single store with a bound React hook.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { type InitStoreOptions } from "../vanilla.ts";
1
+ import { type InitStoreOptions } from "../vanilla.mjs";
2
2
  /**
3
3
  * Creates a factory for multiple stores identified by a key.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { type MutationOptions, type MutationState } from "./create-mutation.ts";
1
+ import { type MutationOptions, type MutationState } from "./create-mutation.mjs";
2
2
  /**
3
3
  * A hook for managing async mutation state.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { type StoreApi } from "../vanilla.ts";
1
+ import { type StoreApi } from "../vanilla.mjs";
2
2
  type Path = Array<string | number | symbol>;
3
3
  export declare const getValueByPath: (obj: any, path: Path) => any;
4
4
  export declare const isPrefixPath: (candidatePrefix: Path, targetPath: Path) => boolean;
package/esm/react.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- export * from "./react/use-isomorphic-layout-effect.ts";
2
- export { useStoreState } from "./react/use-store.ts";
3
- export * from "./react/create-store.ts";
4
- export * from "./react/create-stores.ts";
5
- export * from "./react/create-query.ts";
6
- export { createMutation, type MutationOptions, type MutationState, } from "./react/create-mutation.ts";
7
- export * from "./react/use-mutation.ts";
1
+ export * from "./react/use-isomorphic-layout-effect.mjs";
2
+ export { useStoreState } from "./react/use-store.mjs";
3
+ export * from "./react/create-store.mjs";
4
+ export * from "./react/create-stores.mjs";
5
+ export * from "./react/create-query.mjs";
6
+ export { createMutation, type MutationOptions, type MutationState, } from "./react/create-mutation.mjs";
7
+ export * from "./react/use-mutation.mjs";
package/esm/vanilla.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./vanilla/basic.ts";
2
- export * from "./vanilla/hash.ts";
3
- export * from "./vanilla/store.ts";
1
+ export * from "./vanilla/basic.mjs";
2
+ export * from "./vanilla/hash.mjs";
3
+ export * from "./vanilla/store.mjs";
package/package.json CHANGED
@@ -2,10 +2,7 @@
2
2
  "name": "floppy-disk",
3
3
  "description": "Lightweight unified state management for sync and async data.",
4
4
  "private": false,
5
- "version": "3.2.0-beta.1",
6
- "publishConfig": {
7
- "tag": "beta"
8
- },
5
+ "version": "3.2.0",
9
6
  "keywords": [
10
7
  "utilities",
11
8
  "store",
@@ -71,6 +68,7 @@
71
68
  }
72
69
  }
73
70
  },
71
+ "packageManager": "pnpm@10.32.1",
74
72
  "peerDependencies": {
75
73
  "@types/react": ">=17.0",
76
74
  "react": ">=17.0"
@@ -83,4 +81,4 @@
83
81
  "optional": true
84
82
  }
85
83
  }
86
- }
84
+ }