diff --git a/.changeset/clever-pumpkins-begin.md b/.changeset/clever-pumpkins-begin.md deleted file mode 100644 index 26b9e5f18f94..000000000000 --- a/.changeset/clever-pumpkins-begin.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@astrojs/lit': minor ---- - -Adds support for passing named slots from `.astro` => Lit components. - -All slots are treated as Light DOM content. diff --git a/.changeset/lovely-bulldogs-admire.md b/.changeset/lovely-bulldogs-admire.md deleted file mode 100644 index 74888cb27df2..000000000000 --- a/.changeset/lovely-bulldogs-admire.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -'@astrojs/preact': minor -'@astrojs/react': minor -'@astrojs/solid-js': minor ---- - -Add support for passing named slots from `.astro` => framework components. - -Each `slot` is be passed as a top-level prop. For example: - -```jsx -// From .astro - -

Hello world!

-

Dash

-
Default
-
- -// For .jsx -export default function Component({ title, slotWithDash, children }) { - return ( - <> -
{title}
-
{slotWithDash}
-
{children}
- - ) -} -``` diff --git a/.changeset/mean-ears-mate.md b/.changeset/mean-ears-mate.md deleted file mode 100644 index 6bb538e4e986..000000000000 --- a/.changeset/mean-ears-mate.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'astro': patch ---- - -Add renderer support for passing named slots to framework components. - -**BREAKING**: integrations using the `addRenderer()` API are now passed all named slots via `Record` rather than `string`. Previously only the default slot was passed. diff --git a/.changeset/modern-dots-smile.md b/.changeset/modern-dots-smile.md deleted file mode 100644 index a66e9c34de30..000000000000 --- a/.changeset/modern-dots-smile.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Added test for dir parameter in astro:build:done diff --git a/.changeset/sixty-mirrors-bake.md b/.changeset/sixty-mirrors-bake.md deleted file mode 100644 index db6a70bc4192..000000000000 --- a/.changeset/sixty-mirrors-bake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/sitemap': patch ---- - -Add warning log for sitemap + SSR adapter, with suggestion to use customPages configuration option diff --git a/.changeset/tasty-hornets-return.md b/.changeset/tasty-hornets-return.md deleted file mode 100644 index 2852303110e1..000000000000 --- a/.changeset/tasty-hornets-return.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'astro': patch ---- - -Moves head injection to happen during rendering - -This change makes it so that head injection; to insert component stylesheets, hoisted scripts, for example, to happen during rendering than as a post-rendering step. - -This is to enable streaming. This change will only be noticeable if you are rendering your `` element inside of a framework component. If that is the case then the head items will be injected before the first non-head element in an Astro file instead. - -In the future we may offer a `` component as a way to control where these scripts/styles are inserted. diff --git a/.changeset/tough-ants-rest.md b/.changeset/tough-ants-rest.md deleted file mode 100644 index f95ae30c2134..000000000000 --- a/.changeset/tough-ants-rest.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@astrojs/svelte': minor -'@astrojs/vue': minor ---- - -Adds support for passing named slots from `.astro` => framework components. - -Inside your components, use the built-in `slot` API as you normally would. diff --git a/examples/basics/package.json b/examples/basics/package.json index e54ce11673b5..d87a9c600096 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.53" + "astro": "^1.0.0-beta.54" } } diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index 4514566a1f27..4e397b0559f7 100644 --- a/examples/blog-multiple-authors/package.json +++ b/examples/blog-multiple-authors/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/preact": "^0.1.3", - "astro": "^1.0.0-beta.53", + "@astrojs/preact": "^0.2.0", + "astro": "^1.0.0-beta.54", "sass": "^1.52.2" }, "dependencies": { diff --git a/examples/blog/package.json b/examples/blog/package.json index 33680cad82e8..8ff8252367d5 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/preact": "^0.1.3", - "astro": "^1.0.0-beta.53" + "@astrojs/preact": "^0.2.0", + "astro": "^1.0.0-beta.54" }, "dependencies": { "preact": "^10.7.3" diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index c91bf5b6b333..2bf06211727c 100644 --- a/examples/component/demo/package.json +++ b/examples/component/demo/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@example/my-component": "workspace:*", - "astro": "^1.0.0-beta.53" + "astro": "^1.0.0-beta.54" } } diff --git a/examples/component/package.json b/examples/component/package.json index 10cd44ec85e0..16c159349975 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -8,6 +8,6 @@ "serve": "astro --root demo preview" }, "devDependencies": { - "astro": "^1.0.0-beta.53" + "astro": "^1.0.0-beta.54" } } diff --git a/examples/docs/package.json b/examples/docs/package.json index 37720315e274..e27a421c6ac0 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -18,8 +18,8 @@ "react-dom": "^18.1.0" }, "devDependencies": { - "@astrojs/preact": "^0.1.3", - "@astrojs/react": "^0.1.3", - "astro": "^1.0.0-beta.53" + "@astrojs/preact": "^0.2.0", + "@astrojs/react": "^0.2.0", + "astro": "^1.0.0-beta.54" } } diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json index f30366443dbc..aef9b036522c 100644 --- a/examples/env-vars/package.json +++ b/examples/env-vars/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.53" + "astro": "^1.0.0-beta.54" } } diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 07ca0542ced5..f07762b55721 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.53" + "astro": "^1.0.0-beta.54" }, "dependencies": { "alpinejs": "^3.10.2" diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index d77a0ef434bc..86077aa0e8d1 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/lit": "^0.2.0", - "astro": "^1.0.0-beta.53" + "@astrojs/lit": "^0.3.0", + "astro": "^1.0.0-beta.54" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index ec0a7766b6f0..f7af906e037f 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -9,13 +9,13 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/lit": "^0.2.0", - "@astrojs/preact": "^0.1.3", - "@astrojs/react": "^0.1.3", - "@astrojs/solid-js": "^0.1.4", - "@astrojs/svelte": "^0.1.5", - "@astrojs/vue": "^0.1.5", - "astro": "^1.0.0-beta.53" + "@astrojs/lit": "^0.3.0", + "@astrojs/preact": "^0.2.0", + "@astrojs/react": "^0.2.0", + "@astrojs/solid-js": "^0.2.0", + "@astrojs/svelte": "^0.2.0", + "@astrojs/vue": "^0.2.0", + "astro": "^1.0.0-beta.54" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 1000353dec7b..5085607dfafd 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/preact": "^0.1.3", - "astro": "^1.0.0-beta.53" + "@astrojs/preact": "^0.2.0", + "astro": "^1.0.0-beta.54" }, "dependencies": { "preact": "^10.7.3" diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 4a2ddf71cdc0..a9378a304f49 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -9,10 +9,10 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/react": "^0.1.3", + "@astrojs/react": "^0.2.0", "@types/react": "^18.0.10", "@types/react-dom": "^18.0.5", - "astro": "^1.0.0-beta.53" + "astro": "^1.0.0-beta.54" }, "dependencies": { "react": "^18.1.0", diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 0bf6eb47f774..3f1bc3ec5a0a 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/solid-js": "^0.1.4", - "astro": "^1.0.0-beta.53" + "@astrojs/solid-js": "^0.2.0", + "astro": "^1.0.0-beta.54" }, "dependencies": { "solid-js": "^1.4.3" diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 61744cf86f69..60d18f27aa1e 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/svelte": "^0.1.5", - "astro": "^1.0.0-beta.53" + "@astrojs/svelte": "^0.2.0", + "astro": "^1.0.0-beta.54" }, "dependencies": { "svelte": "^3.48.0" diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 9951b5603ba5..72552314b81a 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/vue": "^0.1.5", - "astro": "^1.0.0-beta.53" + "@astrojs/vue": "^0.2.0", + "astro": "^1.0.0-beta.54" }, "dependencies": { "vue": "^3.2.36" diff --git a/examples/integrations-playground/package.json b/examples/integrations-playground/package.json index 75bde1026eb8..c585717977b7 100644 --- a/examples/integrations-playground/package.json +++ b/examples/integrations-playground/package.json @@ -9,14 +9,14 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/lit": "^0.2.0", + "@astrojs/lit": "^0.3.0", "@astrojs/partytown": "^0.1.5", - "@astrojs/react": "^0.1.3", - "@astrojs/sitemap": "^0.2.1", - "@astrojs/solid-js": "0.1.4", + "@astrojs/react": "^0.2.0", + "@astrojs/sitemap": "^0.2.2", + "@astrojs/solid-js": "0.2.0", "@astrojs/tailwind": "^0.2.1", "@astrojs/turbolinks": "^0.1.3", - "astro": "^1.0.0-beta.53", + "astro": "^1.0.0-beta.54", "solid-js": "^1.4.3" }, "dependencies": { diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 30445f8bff4f..b887e42a76a3 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.53" + "astro": "^1.0.0-beta.54" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 9692f99838ef..022ece7dec04 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.53" + "astro": "^1.0.0-beta.54" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 6a7337ee42f3..2be4e7c52ad4 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/preact": "^0.1.3", - "astro": "^1.0.0-beta.53", + "@astrojs/preact": "^0.2.0", + "astro": "^1.0.0-beta.54", "sass": "^1.52.2" }, "dependencies": { diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 51469fc4931e..abda3716e1c0 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -10,8 +10,8 @@ }, "devDependencies": { "@astrojs/node": "^0.1.2", - "@astrojs/svelte": "^0.1.5", - "astro": "^1.0.0-beta.53", + "@astrojs/svelte": "^0.2.0", + "astro": "^1.0.0-beta.54", "concurrently": "^7.2.1", "lightcookie": "^1.0.25", "unocss": "^0.15.6", diff --git a/examples/starter/package.json b/examples/starter/package.json index 4bcda5fdcef6..798e207a5dff 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.53" + "astro": "^1.0.0-beta.54" } } diff --git a/examples/subpath/package.json b/examples/subpath/package.json index 498daf7a7e9b..d19ed5e0ed9d 100644 --- a/examples/subpath/package.json +++ b/examples/subpath/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/react": "^0.1.3", - "astro": "^1.0.0-beta.53", + "@astrojs/react": "^0.2.0", + "astro": "^1.0.0-beta.54", "sass": "^1.52.2" }, "dependencies": { diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 534fa609c359..8fe0df1c94b3 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/markdown-remark": "^0.11.3", - "astro": "^1.0.0-beta.53", + "astro": "^1.0.0-beta.54", "hast-util-select": "5.0.1", "rehype-autolink-headings": "^6.1.1", "rehype-slug": "^5.0.1", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index 8c997012b448..9b8624634d5f 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/markdown-remark": "^0.11.3", - "astro": "^1.0.0-beta.53" + "astro": "^1.0.0-beta.54" } } diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json index f37e12498ed3..e3c7c0a4c8cb 100644 --- a/examples/with-markdown/package.json +++ b/examples/with-markdown/package.json @@ -10,11 +10,11 @@ }, "devDependencies": { "@astrojs/markdown-remark": "^0.11.3", - "@astrojs/preact": "^0.1.3", - "@astrojs/react": "^0.1.3", - "@astrojs/svelte": "^0.1.5", - "@astrojs/vue": "^0.1.5", - "astro": "^1.0.0-beta.53" + "@astrojs/preact": "^0.2.0", + "@astrojs/react": "^0.2.0", + "@astrojs/svelte": "^0.2.0", + "@astrojs/vue": "^0.2.0", + "astro": "^1.0.0-beta.54" }, "dependencies": { "preact": "^10.7.3", diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index a729410fae60..1d628de3a967 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -20,11 +20,11 @@ "vue": "^3.2.36" }, "devDependencies": { - "@astrojs/preact": "^0.1.3", - "@astrojs/react": "^0.1.3", - "@astrojs/solid-js": "^0.1.4", - "@astrojs/svelte": "^0.1.5", - "@astrojs/vue": "^0.1.5", - "astro": "^1.0.0-beta.53" + "@astrojs/preact": "^0.2.0", + "@astrojs/react": "^0.2.0", + "@astrojs/solid-js": "^0.2.0", + "@astrojs/svelte": "^0.2.0", + "@astrojs/vue": "^0.2.0", + "astro": "^1.0.0-beta.54" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 794d193d4fe6..25f2bcf4be5f 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/tailwind": "^0.2.1", - "astro": "^1.0.0-beta.53", + "astro": "^1.0.0-beta.54", "autoprefixer": "^10.4.7", "canvas-confetti": "^1.5.1", "postcss": "^8.4.14", diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index 965e461e1eda..c8a71f81164d 100644 --- a/examples/with-vite-plugin-pwa/package.json +++ b/examples/with-vite-plugin-pwa/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.53", + "astro": "^1.0.0-beta.54", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.3" } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 559b9b52ef0b..61b47f7853c4 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,23 @@ # astro +## 1.0.0-beta.54 + +### Patch Changes + +- [#3652](https://github.com/withastro/astro/pull/3652) [`7373d61c`](https://github.com/withastro/astro/commit/7373d61cdcaedd64bf5fd60521b157cfa4343558) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Add renderer support for passing named slots to framework components. + + **BREAKING**: integrations using the `addRenderer()` API are now passed all named slots via `Record` rather than `string`. Previously only the default slot was passed. + +* [#3649](https://github.com/withastro/astro/pull/3649) [`446f8c4f`](https://github.com/withastro/astro/commit/446f8c4f13de04324697e958af027ac8943a039b) Thanks [@dc7290](https://github.com/dc7290)! - Added test for dir parameter in astro:build:done + +- [#3679](https://github.com/withastro/astro/pull/3679) [`fa7ed3f3`](https://github.com/withastro/astro/commit/fa7ed3f3a9ce89c1c46e637b584271a6e199d211) Thanks [@matthewp](https://github.com/matthewp)! - Moves head injection to happen during rendering + + This change makes it so that head injection; to insert component stylesheets, hoisted scripts, for example, to happen during rendering than as a post-rendering step. + + This is to enable streaming. This change will only be noticeable if you are rendering your `` element inside of a framework component. If that is the case then the head items will be injected before the first non-head element in an Astro file instead. + + In the future we may offer a `` component as a way to control where these scripts/styles are inserted. + ## 1.0.0-beta.53 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 326e64fa6a2c..4b9e34174b1f 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "1.0.0-beta.53", + "version": "1.0.0-beta.54", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", diff --git a/packages/integrations/lit/CHANGELOG.md b/packages/integrations/lit/CHANGELOG.md index 354729d92356..4c4b40c15fac 100644 --- a/packages/integrations/lit/CHANGELOG.md +++ b/packages/integrations/lit/CHANGELOG.md @@ -1,5 +1,13 @@ # @astrojs/lit +## 0.3.0 + +### Minor Changes + +- [#3652](https://github.com/withastro/astro/pull/3652) [`7373d61c`](https://github.com/withastro/astro/commit/7373d61cdcaedd64bf5fd60521b157cfa4343558) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Adds support for passing named slots from `.astro` => Lit components. + + All slots are treated as Light DOM content. + ## 0.2.0 ### Minor Changes diff --git a/packages/integrations/lit/package.json b/packages/integrations/lit/package.json index 546f510a0bfc..12beab2451e7 100644 --- a/packages/integrations/lit/package.json +++ b/packages/integrations/lit/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/lit", - "version": "0.2.0", + "version": "0.3.0", "description": "Use Lit components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/integrations/preact/CHANGELOG.md b/packages/integrations/preact/CHANGELOG.md index 07fbf0ea02a4..fa02e859089e 100644 --- a/packages/integrations/preact/CHANGELOG.md +++ b/packages/integrations/preact/CHANGELOG.md @@ -1,5 +1,33 @@ # @astrojs/preact +## 0.2.0 + +### Minor Changes + +- [#3652](https://github.com/withastro/astro/pull/3652) [`7373d61c`](https://github.com/withastro/astro/commit/7373d61cdcaedd64bf5fd60521b157cfa4343558) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Add support for passing named slots from `.astro` => framework components. + + Each `slot` is be passed as a top-level prop. For example: + + ```jsx + // From .astro + +

