Releases: sveltejs/kit
@sveltejs/enhanced-img@0.10.1
Patch Changes
- fix: replace erroneous
import.meta.DEVwithimport.meta.env.DEVin generated code (#15285)
@sveltejs/adapter-node@5.5.3
@sveltejs/adapter-netlify@6.0.0
Major Changes
-
breaking:
platform.contextis now the modern Netlify Functions ([#15203](https://github.com/sveltejs/kit/pull/15203))
contextPreviously, this was the AWS Lambda-style
context.If you were using this in your app (unlikely), you will need to update your code to read from new fields.
Minor Changes
-
feat: Migrate to the modern Netlify Functions API (#15203)
The Netlify adapter now generates "v2" Netlify Functions, which uses modern standards (ESM,
Request,Response) instead of the legacy "Lambda-compatible" or "v1" format. Under the hood, this greatly simplifies the adapter code and improves maintainability.For more details on features this unlocks for your SvelteKit app, see
https://developers.netlify.com/guides/migrating-to-the-modern-netlify-functions/. -
feat: allow configuring redirects in
netlify.toml(#15203)The limitation of only being able to configure redirects via the
_redirectsfile has been removed.
Patch Changes
@sveltejs/adapter-cloudflare@7.2.7
@sveltejs/adapter-auto@7.0.1
Patch Changes
- feat: update adapter-netlify to version 6 (
77ab341)
@sveltejs/kit@2.50.2
Patch Changes
-
fix: ensure inlined CSS follows
paths.assetsandpaths.relativesettings (#15153) -
fix: emit script CSP nonces when
unsafe-inlineis present ifstrict-dynamicis also present (#15221) -
fix: re-export browser/dev from esm-env (#15206)
-
fix: use validated args in batch resolver in both csr and ssr (#15215)
-
fix: ensure CSS inlining includes components that are conditionally rendered (#15153)
-
fix: only match rest params with matchers when the matcher matches (#15216)
-
fix: properly handle percent-encoded anchors (e.g.
<a href="#sparkles-%E2%9C%A8">) during prerendering. (#15231)
@sveltejs/enhanced-img@0.10.0
Minor Changes
- feat: re-export the
Picturetype fromvite-imagetools(#15225)