kotori 0.0.13 → 0.0.14

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/dist/index.cjs CHANGED
@@ -1,6 +1,5 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let react = require("react");
3
-
4
3
  //#region src/index.ts
5
4
  const kotori = (props) => {
6
5
  const listeners = /* @__PURE__ */ new Set();
@@ -42,10 +41,9 @@ const kotori = (props) => {
42
41
  if (refCount === 0) snapshots.delete(s);
43
42
  listeners.delete(listener);
44
43
  };
45
- }, () => snapshots.get(s)) };
44
+ }, () => snapshots.get(s), () => snapshot) };
46
45
  }
47
46
  };
48
47
  };
49
-
50
48
  //#endregion
51
- exports.kotori = kotori;
49
+ exports.kotori = kotori;
package/dist/index.mjs CHANGED
@@ -1,5 +1,4 @@
1
1
  import { useSyncExternalStore } from "react";
2
-
3
2
  //#region src/index.ts
4
3
  const kotori = (props) => {
5
4
  const listeners = /* @__PURE__ */ new Set();
@@ -41,10 +40,9 @@ const kotori = (props) => {
41
40
  if (refCount === 0) snapshots.delete(s);
42
41
  listeners.delete(listener);
43
42
  };
44
- }, () => snapshots.get(s)) };
43
+ }, () => snapshots.get(s), () => snapshot) };
45
44
  }
46
45
  };
47
46
  };
48
-
49
47
  //#endregion
50
- export { kotori };
48
+ export { kotori };
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "kotori",
3
3
  "description": "Strongly-typed and composable internationalization library for React",
4
- "version": "0.0.13",
4
+ "version": "0.0.14",
5
5
  "scripts": {
6
6
  "setup": "rm -rf node_modules && npm i && git init && husky",
7
7
  "prepublishOnly": "npm i && npx tsc && npm run build",
8
8
  "build": "tsdown",
9
+ "size": "tsdown --minify",
9
10
  "test": "vitest",
10
11
  "lint": "npx @biomejs/biome check --write",
11
12
  "dev": "vite --host"