@sveltejs/package@3.0.1
Patch Changes
- fix: emit component types for the installed Svelte version, rather than the oldest one the
sveltedependency range allows (#17330)
Folge Svelte, um die Release Notes in deinen Feed zu holen.
svelte dependency range allows (#17330)feat: support report-sha256/report-sha384/report-sha512 CSP hash-reporting keywords (#17398)
feat: emit a sveltekit.endpoint span for +server handlers when server tracing is enabled (#17325)
fix: don't treat every module as server-only when the project is inside a server directory (#17376)
fix: continue deployment recovery when service worker updates fail (#17440)
fix: infer prerendered MIME types from generated files (#17381)
fix: leave generated files alone when their contents are unchanged (#17310)
fix: leave focus in the parent page when an app in an unfocused iframe starts or navigates (#17297)
fix: don't warn about Storybook's Vite plugins that use transformIndexHtml (#17373)
fix: start the dev server on runtimes such as Deno that define caches as a getter-only global (#17401)
fix: start one platform proxy for concurrent Vite servers and keep it alive until the last one closes (#17368)
fix: support Span#setStatus and Span#updateName on local emulation of Cloudflare tracing (#17400)
@sveltejs/kit 3.0.1 behebt einen Fehler, sodass relative Imports in generierten Typen jetzt auch mit der Modulauflösung nodenext funktionieren.
nodenext module resolution (#17351)@sveltejs/adapter-netlify 7.0.1 unterstützt in Edge Functions nun reine Node-Built-in-Imports sowie .wasm- und Schriftdateien.
.wasm/font files in edge functions (#17324)@sveltejs/package 3.0.0 erfordert Node 22 oder neuer, warnt bei .server.-Dateien ohne Import eines Server-only-Moduls, wandelt Import-Aliase in relative Imports um und enthält mehrere Fehlerbehebungen und Abhängigkeitsupdates.
feat: warn when using a .server. file or file inside a server directory without importing a server-only module (#16266)
feat: transform import aliases into relative imports in files (#16360)
chore: remove dependency on sade (#16619)
chore: bump svelte2tsx to 0.7.59 (#16745)
fix: rewrite .ts extensions in import.meta.glob patterns when rewriteRelativeImportExtensions is enabled (#16776)
chore: replace private fs helpers with Node built-ins (#16610)
chore: read the Svelte config via @sveltejs/load-config (#17039)
chore: remove dependency on kleur (#12548)
fix: import resolved peer dependencies as file URLs so project-relative resolution works on Windows (#16618)
fix: emit declarations when the tsconfig lives above the package root (#16568)
chore: bump svelte2tsx to 0.7.60 (#16761) …
@sveltejs/kit 3.0.0 bringt zahlreiche Breaking Changes, darunter Node 22 und TypeScript 6 als Mindestversion, verschobene Remote-Function-Typen nach $app/server, cookie v2, den Wegfall der Option preloadStrategy und den Standardwert '/' für den Cookie-path.
breaking: move remote function types to $app/server (#16740)
breaking: remove experimental.handleRenderingErrors flag (#16265)
breaking: make getRequest and setResponse synchronous (#16280)
breaking: TypeScript 6 is now the minimum required version (#15930)
breaking: refresh all load functions/queries when clicking a link to the current URL (#16572)
breaking: move remote function types to $app/server (#16764)
breaking: upgrade to cookie v2. Cookie names must now contain only ASCII characters (#13386)
breaking: require Node 22 or newer (#12548)
major: error when a client-requested single-flight mutation isn't respected by the server, allow the server to explicitly ignore refreshes (#16892)
breaking: remove the preloadStrategy option. modulepreload will always be used (#15256)
breaking: default the cookie path option to '/' (#15398) …
@sveltejs/enhanced-img 1.0.0 erfordert Node 22 sowie Vite 8 (vite@^8.0.12) und vite-plugin-svelte 7, aktualisiert vite-imagetools auf v12 und wertet dynamische Bildquellen-Ausdrücke nur noch einmal aus.
@sveltejs/adapter-vercel 7.0.0 nutzt rolldown für das Edge-Function-Bundling, setzt es2022 als Build-Ziel, verlangt vite@^8.0.12, entfernt die Edge- und Node-20-Runtimes, ändert die Builder-API und behebt mehrere ISR-Fehler.
chore: use rolldown for edge function bundling (#15432)
breaking: populate env vars before instrumentation.server.js is evaluated and update the adapter instrumentation API (#16303)
breaking: edge function build target is now es2022 (#15432)
breaking: require vite@^8.0.12, the first Vite 8 release bundling stable rolldown 1.0.0 (#16134)
breaking: replace the builder.generateManifest with builder.generateServerInstance and builder.manifest (#16875)
breaking: remove support for edge and Node 20 runtimes (#16520)
chore: bump @vercel/nft dependency (#16522)
chore: use node:fs instead of deprecated builder.rimraf and builder.mkdirp (#16610)
fix: omit ISR data endpoints for server-only routes (#16731)
fix: correctly apply reroute results for apps configured with split serverless functions (#16665)
fix: pass the requested pathname, including any trailing slash, to ISR functions (#16903) …
@sveltejs/adapter-static 4.0.0 setzt SvelteKit 3 voraus und enthält Fehlerbehebungen für das Deployment auf Vercel, etwa beim Caching von 404-Antworten und bei Redirects.
chore: use node:fs instead of deprecated builder.rimraf and builder.mkdirp (#16610)
fix: avoid caching immutable asset 404s when configuring for Vercel (#16626)
fix: match adapter-vercel's prerendered redirect handling when deploying to Vercel (#16497)
fix: allow prerelease versions of SvelteKit 3 to satisfy the peer dependency range (#16286)
chore: use builder.config to access SvelteKit config settings (#16895)
Updated dependencies:
@sveltejs/adapter-node 6.0.0 setzt SvelteKit 3 und Vite 8 voraus, wechselt von rollup zu rolldown, ersetzt die ORIGIN-Umgebungsvariable durch kit.paths.origin und liefert statische Assets nun aus beim Build erfassten Tabellen statt über sirv aus.
breaking: populate env vars before instrumentation.server.js is evaluated and update the adapter instrumentation API (#16303)
chore: migrate from rollup to rolldown (#15297)
breaking: require SvelteKit 3 (#15506)
breaking: add kit.paths.origin config option, remove kit.prerender.origin and the adapter-node ORIGIN environment variable (#16161)
breaking: require vite@^8.0.12, the first Vite 8 release bundling stable rolldown 1.0.0 (#16134)
breaking: replace the builder.generateManifest with builder.generateServerInstance and builder.manifest (#16875)
breaking: record the list of static assets at build time, files added to the output afterwards are not served (#16908)
breaking: validate static assets with content-hash ETags and stop sending Last-Modified (#16908)
breaking: serve static assets only to GET and HEAD requests (#16908)
@sveltejs/adapter-netlify 7.0.0 schreibt Ausgaben gemäß der stabilen Netlify Frameworks API (Netlify CLI ab v17.31.0 nötig), setzt SvelteKit 3 und Vite 8 voraus, nutzt rolldown für Edge Functions und unterstützt die Optionen split und edge kombiniert.
chore: use rolldown for edge function bundling (#15432)
breaking: populate env vars before instrumentation.server.js is evaluated and update the adapter instrumentation API (#16303)
breaking: write output that conforms to the stable Netlify Frameworks API. (#15294)
Deploying and previewing with Netlify CLI now requires v17.31.0 or later. Run npm i -g netlify-cli@latest to upgrade.
breaking: write static files based on the publish adapter option rather than reading the netlify.toml file (#17078)
breaking: require SvelteKit 3 (#15506)
breaking: edge function build target is now es2022 (#15432)
breaking: require vite@^8.0.12, the first Vite 8 release bundling stable rolldown 1.0.0 (#16134)
breaking: replace the builder.generateManifest with builder.generateServerInstance and builder.manifest (#16875)
split and edge options combined (#17045) …@sveltejs/adapter-cloudflare 8.0.0 verlangt Wrangler ab 4.118.0 und SvelteKit 3, entfernt platform.context und das Cloudflare-platform zugunsten eines emulierten cloudflare:workers-Moduls und verzichtet auf die Workers Cache API zugunsten von Workers Caching.
breaking: minimum Wrangler version required is 4.118.0 (#16668)
breaking: populate env vars before instrumentation.server.js is evaluated and update the adapter instrumentation API (#16303)
breaking: upgrade @cloudflare/workers-types to 4.20260219.0 (#15347)
breaking: upgrade minimum wrangler version to ^4.67.0 (#15347)
breaking: remove platform.context in favour of platform.ctx (#15347)
breaking: remove cloudflare platform, emulate the cloudflare:workers module instead (#16754)
breaking: require SvelteKit 3 (#15506)
breaking: remove use of the Cloudflare Workers Cache API in favour of Workers Caching (#16640)
breaking: replace the builder.generateManifest with builder.generateServerInstance and builder.manifest (#16875)
@sveltejs/adapter-bun 1.0.0 führt einen Bun-nativen Adapter mit statischer Dateiauslieferung und Single-Executable-Unterstützung ein, benötigt Bun 1.4 und baut den Server nun mit Vite.
breaking: require Bun 1.4, which routes HEAD to GET handlers and settles stop() after a force close (#16880)
breaking: build the server with Vite instead of a second Bun.build pass, keeping production dependencies external; buildOptions now only applies to executables (#17120)
@sveltejs/adapter-auto 8.0.0 setzt SvelteKit 3 voraus, bietet Zero-Config-Deployment für Render und behebt Builds unter Windows.
@sveltejs/kit 3.0.0-next.32 behebt mehrere Sicherheitsprobleme, etwa Navigation zu fremden Origins bei Formularen, Path Traversal in der Windows-Vorschau und Redirects bei Self-Fetch, und vereinheitlicht Diagnosemeldungen.
fix: prevent non-redirect enhanced form results from navigating to another origin (91aae35)
fix: escape cache-control headers in prerendered HTML (d9d55b5)
fix: revert route metadata caching to regenerate missing root-route types during sync (#17281)
fix: print builder.log.warn messages to stderr, as documented (#17253)
fix: prevent path traversal when previewing prerendered pages and data on Windows (538edbf)
chore: standardize remote-function and shared form diagnostics (#17277)
fix: prevent server-side self-fetch fallbacks from following redirects (b11bb87)
chore: standardize app template diagnostics (#17250)
chore: standardize Vite plugin, build, prerender and adapter diagnostics (#17253)
chore: standardize client navigation, preload, snapshot and enhancement diagnostics (#17276) …
SvelteKit 3 ist mit SvelteKit 3 veröffentlicht, inklusive Adapter-API-Updates und Zero-Config-Deploys zu Render; sv erreicht Version 1.0 und macht das Community-Add-on-API offiziell.
SvelteKit 3 is here! Check out the announcement post for the highlights, then run sv migrate to handle most of the upgrade for you. sv itself hit 1.0 on the same day, making the community add-on API official. Below you’ll find the last round of changes that landed before 3.0 - adapter API updates, zero-config deploys to Render and a few final breaking changes.
Svelte Summit is also back for Svelte’s 10th birthday! It’s happening in Ljubljana on November 19-20 with talks from Rich Harris, Elliott Johnson, Paolo Ricciuti, Stanislav Khromov, pngwn and more. In-person and virtual tickets are available at sveltesummit.com.
Svelte itself had a quiet month - 5.57.1 is all bug fixes and parser performance work. Per usual, there’s still plenty in the showcase... so let’s dive in!
SvelteKit 3.0 ist verfügbar und bringt unter anderem die Konfiguration in vite.config.ts, den Alias #lib statt $lib, leistungsfähigere Umgebungsvariablen, schlankere Service Worker und besseres Error Handling, wobei sv migrate die Migration weitgehend automatisiert.
Version 3.0 of SvelteKit, the official application framework for Svelte, is now available.
If you’ve used earlier versions of SvelteKit, everything will feel very familiar — it’s the same framework with a little more polish, a little more type safety, and a little less junk. We’ve made migration as seamless as we can with the sv migrate command...
npx sv migrate sveltekit-3 --tasks all --confirm
...which will automatically migrate as much of your codebase as possible, and generate a TODO list for everything else. (If you’re agentically inclined, your robot friends will make short work of it.)
To create a new app, run sv create:
npx sv create my-new-app
As with any major version bump there are a handful of breaking changes to be aware of, which are covered in the migration guide (or, more briefly, in the recent release candidate announcement).
Quick highlights:
vite.config.ts instead of svelte.config.js$lib alias is now #lib, making use of standard subpath imports@sveltejs/kit 3.0.0-next.31 behebt Probleme bei generierten rootDirs, beim Zurücksetzen von navigating und bei der Scroll-Wiederherstellung nach Rückkehr aus dem Back-Forward-Cache.
fix: resolve generated rootDirs from the project root (#17242)
fix: keep history.scrollRestoration set to manual when leaving the page, so a document restored from the back/forward cache does not fall back to browser scroll restoration (#17244)
fix: clear navigating when a shallow popstate aborts an in-flight navigation (#17118)
fix: restore scroll position after back-forward cache returns (#17255)