astro@6.2.2
📦 astroView on GitHub →
🐛 16 fixes🔧 16 symbols
Summary
This patch release focuses heavily on bug fixes across routing, styling, image handling, and session management. Key improvements include fixing build crashes with AVIF images and resolving issues with scoped styles and prefetch attributes.
🐛 Bug Fixes
- Fixes head metadata propagation in dev for adapters that load modules in the `prerender` Vite environment, such as `@astrojs/cloudflare`, by ensuring `maybeRenderHead()` doesn't fire incorrectly.
- Fixes build crash when processing animated AVIF images by having Sharp gracefully pass through unsupported image formats.
- Fixes scoped styles applying to the wrong element when `vite.css.transformer` is set to `'lightningcss'` and a selector uses a nested `&` inside `:where(...)` (e.g., Tailwind v4 utilities).
- Fixes `data-astro-prefetch="tap"` not triggering when clicking nested elements (e.g. `<span>`, `<img>`, `<svg>`) inside an anchor tag.
- Fixes `<style>` compilation failure when importing Astro components via tsconfig path aliases.
- Fixed a regression where `.html` was unexpectedly stripped from dynamic route parameters on non-page routes (`.ts` endpoints and redirects), causing incorrect route matching.
- Fix CSS traversal boundaries so pages with `export const partial = true` still contribute styles when imported as components by other pages.
- Fixes an issue where the index route would return a 404 error when using a custom `base` path combined with `trailingSlash: 'never'`.
- Fixes an issue where `i18n.fallback` pages with `fallbackType: 'rewrite'` were emitted with empty bodies during `astro build`.
- Fixes session persistence when `session.delete()` is the first mutation in a request by ensuring the session is correctly marked dirty for persistence.
- Prevents script deduplication state from being consumed while rendering inert `<template>` contexts.
- Skips session storage reads when no session cookie is present, preventing unnecessary latency and resource usage on anonymous requests.
- Removes inline CSS for prerendered routes from the SSR manifest to reduce SSR entry chunk size and cold-start parse time.
- Fix conditional named slot callbacks receiving arguments from `Astro.slots.render()`.
- Fixes the `position` prop on `<Image />` and `<Picture />` components to correctly apply `object-position` styles.
- Fix `defineLiveCollection()` so `LiveLoader` data types declared as interfaces are accepted.