Packages

astro

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

Upgrading astro From 4.14.1 to 7.4.5

259 releases in betweennotes for 258

Reading releases, release notes and advisories…

Other targets from 4.14.1Newest 4.x4.16.19Latest7.4.13
  1. 4.14.1yours
  2. 17 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. 7 releases
  31. 7.4.5target
  32. 3 pre
124+
changes to make
24
advisories fixed
234+
new
1105+
fixes

Counted from 258 of 259 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.1

  • 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
  • Fixes CSRF origin check mismatch by passing the actual server listening port to createRequest, ensuring the constructed URL origin includes the correct port (e.g., http://localhost:4321 instead of http://localhost). Also restricts X-Forwarded-Proto to only be trusted when allowedDomains is configured.

    6.0.0
  • Fixes an issue where the add command could accept any arbitrary value, leading the possible command injections. Now add and --add accepts values that are only acceptable npmjs.org names.

    6.0.0
  • This prevents potential security issues where middleware checks might be bypassed through URL encoding.

    5.15.8
  • Improves X-Forwarded header validation to prevent cache poisoning and header injection attacks. Now properly validates X-Forwarded-Proto, X-Forwarded-Host, and X-Forwarded-Port headers against configured allowedDomains patterns, rejecting malformed or suspicious values. This is especially important when running behind a reverse proxy or load balancer.

    5.15.5

Release by release

  1. 7.4.5

    2 Nov 20264 fixes
    • Fixed

      Fixes astro dev status and other background server commands deleting the lock file of a running dev or preview server when run from a sandbox or as another user that is not permitted to signal its process

    • Fixed

      Fixes import.meta.env values containing $ sequences (such as $$ or $&) being corrupted in astro build when server code reads the import.meta.env object directly, for example with const { MY_SECRET } = import.meta.env

    • Fixed

      Fixes request paths with invalid percent-encoding (e.g. /%C0%AF or a bare %) being logged as an Invalid URL encoding error and routed with the undecoded path. These requests now return a 400, the same as a path that is encoded too many times.

    • Fixed

      Makes rendering of string tag names stricter and consistent across .astro dynamic tags, JSX, and MDX. Only the leading part of the string that is a valid element name is rendered, so characters such as / or = can no longer change the generated markup. A string that does not start with a valid element name (for example '!--' or '') now throws an error instead of producing invalid HTML.

  2. 7.4.4

    28 Oct 20261 new
    • New

      Allows astro add to configure tagged versions of official adapters

  3. 7.4.3

    28 Oct 202614 fixes
    • Fixed

      CSP no longer hashes empty children on external stylesheets and scripts, which was inserting the SHA-256 of the empty string into script-src and style-src.

    • Fixed

      Fixes <Image> and <Picture> emitting duplicate srcset candidates when densities contains equivalent values such as 1 and '1x'

    • Fixed

      Fix unhandled AbortError rejection when ClientRouter skips a pending view transition

    • Fixed

      Fixes an uncaught TypeError in the browser when a server:defer island request fails due to a network error. The fallback content is kept, as it is for non-200 responses.

  4. 7.4.2

    Migration needed21 Oct 20261 new · 7 fixes
    • Breaking

      Bumps the minimum supported Node.js version to 22.23.4, which includes the fixes from the October 2026 Node.js security releases

    • New

      Speeds up content sync with experimental.collectionStorage: "chunked" by computing each character's UTF-8 width from its code point instead of encoding every character through TextEncoder. On a store of ~44k entries this cuts the chunking step from about 60 seconds to well under a second, with byte-identical output.

    • Fixed

      Fixes astro dev with @astrojs/cloudflare failing with Calling `require` for "node-fetch" when a server dependency such as cross-fetch requires node-fetch

    • Fixed

      Fixes astro dev treating a stale lock file containing a Linux thread ID as a running Astro server. A successful process lookup with no matching PID now marks the lock as stale, preventing astro dev stop and astro dev --force from killing the unrelated process that owns the thread.

  5. 7.4.1

    19 Oct 20268 fixes
    • Fixed

      Preserves the last modified date of cached optimized images and incrementally restored build output when copying them into the build output on all platforms

    • Fixed

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

    • Fixed

      Fixes a bug where projects whose path contains an apostrophe (') failed to load sessions, middleware, a cache provider, or a src/fetch.ts handler

    • Fixed

      Fixes a TSCONFIG_ERROR during astro build when a parent directory contains a tsconfig.json that cannot be resolved, such as one extending astro/tsconfigs/strict without installed dependencies

  6. 7.4.0

    Migration needed15 Oct 20269 new · 7 fixes
    • Breaking

      Increases the minimum Node.js version to 22.22.0

    • Deprecated

      Returning a plain array from getStaticPaths() or a plain Response from render() still works, but is deprecated: images used on those pages are not generated.

    • New

      Adds a new --timings flag to astro build to help you find what slows down your builds

    • New

      Adds a new optional getFontProperties() callback to font providers

  7. 7.3.8

    8 Oct 20264 fixes
    • Fixed

      Fixes Astro.cache being undefined when a custom 404 or 500 page is rendered by the error handler, for example after a request to an API route with an HTTP method the route doesn't export

    • Fixed

      Fixes astro add removing existing allowBuilds approvals from pnpm-workspace.yaml with pnpm v11.0–v11.22

    • Fixed

      Refactors internal bundling and code transforms to use Vite's Oxc-based transformWithOxc and Rolldown instead of esbuild. These packages no longer depend on esbuild directly.

    • Fixed

      Fixes the glob() loader not reloading changed files in dev when the pattern starts with an extglob such as !(drafts)/**/*.md

  8. 7.3.7

    7 Oct 20265 fixes
    • Fixed

      Fixes a build error when a Markdown content collection entry loaded with glob({ deferRender: true }) has a layout frontmatter property. layout is now ignored for content collection entries, as documented.

    • Fixed

      Fixes astro add cloudflare failing to install dependencies with pnpm v11+ by approving the workerd build script, and shows the package manager's error output when astro add fails to install dependencies

    • Fixed

      Fixes an issue where AVIF images were served as image/heif instead of image/avif in the dev server.

    • Fixed

      Fixes the cache() handler from astro/hono and astro/fetch throwing a TypeError when a cache provider is configured. It now registers the cache provider before rendering, so Astro.cache is available to downstream handlers like pages().

    • Fixed

      Fixes security.checkOrigin rejecting cross-origin requests with non-form content types such as application/json. As documented, the check only applies to unsafe requests that have no content-type header or one of application/x-www-form-urlencoded, multipart/form-data, or text/plain.

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

79 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.