Skip to content

Releases

@sveltejs/vite-devtools-svelte@0.11.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 11:09
f67b31c

Minor Changes

  • #231 c2e5f8b Thanks @jycouet! - feat: new Add panel in the Vite DevTools dock installs official sv add-ons in one click, and community ones (experimental) from npm. It opens the newly started installation terminal for answering prompts.

@sveltejs/vite-devtools-svelte@0.9.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 10:15
4417d4a

Minor Changes

  • #149 e2c2ef3 Thanks @baseballyama! - - The API playground sends requests from the browser instead of the dev server, so they carry your app's cookies (httpOnly included) and work behind Docker, proxies and tunnels. A Set-Cookie in a response now updates your app's session. Cross-origin URLs now need a CORS policy that allows them.

    • Responses stream in as they arrive (SSE included), with a Stop button. The 30 s timeout covers only the wait for the headers, and bodies are cut at 5 MB.
    • Removed: the send-api-request RPC and the ApiResponse type. ApiEndpoint gains url.
  • #176 8ddce70 Thanks @baseballyama! - The API playground now rescans endpoints when the dev server sees a file added, changed or deleted, so new or removed handlers show up without pressing Rescan.

  • #153 61c6f1a Thanks @teemingc! - breaking: avoid injecting the DevTools dock automatically

  • #178 44aafe2 Thanks @teemingc! - breaking: require @sveltejs/kit 3.3.0 or later

Patch Changes

  • #150 7b70877 Thanks @baseballyama! - The API playground detects handlers exported through destructuring and export * chains ($lib aliases included). An endpoint whose exports cannot all be followed is marked ? and offers every HTTP method. ApiEndpoint gains complete.

  • #182 d9dda64 Thanks @baseballyama! - Update dependencies: @vitejs/devtools-kit ^0.8.3, devframe ^1.3.6

  • #151 051c67e Thanks @baseballyama! - Security: the OG preview checks the address at connection time, closing a DNS rebinding path to the local network, and also refuses SIIT, local-use NAT64 and Teredo addresses. A malformed response now fails the preview instead of crashing the dev server. The preview sends a browser-like User-Agent and reads at most the first 1 MB of a page, the cutoff Meta's crawler documents.

@sveltejs/vite-devtools-svelte@0.10.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 21:41
89bd18c

Minor Changes

  • #213 a2509f3 Thanks @baseballyama! - feat: the Load functions panel now also records loads that run in the browser (universal loads after hydration, and every load of an app with ssr = false); before, only loads run on the server were shown

  • #168 6514040 Thanks @teemingc! - feat: add the Svelte Inspector to the Vite DevTools dock: hold alt-x in your app and click an element to open its source. svelte is now a peer dependency.

  • #168 6514040 Thanks @teemingc! - breaking: with Vite DevTools, the dev server fails to start while vitePlugin.inspector turns on vite-plugin-svelte's own inspector. Remove that option.

  • #205 8b5cbbf Thanks @baseballyama! - feat: the Svelte Inspector's label shows the component instance of the element under the cursor

  • #206 67968a1 Thanks @baseballyama! - feat: each row of the Svelte Inspector's right-click menu has Inspect, which selects that component instance in the DevTools, and Open, which opens the editor (Inspect needs Svelte 5.58 or later)

  • #179 80697db Thanks @teemingc! - feat: add a Svelte Inspector settings view to the Vite DevTools dock. Your shortcut, keys and styles are saved for your user and apply to all your projects.

  • #224 43240f9 Thanks @baseballyama! - feat: register the MCP server once with claude mcp add svelte-devtools -- npx @sveltejs/vite-devtools-svelte mcp; it finds the project's running dev server by itself, and the dev server no longer prints a token. Remove the old registration first (claude mcp remove svelte).

  • #215 71cb065 Thanks @baseballyama! - feat: the Reactivity Components overview and the get_reactive_summary MCP tool now show each live instance's totals since it mounted and when it was last active, instead of the last 10 seconds. The tool's windowMs argument and window field are removed; use computedAt and each row's lastActiveAt instead.

  • #211 1173aa1 Thanks @baseballyama! - feat: the Components panel has a Pick element button in the Vite DevTools dock, which turns on the Svelte Inspector in the app; Inspect in its right-click menu then selects the element's component there

  • #230 03be86a Thanks @baseballyama! - Remove the Compiled output panel, its inspect-file and get-svelte-files RPCs, and the InspectResult type. Vite DevTools shows the transformed code of each module.

