0903ef90494e9c8bd0272347a0cdd51eca7f4648
Thanks @aleksandrjet! - Allows rendering lazy components.You can now use lazy components with Suspense:
import { lazy, Suspense } from 'preact/compat';
const HeavyComponent = lazy(() => import('./HeavyComponent'));
const Component = () => {
return (
<Suspense fallback={<p>Loading...</p>}>
<HeavyComponent foo="bar" />
</Suspense>
);
};
#9482 72b26daf694b213918f02d0fcbf90ab5b7ebc31f
Thanks @natemoo-re! - Improves compatability with the Qwik adapter
#9479 1baf0b0d3cbd0564954c2366a7278794fad6726e
Thanks @sarah11918! - Updates README
6f60da805
Thanks @ematipico! - Add provenance statement when publishing the library from CI#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! - New include
and exclude
config options
The Preact integration now has new include
and exclude
config options. Use these if you want to use Preact alongside another JSX framework; include specifies files to be compiled for Preact and exclude
does the opposite.
1f58a7a1b
Thanks @natemoo-re! - Automatically unmount islands when astro:unmount
is fired1f58a7a1b
Thanks @natemoo-re! - Automatically unmount islands when astro:unmount
is firedThe Preact integration now has new include
and exclude
config options. Use these if you want to use Preact alongside another JSX framework; include specifies files to be compiled for Preact 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.58b121d42
Thanks @paperdave! - Support Bun by adjusting how @babel/plugin-transform-react-jsx
is imported.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
`](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
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 Imports
import Counter from '../components/Counter';
import { signal } from '@preact/signals';
const count = signal(0);
---
<Count count={count} />
<Count count={count} />
812658ad2
Thanks @bluwy! - Add missing dependencies, support strict dependency installation (e.g. pnpm)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
!
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 packagesb934ab5d
Thanks @hippotastic! - Fix "Invalid hook call" warningTo use preact/compat
to render React components, users can now set compat
to true
when using the Preact integration:
integrations: [
preact({ compat: true }),
],
7373d61c
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
.70263cf7
Thanks @natemoo-re! - Fix integration to use updateConfig rather than returning a partial config object815d62f1
Thanks @FredKSchott! - no changes.9d7a4b59
Thanks @FredKSchott! - Welcome to the Astro v1.0.0 Beta! Read the official announcement for more details.#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
#2872 098f6f6b
Thanks @bholmesdev! - Fix isSelfAccepting
errors when using the Preact integration with the Astro dev server
098f6f6b
Thanks @bholmesdev! - Fix isSelfAccepting
errors when using the Preact integration with the Astro dev server3b621f7a
Thanks @tony-sull! - Adds keywords to the official integrations to support discoverability on Astro's Integrations site