20ca3154fb37049cbcd51b06d9fa2ef25ac25a36
Thanks @StandardGage! - Fixes an issue where passing void elements (img, etc..) did not work with the experimentalReactChildren
option enabled#9482 72b26daf694b213918f02d0fcbf90ab5b7ebc31f
Thanks @natemoo-re! - Improves compatability with the Qwik adapter
#9479 1baf0b0d3cbd0564954c2366a7278794fad6726e
Thanks @sarah11918! - Updates README
#9403 7eb9fe8a7
Thanks @knpwrs! - Prevents unsupported forwardRef
components created by Preact from being rendered by React
#9452 e83b5095f
Thanks @florian-lefebvre! - Upgrades vite to latest
1c48ed286
Thanks @bluwy! - Adds Vite 5 support. There are no breaking changes from Astro. Check the Vite migration guide for details of the breaking changes from Vite instead.1c48ed286
Thanks @bluwy! - Adds Vite 5 support. There are no breaking changes from Astro. Check the Vite migration guide for details of the breaking changes from Vite instead.af43fb517
Thanks @lilnasy! - Fixes an issue where slotting self-closing elements (img, br, hr) into react components with experimentalReactChildren
enabled led to an error.ac5633b8f
Thanks @brandonsdebt! - Uses node:stream
during server rendering for compatibility with Cloudflare4dee38711
Thanks @matthewp! - Fixes client hydration in islands when using experimentalReactChildren6f60da805
Thanks @ematipico! - Add provenance statement when publishing the library from CI85fe213fe
Thanks @natemoo-re! - Update experimentalReactChildren
behavior to support void tags#8188 d0679a666
Thanks @ematipico! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.
#8179 6011d52d3
Thanks @matthewp! - Astro 3.0 Release Candidate
#7924 519a1c4e8
Thanks @matthewp! - Support for React Refresh
The React integration now fully supports React Refresh and is backed by @vitejs/plugin-react
.
Also included in this change are new include
and exclude
config options. Use these if you want to use React alongside another JSX framework; include specifies files to be compiled for React and exclude
does the opposite.
#8228 4bd2fac8d
Thanks @bluwy! - Publish missing vnode-children.js
file
#8264 1f58a7a1b
Thanks @natemoo-re! - Automatically unmount islands when astro:unmount
is fired
Updated dependencies [d0679a666
, 2aa6d8ace
, 6011d52d3
]:
1f58a7a1b
Thanks @natemoo-re! - Automatically unmount islands when astro:unmount
is firedThis adds a new configuration option for the React integration experimentalReactChildren
:
export default {
integrations: [
react({
experimentalReactChildren: true,
}),
],
};
With this enabled, children passed to React from Astro components via the default slot are parsed as React components.
This enables better compatibility with certain React components which manipulate their children.
The React integration now fully supports React Refresh and is backed by @vitejs/plugin-react
.
Also included in this change are new include
and exclude
config options. Use these if you want to use React alongside another JSX framework; include specifies files to be compiled for React and exclude
does the opposite.
1eae2e3f7
Thanks @Princesseuh! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.8c0a4ed10
Thanks @natemoo-re! - Fix missing export for new experimentalReactChildren
optionThis adds a new configuration option for the React integration experimentalReactChildren
:
export default {
integrations: [
react({
experimentalReactChildren: true,
}),
],
};
With this enabled, children passed to React from Astro components via the default slot are parsed as React components.
This enables better compatibility with certain React components which manipulate their children.
da517d405
Thanks @SudoCat! - fix a bug where react identifierPrefix was set to null for client:only components causing React.useId to generate ids prefixed with nullThis change introduces a new flag that renderers can add called supportsAstroStaticSlot
. What this does is let Astro know that the render is sending <astro-static-slot>
as placeholder values for static (non-hydrated) slots which Astro will then remove.
This change is completely backwards compatible, but fixes bugs caused by combining ssr-only and client-side framework components like so:
<Component>
<div>
<Component client:load>
<span>Nested</span>
</Component>
</div>
</Component>
#6698 fc71c3f18
Thanks @bholmesdev! - Update React README to reference the new React docs
#6696 239b9a2fb
Thanks @matthewp! - Add use-immer as a noExternal module
afbbc4d5b
Thanks @Princesseuh! - Updated compilation settings to disable downlevelling for Node 141f92d64ea
Thanks @Princesseuh! - Remove support for Node 14. Minimum supported Node version is now >=16.12.01f92d64ea
`](https://github.com/withastro/astro/commit/1f92d64ea3
) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Remove support for Node 14. Minimum supported Node version is now >=16.12.0
0b1241431
Thanks @MoustaphaDev! - remove unnecessary ReactDOM.renderToString
operationddfbef5ac
Thanks @Princesseuh! - Add @types/
packages as peerDependenciesThis adds support for mui through configuration. Users will now not need to configure this library to get it to work.
#4679 5986517b4
Thanks @matthewp! - Prevent decoder from leaking
#4667 9290b2414
Thanks @Holben888! - Fix framework components on Vercel Edge
This prevents hydration from blocking the main thread when multiple islands are rendering at the same time.
This prevents hydration from blocking the main thread when multiple islands are rendering at the same time.
04ad44563
- > Astro v1.0 is out! Read the official announcement post.No breaking changes. This package is now officially stable and compatible with astro@1.0.0
!
b48767985
Thanks @ran-dall! - Rollback supported node@16
version. Minimum versions are now node@14.20.0
or node@16.14.0
.1cc5b7890
Thanks @natemoo-re! - Update supported node
versions. Minimum versions are now node@14.20.0
or node@16.16.0
.b012ee55
Thanks @bholmesdev! - [astro add] Support adapters and third party packages7373d61c
Thanks @natemoo-re! - Add support for passing named slots from .astro
=> framework components.Each slot
is be passed as a top-level prop. For example:
// From .astro
<Component>
<h2 slot="title">Hello world!</h2>
<h2 slot="slot-with-dash">Dash</h2>
<div>Default</div>
</Component>;
// For .jsx
export default function Component({ title, slotWithDash, children }) {
return (
<>
<div id="title">{title}</div>
<div id="slot-with-dash">{slotWithDash}</div>
<div id="main">{children}</div>
</>
);
}
e9a77d86
Thanks @natemoo-re! - Update client hydration to check for ssr
attribute. Requires astro@^1.0.0-beta.36
.678c2b75
Thanks @bholmesdev! - Fix: remove hydration failures on React v18 by exposing the "client" directive from Astro core.e425f896
Thanks @FredKSchott! - Add support for React v18#2885 6b004363
Thanks @bholmesdev! - Add README across Astro built-in integrations
#2847 3b621f7a
Thanks @tony-sull! - Adds keywords to the official integrations to support discoverability on Astro's Integrations site
3b621f7a
Thanks @tony-sull! - Adds keywords to the official integrations to support discoverability on Astro's Integrations site