Packages

astro

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

Your version

4.8.4

15 May 2024Where it was published

4.16.19 is the newest release of 4.x.

In short

1 deprecated4 new9 fixed

  • Deprecated

    The prefetch() programmatic API's with option is deprecated in favour of an automatic approach that will also try to use <link rel="prefetch> if supported, or will fall back to fetch().

Security

24 advisories affect 4.8.4; 7.4.5 fixes them

19 more

Release note

Patch Changes

  • Skips rendering script tags if it's inlined and empty when experimental.directRenderScript is enabled

  • Fixes minor type issues in actions component example

  • The prefetch feature is updated to better support different browsers and different cache headers setup, including:

    1. All prefetch strategies will now always try to use <link rel="prefetch"> if supported, or will fall back to fetch().

    2. The prefetch() programmatic API's with option is deprecated in favour of an automatic approach that will also try to use <link rel="prefetch> if supported, or will fall back to fetch().

    This change shouldn't affect most sites and should instead make prefetching more effective.

  • Fixes 500 errors when sending empty params or returning an empty response from an action.

  • Throw on missing server output when using Astro Actions.

  • Actions: Include validation error in thrown error message for debugging.

  • Fixes getViteConfig() type definition to allow passing an inline Astro configuration as second argument

  • Fixes CSS handling if imported in a script tag in an Astro file when experimental.directRenderScript is enabled

  • Add type declarations for import.meta.env.ASSETS_PREFIX when defined as an object for handling different file types.

  • Actions: Fix missing message for custom Action errors.

  • Adds deprecated HTML attribute "name" to the list of valid attributes. This attribute has been replaced by the global id attribute in recent versions of HTML.

  • Prevents unhandledrejection error when checking for latest Astro version

  • Add popovertargetaction to the attribute that can be passed to the button and input element

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.