atom.io 0.19.1 → 0.19.2

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 (97) hide show
  1. package/data/dist/index.cjs +99 -79
  2. package/data/dist/index.js +2 -2
  3. package/data/src/join.ts +67 -50
  4. package/dist/{chunk-YDOGCZ53.js → chunk-ATKDGVTV.js} +29 -29
  5. package/dist/{chunk-7VCCW45K.js → chunk-CC7IF7QF.js} +4 -3
  6. package/dist/{chunk-WX2NCOZR.js → chunk-FTONNX2R.js} +8 -8
  7. package/dist/{chunk-7ZR244C2.js → chunk-MSCJWACE.js} +92 -72
  8. package/dist/index.cjs +14 -7
  9. package/dist/index.d.ts +23 -35
  10. package/dist/index.js +14 -7
  11. package/internal/dist/index.cjs +55 -43
  12. package/internal/dist/index.d.ts +20 -20
  13. package/internal/dist/index.js +48 -36
  14. package/internal/src/atom/create-regular-atom.ts +7 -5
  15. package/internal/src/atom/delete-atom.ts +2 -2
  16. package/internal/src/families/create-readonly-selector-family.ts +2 -2
  17. package/internal/src/families/create-regular-atom-family.ts +1 -1
  18. package/internal/src/families/create-writable-selector-family.ts +1 -1
  19. package/internal/src/future.ts +4 -2
  20. package/internal/src/lineage.ts +1 -0
  21. package/internal/src/mutable/create-mutable-atom-family.ts +1 -1
  22. package/internal/src/mutable/create-mutable-atom.ts +7 -5
  23. package/internal/src/mutable/tracker.ts +3 -3
  24. package/internal/src/mutable/transceiver.ts +2 -2
  25. package/internal/src/selector/delete-selector.ts +1 -1
  26. package/internal/src/set-state/copy-mutable-if-needed.ts +1 -1
  27. package/internal/src/store/deposit.ts +5 -5
  28. package/internal/src/store/store.ts +5 -5
  29. package/internal/src/store/withdraw.ts +4 -5
  30. package/internal/src/subject.ts +3 -1
  31. package/internal/src/subscribe/subscribe-to-transaction.ts +4 -4
  32. package/internal/src/timeline/add-atom-to-timeline.ts +13 -8
  33. package/internal/src/timeline/create-timeline.ts +3 -4
  34. package/internal/src/transaction/act-upon-store.ts +5 -5
  35. package/internal/src/transaction/apply-transaction.ts +4 -4
  36. package/internal/src/transaction/build-transaction.ts +9 -6
  37. package/internal/src/transaction/create-transaction.ts +10 -10
  38. package/internal/src/transaction/index.ts +3 -3
  39. package/internal/src/transaction/is-root-store.ts +2 -2
  40. package/introspection/dist/index.d.ts +3 -3
  41. package/introspection/src/attach-introspection-states.ts +3 -3
  42. package/introspection/src/attach-transaction-index.ts +4 -4
  43. package/introspection/src/attach-transaction-logs.ts +8 -4
  44. package/json/dist/index.cjs +6 -2
  45. package/json/dist/index.js +6 -2
  46. package/json/src/select-json-family.ts +3 -2
  47. package/json/src/select-json.ts +3 -1
  48. package/package.json +243 -241
  49. package/react/dist/index.cjs +9 -3
  50. package/react/dist/index.js +9 -3
  51. package/react/src/use-i.ts +3 -1
  52. package/react/src/use-tl.ts +6 -2
  53. package/react-devtools/dist/index.cjs +116 -53
  54. package/react-devtools/dist/index.d.ts +3 -5
  55. package/react-devtools/dist/index.js +113 -51
  56. package/react-devtools/src/AtomIODevtools.tsx +3 -1
  57. package/react-devtools/src/Button.tsx +3 -1
  58. package/react-devtools/src/StateIndex.tsx +6 -2
  59. package/react-devtools/src/TimelineIndex.tsx +6 -2
  60. package/react-devtools/src/TransactionIndex.tsx +3 -3
  61. package/react-devtools/src/Updates.tsx +14 -6
  62. package/realtime/dist/index.cjs +1 -0
  63. package/realtime/dist/index.d.ts +2 -2
  64. package/realtime/dist/index.js +1 -0
  65. package/realtime/src/realtime-continuity.ts +4 -3
  66. package/realtime-client/dist/index.cjs +29 -29
  67. package/realtime-client/dist/index.d.ts +2 -2
  68. package/realtime-client/dist/index.js +1 -1
  69. package/realtime-client/src/server-action.ts +2 -2
  70. package/realtime-client/src/sync-continuity.ts +23 -23
  71. package/realtime-react/dist/index.cjs +29 -29
  72. package/realtime-react/dist/index.d.ts +2 -2
  73. package/realtime-react/dist/index.js +1 -1
  74. package/realtime-react/src/use-server-action.ts +3 -3
  75. package/realtime-server/dist/index.cjs +54 -44
  76. package/realtime-server/dist/index.d.ts +5 -5
  77. package/realtime-server/dist/index.js +34 -24
  78. package/realtime-server/src/ipc-sockets/child-socket.ts +6 -6
  79. package/realtime-server/src/ipc-sockets/custom-socket.ts +4 -8
  80. package/realtime-server/src/ipc-sockets/parent-socket.ts +13 -7
  81. package/realtime-server/src/realtime-action-receiver.ts +7 -5
  82. package/realtime-server/src/realtime-continuity-synchronizer.ts +3 -3
  83. package/realtime-server/src/realtime-state-receiver.ts +3 -1
  84. package/realtime-testing/dist/index.cjs +15 -13
  85. package/realtime-testing/dist/index.js +9 -7
  86. package/realtime-testing/src/setup-realtime-test.tsx +6 -4
  87. package/src/atom.ts +4 -8
  88. package/src/dispose.ts +1 -0
  89. package/src/index.ts +2 -9
  90. package/src/selector.ts +4 -8
  91. package/src/silo.ts +9 -3
  92. package/src/subscribe.ts +6 -6
  93. package/src/timeline.ts +4 -4
  94. package/src/transaction.ts +24 -24
  95. package/transceivers/set-rtx/dist/index.cjs +11 -12
  96. package/transceivers/set-rtx/dist/index.js +11 -12
  97. package/transceivers/set-rtx/src/set-rtx.ts +10 -10
