@solidjs/signals 0.13.12 → 2.0.0-beta.7

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.
Files changed (39) hide show
  1. package/README.md +8 -7
  2. package/dist/dev.js +188 -102
  3. package/dist/node.cjs +501 -446
  4. package/dist/prod.js +368 -305
  5. package/dist/types/core/graph.d.ts +1 -0
  6. package/dist/types/core/types.d.ts +2 -2
  7. package/dist/types/signals.d.ts +15 -21
  8. package/dist/types/store/optimistic.d.ts +2 -2
  9. package/dist/types/store/projection.d.ts +4 -4
  10. package/dist/types/store/store.d.ts +2 -2
  11. package/dist/types-cjs/boundaries.d.cts +52 -0
  12. package/dist/types-cjs/core/action.d.cts +1 -0
  13. package/dist/types-cjs/core/async.d.cts +6 -0
  14. package/dist/types-cjs/core/constants.d.cts +25 -0
  15. package/dist/types-cjs/core/context.d.cts +28 -0
  16. package/dist/types-cjs/core/core.d.cts +54 -0
  17. package/dist/types-cjs/core/dev.d.cts +49 -0
  18. package/dist/types-cjs/core/effect.d.cts +30 -0
  19. package/dist/types-cjs/core/error.d.cts +14 -0
  20. package/dist/types-cjs/core/external.d.cts +26 -0
  21. package/dist/types-cjs/core/graph.d.cts +4 -0
  22. package/dist/types-cjs/core/heap.d.cts +14 -0
  23. package/dist/types-cjs/core/index.d.cts +12 -0
  24. package/dist/types-cjs/core/lanes.d.cts +54 -0
  25. package/dist/types-cjs/core/owner.d.cts +26 -0
  26. package/dist/types-cjs/core/scheduler.d.cts +81 -0
  27. package/dist/types-cjs/core/types.d.cts +86 -0
  28. package/dist/types-cjs/index.d.cts +9 -0
  29. package/dist/types-cjs/map.d.cts +24 -0
  30. package/dist/types-cjs/package.json +3 -0
  31. package/dist/types-cjs/signals.d.cts +186 -0
  32. package/dist/types-cjs/store/index.d.cts +9 -0
  33. package/dist/types-cjs/store/optimistic.d.cts +19 -0
  34. package/dist/types-cjs/store/projection.d.cts +26 -0
  35. package/dist/types-cjs/store/reconcile.d.cts +1 -0
  36. package/dist/types-cjs/store/store.d.cts +68 -0
  37. package/dist/types-cjs/store/storePath.d.cts +30 -0
  38. package/dist/types-cjs/store/utils.d.cts +43 -0
  39. package/package.json +31 -24
package/package.json CHANGED
@@ -1,23 +1,41 @@
1
1
  {
2
2
  "name": "@solidjs/signals",
3
- "version": "0.13.12",
4
- "description": "SolidJS' standalone reactivity implementation",
3
+ "version": "2.0.0-beta.7",
4
+ "description": "SolidJS' reactive core implementation",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
+ "homepage": "https://solidjs.com",
7
8
  "repository": {
8
9
  "type": "git",
9
- "url": "https://github.com/solidjs/signals"
10
+ "url": "https://github.com/solidjs/solid"
10
11
  },
11
- "type": "module",
12
- "main": "dist/node.cjs",
13
- "module": "dist/prod.js",
14
- "types": "dist/types/index.d.ts",
15
12
  "publishConfig": {
16
13
  "access": "public"
17
14
  },
15
+ "main": "./dist/node.cjs",
16
+ "module": "./dist/prod.js",
17
+ "types": "./dist/types/index.d.ts",
18
+ "type": "module",
19
+ "sideEffects": false,
18
20
  "files": [
19
- "dist"
21
+ "dist",
22
+ "package.json"
20
23
  ],
24
+ "exports": {
25
+ ".": {
26
+ "import": {
27
+ "types": "./dist/types/index.d.ts",
28
+ "test": "./dist/dev.js",
29
+ "development": "./dist/dev.js",
30
+ "default": "./dist/prod.js"
31
+ },
32
+ "require": {
33
+ "types": "./dist/types-cjs/index.d.cts",
34
+ "default": "./dist/node.cjs"
35
+ }
36
+ },
37
+ "./package.json": "./package.json"
38
+ },
21
39
  "devDependencies": {
22
40
  "@ianvs/prettier-plugin-sort-imports": "^4.1.1",
23
41
  "@rollup/plugin-replace": "^6.0.3",
@@ -32,27 +50,16 @@
32
50
  "vite": "^5.4.10",
33
51
  "vitest": "^2.0.0"
34
52
  },
35
- "exports": {
36
- ".": {
37
- "types": "./dist/types/index.d.ts",
38
- "import": {
39
- "test": "./dist/dev.js",
40
- "development": "./dist/dev.js",
41
- "default": "./dist/prod.js"
42
- },
43
- "require": "./dist/node.cjs"
44
- }
45
- },
46
53
  "scripts": {
47
- "build": "rimraf dist && rollup -c && pnpm types",
48
- "types": "tsc -p tsconfig.build.json",
49
- "format": "prettier src tests --write --log-level warn",
50
- "sandbox": "node ./.sandbox/launch.js",
54
+ "build": "npm-run-all -nl build:* && pnpm types",
55
+ "build:clean": "rimraf dist/dev.js dist/prod.js dist/node.cjs",
56
+ "build:js": "rollup -c",
57
+ "types": "tsc -p tsconfig.build.json && node ../../scripts/sync-dual-types.mjs ./dist/types ./dist/types-cjs",
51
58
  "test": "vitest run",
52
59
  "test:watch": "vitest watch tests",
53
60
  "test:gc": "node --expose-gc ./vitest.js",
54
61
  "test:gc:watch": "node --expose-gc ./vitest.js --watch",
55
- "test:coverage": "vitest run --coverage",
62
+ "coverage": "vitest run --coverage",
56
63
  "bench": "vitest bench --run"
57
64
  }
58
65
  }