astro@6.0.0-beta.12
Breaking Changes📦 astroView on GitHub →
⚠ 2 breaking✨ 2 features🐛 5 fixes⚡ 2 deprecations🔧 12 symbols
Summary
This release introduces significant updates to the v6 beta Adapter API, renaming configuration properties and deprecating several functions. It also improves responsive image handling with CSP compatibility and fixes several development and CLI bugs.
⚠️ Breaking Changes
- BREAKING CHANGE to the v6 beta Adapter API only: `entryType` in `setAdapter()` is renamed to `entrypointResolution` and its possible values are updated: `legacy-dynamic` becomes `explicit`, and `self` becomes `auto`. Update adapter code to use the new names.
- The Adapter API methods `loadManifest()` and `loadApp()` from `astro/app/node` are deprecated.
Migration Steps
- If building an adapter with v6 beta and specifying `entryType`, rename it to `entrypointResolution` and update values: `legacy-dynamic` to `explicit`, and `self` to `auto` in `setAdapter()`.
- Replace usage of deprecated `NodeApp.createRequest()` and `NodeApp.writeResponse()` with the new `createRequest()` and `writeResponse()` utilities imported from `astro/app/node`.
✨ New Features
- Exports new `createRequest()` and `writeResponse()` utilities from `astro/app/node` to replace deprecated `NodeApp` methods.
- Adds support for responsive images when `security.csp` is enabled out of the box by generating styles at build time using `class=""` and `data-*` attributes.
🐛 Bug Fixes
- Fixes behavior when shortcuts are used before the server is ready.
- Fixes dev reloads for content collection Markdown updates under Vite 7.
- Fixes the types of `createApp()` exported from `astro/app/entrypoint`.
- Fixes a case where setting `vite.server.allowedHosts: true` was incorrectly turned into an invalid array.
- Improves CLI styling.
Affected Symbols
⚡ Deprecations
- The Adapter API methods `loadManifest()` and `loadApp()` from `astro/app/node` are deprecated.
- The Adapter API methods `createExports()` and `start()` are deprecated.