Change8

astro@6.0.0-beta.17

📦 astroView on GitHub →
2 features1 deprecations🔧 3 symbols

Summary

This release introduces the `middlewareMode` option for adapter authors, deprecating the older `edgeMiddleware` setting. Additionally, a new configuration option allows users to set a size limit for Astro Actions request bodies.

Migration Steps

  1. Adapter authors using `edgeMiddleware` should upgrade to the new `middlewareMode` option in their adapter configuration (e.g., change `edgeMiddleware: true` to `middlewareMode: 'edge'`).
  2. Users can optionally configure the maximum size for Astro Actions request bodies by setting `security.actionBodySizeLimit` in `astro.config.mjs`.

✨ New Features

  • Adds a new `middlewareMode` adapter feature to replace the previous `edgeMiddleware` option for adapter authors.
  • Adds a new `security.actionBodySizeLimit` option to configure the maximum size of Astro Actions request bodies, defaulting to 1 MB.

Affected Symbols

⚡ Deprecations

  • The `edgeMiddleware` option for adapter authors is deprecated and will be removed in a future major release. Replace it with the new `middlewareMode` option.