package/package.json CHANGED
@@ -1,242 +1,244 @@
1
1
  {
2
- "name": "atom.io",
3
- "version": "0.19.1",
4
- "description": "Composable and testable reactive data library.",
5
- "homepage": "https://atom.io.fyi",
6
- "sideEffects": false,
7
- "type": "module",
8
- "license": "MIT",
9
- "author": "Jeremy Banka",
10
- "publishConfig": {
11
- "access": "public"
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "git+https://github.com/jeremybanka/wayforge.git",
16
- "directory": "packages/atom.io"
17
- },
18
- "scripts": {
19
- "manifest": "tsx __scripts__/manifest-build.node",
20
- "clean:build": "find . -type d -name 'dist' -not -path '*/node_modules/*' | xargs rm -rf",
21
- "build": "bun run clean:build && concurrently \"npm:build:*\"",
22
- "build:main": "tsup",
23
- "build:types": "tsup --dts",
24
- "build:data": "cd data && tsup",
25
- "build:internal": "cd internal && tsup",
26
- "build:introspection": "cd introspection && tsup",
27
- "build:json": "cd json && tsup",
28
- "build:react": "cd react && tsup",
29
- "build:react-devtools": "cd react-devtools && tsup",
30
- "build:realtime": "cd realtime && tsup",
31
- "build:realtime-client": "cd realtime-client && tsup",
32
- "build:realtime-react": "cd realtime-react && tsup",
33
- "build:realtime-server": "cd realtime-server && tsup",
34
- "build:realtime-testing": "cd realtime-testing && tsup",
35
- "build:transceivers:set-rtx": "cd transceivers/set-rtx && tsup",
36
- "lint:biome": "biome check -- .",
37
- "lint:eslint": "eslint .",
38
- "lint": "bun run lint:biome && bun run lint:eslint",
39
- "test": "vitest",
40
- "test:coverage": "vitest run --coverage",
41
- "test:once": "bun run test:manifest && cross-env IMPORT=dist vitest run",
42
- "test:once:public": "cross-env IMPORT=dist vitest run public",
43
- "test:manifest": "tsx __scripts__/manifest-test.node"
44
- },
45
- "peerDependencies": {
46
- "@floating-ui/react": ">=0.25.0",
47
- "@floating-ui/react-dom": ">=2.0.0",
48
- "@testing-library/react": ">=14.0.0",
49
- "framer-motion": ">=10.0.0",
50
- "react": ">=18.0.0",
51
- "socket.io": ">=4.0.0",
52
- "socket.io-client": ">=4.0.0"
53
- },
54
- "peerDependenciesMeta": {
55
- "@testing-library/react": {
56
- "optional": true
57
- },
58
- "react": {
59
- "optional": true
60
- },
61
- "@floating-ui/react": {
62
- "optional": true
63
- },
64
- "@floating-ui/react-dom": {
65
- "optional": true
66
- },
67
- "framer-motion": {
68
- "optional": true
69
- },
70
- "socket.io": {
71
- "optional": true
72
- },
73
- "socket.io-client": {
74
- "optional": true
75
- }
76
- },
77
- "devDependencies": {
78
- "@testing-library/react": "14.2.2",
79
- "@types/http-proxy": "1.17.14",
80
- "@types/npmlog": "7.0.0",
81
- "@types/react": "18.2.70",
82
- "@types/tmp": "0.2.6",
83
- "@vitest/coverage-v8": "1.4.0",
84
- "@vitest/ui": "1.4.0",
85
- "concurrently": "8.2.2",
86
- "drizzle-kit": "0.20.14",
87
- "drizzle-orm": "0.30.4",
88
- "framer-motion": "11.0.20",
89
- "happy-dom": "14.3.6",
90
- "http-proxy": "1.18.1",
91
- "npmlog": "7.0.1",
92
- "postgres": "3.4.4",
93
- "preact": "10.20.1",
94
- "react": "18.2.0",
95
- "react-dom": "18.2.0",
96
- "react-router-dom": "6.22.3",
97
- "socket.io": "4.7.5",
98
- "socket.io-client": "4.7.5",
99
- "tmp": "0.2.3",
100
- "tsup": "8.0.2",
101
- "typescript": "5.4.3",
102
- "vite": "5.2.6",
103
- "vite-tsconfig-paths": "4.3.2",
104
- "vitest": "1.4.0"
105
- },
106
- "main": "dist/index.js",
107
- "types": "dist/index.d.ts",
108
- "module": "dist/index.mjs",
109
- "files": [
110
- "dist",
111
- "src",
112
- "data/dist",
113
- "data/package.json",
114
- "data/src",
115
- "internal/dist",
116
- "internal/package.json",
117
- "internal/src",
118
- "introspection/dist",
119
- "introspection/package.json",
120
- "introspection/src",
121
- "json/dist",
122
- "json/package.json",
123
- "json/src",
124
- "react/dist",
125
- "react/package.json",
126
- "react/src",
127
- "react-devtools/dist",
128
- "react-devtools/package.json",
129
- "react-devtools/src",
130
- "realtime/dist",
131
- "realtime/package.json",
132
- "realtime/src",
133
- "realtime-client/dist",
134
- "realtime-client/package.json",
135
- "realtime-client/src",
136
- "realtime-react/dist",
137
- "realtime-react/package.json",
138
- "realtime-react/src",
139
- "realtime-server/dist",
140
- "realtime-server/package.json",
141
- "realtime-server/src",
142
- "realtime-testing/dist",
143
- "realtime-testing/package.json",
144
- "realtime-testing/src",
145
- "transceivers/set-rtx/dist",
146
- "transceivers/set-rtx/package.json",
147
- "transceivers/set-rtx/src"
148
- ],
149
- "exports": {
150
- "./package.json": "./package.json",
151
- ".": {
152
- "types": "./dist/index.d.ts",
153
- "browser": "./dist/index.js",
154
- "import": "./dist/index.js",
155
- "require": "./dist/index.cjs"
156
- },
157
- "./data/package.json": "./data/package.json",
158
- "./data": {
159
- "types": "./data/dist/index.d.ts",
160
- "browser": "./data/dist/index.js",
161
- "import": "./data/dist/index.js",
162
- "require": "./data/dist/index.cjs"
163
- },
164
- "./internal/package.json": "./internal/package.json",
165
- "./internal": {
166
- "types": "./internal/dist/index.d.ts",
167
- "browser": "./internal/dist/index.js",
168
- "import": "./internal/dist/index.js",
169
- "require": "./internal/dist/index.cjs"
170
- },
171
- "./introspection/package.json": "./introspection/package.json",
172
- "./introspection": {
173
- "types": "./introspection/dist/index.d.ts",
174
- "browser": "./introspection/dist/index.js",
175
- "import": "./introspection/dist/index.js",
176
- "require": "./introspection/dist/index.cjs"
177
- },
178
- "./json/package.json": "./json/package.json",
179
- "./json": {
180
- "types": "./json/dist/index.d.ts",
181
- "browser": "./json/dist/index.js",
182
- "import": "./json/dist/index.js",
183
- "require": "./json/dist/index.cjs"
184
- },
185
- "./react/package.json": "./react/package.json",
186
- "./react": {
187
- "types": "./react/dist/index.d.ts",
188
- "browser": "./react/dist/index.js",
189
- "import": "./react/dist/index.js",
190
- "require": "./react/dist/index.cjs"
191
- },
192
- "./react-devtools/package.json": "./react-devtools/package.json",
193
- "./react-devtools": {
194
- "types": "./react-devtools/dist/index.d.ts",
195
- "browser": "./react-devtools/dist/index.js",
196
- "import": "./react-devtools/dist/index.js",
197
- "require": "./react-devtools/dist/index.cjs"
198
- },
199
- "./realtime/package.json": "./realtime/package.json",
200
- "./realtime": {
201
- "types": "./realtime/dist/index.d.ts",
202
- "browser": "./realtime/dist/index.js",
203
- "import": "./realtime/dist/index.js",
204
- "require": "./realtime/dist/index.cjs"
205
- },
206
- "./realtime-client/package.json": "./realtime-client/package.json",
207
- "./realtime-client": {
208
- "types": "./realtime-client/dist/index.d.ts",
209
- "browser": "./realtime-client/dist/index.js",
210
- "import": "./realtime-client/dist/index.js",
211
- "require": "./realtime-client/dist/index.cjs"
212
- },
213
- "./realtime-react/package.json": "./realtime-react/package.json",
214
- "./realtime-react": {
215
- "types": "./realtime-react/dist/index.d.ts",
216
- "browser": "./realtime-react/dist/index.js",
217
- "import": "./realtime-react/dist/index.js",
218
- "require": "./realtime-react/dist/index.cjs"
219
- },
220
- "./realtime-server/package.json": "./realtime-server/package.json",
221
- "./realtime-server": {
222
- "types": "./realtime-server/dist/index.d.ts",
223
- "browser": "./realtime-server/dist/index.js",
224
- "import": "./realtime-server/dist/index.js",
225
- "require": "./realtime-server/dist/index.cjs"
226
- },
227
- "./realtime-testing/package.json": "./realtime-testing/package.json",
228
- "./realtime-testing": {
229
- "types": "./realtime-testing/dist/index.d.ts",
230
- "browser": "./realtime-testing/dist/index.js",
231
- "import": "./realtime-testing/dist/index.js",
232
- "require": "./realtime-testing/dist/index.cjs"
233
- },
234
- "./transceivers/set-rtx/package.json": "./transceivers/set-rtx/package.json",
235
- "./transceivers/set-rtx": {
236
- "types": "./transceivers/set-rtx/dist/index.d.ts",
237
- "browser": "./transceivers/set-rtx/dist/index.js",
238
- "import": "./transceivers/set-rtx/dist/index.js",
239
- "require": "./transceivers/set-rtx/dist/index.cjs"
240
- }
241
- }
242
- }
2
+ "name": "atom.io",
3
+ "version": "0.19.2",
4
+ "description": "Composable and testable reactive data library.",
5
+ "homepage": "https://atom.io.fyi",
6
+ "sideEffects": false,
7
+ "type": "module",
8
+ "license": "MIT",
9
+ "author": "Jeremy Banka",
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/jeremybanka/wayforge.git",
16
+ "directory": "packages/atom.io"
17
+ },
18
+ "peerDependencies": {
19
+ "@floating-ui/react": ">=0.25.0",
20
+ "@floating-ui/react-dom": ">=2.0.0",
21
+ "@testing-library/react": ">=14.0.0",
22
+ "framer-motion": ">=10.0.0",
23
+ "react": ">=18.0.0",
24
+ "socket.io": ">=4.0.0",
25
+ "socket.io-client": ">=4.0.0"
26
+ },
27
+ "peerDependenciesMeta": {
28
+ "@testing-library/react": {
29
+ "optional": true
30
+ },
31
+ "react": {
32
+ "optional": true
33
+ },
34
+ "@floating-ui/react": {
35
+ "optional": true
36
+ },
37
+ "@floating-ui/react-dom": {
38
+ "optional": true
39
+ },
40
+ "framer-motion": {
41
+ "optional": true
42
+ },
43
+ "socket.io": {
44
+ "optional": true
45
+ },
46
+ "socket.io-client": {
47
+ "optional": true
48
+ }
49
+ },
50
+ "devDependencies": {
51
+ "@testing-library/react": "15.0.0",
52
+ "@types/http-proxy": "1.17.14",
53
+ "@types/npmlog": "7.0.0",
54
+ "@types/react": "18.2.75",
55
+ "@types/tmp": "0.2.6",
56
+ "@vitest/coverage-v8": "1.4.0",
57
+ "@vitest/ui": "1.4.0",
58
+ "concurrently": "8.2.2",
59
+ "drizzle-kit": "0.20.14",
60
+ "drizzle-orm": "0.30.7",
61
+ "framer-motion": "11.0.27",
62
+ "happy-dom": "14.7.1",
63
+ "http-proxy": "1.18.1",
64
+ "npmlog": "7.0.1",
65
+ "postgres": "3.4.4",
66
+ "preact": "10.20.2",
67
+ "react": "18.2.0",
68
+ "react-dom": "18.2.0",
69
+ "react-router-dom": "6.22.3",
70
+ "socket.io": "4.7.5",
71
+ "socket.io-client": "4.7.5",
72
+ "tmp": "0.2.3",
73
+ "tsup": "8.0.2",
74
+ "typescript": "5.4.5",
75
+ "vite": "5.2.8",
76
+ "vite-tsconfig-paths": "4.3.2",
77
+ "vitest": "1.4.0"
78
+ },
79
+ "main": "dist/index.js",
80
+ "types": "dist/index.d.ts",
81
+ "module": "dist/index.mjs",
82
+ "files": [
83
+ "dist",
84
+ "src",
85
+ "data/dist",
86
+ "data/package.json",
87
+ "data/src",
88
+ "internal/dist",
89
+ "internal/package.json",
90
+ "internal/src",
91
+ "introspection/dist",
92
+ "introspection/package.json",
93
+ "introspection/src",
94
+ "json/dist",
95
+ "json/package.json",
96
+ "json/src",
97
+ "react/dist",
98
+ "react/package.json",
99
+ "react/src",
100
+ "react-devtools/dist",
101
+ "react-devtools/package.json",
102
+ "react-devtools/src",
103
+ "realtime/dist",
104
+ "realtime/package.json",
105
+ "realtime/src",
106
+ "realtime-client/dist",
107
+ "realtime-client/package.json",
108
+ "realtime-client/src",
109
+ "realtime-react/dist",
110
+ "realtime-react/package.json",
111
+ "realtime-react/src",
112
+ "realtime-server/dist",
113
+ "realtime-server/package.json",
114
+ "realtime-server/src",
115
+ "realtime-testing/dist",
116
+ "realtime-testing/package.json",
117
+ "realtime-testing/src",
118
+ "transceivers/set-rtx/dist",
119
+ "transceivers/set-rtx/package.json",
120
+ "transceivers/set-rtx/src"
121
+ ],
122
+ "exports": {
123
+ "./package.json": "./package.json",
124
+ ".": {
125
+ "types": "./dist/index.d.ts",
126
+ "browser": "./dist/index.js",
127
+ "import": "./dist/index.js",
128
+ "require": "./dist/index.cjs"
129
+ },
130
+ "./data/package.json": "./data/package.json",
131
+ "./data": {
132
+ "types": "./data/dist/index.d.ts",
133
+ "browser": "./data/dist/index.js",
134
+ "import": "./data/dist/index.js",
135
+ "require": "./data/dist/index.cjs"
136
+ },
137
+ "./internal/package.json": "./internal/package.json",
138
+ "./internal": {
139
+ "types": "./internal/dist/index.d.ts",
140
+ "browser": "./internal/dist/index.js",
141
+ "import": "./internal/dist/index.js",
142
+ "require": "./internal/dist/index.cjs"
143
+ },
144
+ "./introspection/package.json": "./introspection/package.json",
145
+ "./introspection": {
146
+ "types": "./introspection/dist/index.d.ts",
147
+ "browser": "./introspection/dist/index.js",
148
+ "import": "./introspection/dist/index.js",
149
+ "require": "./introspection/dist/index.cjs"
150
+ },
151
+ "./json/package.json": "./json/package.json",
152
+ "./json": {
153
+ "types": "./json/dist/index.d.ts",
154
+ "browser": "./json/dist/index.js",
155
+ "import": "./json/dist/index.js",
156
+ "require": "./json/dist/index.cjs"
157
+ },
158
+ "./react/package.json": "./react/package.json",
159
+ "./react": {
160
+ "types": "./react/dist/index.d.ts",
161
+ "browser": "./react/dist/index.js",
162
+ "import": "./react/dist/index.js",
163
+ "require": "./react/dist/index.cjs"
164
+ },
165
+ "./react-devtools/package.json": "./react-devtools/package.json",
166
+ "./react-devtools": {
167
+ "types": "./react-devtools/dist/index.d.ts",
168
+ "browser": "./react-devtools/dist/index.js",
169
+ "import": "./react-devtools/dist/index.js",
170
+ "require": "./react-devtools/dist/index.cjs"
171
+ },
172
+ "./realtime/package.json": "./realtime/package.json",
173
+ "./realtime": {
174
+ "types": "./realtime/dist/index.d.ts",
175
+ "browser": "./realtime/dist/index.js",
176
+ "import": "./realtime/dist/index.js",
177
+ "require": "./realtime/dist/index.cjs"
178
+ },
179
+ "./realtime-client/package.json": "./realtime-client/package.json",
180
+ "./realtime-client": {
181
+ "types": "./realtime-client/dist/index.d.ts",
182
+ "browser": "./realtime-client/dist/index.js",
183
+ "import": "./realtime-client/dist/index.js",
184
+ "require": "./realtime-client/dist/index.cjs"
185
+ },
186
+ "./realtime-react/package.json": "./realtime-react/package.json",
187
+ "./realtime-react": {
188
+ "types": "./realtime-react/dist/index.d.ts",
189
+ "browser": "./realtime-react/dist/index.js",
190
+ "import": "./realtime-react/dist/index.js",
191
+ "require": "./realtime-react/dist/index.cjs"
192
+ },
193
+ "./realtime-server/package.json": "./realtime-server/package.json",
194
+ "./realtime-server": {
195
+ "types": "./realtime-server/dist/index.d.ts",
196
+ "browser": "./realtime-server/dist/index.js",
197
+ "import": "./realtime-server/dist/index.js",
198
+ "require": "./realtime-server/dist/index.cjs"
199
+ },
200
+ "./realtime-testing/package.json": "./realtime-testing/package.json",
201
+ "./realtime-testing": {
202
+ "types": "./realtime-testing/dist/index.d.ts",
203
+ "browser": "./realtime-testing/dist/index.js",
204
+ "import": "./realtime-testing/dist/index.js",
205
+ "require": "./realtime-testing/dist/index.cjs"
206
+ },
207
+ "./transceivers/set-rtx/package.json": "./transceivers/set-rtx/package.json",
208
+ "./transceivers/set-rtx": {
209
+ "types": "./transceivers/set-rtx/dist/index.d.ts",
210
+ "browser": "./transceivers/set-rtx/dist/index.js",
211
+ "import": "./transceivers/set-rtx/dist/index.js",
212
+ "require": "./transceivers/set-rtx/dist/index.cjs"
213
+ }
214
+ },
215
+ "scripts": {
216
+ "manifest": "tsx __scripts__/manifest-build.node",
217
+ "clean:build": "find . -type d -name 'dist' -not -path '*/node_modules/*' | xargs rm -rf",
218
+ "build": "bun run clean:build && concurrently \"npm:build:*\"",
219
+ "build:main": "tsup",
220
+ "build:types": "tsup --dts",
221
+ "build:data": "cd data && tsup",
222
+ "build:internal": "cd internal && tsup",
223
+ "build:introspection": "cd introspection && tsup",
224
+ "build:json": "cd json && tsup",
225
+ "build:react": "cd react && tsup",
226
+ "build:react-devtools": "cd react-devtools && tsup",
227
+ "build:realtime": "cd realtime && tsup",
228
+ "build:realtime-client": "cd realtime-client && tsup",
229
+ "build:realtime-react": "cd realtime-react && tsup",
230
+ "build:realtime-server": "cd realtime-server && tsup",
231
+ "build:realtime-testing": "cd realtime-testing && tsup",
232
+ "build:transceivers:set-rtx": "cd transceivers/set-rtx && tsup",
233
+ "lint:biome": "biome check -- .",
234
+ "lint:eslint": "eslint .",
235
+ "lint:types": "tsc --noEmit",
236
+ "lint": "bun run lint:biome && bun run lint:eslint && bun run lint:types",
237
+ "test": "vitest",
238
+ "test:coverage": "vitest run --coverage",
239
+ "test:once": "bun run test:manifest && cross-env IMPORT=dist vitest run",
240
+ "test:once:public": "cross-env IMPORT=dist vitest run public",
241
+ "test:manifest": "tsx __scripts__/manifest-test.node",
242
+ "test:semver": "bun ../break-check/src/break-check.x.ts --verbose"
243
+ }
244
+ }
@@ -33,7 +33,9 @@ function useI(token, key) {
33
33
  const stateToken = token.type === `atom_family` || token.type === `mutable_atom_family` || token.type === `selector_family` ? internal.findInStore(token, key, store) : token;
34
34
  const setter = React5__namespace.useRef(null);
35
35
  if (setter.current === null) {
36
- setter.current = (next) => internal.setIntoStore(stateToken, next, store);
36
+ setter.current = (next) => {
37
+ internal.setIntoStore(stateToken, next, store);
38
+ };
37
39
  }
38
40
  return setter.current;
39
41
  }
