github withastro/astro astro@1.0.0-rc.1

latest releases: astro@4.11.3, astro@4.11.2, @astrojs/studio@0.1.1...
pre-release23 months ago

Twitter _ Post Photo (2)

The Astro v1.0.0 Release Candidate comes includes new features, tons of bug fixes, and a few breaking changes to be aware of.

Migration Guide: https://docs.astro.build/en/migrate/

Breaking Changes

  • Astro now uses Vite 3, which comes with its own Migration Guide.
  • Components and JSX expressions in .md files is no longer supported by default. It can be enabled by setting the legacy.astroFlavoredMarkdown flag to true. In the future, we will be pushing users to our new @astrojs/mdx Integration for using components in Markdown.
  • ‘@astrojs/image’ integration released!
  • Astro scoped styles now respect their authored specificity (see RFC0012). Please visually inspect your site after upgrading to confirm that styles are working as expected.
  • Astro.canonicalURL has been replaced by the new Astro.url helper.
  • The Markdown headers and getHeaders() utils have been renamed to headings and getHeadings().
  • The deprecated Markdown component has been removed from core and is now available as @astrojs/markdown-component.

Read the full migration guide for more details on upgrading your existing project.

New Features

  • astro dev HMR has been overhauled to provide more stable live reload behavior
  • astro dev error handling has been overhauled to provide a more seamless error handling experience
  • The new output configuration option builds to 'static' | 'server' targets
  • .html components and pages are now supported
  • .mdx components and pages are now supported via @astrojs/mdx
  • server output now supports custom 404 and 500 pages
  • server output now exposes Astro.clientAddress to get the current IP address per request

Patch Changes

Don't miss a new astro release

NewReleases is sending notifications on new releases.