Packages

astro

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

Your version

5.1.2

2 Jan 2025Where it was published

5.18.2 is the newest release of 5.x.

In short

10 fixed

Security

21 advisories affect 5.1.2; 7.4.5 fixes them

16 more

Release note

Patch Changes

  • Improves warning logs for invalid content collection configuration

  • Fixes a regression that caused default() to not work with reference()

  • Fixes a bug that caused cookies to not be deleted when destroying a session

  • Fixes a bug where the session ID wasn't correctly regenerated

  • Fixes an issue where Astro didn't print error logs when Astro Islands were used in incorrect cases.

  • Fixes an issue where Astro didn't log anything in case a file isn't created during the build.

  • Fixes a bug in emulated legacy collections where the entry passed to the getCollection filter function did not include the legacy entry fields.

  • Fixes an issue where Astro was printing the incorrect output format when running the astro build command

  • Fixes server islands failing to check content-type header under certain circumstances

    Sometimes a reverse proxy or similar service might modify the content-type header to include the charset or other parameters in the media type of the response. This previously wasn't handled by the client-side server island script and thus removed the script without actually placing the requested content in the DOM. This fix makes it so the script checks if the header starts with the proper content type instead of exactly matching text/html, so the following will still be considered a valid header: text/html; charset=utf-8

  • Fixes an issue where an injected route entrypoint wasn't correctly marked because the resolved file path contained a query parameter.

    This fixes some edge case where some injected entrypoint were not resolved when using an adapter.

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.