Astro astro@7.2.2

astro@7.2.2
Fixed 8
  • Component styles rendered from content entries no longer remain stale until a second save when an adapter uses Astro's fallback development environment
  • Incremental builds no longer drop optimized images for cached pages when using a collectStaticImages prerenderer
  • Limit concurrent image file reads to avoid exhausting OS file descriptors and retry transient I/O errors with backoff to fix intermittent ImageNotFound errors during build on projects with many images
  • Apply prerenderConflictBehavior to content collection duplicate ID warnings in the glob() and file() loaders
  • Fonts API no longer breaks experimental.incrementalBuild caching by embedding a build-local server port in generated code
  • Incremental builds no longer become prohibitively slow for sites with many pages or content entries that share a large dependency graph
  • Files in directories whose names start with pages are no longer treated as page routes
  • astro dev now starts successfully after a Docker container restart when an unrelated process reuses the PID from a persisted lock file
Patch Changes
  • #17611 9bc3207 Thanks @thelazylamaGit! - Fixes component styles rendered from content entries remaining stale until a second save when an adapter uses Astro's fallback development environment

  • #17634 2267eee Thanks @astrobot-houston! - Fixes incremental builds dropping optimized images for cached pages when using a collectStaticImages prerenderer (e.g. @astrojs/cloudflare with compile-time image optimization)

  • #17650 4cdf128 Thanks @astrobot-houston! - Fixes intermittent ImageNotFound errors during build on projects with many images. The build now limits concurrent image file reads to avoid exhausting OS file descriptors (EMFILE) and retries transient I/O errors with backoff. Non-transient errors are no longer silently swallowed.

  • #17683 2378221 Thanks @astrobot-houston! - Fixes prerenderConflictBehavior not applying to content collection duplicate ID warnings in the glob() and file() loaders. Setting it to 'error' now throws during content sync, and 'ignore' suppresses the warning.

  • #17659 90c6ea4 Thanks @astrobot-houston! - Fixes the Fonts API breaking experimental.incrementalBuild caching by embedding a build-local, randomly-assigned server port in generated code used for the dependency hash

  • #17630 fd1d9ee Thanks @ericclemmons! - Fixes incremental builds becoming prohibitively slow for sites with many pages or content entries that share a large dependency graph.

  • #17690 93beecc Thanks @NgoQuocViet2001! - Prevents files in directories whose names start with pages from being treated as page routes

  • #17671 09f0dc7 Thanks @tarikermis! - Fixes astro dev refusing to start after a Docker container restart when an unrelated process reuses the PID from a persisted lock file. Astro now checks the process command across platforms, so stale lock files are cleaned up and --force does not signal the unrelated process.

View original

Upgraded? How did it go?

Discussion