astro@6.0.6
Breaking Changes📦 astroView on GitHub →
⚠ 1 breaking🐛 7 fixes🔧 3 symbols
Summary
This patch release fixes several bugs related to client hydration with subpath imports, HMR behavior on Windows, SSR dynamic routes, and type inference for content collections, while also updating dependency versions.
⚠️ Breaking Changes
- Removed temporary support for Node >=20.19.1 because Stackblitz now uses Node 22 by default. Users on older Node versions might need to upgrade their Node environment.
🐛 Bug Fixes
- Fixed client hydration for components imported through Node.js subpath imports (e.g., package.json#imports) when using the Cloudflare adapter in development.
- Updated the 'create astro' welcome message to highlight the graceful dev/preview server quit command instead of the kill process shortcut.
- Fixed HMR to eagerly recompile on style-only changes to prevent stale slots rendering.
- Fixed InferLoaderSchema type inference for content collections defined with a loader that includes a schema.
- Fixed SSR dynamic routes with .html extension (e.g. [slug].html.astro) not working.
- Fixed HMR not working correctly on Windows when adding/changing/deleting routes in 'pages/'.
- Fixed skew protection query params not being applied to island hydration 'component-url' and 'renderer-url', and ensured query params are appended safely for asset URLs with existing search/hash parts.