summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> 2022-06-24 12:55:36 -0500
committerGravatar GitHub <noreply@github.com> 2022-06-24 12:55:36 -0500
commit6a6047483bccbedcf3fea890ad588e53f0800b49 (patch)
tree27e2786719477a4a32b6c659a2556247de1aa92d
parent3e6ed5d1bc80b55fed1e1b01a4c8d9398d5cd543 (diff)
downloadastro-6a6047483bccbedcf3fea890ad588e53f0800b49.tar.gz
astro-6a6047483bccbedcf3fea890ad588e53f0800b49.tar.zst
astro-6a6047483bccbedcf3fea890ad588e53f0800b49.zip
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
-rw-r--r--.changeset/clever-pumpkins-begin.md7
-rw-r--r--.changeset/lovely-bulldogs-admire.md29
-rw-r--r--.changeset/mean-ears-mate.md7
-rw-r--r--.changeset/modern-dots-smile.md5
-rw-r--r--.changeset/sixty-mirrors-bake.md5
-rw-r--r--.changeset/tasty-hornets-return.md11
-rw-r--r--.changeset/tough-ants-rest.md8
-rw-r--r--examples/basics/package.json2
-rw-r--r--examples/blog-multiple-authors/package.json4
-rw-r--r--examples/blog/package.json4
-rw-r--r--examples/component/demo/package.json2
-rw-r--r--examples/component/package.json2
-rw-r--r--examples/docs/package.json6
-rw-r--r--examples/env-vars/package.json2
-rw-r--r--examples/framework-alpine/package.json2
-rw-r--r--examples/framework-lit/package.json4
-rw-r--r--examples/framework-multiple/package.json14
-rw-r--r--examples/framework-preact/package.json4
-rw-r--r--examples/framework-react/package.json4
-rw-r--r--examples/framework-solid/package.json4
-rw-r--r--examples/framework-svelte/package.json4
-rw-r--r--examples/framework-vue/package.json4
-rw-r--r--examples/integrations-playground/package.json10
-rw-r--r--examples/minimal/package.json2
-rw-r--r--examples/non-html-pages/package.json2
-rw-r--r--examples/portfolio/package.json4
-rw-r--r--examples/ssr/package.json4
-rw-r--r--examples/starter/package.json2
-rw-r--r--examples/subpath/package.json4
-rw-r--r--examples/with-markdown-plugins/package.json2
-rw-r--r--examples/with-markdown-shiki/package.json2
-rw-r--r--examples/with-markdown/package.json10
-rw-r--r--examples/with-nanostores/package.json12
-rw-r--r--examples/with-tailwindcss/package.json2
-rw-r--r--examples/with-vite-plugin-pwa/package.json2
-rw-r--r--packages/astro/CHANGELOG.md18
-rw-r--r--packages/astro/package.json2
-rw-r--r--packages/integrations/lit/CHANGELOG.md8
-rw-r--r--packages/integrations/lit/package.json2
-rw-r--r--packages/integrations/preact/CHANGELOG.md28
-rw-r--r--packages/integrations/preact/package.json2
-rw-r--r--packages/integrations/react/CHANGELOG.md28
-rw-r--r--packages/integrations/react/package.json2
-rw-r--r--packages/integrations/sitemap/CHANGELOG.md6
-rw-r--r--packages/integrations/sitemap/package.json2
-rw-r--r--packages/integrations/solid/CHANGELOG.md28
-rw-r--r--packages/integrations/solid/package.json2
-rw-r--r--packages/integrations/svelte/CHANGELOG.md8
-rw-r--r--packages/integrations/svelte/package.json2
-rw-r--r--packages/integrations/vue/CHANGELOG.md8
-rw-r--r--packages/integrations/vue/package.json2
-rw-r--r--pnpm-lock.yaml120
52 files changed, 260 insertions, 200 deletions
diff --git a/.changeset/clever-pumpkins-begin.md b/.changeset/clever-pumpkins-begin.md
deleted file mode 100644
index 26b9e5f18..000000000
--- 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 74888cb27..000000000
--- 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
-<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>
- </>
- )
-}
-```
diff --git a/.changeset/mean-ears-mate.md b/.changeset/mean-ears-mate.md
deleted file mode 100644
index 6bb538e4e..000000000
--- 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<string, string>` 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 a66e9c34d..000000000
--- 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 db6a70bc4..000000000
--- 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 285230311..000000000
--- 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 `<head>` 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 `<Astro.Head>` 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 f95ae30c2..000000000
--- 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 e54ce1167..d87a9c600 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 4514566a1..4e397b055 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 33680cad8..8ff825236 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 c91bf5b6b..2bf062117 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 10cd44ec8..16c159349 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 37720315e..e27a421c6 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 f30366443..aef9b0365 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 07ca0542c..f07762b55 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 d77a0ef43..86077aa0e 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 ec0a7766b..f7af906e0 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 1000353de..5085607df 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 4a2ddf71c..a9378a304 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 0bf6eb47f..3f1bc3ec5 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 61744cf86..60d18f27a 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 9951b5603..72552314b 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 75bde1026..c58571797 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 30445f8bf..b887e42a7 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 9692f9983..022ece7de 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 6a7337ee4..2be4e7c52 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 51469fc49..abda3716e 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 4bcda5fdc..798e207a5 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 498daf7a7..d19ed5e0e 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 534fa609c..8fe0df1c9 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 8c997012b..9b8624634 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 f37e12498..e3c7c0a4c 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 a729410fa..1d628de3a 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 794d193d4..25f2bcf4b 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 965e461e1..c8a71f811 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 559b9b52e..61b47f785 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<string, string>` 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 `<head>` 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 `<Astro.Head>` 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 326e64fa6..4b9e34174 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 354729d92..4c4b40c15 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 546f510a0..12beab245 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 07fbf0ea0..fa02e8590 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
+ <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>
+ </>
+ );
+ }
+ ```
+
## 0.1.3
### Patch Changes
diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json
index 72a6174cc..7229e6b2e 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 fa71e8b1b..7dda8d3c9 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
+ <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>
+ </>
+ );
+ }
+ ```
+
## 0.1.3
### Patch Changes
diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json
index 96aa67368..0bc3937bf 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 5d6e37dcf..47d1c40ef 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 ffb20d433..47e0e0ef0 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 d936a6e04..b223e8a30 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
+ <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>
+ </>
+ );
+ }
+ ```
+
## 0.1.4
### Patch Changes
diff --git a/packages/integrations/solid/package.json b/packages/integrations/solid/package.json
index e60677d3a..c6fe8c40a 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 4e84b1fee..116eb60f5 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 c25e0eb0a..a9c653ea7 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 96000a31c..e2a78b3fd 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 e2008fe0b..f91ce1cd3 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 c92742962..a7b468ed1 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: