Packages

astro

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

Your version

7.0.4

30 Jun 2026Where it was published

7.4.13 is the newest release of 7.x.

In short

1 new6 fixed

Security

Fixes 1 advisory that affected 7.0.3

Release note

The section about astro of a note shared by several packages.

Patch Changes

  • Ensures transition directive values are HTML-escaped when rendered on hydrated islands

  • Fixes trailing slash handling for dynamic file endpoints in dev mode. Dynamic file endpoints (e.g., src/pages/api/[name].json.ts) with trailingSlash: "always" incorrectly required a trailing slash in dev mode, returning 404 for /api/bar.json and 200 for /api/bar.json/.

  • Fixed a bug where the development toolbar did not output a warning even though the implicit ARIA role and the manually specified role were duplicated.

  • Adds support for sharp v0.35. pnpm users no longer need to approve sharp's build script (see allowBuilds) when on v0.35.

  • Fixes getCollection() returning empty in dev mode for large content collections (500k+ entries)

  • Upgrades the Rust compiler to the latest, which fixes some bugs. Refer to its changelog for more information.

  • Hardens forwarded header handling so the internal request helper validates X-Forwarded-Host against security.allowedDomains before trusting X-Forwarded-For for clientAddress. Previously it only checked that the header was present, which was inconsistent with the public createRequest helper. This aligns both code paths; behavior is unchanged for correctly configured proxies.

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.