Change8

@sveltejs/adapter-netlify@6.0.0

Breaking Changes
📦 sveltekitView on GitHub →
1 breaking2 features🐛 1 fixes🔧 2 symbols

Summary

This release migrates the Netlify adapter to use modern Netlify Functions (v2), which involves a breaking change to `platform.context`. It also introduces the ability to configure redirects via `netlify.toml`.

⚠️ Breaking Changes

  • The structure of `platform.context` has changed to align with modern Netlify Functions (v2). If you were using this context, you must update your code to read from the new fields, as it no longer uses the AWS Lambda-style context.

Migration Steps

  1. If you relied on the structure of `platform.context`, update your code to use the fields provided by the modern Netlify Functions context object.

✨ New Features

  • The Netlify adapter now generates "v2" Netlify Functions using modern standards (ESM, Request, Response) instead of the legacy Lambda-compatible format.
  • Redirects can now be configured in `netlify.toml` instead of being limited to the `_redirects` file.

🐛 Bug Fixes

  • The `context` property is now correctly populated in `App.Platform`.

Affected Symbols