atom.io 0.9.5 → 0.9.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.
@@ -20,6 +20,9 @@ export const cacheValue = (
20
20
  target(store).valueMap.set(key, future)
21
21
  future
22
22
  .then((value) => {
23
+ if (future.isCanceled) {
24
+ return
25
+ }
23
26
  cacheValue(key, value, subject, store)
24
27
  subject.next({ newValue: value, oldValue: value })
25
28
  })
@@ -11,7 +11,7 @@ export type Fated<T, E extends Error = Error> = Loadable<E | T>
11
11
  * Can be constructed like a Promise, or from an existing Promise.
12
12
  */
13
13
  export class Future<T> extends Promise<T> {
14
- private isCanceled = false
14
+ public isCanceled = false
15
15
 
16
16
  public constructor(
17
17
  executor:
@@ -84,6 +84,11 @@ export function timeline__INTERNAL(
84
84
  addAtomToTimeline(token, tl, store)
85
85
  }
86
86
  })
87
+ for (const atom of core.atoms.values()) {
88
+ if (atom.family?.key === family.key) {
89
+ addAtomToTimeline(atom, tl, store)
90
+ }
91
+ }
87
92
  } else {
88
93
  const token = tokenOrFamily
89
94
  if (`family` in token && token.family) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom.io",
3
- "version": "0.9.5",
3
+ "version": "0.9.7",
4
4
  "description": "Composable and testable reactive data library.",
5
5
  "homepage": "https://atom.io.fyi",
6
6
  "sideEffects": false,
@@ -56,10 +56,10 @@
56
56
  "@vitest/coverage-v8": "0.34.6",
57
57
  "concurrently": "8.2.2",
58
58
  "eslint": "8.53.0",
59
- "framer-motion": "10.16.4",
59
+ "framer-motion": "10.16.5",
60
60
  "happy-dom": "12.10.3",
61
61
  "npmlog": "7.0.1",
62
- "preact": "10.18.2",
62
+ "preact": "10.19.2",
63
63
  "react": "18.2.0",
64
64
  "react-dom": "18.2.0",
65
65
  "react-router-dom": "6.18.0",