Change8

astro@7.1.4

📦 astroView on GitHub →
🐛 8 fixes🔧 7 symbols

Summary

This patch release addresses several bugs, including duplicate CSS emissions, missing component types, issues with client-only islands, session handling, and file watching. It also improves the developer experience on Windows by preventing unwanted terminal pop-ups.

🐛 Bug Fixes

  • Fixes duplicate CSS files being emitted in server output when a prerendered page and a server-rendered page share the same styles.
  • Adds the missing `background` prop to the `<Image />` and `<Picture />` component types, resolving `astro check` errors.
  • Fixes missing scoped styles for child components inside `client:only` islands in production builds.
  • Fixes session runtime errors being silently swallowed by `console.error` instead of routing through Astro's logger.
  • Fixes a session being left in a partial state after a storage failure during `session.regenerate()`, preventing unnecessary storage reads on subsequent operations.
  • Prevents a visible terminal window from popping up on Windows when the dev server runs in background mode.
  • Fixes the `glob()` loader watcher so negation patterns correctly exclude files during development.
  • Fixes TypeScript path aliases from `tsconfig.json` not resolving in `astro.config.ts`.

Affected Symbols