Packages

astro

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

Your version

5.6.2

14 Apr 2025Where it was published

5.18.2 is the newest release of 5.x.

In short

1 deprecated1 new6 fixed

  • Deprecated

    Deprecates the asset utility function emitESMImage() and adds a new emitImageMetadata() to be used instead

Security

23 advisories affect 5.6.2; 7.4.5 fixes them

18 more

Release note

Patch Changes

  • Fixes a regression that allowed prerendered code to leak into the server bundle.

  • Reduces duplicate code in server islands scripts by extracting shared logic into a helper function.

  • Fixes a memory leak when using SVG assets.

  • Deprecated

    Deprecates the asset utility function emitESMImage() and adds a new emitImageMetadata() to be used instead

    The function
    emitESMImage() is now deprecated. It will continue to function, but it is no longer recommended nor supported. This function will be completely removed in a next major release of Astro.

    Please replace it with the new functionemitImageMetadata() as soon as you are able to do so:

    - import { emitESMImage } from "astro/assets/utils";
    + import { emitImageMetadata } from "astro/assets/utils";

    The new function returns the same signature as the previous one. However, the new function removes two deprecated arguments that were not meant to be exposed for public use: _watchMode and experimentalSvgEnabled. Since it was possible to access these with the old function, you may need to verify that your code still works as intended with emitImageMetadata().

  • Update vite to latest version to fix CVE

  • Updates vite to the latest version

  • Support for Deno to install npm pacakges.

    Deno requires npm prefix to install packages on npm. For example, to install react, we need to run deno add npm:react. But currently the command executed is deno add react, which doesn't work. So, we change the package names to have an npm prefix if you are using Deno.

  • Fixes an issue with the client router where some attributes of the root element were not updated during swap, including the transition scope.

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.