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

## Executive Summary (TL;DR)
Astro astro@7.0.4. Source highlight: Ensures transition directive values are HTML-escaped when rendered on hydrated islands

## Bug Fixes
- Ensures transition directive values are HTML-escaped when rendered on hydrated islands
- Fixes trailing slash handling for dynamic file endpoints in dev mode. Dynamic file endpoints (e.g., `src/pages/api/[name].json.ts`) with `trailingSlash: "always"` incorrectly required a trailing slash in dev mode, returning 404 for `/api/bar.json` and 200 for `/api/bar.json/`.
- Fixed a bug where the development toolbar did not output a warning even though the implicit ARIA role and the manually specified role were duplicated.
- Adds support for `sharp` v0.35. pnpm users no longer need to approve `sharp`'s build script (see `allowBuilds`) when on v0.35.
- Fixes `getCollection()` returning empty in dev mode for large content collections (500k+ entries)
- Upgrades the Rust compiler to the latest, which fixes some bugs. Refer to its changelog for more information.

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