# Astro astro@5.12.2 — Release & Upgrade Intelligence
- **Product:** Astro (https://astro.build)
- **Version:** astro@5.12.2
- **Released:** Jul 22, 2025
- **Impact Score:** 5/10
- **Breaking Changes:** Not verified
- **Canonical Analysis:** https://changelogs.us/astro/updates/astro-5.12.2/

## Executive Summary (TL;DR)
Astro astro@5.12.2. Source highlight: Exposes the `Code` component `lang` prop type:

## Bug Fixes
- Exposes the `Code` component `lang` prop type:
- 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

## Upgrade Command
```bash
npm install --save-exact astro@5.12.2
```
