Change8

astro@6.3.4

📦 astroView on GitHub →
4 features🐛 7 fixes🔧 10 symbols

Summary

This patch release introduces new experimental routing configuration options and improves type safety for context providers and advanced routing entrypoints. It also includes several bug fixes related to Hono middleware, content collection serialization, and Cloudflare adapter behavior in development.

Migration Steps

  1. If using custom context providers, update typing to use the new `App.Providers` interface.

✨ New Features

  • Adds `fetchFile` option to `experimental.advancedRouting` to customize or disable the entrypoint file
  • Adds `App.Providers` interface for typing custom context providers on `Astro` and `ctx`
  • Adds `FetchState.response` property, set automatically after `pages()` or `middleware()` completes
  • Adds `Fetchable` type export for typing the advanced routing entrypoint

🐛 Bug Fixes

  • Fixes Hono `cache()` middleware to follow the standard wrapper pattern
  • Suppresses `[WARN] Vite warning: unused imports from "@astrojs/internal-helpers/remote"` during prerender builds.
  • Fixes styles from Markdoc/MDX custom components not being extracted to `<head>` in the dev server when using the Cloudflare adapter with `prerenderEnvironment: 'node'` and rendering content through a wrapper component.
  • Fixes Astro action requests failing in `astro dev` when using the Cloudflare adapter with `prerenderEnvironment: 'node'` alongside a prerendered catch-all route such as `[...page].astro`.
  • Fix `Map` and `Set` instances saved in a content collection being broken when retrieving entries.
  • Fixes `entry.data` type inference when a live collection is configured without a schema.
  • Fixes an issue where SVG images with `width="0"` or `height="0"` incorrectly threw a `NoImageMetadata` error instead of being treated as valid dimensions.

Affected Symbols