gjendje 0.3.6 → 0.4.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/README.md +1 -3
- package/package.json +81 -84
package/README.md
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# gjendje
|
|
4
4
|
|
|
5
|
-
Every app juggles `localStorage`, `sessionStorage`, URL params, and in-memory state — each with its own API.
|
|
6
|
-
|
|
7
|
-
**gjendje** replaces it all with a single primitive. Choose where state lives. The rest is handled.
|
|
5
|
+
Every app juggles `localStorage`, `sessionStorage`, URL params, and in-memory state — each with its own API. **gjendje** replaces it all with a single primitive. Choose where state lives. The rest is handled.
|
|
8
6
|
|
|
9
7
|
## Install
|
|
10
8
|
|
package/package.json
CHANGED
|
@@ -1,85 +1,82 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"zustand": "^5.0.12"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
2
|
+
"name": "gjendje",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "TypeScript state management",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"state",
|
|
7
|
+
"storage",
|
|
8
|
+
"reactive",
|
|
9
|
+
"persistence",
|
|
10
|
+
"typescript",
|
|
11
|
+
"localStorage",
|
|
12
|
+
"storageBuckets"
|
|
13
|
+
],
|
|
14
|
+
"author": "Charlie Beckstrand",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/charliebeckstrand/gjendje.git"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://github.com/charliebeckstrand/gjendje#readme",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/charliebeckstrand/gjendje/issues"
|
|
23
|
+
},
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18.0.0"
|
|
26
|
+
},
|
|
27
|
+
"type": "module",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"import": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"require": {
|
|
35
|
+
"types": "./dist/index.d.cts",
|
|
36
|
+
"default": "./dist/index.cjs"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"main": "./dist/index.cjs",
|
|
41
|
+
"module": "./dist/index.js",
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
|
+
"files": [
|
|
44
|
+
"dist",
|
|
45
|
+
"README.md"
|
|
46
|
+
],
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@biomejs/biome": "^2.4.6",
|
|
49
|
+
"@changesets/cli": "^2.27.0",
|
|
50
|
+
"@size-limit/preset-small-lib": "^11.0.0",
|
|
51
|
+
"@types/node": "^20.0.0",
|
|
52
|
+
"@vitest/coverage-v8": "^4.0.0",
|
|
53
|
+
"happy-dom": "^14.0.0",
|
|
54
|
+
"lefthook": "^1.6.0",
|
|
55
|
+
"publint": "^0.3.0",
|
|
56
|
+
"size-limit": "^11.0.0",
|
|
57
|
+
"tinybench": "^6.0.0",
|
|
58
|
+
"tsup": "^8.0.0",
|
|
59
|
+
"tsx": "^4.21.0",
|
|
60
|
+
"typescript": "^5.4.0",
|
|
61
|
+
"valtio": "^2.3.1",
|
|
62
|
+
"vite": "^6.0.0",
|
|
63
|
+
"vitest": "^4.0.0",
|
|
64
|
+
"zustand": "^5.0.12"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"build": "tsup",
|
|
68
|
+
"dev": "tsup --watch",
|
|
69
|
+
"format": "biome format --write src/ __tests__/",
|
|
70
|
+
"lint": "biome check src/ __tests__/",
|
|
71
|
+
"lint:check": "biome ci src/ __tests__/",
|
|
72
|
+
"lint:fix": "biome check src/ __tests__/ --fix",
|
|
73
|
+
"release": "pnpm build && pnpm changeset publish",
|
|
74
|
+
"size": "size-limit",
|
|
75
|
+
"test": "vitest run",
|
|
76
|
+
"test:coverage": "vitest run --coverage",
|
|
77
|
+
"test:watch": "vitest",
|
|
78
|
+
"typecheck": "tsc --project tsconfig.test.json --skipLibCheck",
|
|
79
|
+
"bench": "tsx benchmarks/state-management.bench.ts",
|
|
80
|
+
"bench:internal": "tsx benchmarks/internal.bench.ts"
|
|
81
|
+
}
|
|
82
|
+
}
|