Change8

astro@6.3.6

📦 astroView on GitHub →
🐛 5 fixes🔧 4 symbols

Summary

This patch release focuses on fixing several bugs related to HMR stability, content collection schema generation, and image processing for remote SVGs. It also improves accessibility by correctly preserving empty alt attributes in markdown images.

Migration Steps

  1. If encountering errors with remote SVG sources without `dangerouslyProcessSVG` enabled, consider adding `format="svg"` to the image component call as a simpler workaround.

🐛 Bug Fixes

  • Preserves the `alt=""` attribute for markdown images with empty alt text in content collections for accessibility.
  • Fixes HMR serving stale content when components are passed as props via `getStaticPaths()`.
  • Fixes HMR serving stale content for dynamically imported components through barrel files.
  • Fixes remote SVG sources erroring with `dangerouslyProcessSVG` by improving Sharp service resolution of output format from source metadata.
  • Fixes an issue where the `file()` content loader did not generate a valid JSON Schema for collections whose JSON or YAML data is a top-level array instead of an object.

Affected Symbols