Packages

astro

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

Your version

5.0.3

5 Dec 2024Where it was published

5.18.2 is the newest release of 5.x.

In short

14 fixed

Security

22 advisories affect 5.0.3; 7.4.5 fixes them

17 more

Release note

Patch Changes

  • Updates some reference links in error messages for new v5 docs.

  • Fixes a bug where astro info --copy wasn't working correctly on macOS systems.

  • Removes the misleading log message telling that a custom renderer is not recognized while it clearly is and works.

  • Provides more information when logging a warning for accessing Astro.request.headers in prerendered pages

  • Improves error message formatting for user config and content collection frontmatter

  • Fixes a bug where URL search parameters weren't passed when using the i18n fallback feature.

  • Fixes an issue where the custom assetFileNames configuration caused assets to be incorrectly moved to the server directory instead of the client directory, resulting in 404 errors when accessed from the client side.

  • Fixes an issue where SSR error pages would return duplicated custom headers.

  • Fixes an issue where the experimental.svg had incorrect type, resulting in some errors in the editors.

  • Fixes a bug where the class attribute was rendered twice on the image component

  • Correctly handles images in content collections with uppercase file extensions

  • Cleans up content layer sync during builds and programmatic sync() calls

  • Fixes a bug that caused content collections to be returned empty when run in a test environment

  • Fix use of cloned requests in middleware with clientAddress

    When using context.clientAddress or Astro.clientAddress Astro looks up the address in a hidden property. Cloning a request can cause this hidden property to be lost.

    The fix is to pass the address as an internal property instead, decoupling it from the request.

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.