effect-atom-svelte-devtools 0.3.0 → 0.4.0

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.
Files changed (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -6,7 +6,7 @@ Developer tools for [effect-atom-svelte](https://atom.jarrednorris.dev): a panel
6
6
  bun add -D effect-atom-svelte-devtools
7
7
  ```
8
8
 
9
- It reads effect-atom-svelte's inspector, which is new in effect-atom-svelte 0.2: devtools 0.2 goes with effect-atom-svelte 0.2.
9
+ It reads effect-atom-svelte's inspector (`effect-atom-svelte/inspector`), so each release works with particular effect-atom-svelte versions: its `peerDependencies` say which.
10
10
 
11
11
  ## The panel
12
12
 
@@ -42,7 +42,7 @@ It has three views, and settings:
42
42
 
43
43
  - **Graph**: the atoms and what reads what, laid out on tracks with sources on the left, as the effect-atom-svelte docs draw their examples. A value that changes rings, in green when it's a `Success` and red when it's a `Failure`; a cross marks an interrupted effect or a removed atom; a family's atoms share a row of dots. Click an atom to open its sheet. "Plumbing" shows the atoms runtimes, mutations and stores make, which are hidden by default; an atom that reads one is linked to whatever is upstream of it.
44
44
  - **Sheets**: a cover sheet with the registry's totals, then one sheet per atom: its value or `AsyncResult` state, what it reads and what reads it, what happened to it lately, and a title block with where it was declared (click to open it in your editor), keep-alive, idle TTL and readers.
45
- - **Timeline**: every computation, update, interruption and finalizer, newest first. A computation says why it ran: its first read, a refresh, or which atoms it reads changed. Click an atom to see only its rows.
45
+ - **Timeline**: every computation, update, interruption and finalizer, newest first. A computation says why it ran: its first read, a refresh, which atoms it reads changed, or an invalidation, such as a reactivity key a mutation invalidated or the atom refreshing itself. Click an atom to see only its rows.
46
46
  - **Settings**: the shortcut (click Change and press a new one: it needs Ctrl, Alt or Meta, or a function key, so it can't catch typing), and the button's corner, opacity and size. Drag the button to move it, too: it settles in the nearest corner. A faded button is opaque again while you point at it or focus it. The panel saves its settings in `localStorage`.
47
47
 
48
48
  It follows the registry of the nearest `RegistryProvider`, or a `registry` you pass it. With more than one provider mounted, a picker switches between them. It reads what the registry does through `effect-atom-svelte/inspector`, which starts watching when the panel mounts and costs nothing before.
@@ -104,6 +104,7 @@ export default defineConfig({
104
104
 
105
105
  - Only the dev server applies it, unless you pass `builds: true`: then production builds are labelled too (without keeping values across reloads, which builds don't have), for a page that shows atoms' names in production.
106
106
  - Put it before `sveltekit()` or `svelte()`, so it sees components before they are compiled. It warns if it comes after.
107
+ - `include` and `exclude` pick the files it labels, as Vite filter patterns. By default it labels Svelte components and JavaScript and TypeScript modules, and leaves anything in `node_modules` alone.
107
108
  - The atom is labelled in place and keeps its identity. `Atom.withLabel` would return a copy.
108
109
  - A label your code sets with `Atom.withLabel` wins. The one an `Atom.serializable` atom takes from its key (an RPC query's `AtomRpc:listTodos:home-todos`) gives way to the variable's name.
109
110
  - Members of an `Atom.family` are labelled with their argument, as `todoAtom(3)`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "effect-atom-svelte-devtools",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Developer tools for effect-atom-svelte: atom names from your source, and a live view of the registry",
5
5
  "keywords": [
6
6
  "devtools",
@@ -56,20 +56,20 @@
56
56
  "magic-string": "^0.30.21"
57
57
  },
58
58
  "devDependencies": {
59
- "@sveltejs/package": "^3.0.1",
60
- "@sveltejs/vite-plugin-svelte": "^7.3.1",
59
+ "@sveltejs/package": "^3.0.3",
60
+ "@sveltejs/vite-plugin-svelte": "^7.3.2",
61
61
  "@types/node": "^24",
62
- "effect": "4.0.5",
62
+ "effect": "4.1.7",
63
63
  "effect-atom-svelte": "workspace:*",
64
- "svelte": "^5.57.2",
65
- "svelte-check": "^4.7.6",
64
+ "svelte": "^5.59.2",
65
+ "svelte-check": "^4.7.8",
66
66
  "typescript": "^6.0.3",
67
67
  "vite": "^8.3.4",
68
68
  "vitest": "^5.0.5"
69
69
  },
70
70
  "peerDependencies": {
71
- "effect": "~4.0.0",
72
- "effect-atom-svelte": "^0.4.0",
71
+ "effect": "~4.1.0",
72
+ "effect-atom-svelte": "^0.5.0",
73
73
  "svelte": "^5.57.2",
74
74
  "vite": ">=5.0.0"
75
75
  },