astro@7.0.5
📦 astroView on GitHub →
🐛 5 fixes🔧 3 symbols
Summary
This patch release addresses several bugs related to dev server stability, component style rendering with async components, and client-side routing head management. It also includes an internal refactor for path alias resolution.
Migration Steps
- If you encounter the 500 error related to missing pre-bundled dependencies after a dev server restart when using an adapter, consider adding the problematic dependency to `optimizeDeps.exclude` in your Vite configuration.
🐛 Bug Fixes
- Fixes an error causing a 500 response after dev server restart when using an adapter (like @astrojs/cloudflare) due to a missing pre-bundled dependency file during optimized dependency resolution.
- Fixes an issue where the ClientRouter would wipe head elements after page transitions if the <head> contained a component using server:defer.
- Fixes a bug where <style> tags from components (e.g., from a content collection's Content component) could be silently dropped if an await appeared before the component in the .astro file markup.
- Fixes the background dev server failing to start when 'astro' is hoisted outside the project's node_modules (e.g., in bun workspaces) by spawning the background process from Astro's resolved location.
- Fixes prefetch not working for links located inside components using server:defer.