@@ -64,8 +66,12 @@ function useTL(token) {
64
66
  return {
65
67
  at: timeline.at,
66
68
  length: timeline.history.length,
67
- undo: () => atom_io.undo(token),
68
- redo: () => atom_io.redo(token)
69
+ undo: () => {
70
+ atom_io.undo(token);
71
+ },
72
+ redo: () => {
73
+ atom_io.redo(token);
74
+ }
69
75
  };
70
76
  };
71
77
  const meta = React5__namespace.useRef(rebuildMeta());
@@ -11,7 +11,9 @@ function useI(token, key) {
11
11
  const stateToken = token.type === `atom_family` || token.type === `mutable_atom_family` || token.type === `selector_family` ? findInStore(token, key, store) : token;
12
12
  const setter = React5.useRef(null);
13
13
  if (setter.current === null) {
14
- setter.current = (next) => setIntoStore(stateToken, next, store);
14
+ setter.current = (next) => {
15
+ setIntoStore(stateToken, next, store);
16
+ };
15
17
  }
16
18
  return setter.current;
17
19
  }
@@ -42,8 +44,12 @@ function useTL(token) {
42
44
  return {
43
45
  at: timeline.at,
44
46
  length: timeline.history.length,
45
- undo: () => undo(token),
46
- redo: () => redo(token)
47
+ undo: () => {
48
+ undo(token);
49
+ },
50
+ redo: () => {
51
+ redo(token);
52
+ }
47
53
  };
48
54
  };
49
55
  const meta = React5.useRef(rebuildMeta());
@@ -29,7 +29,9 @@ export function useI<T, K extends Json.Serializable>(
29
29
  (<New extends T>(next: New | ((old: T) => New)) => void) | null
30
30
  > = React.useRef(null)
31
31
  if (setter.current === null) {
32
- setter.current = (next) => setIntoStore(stateToken, next, store)
32
+ setter.current = (next) => {
33
+ setIntoStore(stateToken, next, store)
34
+ }
33
35
  }
34
36
  return setter.current
35
37
  }
@@ -21,8 +21,12 @@ export function useTL(token: TimelineToken<any>): TimelineMeta {
21
21
  return {
22
22
  at: timeline.at,
23
23
  length: timeline.history.length,
24
- undo: () => undo(token),
25
- redo: () => redo(token),
24
+ undo: () => {
25
+ undo(token)
26
+ },
27
+ redo: () => {
28
+ redo(token)
29
+ },
26
30
  }
27
31
  }
28
32
  const meta = React.useRef<TimelineMeta>(rebuildMeta())