Repository navigation
Releases
@sveltejs/vite-devtools-svelte@0.11.0
@sveltejs/vite-devtools-svelte@0.9.0
Minor Changes
-
#149
e2c2ef3Thanks @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. ASet-Cookiein 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-requestRPC and theApiResponsetype.ApiEndpointgainsurl.
-
#176
8ddce70Thanks @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
61c6f1aThanks @teemingc! - breaking: avoid injecting the DevTools dock automatically -
#178
44aafe2Thanks @teemingc! - breaking: require@sveltejs/kit3.3.0 or later
Patch Changes
-
#150
7b70877Thanks @baseballyama! - The API playground detects handlers exported through destructuring andexport *chains ($libaliases included). An endpoint whose exports cannot all be followed is marked?and offers every HTTP method.ApiEndpointgainscomplete. -
#182
d9dda64Thanks @baseballyama! - Update dependencies:@vitejs/devtools-kit^0.8.3,devframe^1.3.6 -
#151
051c67eThanks @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
Minor Changes
-
#213
a2509f3Thanks @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 withssr = false); before, only loads run on the server were shown -
#168
6514040Thanks @teemingc! - feat: add the Svelte Inspector to the Vite DevTools dock: holdalt-xin your app and click an element to open its source.svelteis now a peer dependency. -
#168
6514040Thanks @teemingc! - breaking: with Vite DevTools, the dev server fails to start whilevitePlugin.inspectorturns on vite-plugin-svelte's own inspector. Remove that option. -
#205
8b5cbbfThanks @baseballyama! - feat: the Svelte Inspector's label shows the component instance of the element under the cursor -
#206
67968a1Thanks @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
80697dbThanks @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
43240f9Thanks @baseballyama! - feat: register the MCP server once withclaude 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
71cb065Thanks @baseballyama! - feat: the Reactivity Components overview and theget_reactive_summaryMCP 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'swindowMsargument andwindowfield are removed; usecomputedAtand each row'slastActiveAtinstead. -
#211
1173aa1Thanks @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
03be86aThanks @baseballyama! - Remove the Compiled output panel, itsinspect-fileandget-svelte-filesRPCs, and theInspectResulttype. Vite DevTools shows the transformed code of each module.
Patch Changes
-
#201
aa7d19aThanks @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
29152a5Thanks @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
991a373Thanks @baseballyama! - The Routes, Load functions, API and Build panels are now hidden in apps that do not use SvelteKit. -
#184
bcad863Thanks @baseballyama! - Routes, API endpoints, the social preview and load profiling now follow thefiles.routesoption ofsveltekit()instead of assumingsrc/routes, and are empty without SvelteKit.ProjectInfono longer hasroutesDir. -
#198
829c66bThanks @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
d840dbbThanks @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
42f001cThanks @baseballyama! - The Modules panel now hides files SvelteKit generates under.svelte-kit/by default; the "generated" button shows them. -
#218
e4684a0Thanks @baseballyama! - The Modules panel now lists.svelte.jsand.svelte.tsmodules under Svelte, with asvelte.jsorsvelte.tsbadge. -
#195
aad3eb1Thanks @baseballyama! - The sidebar now groups panels by task: Overview and Problems first, then Inspect, Profile and Project. -
#187
deccf46Thanks @baseballyama! - The reactive graph now fills the panel and refits when the panel is resized, unless you have zoomed. -
#217
df44481Thanks @baseballyama! - The Reactivity overview picks Components, Instances or States from one control instead of two. -
#204
b981a59Thanks @baseballyama! - The Reactivity overview replaces its block of coverage notes with a single line of component counts. -
#228
1b87c1eThanks @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
Minor Changes
-
#154
505d9b0Thanks @baseballyama! - Drop SvelteKit 2 support. The optional@sveltejs/kitpeer 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'sgenerated/server/internal.jsis no longer patched. Plain Svelte + Vite apps without SvelteKit keep working. -
#155
44c9905Thanks @baseballyama! - Publish under the@sveltejsscope 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
Minor Changes
- #135
2f30ab8Thanks @baseballyama! - - SvelteKit 2 and 3 are both supported, and@sveltejs/kitis 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-kit0.8. To show the panels inside the Vite DevTools dock, install@vitejs/devtools0.8.0 or later.
- The plugin now uses
vite-devtools-svelte@0.6.2
Patch Changes
- #128
ce18e36Thanks @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
Patch Changes
-
#119
054e835Thanks @baseballyama! - Static analysis reads code with a parser instead of regular expressions. Jump-to-declaration no longer lands on aletin a comment or string, finds destructured bindings, later declarators and$stateclass fields (Counter.count), and opens the N-th$effectforeffect_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 literalimport()s. The OG preview ignores<meta>/<title>inside comments, scripts and SVG, takes the charset only from acharset/http-equivmeta tag, and no longer turns&constructor;into source text. -
#115
f7b430aThanks @baseballyama! - Code panes highlight a<style>rule whose selector has a pseudo-class (button:focus-visible {) as a selector instead of as aproperty: valuedeclaration. -
#123
6af48f1Thanks @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$effectred 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
8d1aa11Thanks @baseballyama! - A component snapshot entry that is not an object with a numericid(e.g.nullfrom an out-of-spec runtime) is ignored instead of being listed as a live component. -
#126
abf4789Thanks @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
ed7e6f7Thanks @baseballyama! - Component names drop only the trailing.svelte(Item.sveltekit.svelteis no longer shown asItemkit.svelte), and an unhandled rejection whose reason cannot be converted to a string no longer makes the devtools listener throw. -
#117
00477e3Thanks @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
3ec87f1Thanks @baseballyama! - Compiler warnings are now captured: they are taken from vite-plugin-svelte'sonwarnas 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
loadwith a parser instead of text matching: anexport const loadmentioned in a comment or string no longer breaks the module, names declared together withload(export const ssr = false, load = …) stay exported, and the route is taken from<root>/src/routes(a project path containingroutesno longer garbles it).
vite-devtools-svelte@0.6.0
Minor Changes
- #112
9723083Thanks @baseballyama! - - NewclientAuthoption:svelteDevtools({ clientAuth: false })turns off the one-time code for the standalone DevTools on a trusted single-user machine (defaulttrue). In the Vite DevTools dock, useDevTools({ clientAuth: false })from@vitejs/devtools.- The shipped skills are renamed
vite-devtools-svelte-perf-auditandvite-devtools-svelte-perf-fix(they werevite-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.
- The shipped skills are renamed
Patch Changes
-
#113
ceeaf68Thanks @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
9dfc598Thanks @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
0326952Thanks @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 customlogger.warnis called with its logger asthis;exportsliststypesfirst and exports./package.json. -
#110
23cf5beThanks @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, soexport const GETTERor 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, relativeog:imageand first-tag-wins are handled. - Build analysis no longer counts
build/clienttwice; dangling symlinks no longer break asset/build scans; apackage.jsonmid-edit no longer breaks every panel. - Module graph marks every module in a cycle; MCP
end_sessionwithkeep: 'discard'works; p95 uses nearest rank; omittedeffectMaxDepskeeps 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 breaksloadfor 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.
- Routes: layout resets (
-
#106
1997f14Thanks @baseballyama! - Internal: the browser runtime is now plain JavaScript sources (linted and formatted) inlined at build time, andvite-devtools-svelte/package.jsonis exported. No behavior change. -
#111
7ea6444Thanks @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
Minor Changes
-
#104
ef8da61Thanks @baseballyama! - Reactivity tracking reworked and verified against real Svelte components:$effect/$effect.prenodes 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$derivedused 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.tsmodules is tracked (graph, timeline, overview rows withkind: 'module'). orphanDeriveds(MCPget_reactive_graph_problems) now means "never evaluated"; a derived read only by an event handler is not listed, andderived-orphanis no longer a performance issue. Nodes depending on state devtools does not track (e.g. SvelteKit's$app/state) reportuntrackedDepsand are not listed as isolated.{@const}in{#each}items and several instances of a$stateclass 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
180669fThanks @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
Patch Changes
- #100
19cf387Thanks @baseballyama! - Trim the state timeline ring in bulk instead of once per recorded change. With the DevTools open, an input that writes thousands of$statevalues no longer runs onespliceper change; the ring is applied before every read (each push, the full snapshot,getStateTimeline()andclearStateTimeline()) 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.