β¨ Major Changes
1eae2e3f7Thanks @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.
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.#7093 3d525efc9 Thanks @matthewp! - Prevent removal of nested slots within islands
This 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>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 Thanks @Princesseuh! - Remove support for Node 14. Minimum supported Node version is now >=16.12.0#5015 b1964e9e1 Thanks @matthewp! - Shared state in Preact components with signals
This makes it possible to share client state between Preact islands via signals.
For example, you can create a signals in an Astro component and then pass it to multiple islands:
---// Component Importsimport Counter from '../components/Counter';import { signal } from '@preact/signals';const count = signal(0);---
<Count count={count} /><Count count={count} />999250d65 Thanks @marvinhagemeister! - Automatically set up Preact DevTools bridge when running astro dev.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!
1cc5b7890 Thanks @natemoo-re! - Update supported node versions. Minimum versions are now node@14.20.0 or node@16.16.0.