Patch Changes

  • #201 aa7d19a Thanks @baseballyama! - Panels now always stay up to date: the Live/Paused toggle, the refresh button next to it and the count next to each panel title are removed, and the Reactivity full graph no longer pauses itself when it is large.

  • #212 29152a5 Thanks @baseballyama! - fix: the Components panel's Files view now shows how many instances of each file are mounted, and the links between the live tree and the Files view now work.

  • #194 991a373 Thanks @baseballyama! - The Routes, Load functions, API and Build panels are now hidden in apps that do not use SvelteKit.

  • #184 bcad863 Thanks @baseballyama! - Routes, API endpoints, the social preview and load profiling now follow the files.routes option of sveltekit() instead of assuming src/routes, and are empty without SvelteKit. ProjectInfo no longer has routesDir.

  • #198 829c66b Thanks @baseballyama! - The Load functions panel shows each load file's path relative to the project root, and clicking it opens the file in your editor. The Slow filter is removed; sort by Duration instead.

  • #199 d840dbb Thanks @baseballyama! - The Load functions panel shows only the load file's name (such as +layout.server.ts) next to the route, so layout and page loads on the same route are easy to tell apart. The full path is in the tooltip, and the Type column is removed since the file name already shows it.

  • #210 42f001c Thanks @baseballyama! - The Modules panel now hides files SvelteKit generates under .svelte-kit/ by default; the "generated" button shows them.

  • #218 e4684a0 Thanks @baseballyama! - The Modules panel now lists .svelte.js and .svelte.ts modules under Svelte, with a svelte.js or svelte.ts badge.

  • #195 aad3eb1 Thanks @baseballyama! - The sidebar now groups panels by task: Overview and Problems first, then Inspect, Profile and Project.

  • #187 deccf46 Thanks @baseballyama! - The reactive graph now fills the panel and refits when the panel is resized, unless you have zoomed.

  • #217 df44481 Thanks @baseballyama! - The Reactivity overview picks Components, Instances or States from one control instead of two.

  • #204 b981a59 Thanks @baseballyama! - The Reactivity overview replaces its block of coverage notes with a single line of component counts.

  • #228 1b87c1e Thanks @manuel3108! - Organize the Vite DevTools Svelte group into workflow views with horizontal tool tabs, including the SvelteKit tools and Inspector settings.

@sveltejs/vite-devtools-svelte@0.8.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 14:47
3a14068

Minor Changes

  • #154 505d9b0 Thanks @baseballyama! - Drop SvelteKit 2 support. The optional @sveltejs/kit peer dependency is now ^3.0.0, and the Vite DevTools dock is injected only into SvelteKit 3's generated dev server module (.svelte-kit/generated/dev/server.js); SvelteKit 2's generated/server/internal.js is no longer patched. Plain Svelte + Vite apps without SvelteKit keep working.

  • #155 44c9905 Thanks @baseballyama! - Publish under the @sveltejs scope as @sveltejs/vite-devtools-svelte. Install the new name and update imports: import { svelteDevtools } from '@sveltejs/vite-devtools-svelte'.

vite-devtools-svelte@0.7.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 00:10
01a36e5

Minor Changes

  • #135 2f30ab8 Thanks @baseballyama! - - SvelteKit 2 and 3 are both supported, and @sveltejs/kit is now declared as an optional peer dependency (^2.0.0 || ^3.0.0). Plain Svelte + Vite apps without SvelteKit keep working.
    • The plugin now uses @vitejs/devtools-kit 0.8. To show the panels inside the Vite DevTools dock, install @vitejs/devtools 0.8.0 or later.

vite-devtools-svelte@0.6.2

Choose a tag to compare

@github-actions github-actions released this 08 Oct 01:30
d76b611

Patch Changes

  • #128 ce18e36 Thanks @baseballyama! - Build panel: removed the Modules column and the module list in the chunk details. The build output on disk does not say which modules a chunk contains, so they always showed 0 and an empty list. The details now show the chunk's size and its share of the total.

vite-devtools-svelte@0.6.1

Choose a tag to compare

@github-actions github-actions released this 07 Oct 19:29
0d6ec0c

