mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
3df41d2308
* fix(vscode): Markdown frontmatter should use TSX, not YAML * test: add test for #153 * chore: bump deps * chore: update to use @astrojs scope * fix: Markdown parse error when only child is `{expression}` * fix: update renderer edge cases * fix: failing test * fix: update renderer
19 lines
1.2 KiB
Markdown
19 lines
1.2 KiB
Markdown
---
|
|
'astro': minor
|
|
---
|
|
|
|
**This is a breaking change**
|
|
|
|
Updated the rendering pipeline for `astro` to truly support any framework.
|
|
|
|
For the vast majority of use cases, `astro` should _just work_ out of the box. Astro now depends on `@astrojs/renderer-preact`, `@astrojs/renderer-react`, `@astrojs/renderer-svelte`, and `@astrojs/renderer-vue`, rather than these being built into the core library. This opens the door for anyone to contribute additional renderers for Astro to support their favorite framework, as well as the ability for users to control which renderers should be used.
|
|
|
|
**Features**
|
|
|
|
- Expose a pluggable interface for controlling server-side rendering and client-side hydration
|
|
- Allows components from different frameworks to be nested within each other.
|
|
> Note: `svelte` currently does support non-destructive hydration, so components from other frameworks cannot currently be nested inside of a Svelte component. See https://github.com/sveltejs/svelte/issues/4308.
|
|
|
|
**Breaking Changes**
|
|
|
|
- To improve compiler performance, improve framework support, and minimize JS payloads, any children passed to hydrated components are automatically wrapped with an `<astro-fragment>` element.
|