Astro 7.3.7

7.3.7
Fixed 5
  • Fix a build error when a Markdown content collection entry loaded with `glob({ deferRender: true })` has a `layout` frontmatter property by ignoring `layout` for content collection entries as documented
  • Fix `astro add cloudflare` failing to install dependencies with pnpm v11+ by approving the `workerd` build script and show the package manager's error output when `astro add` fails to install dependencies
  • Fix AVIF images being served as `image/heif` instead of `image/avif` in the dev server
  • Fix the `cache()` handler from `astro/hono` and `astro/fetch` throwing a `TypeError` when a cache provider is configured by registering the cache provider before rendering so `Astro.cache` is available to downstream handlers
  • Fix `security.checkOrigin` rejecting cross-origin requests with non-form content types such as `application/json` to only apply the check to unsafe requests with no `content-type` header or one of `application/x-www-form-urlencoded`, `multipart/form-data`, or `text/plain`

From Astro

Patch Changes
  • #18266 cba76cc Thanks @astro-factory! - Fixes a build error when a Markdown content collection entry loaded with glob({ deferRender: true }) has a layout frontmatter property. layout is now ignored for content collection entries, as documented.

  • #18287 38f6793 Thanks @astro-factory! - Fixes astro add cloudflare failing to install dependencies with pnpm v11+ by approving the workerd build script, and shows the package manager's error output when astro add fails to install dependencies

  • #18222 fcf6ed6 Thanks @mingjunlu! - Fixes an issue where AVIF images were served as image/heif instead of image/avif in the dev server.

  • #18240 de4df06 Thanks @astro-factory! - Fixes the cache() handler from astro/hono and astro/fetch throwing a TypeError when a cache provider is configured. It now registers the cache provider before rendering, so Astro.cache is available to downstream handlers like pages().

  • #18268 547b572 Thanks @astro-factory! - Fixes security.checkOrigin rejecting cross-origin requests with non-form content types such as application/json. As documented, the check only applies to unsafe requests that have no content-type header or one of application/x-www-form-urlencoded, multipart/form-data, or text/plain.

View original

Upgraded? How did it go?

Discussion