diff --git a/.changeset/pre.json b/.changeset/pre.json index 23d10aab4..cba2be872 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -61,6 +61,7 @@ }, "changesets": [ "shiny-rice-worry", + "sour-laws-raise", "stale-walls-whisper", "thin-cameras-clean" ] diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index 8a674b288..d70afdc80 100644 --- a/examples/blog-multiple-authors/package.json +++ b/examples/blog-multiple-authors/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/preact": "^0.0.2", - "astro": "^1.0.0-beta.1", + "astro": "^1.0.0-beta.2", "sass": "^1.49.11" }, "dependencies": { diff --git a/examples/blog/package.json b/examples/blog/package.json index c40e44506..9a0fa7fe4 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/preact": "^0.0.2", - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" }, "dependencies": { "preact": "^10.7.0" diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index ed2fef597..44108b8d4 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.1" + "astro": "^1.0.0-beta.2" } } diff --git a/examples/component/package.json b/examples/component/package.json index 14f8825db..def8a7499 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.1" + "astro": "^1.0.0-beta.2" } } diff --git a/examples/docs/package.json b/examples/docs/package.json index 2bfcbc81a..a51594e3a 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -20,6 +20,6 @@ "devDependencies": { "@astrojs/preact": "^0.0.2", "@astrojs/react": "^0.1.0", - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" } } diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json index b7f5f754c..28097a6f6 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.1" + "astro": "^1.0.0-beta.2" } } diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 311c5f401..c5d6a8fe3 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 809f53237..c4bde6b6e 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/lit": "^0.0.2", - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index de2bf9a0b..30362a070 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -15,7 +15,7 @@ "@astrojs/solid-js": "^0.0.3", "@astrojs/svelte": "^0.0.2", "@astrojs/vue": "^0.0.2", - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index f12f3ecf3..fba428e7e 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/preact": "^0.0.2", - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" }, "dependencies": { "preact": "^10.7.0" diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index d8d8699ae..a5579cb79 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/react": "^0.1.0", - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" }, "dependencies": { "react": "^18.0.0", diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index ba4336746..b36e32d08 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/solid-js": "^0.0.3", - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" }, "dependencies": { "solid-js": "^1.3.13" diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 1f61094c5..143730181 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/svelte": "^0.0.2", - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" }, "dependencies": { "svelte": "^3.46.6" diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index b41a96370..4fa92d720 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/vue": "^0.0.2", - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" }, "dependencies": { "vue": "^3.2.31" diff --git a/examples/integrations-playground/package.json b/examples/integrations-playground/package.json index ea2978ce9..b3340c51a 100644 --- a/examples/integrations-playground/package.json +++ b/examples/integrations-playground/package.json @@ -15,7 +15,7 @@ "@astrojs/sitemap": "^0.1.0", "@astrojs/tailwind": "^0.1.0", "@astrojs/turbolinks": "^0.0.2", - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/minimal/package.json b/examples/minimal/package.json index ccb062c9a..1a02ccb3f 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 11b95f571..4225a4f8d 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.1" + "astro": "^1.0.0-beta.2" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 161d59719..ea0f2a809 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/preact": "^0.0.2", - "astro": "^1.0.0-beta.1", + "astro": "^1.0.0-beta.2", "sass": "^1.49.11" }, "dependencies": { diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 66984d8e3..ef8f47758 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -11,7 +11,7 @@ "devDependencies": { "@astrojs/node": "^0.0.2", "@astrojs/svelte": "^0.0.2", - "astro": "^1.0.0-beta.1", + "astro": "^1.0.0-beta.2", "concurrently": "^7.1.0", "lightcookie": "^1.0.25", "unocss": "^0.15.6", diff --git a/examples/starter/package.json b/examples/starter/package.json index 03e290b36..583a49693 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" } } diff --git a/examples/subpath/package.json b/examples/subpath/package.json index ca150ba1b..a92fd12dd 100644 --- a/examples/subpath/package.json +++ b/examples/subpath/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/react": "^0.1.0", - "astro": "^1.0.0-beta.1", + "astro": "^1.0.0-beta.2", "sass": "^1.49.11" }, "dependencies": { diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 1a82078f1..aaaef57cb 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/markdown-remark": "^0.8.1", - "astro": "^1.0.0-beta.1", + "astro": "^1.0.0-beta.2", "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 566792bab..fe090f667 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/markdown-remark": "^0.8.1", - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" } } diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json index 9e3e60e31..250abcead 100644 --- a/examples/with-markdown/package.json +++ b/examples/with-markdown/package.json @@ -14,7 +14,7 @@ "@astrojs/react": "^0.1.0", "@astrojs/svelte": "^0.0.2", "@astrojs/vue": "^0.0.2", - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" }, "dependencies": { "preact": "^10.7.0", diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index b256ff838..bf7d47f6b 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -25,6 +25,6 @@ "@astrojs/solid-js": "^0.0.3", "@astrojs/svelte": "^0.0.2", "@astrojs/vue": "^0.0.2", - "astro": "^1.0.0-beta.1" + "astro": "^1.0.0-beta.2" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 3553e3e22..ffefc33fe 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/tailwind": "^0.1.0", - "astro": "^1.0.0-beta.1", + "astro": "^1.0.0-beta.2", "autoprefixer": "^10.4.4", "canvas-confetti": "^1.5.1", "postcss": "^8.4.12", diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index c80d92cb2..147f4e308 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.1", + "astro": "^1.0.0-beta.2", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.2" } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 1715bf0ff..b55153a40 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,11 @@ # astro +## 1.0.0-beta.2 + +### Patch Changes + +- [`572ca3dc`](https://github.com/withastro/astro/commit/572ca3dcbeb754d026ef322c5085c6d2b9054347) Thanks [@FredKSchott](https://github.com/FredKSchott)! - fix markdown issue with parsing components in setup + ## 1.0.0-beta.1 ### Patch Changes @@ -124,7 +130,7 @@ import netlify from '@astrojs/netlify/functions'; export default defineConfig({ - adapter: netlify(), + adapter: netlify(), }); ``` @@ -144,7 +150,7 @@ import nodejs from '@astrojs/node'; export default { - adapter: nodejs(), + adapter: nodejs(), }; ``` @@ -204,7 +210,7 @@ import nodejs from '@astrojs/node'; export default { - adapter: nodejs(), + adapter: nodejs(), }; ``` @@ -300,7 +306,7 @@ import { defineConfig } from 'astro/config'; export default defineConfig({ - renderers: [], + renderers: [], }); ``` @@ -338,9 +344,9 @@ ```json { - "scripts": { - "build": "astro build --legacy-build" - } + "scripts": { + "build": "astro build --legacy-build" + } } ``` @@ -360,7 +366,7 @@ ```ts if (Astro.slots.has('default')) { - const content = await Astro.slots.render('default'); + const content = await Astro.slots.render('default'); } ``` @@ -444,7 +450,7 @@ ```ts if (Astro.slots.has('default')) { - const content = await Astro.slots.render('default'); + const content = await Astro.slots.render('default'); } ``` @@ -468,9 +474,9 @@ ```json { - "scripts": { - "build": "astro build --legacy-build" - } + "scripts": { + "build": "astro build --legacy-build" + } } ``` @@ -582,12 +588,12 @@ ```typescript // src/pages/company.json.ts export async function get() { - return { - body: JSON.stringify({ - name: 'Astro Technology Company', - url: 'https://astro.build/', - }), - }; + return { + body: JSON.stringify({ + name: 'Astro Technology Company', + url: 'https://astro.build/', + }), + }; } ``` @@ -749,12 +755,12 @@ ```typescript // src/pages/company.json.ts export async function get() { - return { - body: JSON.stringify({ - name: 'Astro Technology Company', - url: 'https://astro.build/', - }), - }; + return { + body: JSON.stringify({ + name: 'Astro Technology Company', + url: 'https://astro.build/', + }), + }; } ``` @@ -2109,10 +2115,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve ```js export default { - markdownOptions: { - remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]], - rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]], - }, + markdownOptions: { + remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]], + rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]], + }, }; ``` @@ -2132,10 +2138,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve ```js export default { - name: '@matthewp/my-renderer', - server: './server.js', - client: './client.js', - hydrationPolyfills: ['./my-polyfill.js'], + name: '@matthewp/my-renderer', + server: './server.js', + client: './client.js', + hydrationPolyfills: ['./my-polyfill.js'], }; ``` diff --git a/packages/astro/package.json b/packages/astro/package.json index 437059dd6..96c94e615 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "1.0.0-beta.1", + "version": "1.0.0-beta.2", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 23ebb0d5c..c3b75e31f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,7 +44,7 @@ importers: examples/blog: specifiers: '@astrojs/preact': ^0.0.2 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 preact: ^10.7.0 dependencies: preact: 10.7.0 @@ -55,7 +55,7 @@ importers: examples/blog-multiple-authors: specifiers: '@astrojs/preact': ^0.0.2 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 preact: ^10.7.0 sass: ^1.49.11 dependencies: @@ -67,14 +67,14 @@ importers: examples/component: specifiers: - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 devDependencies: astro: link:../../packages/astro examples/component/demo: specifiers: '@example/my-component': workspace:* - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 devDependencies: '@example/my-component': link:../packages/my-component astro: link:../../../packages/astro @@ -90,7 +90,7 @@ importers: '@docsearch/css': ^3.0.0 '@docsearch/react': ^3.0.0 '@types/react': ^17.0.43 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 preact: ^10.7.0 react: ^18.0.0 react-dom: ^18.0.0 @@ -109,13 +109,13 @@ importers: examples/env-vars: specifiers: - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 devDependencies: astro: link:../../packages/astro examples/framework-alpine: specifiers: - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 devDependencies: astro: link:../../packages/astro @@ -123,7 +123,7 @@ importers: specifiers: '@astrojs/lit': ^0.0.2 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 lit: ^2.2.1 dependencies: '@webcomponents/template-shadowroot': 0.1.0 @@ -141,7 +141,7 @@ importers: '@astrojs/svelte': ^0.0.2 '@astrojs/vue': ^0.0.2 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 lit: ^2.2.1 preact: ^10.7.0 react: ^18.0.0 @@ -170,7 +170,7 @@ importers: examples/framework-preact: specifiers: '@astrojs/preact': ^0.0.2 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 preact: ^10.7.0 dependencies: preact: 10.7.0 @@ -181,7 +181,7 @@ importers: examples/framework-react: specifiers: '@astrojs/react': ^0.1.0 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 react: ^18.0.0 react-dom: ^18.0.0 dependencies: @@ -194,7 +194,7 @@ importers: examples/framework-solid: specifiers: '@astrojs/solid-js': ^0.0.3 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 solid-js: ^1.3.13 dependencies: solid-js: 1.3.13 @@ -205,7 +205,7 @@ importers: examples/framework-svelte: specifiers: '@astrojs/svelte': ^0.0.2 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 svelte: ^3.46.6 dependencies: svelte: 3.46.6 @@ -216,7 +216,7 @@ importers: examples/framework-vue: specifiers: '@astrojs/vue': ^0.0.2 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 vue: ^3.2.31 dependencies: vue: 3.2.31 @@ -233,7 +233,7 @@ importers: '@astrojs/tailwind': ^0.1.0 '@astrojs/turbolinks': ^0.0.2 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 lit: ^2.2.1 preact: ^10.7.0 react: ^18.0.0 @@ -261,20 +261,20 @@ importers: examples/minimal: specifiers: - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 devDependencies: astro: link:../../packages/astro examples/non-html-pages: specifiers: - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 devDependencies: astro: link:../../packages/astro examples/portfolio: specifiers: '@astrojs/preact': ^0.0.2 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 preact: ^10.7.0 sass: ^1.49.11 dependencies: @@ -288,7 +288,7 @@ importers: specifiers: '@astrojs/node': ^0.0.2 '@astrojs/svelte': ^0.0.2 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 concurrently: ^7.1.0 lightcookie: ^1.0.25 svelte: ^3.46.6 @@ -307,14 +307,14 @@ importers: examples/starter: specifiers: - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 devDependencies: astro: link:../../packages/astro examples/subpath: specifiers: '@astrojs/react': ^0.1.0 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 react: ^18.0.0 react-dom: ^18.0.0 sass: ^1.49.11 @@ -333,7 +333,7 @@ importers: '@astrojs/react': ^0.1.0 '@astrojs/svelte': ^0.0.2 '@astrojs/vue': ^0.0.2 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 preact: ^10.7.0 react: ^18.0.0 react-dom: ^18.0.0 @@ -356,7 +356,7 @@ importers: examples/with-markdown-plugins: specifiers: '@astrojs/markdown-remark': ^0.8.1 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 hast-util-select: 5.0.1 rehype-autolink-headings: ^6.1.1 rehype-slug: ^5.0.1 @@ -374,7 +374,7 @@ importers: examples/with-markdown-shiki: specifiers: '@astrojs/markdown-remark': ^0.8.1 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 devDependencies: '@astrojs/markdown-remark': link:../../packages/markdown/remark astro: link:../../packages/astro @@ -389,7 +389,7 @@ importers: '@nanostores/preact': ^0.1.3 '@nanostores/react': ^0.1.5 '@nanostores/vue': ^0.4.1 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 nanostores: ^0.5.12 preact: ^10.7.0 react: ^18.0.0 @@ -417,7 +417,7 @@ importers: examples/with-tailwindcss: specifiers: '@astrojs/tailwind': ^0.1.0 - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 autoprefixer: ^10.4.4 canvas-confetti: ^1.5.1 postcss: ^8.4.12 @@ -432,7 +432,7 @@ importers: examples/with-vite-plugin-pwa: specifiers: - astro: ^1.0.0-beta.1 + astro: ^1.0.0-beta.2 vite-plugin-pwa: 0.11.11 workbox-window: ^6.5.2 devDependencies: