Packages

astro

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

Your version

5.8.1

29 May 2025Where it was published

5.18.2 is the newest release of 5.x.

In short

2 new3 fixed

Security

23 advisories affect 5.8.1; 7.4.5 fixes them

18 more

Release note

Patch Changes

  • Fixes rendering of the popover attribute when it has a boolean value

  • Allows disabling default styles for responsive images

    This change adds a new image.experimentalDefaultStyles option that allows you to disable the default styles applied to responsive images.

    When using experimental responsive images, Astro applies default styles to ensure the images resize correctly. In most cases this is what you want – and they are applied with low specificity so your own styles override them. However in some cases you may want to disable these default styles entirely. This is particularly useful when using Tailwind 4, because it uses CSS cascade layers to apply styles, making it difficult to override the default styles.

    image.experimentalDefaultStyles is a boolean option that defaults to true, so you can change it in your Astro config file like this:

    export default {
      image: {
        experimentalDefaultStyles: false,
      },
      experimental: {
        responsiveImages: true,
      },
    };
  • Fixes the warning shown when client directives are used on Astro components

  • Allows using server islands in mdx files

  • Export type AstroSession to allow use in explicitly typed safe code.

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.