juststore 1.1.2 → 1.2.1

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/memory.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { FieldValues } from './path';
2
2
  import type { State, ValueState } from './types';
3
- export { createMemoryStore, useMemoryStore, type MemoryStore };
3
+ export { createMemoryStore, type MemoryStore, useMemoryStore };
4
4
  /**
5
5
  * A component local store with React bindings.
6
6
  *
package/dist/utils.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Atom } from './atom';
2
2
  import type { StoreSetStateValue, ValueState } from './types';
3
- export { Render, RenderWithUpdate, Conditional, ConditionalRender };
3
+ export { Conditional, ConditionalRender, Render, RenderWithUpdate };
4
4
  type AtomLike<T> = Pick<Atom<T> | ValueState<T>, 'use' | 'set' | 'value'>;
5
5
  type ReadOnlyAtomLike<T> = Pick<Atom<T> | ValueState<T>, 'use' | 'useCompute' | 'value'>;
6
6
  type RenderProps<State extends ReadOnlyAtomLike<unknown>> = {
package/dist/utils.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Activity, useCallback } from 'react';
3
- export { Render, RenderWithUpdate, Conditional, ConditionalRender };
3
+ export { Conditional, ConditionalRender, Render, RenderWithUpdate };
4
4
  /**
5
5
  * Renders the provided children function with the current value from the state.
6
6
  *
package/package.json CHANGED
@@ -1,62 +1,63 @@
1
1
  {
2
- "name": "juststore",
3
- "version": "1.1.2",
4
- "description": "A small, expressive, and type-safe state management library for React.",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "author": "Yusing",
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/yusing/juststore.git"
12
- },
13
- "homepage": "https://github.com/yusing/juststore",
14
- "bugs": {
15
- "url": "https://github.com/yusing/juststore/issues"
16
- },
17
- "exports": {
18
- ".": {
19
- "types": "./dist/index.d.ts",
20
- "import": "./dist/index.js"
21
- }
22
- },
23
- "sideEffects": false,
24
- "files": [
25
- "dist"
26
- ],
27
- "license": "AGPL-3.0-only",
28
- "keywords": [
29
- "state",
30
- "react",
31
- "typescript",
32
- "hooks",
33
- "store",
34
- "state management",
35
- "react hooks"
36
- ],
37
- "scripts": {
38
- "build": "bun --bun tsc",
39
- "typecheck": "bun --bun tsc --noEmit",
40
- "lint": "biome check",
41
- "format": "biome format --write",
42
- "format:check": "biome format",
43
- "prepublishOnly": "bun run build",
44
- "prepare": "husky"
45
- },
46
- "peerDependencies": {
47
- "react": ">=18.0.0"
48
- },
49
- "dependencies": {
50
- "change-case": "^5.4.4",
51
- "react-fast-compare": "^3.2.2"
52
- },
53
- "devDependencies": {
54
- "@biomejs/biome": "^2.4.6",
55
- "@eslint/js": "^10.0.1",
56
- "@types/node": "^25.4.0",
57
- "@types/react": "^19.2.14",
58
- "husky": "^9.1.7",
59
- "react": "^19.2.4",
60
- "typescript": "^5.9.3"
61
- }
2
+ "name": "juststore",
3
+ "version": "1.2.1",
4
+ "description": "A small, expressive, and type-safe state management library for React.",
5
+ "keywords": [
6
+ "hooks",
7
+ "react",
8
+ "react hooks",
9
+ "state",
10
+ "state management",
11
+ "store",
12
+ "typescript"
13
+ ],
14
+ "homepage": "https://github.com/yusing/juststore",
15
+ "bugs": {
16
+ "url": "https://github.com/yusing/juststore/issues"
17
+ },
18
+ "license": "AGPL-3.0-only",
19
+ "author": "Yusing",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/yusing/juststore.git"
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "type": "module",
28
+ "sideEffects": false,
29
+ "main": "dist/index.js",
30
+ "types": "dist/index.d.ts",
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/index.d.ts",
34
+ "import": "./dist/index.js"
35
+ }
36
+ },
37
+ "scripts": {
38
+ "build": "bun --bun tsc",
39
+ "format": "oxfmt --write",
40
+ "format:check": "oxfmt",
41
+ "lint": "oxlint",
42
+ "prepare": "husky",
43
+ "prepublishOnly": "bun run build",
44
+ "typecheck": "bun --bun tsc --noEmit"
45
+ },
46
+ "dependencies": {
47
+ "change-case": "^5.4.4",
48
+ "react-fast-compare": "^3.2.2"
49
+ },
50
+ "devDependencies": {
51
+ "@eslint/js": "^10.0.1",
52
+ "@types/node": "^25.5.0",
53
+ "@types/react": "^19.2.14",
54
+ "husky": "^9.1.7",
55
+ "oxfmt": "^0.42.0",
56
+ "oxlint": "^1.57.0",
57
+ "react": "^19.2.4",
58
+ "typescript": "^6.0.2"
59
+ },
60
+ "peerDependencies": {
61
+ "react": ">=18.0.0"
62
+ }
62
63
  }