From e032e89a642eeef61a3559e4eb406addcaedb5d1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 10 Mar 2022 17:31:45 -0600 Subject: [PATCH] [ci] release (next) (#2754) Co-authored-by: github-actions[bot] --- .changeset/pre.json | 6 +- examples/blog-multiple-authors/package.json | 2 +- examples/blog/package.json | 2 +- examples/component/demo/package.json | 2 +- examples/component/package.json | 2 +- examples/docs/package.json | 2 +- examples/env-vars/package.json | 2 +- examples/framework-alpine/package.json | 2 +- examples/framework-lit/package.json | 2 +- examples/framework-multiple/package.json | 2 +- examples/framework-preact/package.json | 2 +- examples/framework-react/package.json | 2 +- examples/framework-solid/package.json | 2 +- examples/framework-svelte/package.json | 2 +- examples/framework-vue/package.json | 2 +- examples/minimal/package.json | 2 +- examples/non-html-pages/package.json | 2 +- examples/portfolio-svelte/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/ssr/package.json | 2 +- examples/starter/package.json | 2 +- examples/subpath/package.json | 2 +- examples/with-markdown-plugins/package.json | 2 +- examples/with-markdown-shiki/package.json | 2 +- examples/with-markdown/package.json | 2 +- examples/with-nanostores/package.json | 2 +- examples/with-tailwindcss/package.json | 2 +- examples/with-vite-plugin-pwa/package.json | 2 +- packages/astro/CHANGELOG.md | 73 ++++++++++++++------- packages/astro/package.json | 2 +- 30 files changed, 82 insertions(+), 53 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index b653a39ad..6e59b94f4 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -50,15 +50,19 @@ }, "changesets": [ "clean-bottles-drive", + "cool-ravens-occur", "five-stingrays-collect", "fresh-ladybugs-think", "giant-cycles-search", + "khaki-humans-sort", "modern-elephants-burn", "neat-snakes-know", "new-pianos-boil", "silver-foxes-bathe", "sour-socks-enjoy", + "stupid-pots-give", "thick-ravens-chew", - "yellow-trees-clean" + "yellow-trees-clean", + "young-rules-draw" ] } diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index ca4ff4478..c029e995b 100644 --- a/examples/blog-multiple-authors/package.json +++ b/examples/blog-multiple-authors/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/renderer-preact": "^0.5.0", - "astro": "^0.24.0-next.1", + "astro": "^0.24.0-next.2", "sass": "^1.49.8" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index fd9847ea9..dd37a0d27 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.0-next.1", + "astro": "^0.24.0-next.2", "@astrojs/renderer-preact": "^0.5.0" } } diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index 673cf369f..53c3cb994 100644 --- a/examples/component/demo/package.json +++ b/examples/component/demo/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@example/my-component": "workspace:*", - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/component/package.json b/examples/component/package.json index 8ed35be8c..70f86c2f4 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -8,6 +8,6 @@ "serve": "astro --project-root demo preview" }, "devDependencies": { - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/docs/package.json b/examples/docs/package.json index ee55a0cbe..64daa7d3f 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -19,6 +19,6 @@ "devDependencies": { "@astrojs/renderer-react": "^0.5.0", "@astrojs/renderer-preact": "^0.5.0", - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json index 89988ba46..7e2925a39 100644 --- a/examples/env-vars/package.json +++ b/examples/env-vars/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 01628b51c..01554b2e8 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 6ada91335..01c98ecd9 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-lit": "^0.4.0", - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 8a1f4c53e..1ef650bf7 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -15,6 +15,6 @@ "@astrojs/renderer-solid": "^0.4.0", "@astrojs/renderer-svelte": "^0.5.1", "@astrojs/renderer-vue": "^0.4.0", - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 134c344e6..64ddd2faf 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-preact": "^0.5.0", - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index b3001830e..2d50a527e 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-react": "^0.5.0", - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index c5eb3458c..d43fa9027 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-solid": "^0.4.0", - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 69486db33..805d09a16 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-svelte": "^0.5.1", - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 7d31bec68..98e7bcee9 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-vue": "^0.4.0", - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 06b0a60a6..e379798dd 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 2da0eef1b..5dd0f64ba 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/portfolio-svelte/package.json b/examples/portfolio-svelte/package.json index 817e71c0c..d0d13b3ef 100644 --- a/examples/portfolio-svelte/package.json +++ b/examples/portfolio-svelte/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/renderer-svelte": "^0.5.1", - "astro": "^0.24.0-next.1", + "astro": "^0.24.0-next.2", "sass": "^1.49.9" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 873694c01..4a991a49f 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/renderer-preact": "^0.5.0", - "astro": "^0.24.0-next.1", + "astro": "^0.24.0-next.2", "sass": "^1.49.9" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index c76373822..2e4e408fd 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@astrojs/renderer-svelte": "^0.5.1", - "astro": "^0.24.0-next.1", + "astro": "^0.24.0-next.2", "unocss": "^0.15.5", "vite-imagetools": "^4.0.1" } diff --git a/examples/starter/package.json b/examples/starter/package.json index 58ce59d11..40e2023d6 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/subpath/package.json b/examples/subpath/package.json index 36d0c3eca..3b95dba4e 100644 --- a/examples/subpath/package.json +++ b/examples/subpath/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/renderer-react": "^0.5.0", - "astro": "^0.24.0-next.1", + "astro": "^0.24.0-next.2", "sass": "^1.49.9" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 160214805..124f39cb0 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/markdown-remark": "^0.6.1", - "astro": "^0.24.0-next.1", + "astro": "^0.24.0-next.2", "hast-util-select": "5.0.1", "rehype-autolink-headings": "^6.1.0", "rehype-slug": "^5.0.0", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index d119be591..b49037fb4 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/markdown-remark": "^0.6.1", - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json index 565ebdb5c..63808082c 100644 --- a/examples/with-markdown/package.json +++ b/examples/with-markdown/package.json @@ -14,6 +14,6 @@ "@astrojs/renderer-svelte": "^0.5.1", "@astrojs/renderer-vue": "^0.4.0", "@astrojs/markdown-remark": "^0.6.1", - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 8e1496b7f..7df9665e3 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -25,6 +25,6 @@ "@astrojs/renderer-preact": "^0.5.0", "@astrojs/renderer-solid": "^0.4.0", "@astrojs/renderer-svelte": "^0.5.1", - "astro": "^0.24.0-next.1" + "astro": "^0.24.0-next.2" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index bdfb15e1b..172927848 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -11,7 +11,7 @@ "devDependencies": { "@astrojs/renderer-preact": "^0.5.0", "postcss": "^8.3.8", - "astro": "^0.24.0-next.1", + "astro": "^0.24.0-next.2", "autoprefixer": "^10.4.0", "tailwindcss": "^3.0.5" } diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index d54604088..0570bb1a9 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": "^0.24.0-next.1", + "astro": "^0.24.0-next.2", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.0" } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 76c6d11b2..09f9aba8f 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,30 @@ # astro +## 0.24.0-next.2 + +### Patch Changes + +- [#2755](https://github.com/withastro/astro/pull/2755) [`10843aba`](https://github.com/withastro/astro/commit/10843aba634c9cae663d8181b9d90d3213cb9142) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Add user-configurable `sitemapFilter` option. + + This option can be used to ensure certain pages are excluded from your final sitemap. + + ```ts + // astro.config.ts + import type { AstroUserConfig } from 'astro' + + const config: AstroUserConfig = { + sitemap: true, + sitemapFilter: (page: string) => !page.includes('secret-page') + } + export default config + ``` + +* [#2750](https://github.com/withastro/astro/pull/2750) [`79fc3204`](https://github.com/withastro/astro/commit/79fc320480b2a638ef707079a624519bd54f1550) Thanks [@FredKSchott](https://github.com/FredKSchott)! - update esbuild@0.14.25 + +- [#2758](https://github.com/withastro/astro/pull/2758) [`499fb6a3`](https://github.com/withastro/astro/commit/499fb6a3356967123a7cb9b28f94d9a3bf1dff91) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Add CLI warnings when running a prerelease or outdated version of Astro + +* [#2743](https://github.com/withastro/astro/pull/2743) [`a14075e2`](https://github.com/withastro/astro/commit/a14075e2a4d8897e24e2928318e653b63637ebe3) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fix - show 404 for bad static paths with console message, rather than a 500 + ## 0.24.0-next.1 ### Minor Changes @@ -18,7 +43,7 @@ ```ts if (Astro.slots.has('default')) { - const content = await Astro.slots.render('default'); + const content = await Astro.slots.render('default'); } ``` @@ -42,9 +67,9 @@ ```json { - "scripts": { - "build": "astro build --legacy-build" - } + "scripts": { + "build": "astro build --legacy-build" + } } ``` @@ -156,12 +181,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/', + }), + }; } ``` @@ -323,12 +348,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/', + }), + }; } ``` @@ -1683,10 +1708,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' }]], + }, }; ``` @@ -1706,10 +1731,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 a77cf6fb4..2a43da389 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "0.24.0-next.1", + "version": "0.24.0-next.2", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro",