Packages

astro

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

Upgrading astro From 4.14.6 to 7.4.13

262 releases in betweennotes for 261

Reading releases, release notes and advisories…

Other targets from 4.14.6Newest 4.x4.16.19Clears its 24 advisories7.4.5
  1. 4.14.6yours
  2. 12 releases
  3. 4.15.12security
  4. 20 releases
  5. 5.0.0security
  6. 29 releases
  7. 5.4.0security
  8. 3 releases
  9. 5.5.0security
  10. 27 releases
  11. 5.9.0security
  12. 45 releases
  13. 5.15.5security
  14. 2 releases
  15. 5.15.8security
  16. 25 releases
  17. 6.0.0security
  18. 8 releases
  19. 6.1.0security
  20. 16 releases
  21. 6.3.3security
  22. 12 releases
  23. 6.4.7security
  24. 1 release
  25. 7.0.0major
  26. 30 releases
  27. 7.3.3security
  28. 2 releases
  29. 7.3.6security
  30. 13 releases
  31. 7.4.11security
  32. 1 release
  33. 7.4.13target
  34. 3 pre
123+
changes to make
24
advisories fixed
233+
new
1125+
fixes

Counted from 261 of 262 release notes. Advisories are counted from the advisory database, in full.

Start here

Before you upgrade

Tick each one off as you go
  • Breaking7.4.2
  • Breaking7.4.0
  • Breaking7.2.8
  • Breaking7.0.0
  • Breaking7.0.0
  • Breaking7.0.0
  • Breaking7.0.0
  • Breaking7.0.0
  • Breaking7.0.0
  • Breaking7.0.0

Security

Fixes 24 advisories affecting 4.14.6

  • A forwarded protocol is only applied when an entry allows it for the host in use.

    7.4.11
  • A forwarded port is only applied when the entry for that host lists it.

    7.4.11
  • A forwarded host without a forwarded protocol is validated with the protocol of the server.

    7.4.11
  • An entry with port: '443' (or '80' for http) now matches a host that doesn't include a port.

    7.4.11
  • Improves CSRF protection by taking modern browsers headers into account

    7.3.6
  • Updates svgo to 4.0.2 to resolve a security advisory

    7.3.3
  • This preserves the security fix for CVE-2025-66202 (middleware authorization bypass via double encoding) because middleware now always sees the fully decoded path, making bypass impossible.

    6.4.7
  • Fixes a reflected XSS vulnerability where slot names on hydrated components were not HTML-escaped in SSR output

    6.3.3
  • Fixes checkOrigin CSRF protection in astro dev behind a TLS-terminating reverse proxy. The dev server now reads X-Forwarded-Proto (gated on security.allowedDomains, matching production behaviour) so the constructed request origin matches the https:// origin the browser sends. Also ensures security.allowedDomains and security.checkOrigin are respected in dev.

    6.1.0
  • Updates the dependency svgo to the latest, to fix a security issue.

    6.1.0

Release by release

  1. 7.4.13

    18 Nov 20269 fixes
    • Fixed

      Fixes the dev toolbar's a11y-missing-content audit reporting anchors and headings that are hidden with visibility: hidden or are inside an aria-hidden="true" subtree

    • Fixed

      Fixes server bundles including every renderable content collection entry when no server-rendered route calls render() from astro:content

    • Fixed

      Fixes i18n.fallback failing with i18nNoLocaleFoundInPath when the fallback target is a locale defined with a custom path

    • Fixed

      Fixes <Font preload> emitting no preload links when a requested weight range such as "400 700" sits inside a variable font file's range such as "400 900"

  2. 7.4.12

    13 Nov 20263 fixes
    • Fixed

      Fixes a typo in the error message shown when a font cssVariable is invalid

    • Fixed

      Reduces memory usage during astro build by releasing content collection entries from memory once the content layer sync is complete.

    • Fixed

      Unpins @astrojs/* dependencies to allow versions matching the ^ range to be installed

  3. 7.4.11

    Security fix11 Nov 20266 fixes
    • Security

      A forwarded protocol is only applied when an entry allows it for the host in use.

    • Security

      A forwarded port is only applied when the entry for that host lists it.

    • Security

      A forwarded host without a forwarded protocol is validated with the protocol of the server.

    • Security

      An entry with port: '443' (or '80' for http) now matches a host that doesn't include a port.

  4. 7.4.10

    10 Nov 20263 fixes
    • Fixed

      Fixes the dev toolbar's audit freezing an image's CSS animations in Safari, by reading the image's size from the request that loaded it instead of fetching it again

    • Fixed

      Improves startup time of astro commands by loading SVGO only when svgoOptimizer() optimizes an SVG, instead of whenever astro/config is imported

    • Fixed

      Fixes duplicate CSS loading for hydrated islands that share modules or are imported through a path alias. The client build no longer emits and preloads stylesheets that are already linked on the page by the server build.

  5. 7.4.9

    10 Nov 20264 fixes
    • Fixed

      Fixes static builds skipping or failing on pages whose getStaticPaths() params contain characters like % or \, and warns when a prerendered page is skipped because it returned an empty error response

    • Fixed

      Fixes bundled scripts and hydrated islands being blocked when security.csp.scriptDirective.strictDynamic is enabled. Astro now adds the hash of every bundled script to script-src and renders an import map with their integrity in the <head>.

    • Fixed

      Fixes bundling of a <script src> that uses a root-relative path to a project file outside src/, such as /lib/analytics.ts. The error asking for is:inline is now shown only when the path points to a file in public/.

    • Fixed

      Fixes errors thrown after a page has started streaming bypassing the configured logger. They are now reported once through it, as one error record, in both production and astro dev

  6. 7.4.8

    9 Nov 20261 fix
    • Fixed

      Updates CLI argument parsing

  7. 7.4.7

    5 Nov 20261 fix
    • Fixed

      Fixes the image endpoint treating directories whose names differ only by letter case as being inside the build output directory on case-sensitive filesystems

  8. 7.4.6

    5 Nov 202612 fixes
    • Fixed

      Avoids attributing client-only components or scripts to unrelated pages importing astro:i18n by bounding top-level page graph traversal at virtual page entries

    • Fixed

      Fixes an extra page reload on the first page load after starting astro dev without an existing .astro directory

    • Fixed

      Fixes astro check exiting with code 0 when @astrojs/check or typescript is not installed. The command now exits with code 1 so CI fails instead of silently skipping type checking.

    • Fixed

      Preserves the last-modified date of cached font files and unchanged public files when copying them into the build output. Public-file timestamp preservation respects the resolved public-directory configuration, follows source symlinks, and avoids backdating files overwritten by build plugins.

14 other lines we could not sort, mostly version bumps
  • The responsive images feature introduced behind a flag in v5.0.0 is no longer experimental and is available for general use.

    5.10.0
  • vfile.data.__astroHeadings -> vfile.data.astro.headings

    5.0.0
  • vfile.data.imagePaths -> vfile.data.astro.imagePaths

    5.0.0
  • AstroRenderer.clientEntrpoint

    5.0.0
  • AstroRenderer.serverEntrypoint

    5.0.0
  • ViewTransitions component renamed to ClientRouter

    5.0.0
  • The value of the different properties on supportedAstroFeatures for adapters can now be objects, with a support and message properties. The content of the message property will be shown in the Astro CLI when the adapter is not compatible with the feature, allowing one to give a better informational message to the user.

    5.0.0
  • astro add no longer automatically sets output: 'server'. Since the default value of output now allows for server-rendered pages, it no longer makes sense to default to full server builds when you add an adapter

    5.0.0
  • Server Islands introduced behind an experimental flag in v4.12.0 is no longer experimental and is available for general use.

    5.0.0
  • Changes the default behavior for Astro Action form requests to a standard POST submission.

    5.0.0

92 internal lines (docs, tests, tooling) left out.

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.