Hello world!

+

Dash

+
Default
+
; + + // For .jsx + export default function Component({ title, slotWithDash, children }) { + return ( + <> +
{title}
+
{slotWithDash}
+
{children}
+ + ); + } + ``` + ## 0.1.3 ### Patch Changes diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json index 72a6174cc7a7..7229e6b2eefa 100644 --- a/packages/integrations/preact/package.json +++ b/packages/integrations/preact/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/preact", "description": "Use Preact components within Astro", - "version": "0.1.3", + "version": "0.2.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/react/CHANGELOG.md b/packages/integrations/react/CHANGELOG.md index fa71e8b1b46b..7dda8d3c9c89 100644 --- a/packages/integrations/react/CHANGELOG.md +++ b/packages/integrations/react/CHANGELOG.md @@ -1,5 +1,33 @@ # @astrojs/react +## 0.2.0 + +### Minor Changes + +- [#3652](https://github.com/withastro/astro/pull/3652) [`7373d61c`](https://github.com/withastro/astro/commit/7373d61cdcaedd64bf5fd60521b157cfa4343558) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Add support for passing named slots from `.astro` => framework components. + + Each `slot` is be passed as a top-level prop. For example: + + ```jsx + // From .astro + +

Hello world!

+

Dash

+
Default
+
; + + // For .jsx + export default function Component({ title, slotWithDash, children }) { + return ( + <> +
{title}
+
{slotWithDash}
+
{children}
+ + ); + } + ``` + ## 0.1.3 ### Patch Changes diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json index 96aa67368e70..0bc3937bfb46 100644 --- a/packages/integrations/react/package.json +++ b/packages/integrations/react/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/react", "description": "Use React components within Astro", - "version": "0.1.3", + "version": "0.2.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/sitemap/CHANGELOG.md b/packages/integrations/sitemap/CHANGELOG.md index 5d6e37dcfb60..47d1c40efe05 100644 --- a/packages/integrations/sitemap/CHANGELOG.md +++ b/packages/integrations/sitemap/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/sitemap +## 0.2.2 + +### Patch Changes + +- [#3689](https://github.com/withastro/astro/pull/3689) [`3f8ee70e`](https://github.com/withastro/astro/commit/3f8ee70e2bc5b49c65a0444d9606232dadbc2fca) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Add warning log for sitemap + SSR adapter, with suggestion to use customPages configuration option + ## 0.2.1 ### Patch Changes diff --git a/packages/integrations/sitemap/package.json b/packages/integrations/sitemap/package.json index ffb20d4333e6..47e0e0ef067c 100644 --- a/packages/integrations/sitemap/package.json +++ b/packages/integrations/sitemap/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/sitemap", "description": "Generate a sitemap for Astro", - "version": "0.2.1", + "version": "0.2.2", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/solid/CHANGELOG.md b/packages/integrations/solid/CHANGELOG.md index d936a6e04dd9..b223e8a3081a 100644 --- a/packages/integrations/solid/CHANGELOG.md +++ b/packages/integrations/solid/CHANGELOG.md @@ -1,5 +1,33 @@ # @astrojs/solid-js +## 0.2.0 + +### Minor Changes + +- [#3652](https://github.com/withastro/astro/pull/3652) [`7373d61c`](https://github.com/withastro/astro/commit/7373d61cdcaedd64bf5fd60521b157cfa4343558) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Add support for passing named slots from `.astro` => framework components. + + Each `slot` is be passed as a top-level prop. For example: + + ```jsx + // From .astro + +

