Packages

astro

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

Your version

5.5.3

18 Mar 2025Where it was published

5.18.2 is the newest release of 5.x.

In short

1 new6 fixed1 internal

Security

23 advisories affect 5.5.3; 7.4.5 fixes them

18 more

Release note

Patch Changes

  • Handle server.allowedHosts when the value is true without attempting to push it into an array.

  • Upgrade to shiki v3

  • Fixes a bug that caused some very large data stores to save incomplete data.

  • Adds a new function called insertPageRoute to the Astro Container API.

    The new function is useful when testing routes that, for some business logic, use Astro.rewrite.

    For example, if you have a route /blog/post and for some business decision there's a rewrite to /generic-error, the container API implementation will look like this:

    import Post from '../src/pages/Post.astro';
    import GenericError from '../src/pages/GenericError.astro';
    import { experimental_AstroContainer as AstroContainer } from 'astro/container';
    
    const container = await AstroContainer.create();
    container.insertPageRoute('/generic-error', GenericError);
    const result = await container.renderToString(Post);
    console.log(result); // this should print the response from GenericError.astro

    This new method only works for page routes, which means that endpoints aren't supported.

  • Fixes a bug that caused the astro add command to ignore the --yes flag for third-party integrations

  • Prevent bad value in x-forwarded-host from crashing request

  • Fix an issue in the Container API, where the renderToString function doesn't render adequately nested slots when they are components.

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.