Packages

astro

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

Your version

5.12.2

22 Jul 2025Where it was published

5.18.2 is the newest release of 5.x.

In short

2 new5 fixed

Security

23 advisories affect 5.12.2; 7.4.5 fixes them

18 more

Release note

Patch Changes

  • Exposes the Code component lang prop type:

    import type { CodeLanguage } from 'astro';
  • Fixes a bug that prevented "key" from being used as a prop for Astro components in MDX

  • Exits with non-zero exit code when config has an error

  • Fixes a bug that meant that SVG components could no longer be serialized with JSON.stringify

  • Add module declaration for ?no-inline asset imports

  • Throw a more helpful error if defineLiveCollection is used outside of a live.config file

  • Warn if duplicate IDs are found by file loader

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.