Patch Changes

  • #119 054e835 Thanks @baseballyama! - Static analysis reads code with a parser instead of regular expressions. Jump-to-declaration no longer lands on a let in a comment or string, finds destructured bindings, later declarators and $state class fields (Counter.count), and opens the N-th $effect for effect_N. The component graph ignores commented-out, string and markup look-alike imports and type-only imports, and now includes re-exports, side-effect imports and literal import()s. The OG preview ignores <meta> / <title> inside comments, scripts and SVG, takes the charset only from a charset / http-equiv meta tag, and no longer turns &constructor; into source text.

  • #115 f7b430a Thanks @baseballyama! - Code panes highlight a <style> rule whose selector has a pseudo-class (button:focus-visible {) as a selector instead of as a property: value declaration.

  • #123 6af48f1 Thanks @baseballyama! - Reactivity graph: a fitted graph is centred in the view (it sat 80 units off to the side), a changed markup node pulses purple instead of with the $effect red glow, and object or array values on nodes read as JSON instead of [object Object]. Overview: the Modules tile no longer says "no cycles" when the module graph could not be read.

  • #121 8d1aa11 Thanks @baseballyama! - A component snapshot entry that is not an object with a numeric id (e.g. null from an out-of-spec runtime) is ignored instead of being listed as a live component.

  • #126 abf4789 Thanks @baseballyama! - Panels no longer mistake a failed load for "nothing recorded": Problems, Render, Load functions, Frame rate, Build, API and Compiled output now show the error. The selected problem or load call stays selected when new entries arrive or old ones are dropped, a kind filter (Modules, Assets) stays visible after its last item goes away, two app tabs reporting a frame drop in the same millisecond no longer break the Frame rate chart, and a Reactivity graph filtered to nothing says no signal matches.

  • #122 ed7e6f7 Thanks @baseballyama! - Component names drop only the trailing .svelte (Item.sveltekit.svelte is no longer shown as Itemkit.svelte), and an unhandled rejection whose reason cannot be converted to a string no longer makes the devtools listener throw.

  • #117 00477e3 Thanks @baseballyama! - Component tracking no longer corrupts markup when a line of a component's text starts with $.push($$props (e.g. inside <pre>), and the reactive graph now attributes reads of object keys containing a quote or backslash (obj["it's"]) to the right $state.

  • #116 3ec87f1 Thanks @baseballyama! - Compiler warnings are now captured: they are taken from vite-plugin-svelte's onwarn as structured warnings (code, file, line, column) instead of being parsed out of Vite's logger, which vite-plugin-svelte's dev warnings never reach. A component compiled for both client and SSR lists each warning once.

    SvelteKit load profiling finds the exported load with a parser instead of text matching: an export const load mentioned in a comment or string no longer breaks the module, names declared together with load (export const ssr = false, load = …) stay exported, and the route is taken from <root>/src/routes (a project path containing routes no longer garbles it).

vite-devtools-svelte@0.6.0

Choose a tag to compare

@github-actions github-actions released this 07 Oct 12:37
ca31003

Minor Changes

  • #112 9723083 Thanks @baseballyama! - - New clientAuth option: svelteDevtools({ clientAuth: false }) turns off the one-time code for the standalone DevTools on a trusted single-user machine (default true). In the Vite DevTools dock, use DevTools({ clientAuth: false }) from @vitejs/devtools.
    • The shipped skills are renamed vite-devtools-svelte-perf-audit and vite-devtools-svelte-perf-fix (they were vite-devtools-svelte:perf-audit / :perf-fix). The new names follow the Agent Skills spec, so agents such as pi that reject : can load them. Re-copy the skills into .claude/skills/ and call them by the new names.