Hello world!

+

Dash

+
Default
+
; + + // For .jsx + export default function Component({ title, slotWithDash, children }) { + return ( + <> +
{title}
+
{slotWithDash}
+
{children}
+ + ); + } + ``` + ## 0.1.4 ### Patch Changes diff --git a/packages/integrations/solid/package.json b/packages/integrations/solid/package.json index e60677d3abce..c6fe8c40abaf 100644 --- a/packages/integrations/solid/package.json +++ b/packages/integrations/solid/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/solid-js", - "version": "0.1.4", + "version": "0.2.0", "description": "Use Solid components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/integrations/svelte/CHANGELOG.md b/packages/integrations/svelte/CHANGELOG.md index 4e84b1fee2f6..116eb60f538e 100644 --- a/packages/integrations/svelte/CHANGELOG.md +++ b/packages/integrations/svelte/CHANGELOG.md @@ -1,5 +1,13 @@ # @astrojs/svelte +## 0.2.0 + +### Minor Changes + +- [#3652](https://github.com/withastro/astro/pull/3652) [`7373d61c`](https://github.com/withastro/astro/commit/7373d61cdcaedd64bf5fd60521b157cfa4343558) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Adds support for passing named slots from `.astro` => framework components. + + Inside your components, use the built-in `slot` API as you normally would. + ## 0.1.5 ### Patch Changes diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index c25e0eb0a710..a9c653ea7de1 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/svelte", - "version": "0.1.5", + "version": "0.2.0", "description": "Use Svelte components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/integrations/vue/CHANGELOG.md b/packages/integrations/vue/CHANGELOG.md index 96000a31c231..e2a78b3fd394 100644 --- a/packages/integrations/vue/CHANGELOG.md +++ b/packages/integrations/vue/CHANGELOG.md @@ -1,5 +1,13 @@ # @astrojs/vue +## 0.2.0 + +### Minor Changes + +- [#3652](https://github.com/withastro/astro/pull/3652) [`7373d61c`](https://github.com/withastro/astro/commit/7373d61cdcaedd64bf5fd60521b157cfa4343558) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Adds support for passing named slots from `.astro` => framework components. + + Inside your components, use the built-in `slot` API as you normally would. + ## 0.1.5 ### Patch Changes diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index e2008fe0b830..f91ce1cd3749 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/vue", - "version": "0.1.5", + "version": "0.2.0", "description": "Use Vue components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c9274296240e..a7b468ed1126 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,14 +49,14 @@ importers: examples/basics: specifiers: - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 devDependencies: astro: link:../../packages/astro examples/blog: specifiers: - '@astrojs/preact': ^0.1.3 - astro: ^1.0.0-beta.53 + '@astrojs/preact': ^0.2.0 + astro: ^1.0.0-beta.54 preact: ^10.7.3 dependencies: preact: 10.7.3 @@ -66,8 +66,8 @@ importers: examples/blog-multiple-authors: specifiers: - '@astrojs/preact': ^0.1.3 - astro: ^1.0.0-beta.53 + '@astrojs/preact': ^0.2.0 + astro: ^1.0.0-beta.54 preact: ^10.7.3 sass: ^1.52.2 dependencies: @@ -79,14 +79,14 @@ importers: examples/component: specifiers: - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 devDependencies: astro: link:../../packages/astro examples/component/demo: specifiers: '@example/my-component': workspace:* - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 devDependencies: '@example/my-component': link:../packages/my-component astro: link:../../../packages/astro @@ -97,12 +97,12 @@ importers: examples/docs: specifiers: '@algolia/client-search': ^4.13.1 - '@astrojs/preact': ^0.1.3 - '@astrojs/react': ^0.1.3 + '@astrojs/preact': ^0.2.0 + '@astrojs/react': ^0.2.0 '@docsearch/css': ^3.1.0 '@docsearch/react': ^3.1.0 '@types/react': ^17.0.45 - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 preact: ^10.7.3 react: ^18.1.0 react-dom: ^18.1.0 @@ -121,14 +121,14 @@ importers: examples/env-vars: specifiers: - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 devDependencies: astro: link:../../packages/astro examples/framework-alpine: specifiers: alpinejs: ^3.10.2 - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 dependencies: alpinejs: 3.10.2 devDependencies: @@ -136,9 +136,9 @@ importers: examples/framework-lit: specifiers: - '@astrojs/lit': ^0.2.0 + '@astrojs/lit': ^0.3.0 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 lit: ^2.2.5 dependencies: '@webcomponents/template-shadowroot': 0.1.0 @@ -149,14 +149,14 @@ importers: examples/framework-multiple: specifiers: - '@astrojs/lit': ^0.2.0 - '@astrojs/preact': ^0.1.3 - '@astrojs/react': ^0.1.3 - '@astrojs/solid-js': ^0.1.4 - '@astrojs/svelte': ^0.1.5 - '@astrojs/vue': ^0.1.5 + '@astrojs/lit': ^0.3.0 + '@astrojs/preact': ^0.2.0 + '@astrojs/react': ^0.2.0 + '@astrojs/solid-js': ^0.2.0 + '@astrojs/svelte': ^0.2.0 + '@astrojs/vue': ^0.2.0 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 lit: ^2.2.5 preact: ^10.7.3 react: ^18.1.0 @@ -184,8 +184,8 @@ importers: examples/framework-preact: specifiers: - '@astrojs/preact': ^0.1.3 - astro: ^1.0.0-beta.53 + '@astrojs/preact': ^0.2.0 + astro: ^1.0.0-beta.54 preact: ^10.7.3 dependencies: preact: 10.7.3 @@ -195,10 +195,10 @@ importers: examples/framework-react: specifiers: - '@astrojs/react': ^0.1.3 + '@astrojs/react': ^0.2.0 '@types/react': ^18.0.10 '@types/react-dom': ^18.0.5 - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 react: ^18.1.0 react-dom: ^18.1.0 dependencies: @@ -212,8 +212,8 @@ importers: examples/framework-solid: specifiers: - '@astrojs/solid-js': ^0.1.4 - astro: ^1.0.0-beta.53 + '@astrojs/solid-js': ^0.2.0 + astro: ^1.0.0-beta.54 solid-js: ^1.4.3 dependencies: solid-js: 1.4.3 @@ -223,8 +223,8 @@ importers: examples/framework-svelte: specifiers: - '@astrojs/svelte': ^0.1.5 - astro: ^1.0.0-beta.53 + '@astrojs/svelte': ^0.2.0 + astro: ^1.0.0-beta.54 svelte: ^3.48.0 dependencies: svelte: 3.48.0 @@ -234,8 +234,8 @@ importers: examples/framework-vue: specifiers: - '@astrojs/vue': ^0.1.5 - astro: ^1.0.0-beta.53 + '@astrojs/vue': ^0.2.0 + astro: ^1.0.0-beta.54 vue: ^3.2.36 dependencies: vue: 3.2.37 @@ -245,15 +245,15 @@ importers: examples/integrations-playground: specifiers: - '@astrojs/lit': ^0.2.0 + '@astrojs/lit': ^0.3.0 '@astrojs/partytown': ^0.1.5 - '@astrojs/react': ^0.1.3 - '@astrojs/sitemap': ^0.2.1 - '@astrojs/solid-js': 0.1.4 + '@astrojs/react': ^0.2.0 + '@astrojs/sitemap': ^0.2.2 + '@astrojs/solid-js': 0.2.0 '@astrojs/tailwind': ^0.2.1 '@astrojs/turbolinks': ^0.1.3 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 lit: ^2.2.5 preact: ^10.7.3 react: ^18.1.0 @@ -282,20 +282,20 @@ importers: examples/minimal: specifiers: - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 devDependencies: astro: link:../../packages/astro examples/non-html-pages: specifiers: - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 devDependencies: astro: link:../../packages/astro examples/portfolio: specifiers: - '@astrojs/preact': ^0.1.3 - astro: ^1.0.0-beta.53 + '@astrojs/preact': ^0.2.0 + astro: ^1.0.0-beta.54 preact: ^10.7.3 sass: ^1.52.2 dependencies: @@ -308,8 +308,8 @@ importers: examples/ssr: specifiers: '@astrojs/node': ^0.1.2 - '@astrojs/svelte': ^0.1.5 - astro: ^1.0.0-beta.53 + '@astrojs/svelte': ^0.2.0 + astro: ^1.0.0-beta.54 concurrently: ^7.2.1 lightcookie: ^1.0.25 svelte: ^3.48.0 @@ -328,14 +328,14 @@ importers: examples/starter: specifiers: - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 devDependencies: astro: link:../../packages/astro examples/subpath: specifiers: - '@astrojs/react': ^0.1.3 - astro: ^1.0.0-beta.53 + '@astrojs/react': ^0.2.0 + astro: ^1.0.0-beta.54 react: ^18.1.0 react-dom: ^18.1.0 sass: ^1.52.2 @@ -350,11 +350,11 @@ importers: examples/with-markdown: specifiers: '@astrojs/markdown-remark': ^0.11.3 - '@astrojs/preact': ^0.1.3 - '@astrojs/react': ^0.1.3 - '@astrojs/svelte': ^0.1.5 - '@astrojs/vue': ^0.1.5 - astro: ^1.0.0-beta.53 + '@astrojs/preact': ^0.2.0 + '@astrojs/react': ^0.2.0 + '@astrojs/svelte': ^0.2.0 + '@astrojs/vue': ^0.2.0 + astro: ^1.0.0-beta.54 preact: ^10.7.3 react: ^18.1.0 react-dom: ^18.1.0 @@ -377,7 +377,7 @@ importers: examples/with-markdown-plugins: specifiers: '@astrojs/markdown-remark': ^0.11.3 - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 hast-util-select: 5.0.1 rehype-autolink-headings: ^6.1.1 rehype-slug: ^5.0.1 @@ -395,22 +395,22 @@ importers: examples/with-markdown-shiki: specifiers: '@astrojs/markdown-remark': ^0.11.3 - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 devDependencies: '@astrojs/markdown-remark': link:../../packages/markdown/remark astro: link:../../packages/astro examples/with-nanostores: specifiers: - '@astrojs/preact': ^0.1.3 - '@astrojs/react': ^0.1.3 - '@astrojs/solid-js': ^0.1.4 - '@astrojs/svelte': ^0.1.5 - '@astrojs/vue': ^0.1.5 + '@astrojs/preact': ^0.2.0 + '@astrojs/react': ^0.2.0 + '@astrojs/solid-js': ^0.2.0 + '@astrojs/svelte': ^0.2.0 + '@astrojs/vue': ^0.2.0 '@nanostores/preact': ^0.1.3 '@nanostores/react': ^0.1.5 '@nanostores/vue': ^0.4.1 - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 nanostores: ^0.5.12 preact: ^10.7.3 react: ^18.1.0 @@ -438,7 +438,7 @@ importers: examples/with-tailwindcss: specifiers: '@astrojs/tailwind': ^0.2.1 - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 autoprefixer: ^10.4.7 canvas-confetti: ^1.5.1 postcss: ^8.4.14 @@ -453,7 +453,7 @@ importers: examples/with-vite-plugin-pwa: specifiers: - astro: ^1.0.0-beta.53 + astro: ^1.0.0-beta.54 vite-plugin-pwa: 0.11.11 workbox-window: ^6.5.3 devDependencies: