Packages

astro

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

Your version

5.3.1

24 Feb 2025Where it was published

5.18.2 is the newest release of 5.x.

In short

4 fixed

Security

23 advisories affect 5.3.1; 7.4.5 fixes them

18 more

Release note

Patch Changes

  • Ensures consistent behaviour of Astro.rewrite/ctx.rewrite when using base and trailingSlash options.

  • Fixes a bug that caused the vite.base value to be ignored when running astro dev

  • Uses tinyglobby for globbing files

  • Ensures that Astro.url/ctx.url is correctly updated with the base path after rewrites.

    This change fixes an issue where Astro.url/ctx.url did not include the configured base path after Astro.rewrite was called. Now, the base path is correctly reflected in Astro.url.

    Previously, any rewrites performed through Astro.rewrite/ctx.rewrite failed to append the base path to Astro.url/ctx.rewrite, which could lead to incorrect URL handling in downstream logic. By fixing this, we ensure that all routes remain consistent and predictable after a rewrite.

    If you were relying on the work around of including the base path in astro.rewrite you can now remove it from the path.

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.