Change8

astro@7.0.6

📦 astroView on GitHub →
🐛 12 fixes🔧 9 symbols

Summary

This patch release focuses on numerous bug fixes across routing, security checks, development tooling, and component rendering. Key fixes include resolving issues with dynamic route parameters being zero, improving CSS loading in dev mode without JavaScript, and hardening attribute rendering for custom elements.

🐛 Bug Fixes

  • Fixes a false deprecation warning for markdown.gfm and markdown.smartypants when using the Container API.
  • Fixes route generation throwing "Missing parameter" (or silently dropping the segment) when a dynamic param's value is 0, as truthy checks were incorrectly used instead of checking for undefined.
  • Fixes missing CSS for virtual style modules (e.g., responsive image layout styles) in dev mode when JavaScript is disabled.
  • Fixes the security.checkOrigin check so it is applied consistently to Astro Actions and on-demand endpoints, regardless of how the request pipeline is composed.
  • Fixes missing render() type overload for live collection entries when using only live.config.ts without a content.config.ts.
  • Fixes astro check failing to find @astrojs/check and typescript when astro is installed in a directory outside the project tree (e.g. pnpm virtual store).
  • Fixes island component paths so that extensionless imports (e.g. import { Counter } from '../components/Counter') resolve to the real file on disk, matching Vite's extension order and directory index resolution.
  • Fixes spurious React 19 "Invalid hook call" warning logged on every request in dev when include was set alongside another JSX renderer.
  • Fixes a bug where <Picture inferSize> with a remote image could fail with FailedToFetchRemoteImageDimensions when the image server rate-limits requests (e.g. HTTP 429). Remote dimensions are now resolved once per render instead of once per output format.
  • Hardens the handling of attribute rendering when using with custom elements.
  • Fixes a crash when using Astro's getViteConfig with Vitest browser mode (e.g. Storybook vitest runner) by skipping dev server setup inside Vitest.
  • Fixes a regression where a <script> inside a component rendered through Astro.slots.render() was hoisted out of its original position instead of staying next to its component content.

Affected Symbols