@t8/react-store 1.0.31 → 1.0.33
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/index.ts +1 -1
- package/package.json +49 -49
- package/tsconfig.json +6 -3
package/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "@t8/store";
|
|
2
|
-
export * from "./src/useStore";
|
|
2
|
+
export * from "./src/useStore.ts";
|
package/package.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@t8/react-store",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Concise shared state management for React apps",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "npx npm-run-all clean compile",
|
|
9
|
-
"clean": "node -e \"require('node:fs').rmSync('dist', { force: true, recursive: true });\"",
|
|
10
|
-
"compile": "npx esbuild index.ts --bundle --outdir=dist --platform=neutral --external:react",
|
|
11
|
-
"demo": "npx @t8/serve 3000 * tests/counter -b src/index.tsx",
|
|
12
|
-
"prepublishOnly": "npm run build",
|
|
13
|
-
"preversion": "npx npm-run-all typecheck shape build test",
|
|
14
|
-
"shape": "npx codeshape",
|
|
15
|
-
"test": "npx playwright test --project=chromium",
|
|
16
|
-
"tic-tac-toe": "npx @t8/serve 3000 * tests/tic-tac-toe -b src/index.tsx",
|
|
17
|
-
"typecheck": "tsc --noEmit"
|
|
18
|
-
},
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/t8js/react-store.git"
|
|
22
|
-
},
|
|
23
|
-
"homepage": "https://t8.js.org/react-store",
|
|
24
|
-
"keywords": [
|
|
25
|
-
"react",
|
|
26
|
-
"state management",
|
|
27
|
-
"shared state",
|
|
28
|
-
"global state",
|
|
29
|
-
"store"
|
|
30
|
-
],
|
|
31
|
-
"author": "axtk",
|
|
32
|
-
"license": "MIT",
|
|
33
|
-
"peerDependencies": {
|
|
34
|
-
"react": ">=16.8"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@playwright/test": "^1.56.0",
|
|
38
|
-
"@t8/serve": "^0.1.
|
|
39
|
-
"@types/node": "^24.5.2",
|
|
40
|
-
"@types/react": "^19.1.10",
|
|
41
|
-
"@types/react-dom": "^19.1.9",
|
|
42
|
-
"immer": "^10.1.3",
|
|
43
|
-
"react-dom": "^19.1.1",
|
|
44
|
-
"typescript": "^5.9.3"
|
|
45
|
-
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@t8/store": "^1.1.
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@t8/react-store",
|
|
3
|
+
"version": "1.0.33",
|
|
4
|
+
"description": "Concise shared state management for React apps",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "npx npm-run-all clean compile",
|
|
9
|
+
"clean": "node -e \"require('node:fs').rmSync('dist', { force: true, recursive: true });\"",
|
|
10
|
+
"compile": "npx esbuild index.ts --bundle --outdir=dist --platform=neutral --external:react",
|
|
11
|
+
"demo": "npx @t8/serve 3000 * tests/counter -b src/index.tsx",
|
|
12
|
+
"prepublishOnly": "npm run build",
|
|
13
|
+
"preversion": "npx npm-run-all typecheck shape build test",
|
|
14
|
+
"shape": "npx codeshape",
|
|
15
|
+
"test": "npx playwright test --project=chromium",
|
|
16
|
+
"tic-tac-toe": "npx @t8/serve 3000 * tests/tic-tac-toe -b src/index.tsx",
|
|
17
|
+
"typecheck": "tsc --noEmit"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/t8js/react-store.git"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://t8.js.org/react-store",
|
|
24
|
+
"keywords": [
|
|
25
|
+
"react",
|
|
26
|
+
"state management",
|
|
27
|
+
"shared state",
|
|
28
|
+
"global state",
|
|
29
|
+
"store"
|
|
30
|
+
],
|
|
31
|
+
"author": "axtk",
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"react": ">=16.8"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@playwright/test": "^1.56.0",
|
|
38
|
+
"@t8/serve": "^0.1.34",
|
|
39
|
+
"@types/node": "^24.5.2",
|
|
40
|
+
"@types/react": "^19.1.10",
|
|
41
|
+
"@types/react-dom": "^19.1.9",
|
|
42
|
+
"immer": "^10.1.3",
|
|
43
|
+
"react-dom": "^19.1.1",
|
|
44
|
+
"typescript": "^5.9.3"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@t8/store": "^1.1.7"
|
|
48
|
+
}
|
|
49
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"include": ["index.ts", "playwright.config.ts", "src", "tests"],
|
|
2
|
+
"include": ["./index.ts", "./playwright.config.ts", "./src", "./tests"],
|
|
3
3
|
"compilerOptions": {
|
|
4
|
+
"noEmit": true,
|
|
4
5
|
"jsx": "react-jsx",
|
|
5
6
|
"lib": ["ESNext", "DOM"],
|
|
6
|
-
"target": "
|
|
7
|
+
"target": "esnext",
|
|
7
8
|
"outDir": "dist",
|
|
8
|
-
"
|
|
9
|
+
"module": "nodenext",
|
|
10
|
+
"moduleResolution": "nodenext",
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
9
12
|
"strict": true,
|
|
10
13
|
"noUnusedLocals": true,
|
|
11
14
|
"noUnusedParameters": true
|