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.
@@ -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, store)
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, store)
23
+ const transactors = registerSelector(options.key, target)
24
24
  const { find, get } = transactors
25
25
  const readonlyTransactors = { find, get }
26
26
 
@@ -1,5 +1,3 @@
1
- import type { JsonInterface } from "atom.io/json"
2
-
3
1
  import type { MutableAtom, Transceiver } from ".."
4
2
  import { Tracker } from "../mutable"
5
3
  import type { Store } from "../store"
@@ -6,7 +6,6 @@ import type {
6
6
  ReadonlySelectorFamily,
7
7
  ReadonlySelectorToken,
8
8
  RegularAtomFamily,
9
- RegularAtomToken,
10
9
  TimelineToken,
11
10
  TransactionToken,
12
11
  WritableSelectorFamily,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom.io",
3
- "version": "0.16.0",
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.1.3",
57
- "@vitest/ui": "1.1.3",
56
+ "@vitest/coverage-v8": "1.2.0",
57
+ "@vitest/ui": "1.2.0",
58
58
  "concurrently": "8.2.2",
59
- "drizzle-kit": "0.20.10",
59
+ "drizzle-kit": "0.20.12",
60
60
  "drizzle-orm": "0.29.3",
61
61
  "eslint": "8.56.0",
62
- "framer-motion": "10.17.12",
63
- "happy-dom": "12.10.3",
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.1",
71
- "socket.io": "4.7.3",
72
- "socket.io-client": "4.7.3",
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.1.3"
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), {