atom.io 0.36.2 → 0.36.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atom.io",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.3",
|
|
4
4
|
"description": "Composable and testable reactive data library.",
|
|
5
5
|
"homepage": "https://atom.io.fyi",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -61,20 +61,20 @@
|
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@eslint/core": "0.15.2",
|
|
64
|
-
"@storybook/addon-docs": "9.1.
|
|
65
|
-
"@storybook/addon-onboarding": "9.1.
|
|
66
|
-
"@storybook/react-vite": "9.1.
|
|
64
|
+
"@storybook/addon-docs": "9.1.2",
|
|
65
|
+
"@storybook/addon-onboarding": "9.1.2",
|
|
66
|
+
"@storybook/react-vite": "9.1.2",
|
|
67
67
|
"@testing-library/react": "16.3.0",
|
|
68
68
|
"@types/bun": "npm:bun-types@1.2.20",
|
|
69
69
|
"@types/eslint": "9.6.1",
|
|
70
70
|
"@types/estree": "1.0.8",
|
|
71
71
|
"@types/http-proxy": "1.17.16",
|
|
72
72
|
"@types/npmlog": "7.0.0",
|
|
73
|
-
"@types/react": "19.1.
|
|
73
|
+
"@types/react": "19.1.10",
|
|
74
74
|
"@types/tmp": "0.2.6",
|
|
75
|
-
"@typescript-eslint/parser": "8.39.
|
|
76
|
-
"@typescript-eslint/rule-tester": "8.39.
|
|
77
|
-
"@typescript-eslint/utils": "8.39.
|
|
75
|
+
"@typescript-eslint/parser": "8.39.1",
|
|
76
|
+
"@typescript-eslint/rule-tester": "8.39.1",
|
|
77
|
+
"@typescript-eslint/utils": "8.39.1",
|
|
78
78
|
"@vitest/coverage-v8": "3.2.4",
|
|
79
79
|
"@vitest/ui": "3.2.4",
|
|
80
80
|
"concurrently": "9.2.0",
|
|
@@ -90,16 +90,16 @@
|
|
|
90
90
|
"preact": "10.27.0",
|
|
91
91
|
"react": "19.1.1",
|
|
92
92
|
"react-dom": "19.1.1",
|
|
93
|
-
"react-router-dom": "7.8.
|
|
93
|
+
"react-router-dom": "7.8.1",
|
|
94
94
|
"recoverage": "0.1.11",
|
|
95
95
|
"socket.io": "4.8.1",
|
|
96
96
|
"socket.io-client": "4.8.1",
|
|
97
|
-
"storybook": "9.1.
|
|
97
|
+
"storybook": "9.1.2",
|
|
98
98
|
"tmp": "0.2.5",
|
|
99
|
-
"tsdown": "0.14.
|
|
100
|
-
"tsx": "4.20.
|
|
99
|
+
"tsdown": "0.14.1",
|
|
100
|
+
"tsx": "4.20.4",
|
|
101
101
|
"typescript": "5.9.2",
|
|
102
|
-
"vite": "7.1.
|
|
102
|
+
"vite": "7.1.2",
|
|
103
103
|
"vite-tsconfig-paths": "5.1.4",
|
|
104
104
|
"vitest": "3.2.4",
|
|
105
105
|
"zod": "3.25.76",
|
package/src/internal/caching.ts
CHANGED
|
@@ -45,17 +45,17 @@ export function writeToCache<T>(
|
|
|
45
45
|
if (current === future) {
|
|
46
46
|
openOperation(target, state)
|
|
47
47
|
writeToCache(target, state, resolved)
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
48
49
|
switch (type) {
|
|
49
50
|
case `atom`:
|
|
50
51
|
case `mutable_atom`:
|
|
51
52
|
evictDownstreamFromAtom(target, state)
|
|
52
53
|
break
|
|
53
|
-
case `readonly_held_selector`:
|
|
54
54
|
case `readonly_pure_selector`:
|
|
55
|
-
case `writable_held_selector`:
|
|
56
55
|
case `writable_pure_selector`:
|
|
57
56
|
evictDownstreamFromSelector(target, key)
|
|
58
57
|
break
|
|
58
|
+
// held selectors, by definitions, don't become promises
|
|
59
59
|
}
|
|
60
60
|
closeOperation(target)
|
|
61
61
|
subject.next({ newValue: resolved, oldValue: future })
|
|
@@ -42,7 +42,7 @@ export const createWritablePureSelector = <T>(
|
|
|
42
42
|
const cached = writeToCache(innerTarget, mySelector, value)
|
|
43
43
|
store.logger.info(`✨`, type, key, `=`, cached)
|
|
44
44
|
covered.clear()
|
|
45
|
-
return
|
|
45
|
+
return cached
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
const setSelf = (next: T | ((oldValue: T) => T)): void => {
|