astro@6.1.0
📦 astroView on GitHub →
✨ 3 features🐛 15 fixes🔧 10 symbols
Summary
This release introduces advanced configuration options for Sharp image service defaults and SmartyPants typography, alongside several bug fixes addressing development server stability, build errors, and accessibility auditing.
✨ New Features
- Allows setting codec-specific defaults for Astro's built-in Sharp image service via `image.service.config` for compile-time image generation (e.g., configuring jpeg, webp, avif, or png encoder options).
- Adds `fallbackRoutes` to the `IntegrationResolvedRoute` type, exposing i18n fallback routes to integrations via the `astro:routes:resolved` hook when `fallbackType: 'rewrite'` is used.
- Adds support for advanced configuration of SmartyPants in Markdown by allowing an options object to be passed to `markdown.smartypants` in `astro.config.mjs`.
🐛 Bug Fixes
- Instructs the client router to skip view transition animations when the browser is already providing its own visual transition (like a swipe gesture).
- Fixes an issue where `client:only` components could have duplicate `client:component-path` attributes added in MDX in rare cases.
- Fixes the `emitFile() is not supported in serve mode` warning that appears during `astro dev` when using integrations that inject before-hydration scripts.
- Fixes the dev toolbar a11y audit incorrectly classifying `menuitemradio` as a non-interactive ARIA role.
- Fixes `experimental.queuedRendering` incorrectly escaping the HTML output of `.html` page files, causing content to render as plain text.
- Fixes a dev server crash (`serverIslandNameMap.get is not a function`) occurring when navigating to a page with `server:defer` after visiting a page without one, when using `@astrojs/cloudflare`.
- Fixes Zod meta not correctly being rendered on top-level schema when converted into JSON Schema.
- Fixes `checkOrigin` CSRF protection in `astro dev` behind a TLS-terminating reverse proxy by reading `X-Forwarded-Proto` (gated on `security.allowedDomains`).
- Updates the dependency `svgo` to the latest version to fix a security issue.
- Fixes a case where font files would unnecessarily be copied several times during the build.
- Fixes the `astro sync` error message when `getImage()` is called while loading content collections.
- Fixes a build error where using `astro:config/client` inside a `<script>` tag would cause Rollup to fail with "failed to resolve import `virtual:astro:routes` from `virtual:astro:manifest`".
- Fixes an issue with the development server where changes to the middleware weren't picked up without a full server restart.
- Fixes a bug where the role `image` was incorrectly reported by the audit tool bar.
- Fixes cached assets failing to revalidate.