Packages

astro

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

Your version

6.3.2

13 May 2026Where it was published

6.4.8 is the newest release of 6.x.

In short

9 fixed2 internal

Security

11 advisories affect 6.3.2; 7.4.7 fixes them

6 more

Release note

Patch Changes

  • Fixes a regression where Astro.cache was undefined when experimental.cache was not configured.

    The previous documented behavior is for Astro.cache to always be defined as a no-op shim: cache.set() warns once, cache.invalidate() throws and cache.enabled can be used to gate. This allows library and user code can call cache methods without conditional checks. The cache provider registration was being gated at the call site on experimental.cache being configured, which meant the disabled shim branch inside the provider was unreachable and the Astro.cache getter was never attached to the context.

  • Fixes HTMLElement is not defined error during HMR when using components with client-side scripts (e.g. Starlight <Tabs>) and the Cloudflare adapter

  • Fixes non-prerendered routes failing when a dynamic prerendered route exists in the same project with prerenderEnvironment: 'node'

  • Fixes a bug where the Astro compiler wasn't freed at the end of the build. After the fix, the memory used by the compiler is now correctly freed at the end of the build.

  • Tightens isRemotePath() to reject control characters after a leading slash and fixes the dev image endpoint origin check

  • Improve validation messages for security.csp.directives when script-src or style-src are incorrectly placed in the directives array.

  • Fixes assetsPrefix not being available on build from astro:config/server.

  • Rejects double-encoded URL paths with a 400 response instead of silently falling back to partial decoding

  • Fixes & characters appearing as raw entity strings (e.g. &#38;) in <meta> tags when viewed in link previews or raw HTML.

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.