diff --git a/.changeset/pre.json b/.changeset/pre.json index eddb1919e..703122ad1 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -61,9 +61,11 @@ }, "changesets": [ "angry-suits-thank", + "big-yaks-invite", "shiny-rice-worry", "sour-laws-raise", "stale-walls-whisper", - "thin-cameras-clean" + "thin-cameras-clean", + "three-donkeys-train" ] } diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index d70afdc80..119394390 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.2", + "astro": "^1.0.0-beta.3", "sass": "^1.49.11" }, "dependencies": { diff --git a/examples/blog/package.json b/examples/blog/package.json index 9a0fa7fe4..60e19be84 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.2" + "astro": "^1.0.0-beta.3" }, "dependencies": { "preact": "^10.7.0" diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index 44108b8d4..d5b085b1a 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.2" + "astro": "^1.0.0-beta.3" } } diff --git a/examples/component/package.json b/examples/component/package.json index def8a7499..fa7b08c1c 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.2" + "astro": "^1.0.0-beta.3" } } diff --git a/examples/docs/package.json b/examples/docs/package.json index a51594e3a..e301fa9ed 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.2" + "astro": "^1.0.0-beta.3" } } diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json index 28097a6f6..f54e7e5e6 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.2" + "astro": "^1.0.0-beta.3" } } diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index c5d6a8fe3..6a5129cb4 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.2" + "astro": "^1.0.0-beta.3" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index c4bde6b6e..705a023ee 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.2" + "astro": "^1.0.0-beta.3" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 30362a070..603b44608 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.2" + "astro": "^1.0.0-beta.3" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index fba428e7e..1564cdd36 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.2" + "astro": "^1.0.0-beta.3" }, "dependencies": { "preact": "^10.7.0" diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index a5579cb79..406e1fcc5 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.2" + "astro": "^1.0.0-beta.3" }, "dependencies": { "react": "^18.0.0", diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index b36e32d08..122702523 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.2" + "astro": "^1.0.0-beta.3" }, "dependencies": { "solid-js": "^1.3.13" diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 143730181..92c08651c 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.2" + "astro": "^1.0.0-beta.3" }, "dependencies": { "svelte": "^3.46.6" diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 4fa92d720..a7f2c75cb 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.2" + "astro": "^1.0.0-beta.3" }, "dependencies": { "vue": "^3.2.31" diff --git a/examples/integrations-playground/package.json b/examples/integrations-playground/package.json index b3340c51a..70f32c49f 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.2" + "astro": "^1.0.0-beta.3" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 1a02ccb3f..e51ac52db 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.2" + "astro": "^1.0.0-beta.3" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 4225a4f8d..c94036774 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.2" + "astro": "^1.0.0-beta.3" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index ea0f2a809..6264efa4e 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.2", + "astro": "^1.0.0-beta.3", "sass": "^1.49.11" }, "dependencies": { diff --git a/examples/ssr/package.json b/examples/ssr/package.json index ef8f47758..901bf0407 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.2", + "astro": "^1.0.0-beta.3", "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 583a49693..dc4c32faa 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.2" + "astro": "^1.0.0-beta.3" } } diff --git a/examples/subpath/package.json b/examples/subpath/package.json index a92fd12dd..452b197c1 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.2", + "astro": "^1.0.0-beta.3", "sass": "^1.49.11" }, "dependencies": { diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index aaaef57cb..41ce4b4f8 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.2", + "astro": "^1.0.0-beta.3", "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 fe090f667..adef0b1f5 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.2" + "astro": "^1.0.0-beta.3" } } diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json index 250abcead..fa697558d 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.2" + "astro": "^1.0.0-beta.3" }, "dependencies": { "preact": "^10.7.0", diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index bf7d47f6b..70314dec2 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.2" + "astro": "^1.0.0-beta.3" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index ffefc33fe..b86988a82 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.2", + "astro": "^1.0.0-beta.3", "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 147f4e308..95ee1d004 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.2", + "astro": "^1.0.0-beta.3", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.2" } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 0c916c495..0f73a0bbc 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,13 @@ # astro +## 1.0.0-beta.3 + +### Patch Changes + +- [#3004](https://github.com/withastro/astro/pull/3004) [`9724d844`](https://github.com/withastro/astro/commit/9724d844b32fb30c91ec3d060421bbb0cc36428a) Thanks [@tony-sull](https://github.com/tony-sull)! - Fix bug causing `astro preview` server to close immediately + +* [#3006](https://github.com/withastro/astro/pull/3006) [`68e1e2dd`](https://github.com/withastro/astro/commit/68e1e2dd31db2bdf073c30e3ff48b7f54dd61d8d) Thanks [@matthewp](https://github.com/matthewp)! - Fixes dynamic API routes in SSR + ## 1.0.0-beta.2 ### Patch Changes @@ -130,7 +138,7 @@ import netlify from '@astrojs/netlify/functions'; export default defineConfig({ - adapter: netlify(), + adapter: netlify(), }); ``` @@ -150,7 +158,7 @@ import nodejs from '@astrojs/node'; export default { - adapter: nodejs(), + adapter: nodejs(), }; ``` @@ -210,7 +218,7 @@ import nodejs from '@astrojs/node'; export default { - adapter: nodejs(), + adapter: nodejs(), }; ``` @@ -306,7 +314,7 @@ import { defineConfig } from 'astro/config'; export default defineConfig({ - renderers: [], + renderers: [], }); ``` @@ -344,9 +352,9 @@ ```json { - "scripts": { - "build": "astro build --legacy-build" - } + "scripts": { + "build": "astro build --legacy-build" + } } ``` @@ -366,7 +374,7 @@ ```ts if (Astro.slots.has('default')) { - const content = await Astro.slots.render('default'); + const content = await Astro.slots.render('default'); } ``` @@ -450,7 +458,7 @@ ```ts if (Astro.slots.has('default')) { - const content = await Astro.slots.render('default'); + const content = await Astro.slots.render('default'); } ``` @@ -474,9 +482,9 @@ ```json { - "scripts": { - "build": "astro build --legacy-build" - } + "scripts": { + "build": "astro build --legacy-build" + } } ``` @@ -588,12 +596,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/', + }), + }; } ``` @@ -755,12 +763,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/', + }), + }; } ``` @@ -2115,10 +2123,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' }]], + }, }; ``` @@ -2138,10 +2146,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 96c94e615..a9ab84a95 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "1.0.0-beta.2", + "version": "1.0.0-beta.3", "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 c3b75e31f..c78343cc2 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 preact: ^10.7.0 sass: ^1.49.11 dependencies: @@ -67,14 +67,14 @@ importers: examples/component: specifiers: - astro: ^1.0.0-beta.2 + astro: ^1.0.0-beta.3 devDependencies: astro: link:../../packages/astro examples/component/demo: specifiers: '@example/my-component': workspace:* - astro: ^1.0.0-beta.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 devDependencies: astro: link:../../packages/astro examples/framework-alpine: specifiers: - astro: ^1.0.0-beta.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 devDependencies: astro: link:../../packages/astro examples/non-html-pages: specifiers: - astro: ^1.0.0-beta.2 + astro: ^1.0.0-beta.3 devDependencies: astro: link:../../packages/astro examples/portfolio: specifiers: '@astrojs/preact': ^0.0.2 - astro: ^1.0.0-beta.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 devDependencies: astro: link:../../packages/astro examples/subpath: specifiers: '@astrojs/react': ^0.1.0 - astro: ^1.0.0-beta.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 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.2 + astro: ^1.0.0-beta.3 vite-plugin-pwa: 0.11.11 workbox-window: ^6.5.2 devDependencies: