Change8

astro@5.16.0

Breaking Changes
📦 astro
1 breaking5 features🔧 7 symbols

Summary

This release introduces experimental SVGO optimization and a new ActionInputSchema utility, alongside CLI improvements and a breaking change to default font subsets in the experimental Fonts API.

⚠️ Breaking Changes

  • Experimental Fonts API: The default 'subsets' value has been changed to ["latin"]. If your project requires additional character sets (e.g., Greek), you must now manually specify them in the Astro config.

Migration Steps

  1. If using experimental fonts, update 'astro.config.mjs' to include required subsets beyond 'latin'.
  2. To use SVG optimization, enable 'experimental.svgo' in 'astro.config.mjs'.

✨ New Features

  • Experimental SVGO optimization support for SVG assets during build time.
  • Added 'ActionInputSchema' utility type to infer TypeScript types from action Zod schemas.
  • New CLI shortcuts for 'astro preview': 'o' (open), 'q' (quit), and 'h' (help).
  • Added a hint for code agents to use the '--yes' flag with 'astro add' to skip prompts.
  • Improved 'astro info' command output.

🔧 Affected Symbols

experimental.svgoActionInputSchemaastro:actionsexperimental.fontsastro previewastro addastro info