Packages

astro

7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed

Your version

7.2.5

24 Aug 2026Where it was published

7.4.13 is the newest release of 7.x.

In short

1 new21 fixed1 internal

Security

Release note

Patch Changes

  • Fixes a bug where experimental_getFontFileURL() rejected valid font URLs when using the Cloudflare adapter

  • Skips no-op pathname writes when normalizing SSR request URLs

  • Updates deprecation messages target from Astro 7 to 8

  • Fixes session ID validation to reject non-UUID cookie values before using them as storage keys

  • Fixes --mode, --site, --base, --out-dir, --verbose, --silent, and --open flags being silently dropped when using astro dev --background or astro preview --background

  • Fixes content-modules.mjs not removing entries for deleted or renamed content files, which could cause Vite to attempt to resolve non-existent modules

    As part of this fix, #moduleImports is now fully rebuilt from deferredRender entries before every write, so a module import added only through the public addModuleImport() API without a corresponding deferredRender entry in the store will no longer be preserved across writes.

  • Fixes Astro.preferredLocale and Astro.preferredLocaleList ignoring Accept-Language quality values when they are absent or 0. An entry without an explicit q= now correctly counts as quality 1.0 (per RFC 7231) and an entry with q=0 is treated as not acceptable, so the highest-quality locale is selected regardless of header order.

  • Fixes build errors showing wrong file location, missing line:col, and misleading hints when a plugin error (e.g. from MDX) is wrapped by Vite's build error

  • Fixes a type error when passing an image from a content collection image() schema to a component or <Image />. The schema returned by image() was missing the apng format, so it no longer matched the type of an imported image.

  • Fixes an issue where Astro CSP support didn't correctly handle cases "unsafe-inline" resource. Now when "unsafe-inline", Astro won't emit hashes for the directive specified.

  • Fixes a regression in the content collections that could cause images to not be resolved

  • Fixes memoryCache() storing responses that set cookies through Astro.cookies or Astro.session

  • Fixes server:defer crashing the dev server with "undefined is not a function" when a deferred component imports from astro:i18n

  • Fixes a regression where transition:persist stopped working for <audio> and <video> elements.

  • Adds support for importing .apng files as image metadata for use with standard <img> elements. Astro's image components reject APNG files to avoid removing their animation

  • Fixes i18n fallbackType: "rewrite" returning 500 instead of 404 when the fallback locale also has no matching static path for a prerendered dynamic route

  • Bumps the Astro compiler to the latest version. Changelog.

  • Improves the performance of the Astro CLI in local by enabling Node's module compilation cache.

  • Fixes incremental builds serving cached HTML that references stale CSS filenames after a stylesheet-only edit

  • Fixes the dev server refusing to start in Docker containers after a restart due to PID reuse in the lock file check

  • Fixes a build failure when defining vite.environments.ssr in the Astro config. User-provided environment config for ssr, prerender, or client is now properly deep-merged with Astro's internal environment settings instead of silently breaking the server entry naming.

  • Fixes the glob() content loader failing to load files with colons in their names (e.g., Guide: Architecture.md)

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.