Change8

astro@6.0.0-beta.7

📦 astroView on GitHub →
2 features🐛 4 fixes🔧 4 symbols

Summary

This release improves Cloudflare adapter setup with better TypeScript support and fixes several bugs related to content layer dynamic imports and image attribute handling. It also updates internal dependencies.

✨ New Features

  • Updates `astro add cloudflare` to better setup types, by adding `./worker-configuration.d.ts` to tsconfig includes and a `generate-types` script to package.json.
  • Live content collection loaders now receive the collection name as part of their parameters, useful for loaders managing multiple collections.

🐛 Bug Fixes

  • Fixes a case where using the Fonts API with `netlify dev` wouldn't work because of query parameters.
  • Fixes content layer loaders that use dynamic imports (e.g., `await import()` or `import.meta.glob()`) which previously failed with "Vite module runner has been closed."
  • Updates `astro add cloudflare` to use the latest valid `compatibility_date` in the wrangler config, if available.
  • Fixes `inferSize` being kept in the HTML attributes of the emitted `<img>` when that option is used with an image that is not remote.

Affected Symbols