Patch Changes

  • #113 ceeaf68 Thanks @baseballyama! - Overview: "Mounted components" no longer stays at 0 when the DevTools open before the app has reported its components. The count now updates while the overview is open, and is fetched again only when the components changed.

  • #108 9dfc598 Thanks @baseballyama! - Security: the API playground and Social preview no longer fetch private addresses written as bracketed IPv6 literals (http://[fd00::1]/, http://[fe80::1]/, http://[::ffff:127.0.0.1]/) or in ranges the old check missed (0.0.0.0/8, 100.64.0.0/10, multicast, reserved, documentation and benchmarking ranges, NAT64 and 6to4 forms of private IPv4, *.localhost, localhost.). Names that fail to resolve are now rejected instead of fetched.

  • #109 0326952 Thanks @baseballyama! - Internal hardening from stricter type checking and linting: malformed hot-channel payloads (non-object messages, FPS samples without numbers, runtime errors without a string message) are dropped instead of stored; a failing MCP request is logged instead of becoming an unhandled rejection; a custom logger.warn is called with its logger as this; exports lists types first and exports ./package.json.

  • #110 23cf5be Thanks @baseballyama! - Fixes found by the new test suite:

    • Routes: layout resets (+page@.svelte, +page@(group).svelte, +layout@….svelte) are listed instead of disappearing; parameter matchers ([id=integer]), partial segments (foo-[id], [a]-[b]) and escapes ([x+2e]) are parsed correctly.
    • API endpoints: methods are read from the module's exports (export { handler as GET }, HEAD, OPTIONS, fallback) instead of substrings, so export const GETTER or comments no longer count; requests and Social preview fetches time out after 30 s.
    • Social preview: quoted values with apostrophes, data-* attributes, entities, declared charsets, relative og:image and first-tag-wins are handled.
    • Build analysis no longer counts build/client twice; dangling symlinks no longer break asset/build scans; a package.json mid-edit no longer breaks every panel.
    • Module graph marks every module in a cycle; MCP end_session with keep: 'discard' works; p95 uses nearest rank; omitted effectMaxDeps keeps the default.
    • MCP endpoint: constant-time token check, and a 500 instead of a hanging request when the server cannot be built.
    • Component tracking: components whose markup contains $.push( and file ids with $&-style sequences are tracked; load profiling no longer breaks load for non-serializable results; coloured compiler warnings keep their location; the dock tag is not injected into a </body> inside a comment or script.
    • Reactivity graph build is no longer quadratic in the number of proxy sources.
    • UI: Svelte highlighting with > inside tag expressions and multi-line comments/template literals, highlight offsets for characters like İ, component boxes for same-named files in different folders, byte sizes above MB, NaN/Infinity values, polled panels after a missing dataset counter, and stale responses after Clear.
  • #106 1997f14 Thanks @baseballyama! - Internal: the browser runtime is now plain JavaScript sources (linted and formatted) inlined at build time, and vite-devtools-svelte/package.json is exported. No behavior change.

  • #111 7ea6444 Thanks @baseballyama! - DevTools UI: the State timeline shows an error instead of "No state changes yet" when loading fails; accessible names for the search fields, command palette, graph zoom buttons and graph nodes (which also report their selected state and respond to Space); valid ARIA for table headers and labelled groups.

vite-devtools-svelte@0.5.0

Choose a tag to compare

@github-actions github-actions released this 07 Oct 04:33
6deb0f6

Minor Changes

  • #104 ef8da61 Thanks @baseballyama! - Reactivity tracking reworked and verified against real Svelte components:

    • $effect / $effect.pre nodes now have their dependencies (they were always shown without edges, because Svelte defers a component's top-level effect until mount).
    • Reads from the markup ({expr}, attributes, {#if}/{#each} conditions, <svelte:head>) are edges to a new per-component markup node (type: 'template'), so a $derived used only in the template is no longer reported as unused.
    • Object/array $state (proxies, class fields, reassigned objects) now has edges: reads of their properties are attributed to the state node, also across components through props.
    • Shared state of .svelte.js / .svelte.ts modules is tracked (graph, timeline, overview rows with kind: 'module').
    • orphanDeriveds (MCP get_reactive_graph_problems) now means "never evaluated"; a derived read only by an event handler is not listed, and derived-orphan is no longer a performance issue. Nodes depending on state devtools does not track (e.g. SvelteKit's $app/state) report untrackedDeps and are not listed as isolated.
    • {@const} in {#each} items and several instances of a $state class no longer overwrite each other's node; nodes of removed items / re-run effects leave the graph and counts.
    • A component whose init throws inside <svelte:boundary> no longer leaves a ghost instance or misattributes later components.
    • The runtime script injected into index.html (plain Svelte + Vite) no longer fails to load with a CORS error.

Patch Changes

  • #103 180669f Thanks @baseballyama! - Frame rate panel no longer lowers the frame rate it measures. In the Vite DevTools dock the panel shares the app's main thread, and the "Live" indicator's never-ending box-shadow pulse forced a style recalculation and repaint every frame (about 8 fps instead of 60 on slower machines). The indicator is now static, and the loading animations run on the compositor (transform / opacity only).

vite-devtools-svelte@0.4.1

Choose a tag to compare

@github-actions github-actions released this 05 Oct 01:13
d9c5723

Patch Changes

  • #100 19cf387 Thanks @baseballyama! - Trim the state timeline ring in bulk instead of once per recorded change. With the DevTools open, an input that writes thousands of $state values no longer runs one splice per change; the ring is applied before every read (each push, the full snapshot, getStateTimeline() and clearStateTimeline()) and when more than 1000 entries or 4 MB are held. Reads still return the newest 500 entries within 4 MB, and unsent entries removed by the ring are still reported as dropped, including when the timeline is cleared.