effect-atom-svelte 0.5.1 → 0.5.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.
package/README.md CHANGED
@@ -8,14 +8,14 @@ This is a community project by Jarred Norris. It is not part of Effect, and the
8
8
 
9
9
  ## Requirements
10
10
 
11
- - `effect` 4.1.x. The peer range is `~4.1.0`, not `^4.1.0`: the bindings use parts of the atom registry that aren't public API, which a minor release of `effect` can change.
11
+ - `effect` 4.1.x or 4.2.x. The peer range is `~4.1.0 || ~4.2.0`, not `^4.1.0`: the bindings use parts of the atom registry that aren't public API, which a minor release of `effect` can change. A daily CI run tests each new minor release, and a release of effect-atom-svelte adds it to the range once the tests pass. For `effect` 4.0, use effect-atom-svelte 0.4 (and effect-atom-svelte-devtools 0.3).
12
12
  - Svelte 5.57.2 or later. The async hooks (`useAtomSuspense`, `useAtomResult`) depend on Svelte's experimental async support. `RegistryProvider`, `useAtom`, `useAtomValue` and the other hooks work without it, on the server too. `HydrationBoundary` works without it but can't update atoms that already exist while the page hydrates.
13
13
  - SvelteKit is optional. The docs site and its tests run on SvelteKit 3. On SvelteKit 2, the error hooks in `effect-atom-svelte/sveltekit` work with less detail, and reach `<svelte:boundary>` only with `kit.experimental.handleRenderingErrors` turned on. `remoteQueryAtom` needs SvelteKit 3 with `experimental.remoteFunctions`.
14
14
 
15
15
  ## Installation
16
16
 
17
17
  ```sh
18
- npm install effect-atom-svelte "effect@~4.1.0"
18
+ npm install effect-atom-svelte "effect@~4.2.0"
19
19
  ```
20
20
 
21
21
  Turn on Svelte's async mode. In SvelteKit 3, pass it to `sveltekit()` in `vite.config.ts`:
@@ -1,6 +1,6 @@
1
1
  // The one place the inspector (../Inspector.ts) relies on how Effect implements AtomRegistry rather
2
- // than on its public API. Written against effect 4.0.1 and checked against 4.1.7 (effect/src/reactivity/AtomRegistry.ts);
3
- // the peer range is ~4.1.0 because of code like this.
2
+ // than on its public API. Written against effect 4.0.1 and checked against 4.1.7 and 4.2.0 (effect/src/reactivity/AtomRegistry.ts);
3
+ // the peer range lists each minor (~4.1.0 || ~4.2.0) because of code like this.
4
4
  //
5
5
  // The public `AtomRegistry` announces nodes added and removed (`onNodeAdded`, `onNodeRemoved`), and
6
6
  // a `Node` shows its parents, children and listeners. It says nothing when a node's value changes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "effect-atom-svelte",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Community-built Svelte 5 bindings for Effect Atom (not affiliated with the Effect team)",
5
5
  "keywords": [
6
6
  "effect",
@@ -59,7 +59,7 @@
59
59
  "@types/bun": "^1.4.2",
60
60
  "@vitest/browser": "^5.0.5",
61
61
  "@vitest/browser-playwright": "^5.0.5",
62
- "effect": "4.1.7",
62
+ "effect": "4.2.0",
63
63
  "playwright": "^1.57.0",
64
64
  "svelte": "^5.59.2",
65
65
  "svelte-check": "^4.7.8",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@sveltejs/kit": "^2.0.0 || ^3.0.0",
73
- "effect": "~4.1.0",
73
+ "effect": "~4.1.0 || ~4.2.0",
74
74
  "svelte": "^5.57.2"
75
75
  },
76
76
  "peerDependenciesMeta": {