atom.io 0.16.0 → 0.16.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/data/dist/index.cjs +29 -15
- package/data/dist/index.cjs.map +1 -1
- package/data/dist/index.js +29 -15
- package/data/dist/index.js.map +1 -1
- package/data/src/join.ts +29 -15
- package/internal/dist/index.cjs +3 -3
- package/internal/dist/index.cjs.map +1 -1
- package/internal/dist/index.js +3 -3
- package/internal/dist/index.js.map +1 -1
- package/internal/src/selector/create-readonly-selector.ts +2 -2
- package/internal/src/selector/create-writable-selector.ts +1 -1
- package/internal/src/set-state/copy-mutable-if-needed.ts +0 -2
- package/internal/src/store/store.ts +0 -1
- package/package.json +11 -11
- package/react-devtools/dist/index.cjs +0 -2
- package/react-devtools/dist/index.cjs.map +1 -1
- package/react-devtools/dist/index.js +0 -2
- package/react-devtools/dist/index.js.map +1 -1
- package/transceivers/set-rtx/dist/index.cjs +2 -2
- package/transceivers/set-rtx/dist/index.cjs.map +1 -1
- package/transceivers/set-rtx/dist/index.js +2 -2
- package/transceivers/set-rtx/dist/index.js.map +1 -1
- package/transceivers/set-rtx/src/set-rtx.ts +2 -2
|
@@ -19,10 +19,10 @@ export const createReadonlySelector = <T>(
|
|
|
19
19
|
const target = newest(store)
|
|
20
20
|
const subject = new Subject<{ newValue: T; oldValue: T }>()
|
|
21
21
|
|
|
22
|
-
const { get, find } = registerSelector(options.key,
|
|
22
|
+
const { get, find } = registerSelector(options.key, target)
|
|
23
23
|
const getSelf = () => {
|
|
24
24
|
const value = options.get({ get, find })
|
|
25
|
-
cacheValue(options.key, value, subject, store)
|
|
25
|
+
cacheValue(options.key, value, subject, newest(store))
|
|
26
26
|
return value
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -20,7 +20,7 @@ export const createWritableSelector = <T>(
|
|
|
20
20
|
): WritableSelectorToken<T> => {
|
|
21
21
|
const target = newest(store)
|
|
22
22
|
const subject = new Subject<{ newValue: T; oldValue: T }>()
|
|
23
|
-
const transactors = registerSelector(options.key,
|
|
23
|
+
const transactors = registerSelector(options.key, target)
|
|
24
24
|
const { find, get } = transactors
|
|
25
25
|
const readonlyTransactors = { find, get }
|
|
26
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atom.io",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "Composable and testable reactive data library.",
|
|
5
5
|
"homepage": "https://atom.io.fyi",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -53,29 +53,29 @@
|
|
|
53
53
|
"@types/npmlog": "7.0.0",
|
|
54
54
|
"@types/react": "18.2.47",
|
|
55
55
|
"@types/tmp": "0.2.6",
|
|
56
|
-
"@vitest/coverage-v8": "1.
|
|
57
|
-
"@vitest/ui": "1.
|
|
56
|
+
"@vitest/coverage-v8": "1.2.0",
|
|
57
|
+
"@vitest/ui": "1.2.0",
|
|
58
58
|
"concurrently": "8.2.2",
|
|
59
|
-
"drizzle-kit": "0.20.
|
|
59
|
+
"drizzle-kit": "0.20.12",
|
|
60
60
|
"drizzle-orm": "0.29.3",
|
|
61
61
|
"eslint": "8.56.0",
|
|
62
|
-
"framer-motion": "10.
|
|
63
|
-
"happy-dom": "
|
|
62
|
+
"framer-motion": "10.18.0",
|
|
63
|
+
"happy-dom": "13.0.6",
|
|
64
64
|
"http-proxy": "1.18.1",
|
|
65
65
|
"npmlog": "7.0.1",
|
|
66
66
|
"postgres": "3.4.3",
|
|
67
67
|
"preact": "10.19.3",
|
|
68
68
|
"react": "18.2.0",
|
|
69
69
|
"react-dom": "18.2.0",
|
|
70
|
-
"react-router-dom": "6.21.
|
|
71
|
-
"socket.io": "4.7.
|
|
72
|
-
"socket.io-client": "4.7.
|
|
70
|
+
"react-router-dom": "6.21.2",
|
|
71
|
+
"socket.io": "4.7.4",
|
|
72
|
+
"socket.io-client": "4.7.4",
|
|
73
73
|
"tmp": "0.2.1",
|
|
74
74
|
"tsup": "8.0.1",
|
|
75
75
|
"typescript": "5.3.3",
|
|
76
76
|
"vite": "5.0.11",
|
|
77
77
|
"vite-tsconfig-paths": "4.2.3",
|
|
78
|
-
"vitest": "1.
|
|
78
|
+
"vitest": "1.2.0"
|
|
79
79
|
},
|
|
80
80
|
"main": "dist/index.js",
|
|
81
81
|
"types": "dist/index.d.ts",
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
"build:realtime-server": "cd realtime-server && tsup",
|
|
221
221
|
"build:realtime-testing": "cd realtime-testing && tsup",
|
|
222
222
|
"build:transceivers:set-rtx": "cd transceivers/set-rtx && tsup",
|
|
223
|
-
"lint:biome": "biome check .",
|
|
223
|
+
"lint:biome": "biome check --diagnostic-level=warn -- .",
|
|
224
224
|
"lint:eslint": "eslint .",
|
|
225
225
|
"lint": "npm run lint:biome && npm run lint:eslint",
|
|
226
226
|
"test": "vitest",
|
|
@@ -2302,7 +2302,6 @@ var Id = ({ id }) => {
|
|
|
2302
2302
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2303
2303
|
"span",
|
|
2304
2304
|
__spreadProps(__spreadValues({
|
|
2305
|
-
role: "content",
|
|
2306
2305
|
ref: refs.setReference
|
|
2307
2306
|
}, getReferenceProps()), {
|
|
2308
2307
|
style: {
|
|
@@ -2319,7 +2318,6 @@ var Id = ({ id }) => {
|
|
|
2319
2318
|
isOpen && /* @__PURE__ */ jsxRuntime.jsx(react$1.FloatingPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2320
2319
|
"span",
|
|
2321
2320
|
__spreadProps(__spreadValues({
|
|
2322
|
-
role: "popup",
|
|
2323
2321
|
ref: refs.setFloating
|
|
2324
2322
|
}, getFloatingProps()), {
|
|
2325
2323
|
style: __spreadProps(__spreadValues({}, floatingStyles), {
|