@astrojs/cloudflare@13.0.0-beta.9
Breaking Changes📦 astroView on GitHub →
⚠ 1 breaking✨ 2 features🐛 3 fixes🔧 5 symbols
Summary
This release updates the default image service to `cloudflare-binding` and introduces granular configuration for build and runtime image services. It also enhances Cloudflare adapter support by exposing more options from the underlying Cloudflare Vite plugin.
⚠️ Breaking Changes
- The default image service has changed from `compile` to `cloudflare-binding`. Image service options that caused development issues due to Node JS incompatibilities now use the noop passthrough image service in dev mode. Users relying on the previous default behavior might see changes in image handling during development.
Migration Steps
- If you were relying on the previous default image service behavior, be aware that the default is now `cloudflare-binding`. You may need to explicitly configure `imageService` if you require the old behavior or need specific build/runtime configurations.
- If you need to customize Cloudflare Worker debugging, you can now pass options like `inspectorPort` directly to the adapter configuration.
✨ New Features
- Added support for configuring the image service as an object with separate `build` and `runtime` options, allowing independent configuration for build-time and runtime services.
- The adapter now accepts several additional options from Cloudflare's Vite plugin: `auxiliaryWorkers`, `configPath`, `inspectorPort`, `persistState`, `remoteBindings`, and `experimental.headersAndRedirectsDevModeSupport`.
🐛 Bug Fixes
- Fixed an issue where using the `Code` component resulted in an unexpected error.
- Fixed an issue where `esbuild` would throw a "Top-level return cannot be used inside an ECMAScript module" error during dependency scanning in specific environments.
- Added an error message when running on Stackblitz because `workerd` does not support it.