From ec418a5eabf7292be2ef99dbc6c2fed5b86ae221 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 18 Aug 2023 13:58:11 +0000 Subject: [PATCH] [ci] release (beta) --- .changeset/pre.json | 26 +++- examples/basics/package.json | 2 +- examples/blog/package.json | 4 +- examples/component/package.json | 2 +- examples/deno/package.json | 2 +- examples/framework-alpine/package.json | 2 +- examples/framework-lit/package.json | 2 +- examples/framework-multiple/package.json | 8 +- examples/framework-preact/package.json | 2 +- examples/framework-react/package.json | 4 +- examples/framework-solid/package.json | 4 +- examples/framework-svelte/package.json | 4 +- examples/framework-vue/package.json | 2 +- examples/hackernews/package.json | 2 +- examples/integration/package.json | 2 +- examples/middleware/package.json | 2 +- examples/minimal/package.json | 2 +- examples/non-html-pages/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/ssr/package.json | 4 +- examples/with-markdoc/package.json | 2 +- examples/with-markdown-plugins/package.json | 2 +- examples/with-markdown-shiki/package.json | 2 +- examples/with-mdx/package.json | 4 +- examples/with-nanostores/package.json | 2 +- examples/with-tailwindcss/package.json | 4 +- examples/with-vite-plugin-pwa/package.json | 2 +- examples/with-vitest/package.json | 2 +- packages/astro/CHANGELOG.md | 144 ++++++++++++++++++ packages/astro/package.json | 2 +- packages/astro/src/core/build/generate.ts | 2 +- .../astro/src/core/build/plugins/README.md | 3 +- .../astro/src/core/middleware/namespace.ts | 5 +- packages/astro/test/astro-directives.test.js | 2 +- packages/astro/test/page-level-styles.test.js | 4 +- .../astro/test/virtual-astro-file.test.js | 4 +- packages/create-astro/CHANGELOG.md | 8 + packages/create-astro/package.json | 2 +- packages/integrations/cloudflare/CHANGELOG.md | 32 ++++ packages/integrations/cloudflare/package.json | 4 +- packages/integrations/deno/package.json | 2 +- .../integrations/deno/test/basics.test.ts | 2 +- packages/integrations/markdoc/package.json | 2 +- packages/integrations/mdx/CHANGELOG.md | 13 ++ packages/integrations/mdx/package.json | 4 +- packages/integrations/netlify/README.md | 2 +- packages/integrations/netlify/package.json | 2 +- packages/integrations/node/package.json | 2 +- packages/integrations/react/CHANGELOG.md | 22 +++ packages/integrations/react/package.json | 2 +- packages/integrations/react/src/index.ts | 17 ++- packages/integrations/solid/CHANGELOG.md | 6 + packages/integrations/solid/package.json | 2 +- packages/integrations/svelte/CHANGELOG.md | 9 ++ packages/integrations/svelte/package.json | 4 +- packages/integrations/tailwind/package.json | 2 +- packages/integrations/vercel/CHANGELOG.md | 9 ++ packages/integrations/vercel/README.md | 4 +- packages/integrations/vercel/package.json | 4 +- packages/integrations/vue/package.json | 2 +- packages/telemetry/CHANGELOG.md | 6 + packages/telemetry/package.json | 2 +- pnpm-lock.yaml | 74 ++++----- 63 files changed, 389 insertions(+), 117 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index d0d69690db3a..188263a66c67 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -32,31 +32,51 @@ }, "changesets": [ "afraid-dots-whisper", + "big-elephants-drive", "big-tips-whisper", - "breezy-frogs-learn", + "brown-wolves-tan", "chilled-ducks-grin", + "clever-bats-breathe", "cool-feet-rest", + "cyan-carrots-stare", "dirty-lies-cover", + "eleven-wasps-teach", "fair-emus-divide", + "fair-eyes-promise", "famous-queens-itch", "four-houses-compete", "gentle-deers-yawn", "gentle-meals-crash", "giant-plants-sip", "heavy-walls-arrive", + "itchy-pants-grin", "large-countries-share", "loud-candles-admire", + "many-actors-flash", + "many-pears-explode", "mighty-dancers-lay", + "nasty-garlics-listen", + "neat-mugs-end", + "neat-owls-run", "neat-suns-search", "odd-books-live", + "orange-foxes-care", "perfect-horses-tell", "plenty-keys-add", + "popular-planes-cover", "purple-buses-prove", + "quick-boats-bow", "rude-ears-play", + "silent-baboons-juggle", "six-grapes-look", "slimy-carrots-sell", + "smart-numbers-shout", + "sour-frogs-shout", "spicy-eels-rush", + "strong-papayas-chew", "tame-files-glow", + "tasty-camels-speak", + "thin-ants-repeat", "three-adults-exist", "three-onions-repeat", "tricky-candles-suffer", @@ -66,8 +86,10 @@ "unlucky-ravens-type", "unlucky-sheep-build", "violet-peaches-invent", + "warm-weeks-yell", "wild-bobcats-carry", - "wild-jobs-tan", + "wise-cameras-agree", + "yellow-snakes-jam", "young-roses-teach" ] } diff --git a/examples/basics/package.json b/examples/basics/package.json index dd81a20af5a1..35b95de2be11 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^3.0.0-beta.2" + "astro": "^3.0.0-beta.3" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 5e633254c23b..a77c2b59fe3e 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^1.0.0-beta.0", + "@astrojs/mdx": "^1.0.0-beta.1", "@astrojs/rss": "^3.0.0-beta.0", "@astrojs/sitemap": "^3.0.0-beta.0", - "astro": "^3.0.0-beta.2" + "astro": "^3.0.0-beta.3" } } diff --git a/examples/component/package.json b/examples/component/package.json index f2b226262b12..934946d71b8b 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^3.0.0-beta.2" + "astro": "^3.0.0-beta.3" }, "peerDependencies": { "astro": "^2.0.0-beta.0" diff --git a/examples/deno/package.json b/examples/deno/package.json index 7fe421d50f21..02cee8125477 100644 --- a/examples/deno/package.json +++ b/examples/deno/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^3.0.0-beta.2" + "astro": "^3.0.0-beta.3" }, "devDependencies": { "@astrojs/deno": "^5.0.0-beta.0" diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 2c1bd53f8808..ce7c0bd26bf6 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -14,6 +14,6 @@ "@astrojs/alpinejs": "^0.3.0-beta.0", "@types/alpinejs": "^3.7.1", "alpinejs": "^3.12.2", - "astro": "^3.0.0-beta.2" + "astro": "^3.0.0-beta.3" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index f8091eb7498e..ba2db74492dd 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/lit": "^3.0.0-beta.0", "@webcomponents/template-shadowroot": "^0.2.1", - "astro": "^3.0.0-beta.2", + "astro": "^3.0.0-beta.3", "lit": "^2.7.5" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 9af1d6cad795..d674c331ac78 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -12,11 +12,11 @@ }, "dependencies": { "@astrojs/preact": "^3.0.0-beta.1", - "@astrojs/react": "^3.0.0-beta.2", - "@astrojs/solid-js": "^3.0.0-beta.1", - "@astrojs/svelte": "^4.0.0-beta.0", + "@astrojs/react": "^3.0.0-beta.3", + "@astrojs/solid-js": "^3.0.0-beta.2", + "@astrojs/svelte": "^4.0.0-beta.1", "@astrojs/vue": "^3.0.0-beta.0", - "astro": "^3.0.0-beta.2", + "astro": "^3.0.0-beta.3", "preact": "^10.15.1", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 1c38428c3bf3..09ea435d98ac 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^3.0.0-beta.1", "@preact/signals": "^1.1.3", - "astro": "^3.0.0-beta.2", + "astro": "^3.0.0-beta.3", "preact": "^10.15.1" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 3b4bd62e0875..b9aa7513cdc0 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -11,10 +11,10 @@ "astro": "astro" }, "dependencies": { - "@astrojs/react": "^3.0.0-beta.2", + "@astrojs/react": "^3.0.0-beta.3", "@types/react": "^18.2.13", "@types/react-dom": "^18.2.6", - "astro": "^3.0.0-beta.2", + "astro": "^3.0.0-beta.3", "react": "^18.2.0", "react-dom": "^18.2.0" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index ea4973fe6e0d..29118fb3a5a2 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -11,8 +11,8 @@ "astro": "astro" }, "dependencies": { - "@astrojs/solid-js": "^3.0.0-beta.1", - "astro": "^3.0.0-beta.2", + "@astrojs/solid-js": "^3.0.0-beta.2", + "astro": "^3.0.0-beta.3", "solid-js": "^1.7.6" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 4eb4b38e6717..00402f12b3c2 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -11,8 +11,8 @@ "astro": "astro" }, "dependencies": { - "@astrojs/svelte": "^4.0.0-beta.0", - "astro": "^3.0.0-beta.2", + "@astrojs/svelte": "^4.0.0-beta.1", + "astro": "^3.0.0-beta.3", "svelte": "^3.59.1" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 2e9d5efcc141..4aebcd072a7d 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/vue": "^3.0.0-beta.0", - "astro": "^3.0.0-beta.2", + "astro": "^3.0.0-beta.3", "vue": "^3.3.4" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 259aa9a4eb49..2583246239b0 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/node": "^6.0.0-beta.0", - "astro": "^3.0.0-beta.2" + "astro": "^3.0.0-beta.3" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index 864349b97359..4adbfd963a03 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^3.0.0-beta.2" + "astro": "^3.0.0-beta.3" }, "peerDependencies": { "astro": "^2.0.0-beta.0" diff --git a/examples/middleware/package.json b/examples/middleware/package.json index 296c4d5718d2..b53a8e3896ce 100644 --- a/examples/middleware/package.json +++ b/examples/middleware/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "@astrojs/node": "^6.0.0-beta.0", - "astro": "^3.0.0-beta.2", + "astro": "^3.0.0-beta.3", "html-minifier": "^4.0.0" } } diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 1285772132ca..863197c5e317 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^3.0.0-beta.2" + "astro": "^3.0.0-beta.3" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index aeb517c4ccc3..bb901a663c5b 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^3.0.0-beta.2" + "astro": "^3.0.0-beta.3" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index e6e2407098e3..fb4cc7ed740c 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^3.0.0-beta.2" + "astro": "^3.0.0-beta.3" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 29122e2bb687..aee41491fc62 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -13,8 +13,8 @@ }, "dependencies": { "@astrojs/node": "^6.0.0-beta.0", - "@astrojs/svelte": "^4.0.0-beta.0", - "astro": "^3.0.0-beta.2", + "@astrojs/svelte": "^4.0.0-beta.1", + "astro": "^3.0.0-beta.3", "svelte": "^3.59.1" } } diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index cf7fb6a0c331..eeec48e8de73 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/markdoc": "^1.0.0-beta.1", - "astro": "^3.0.0-beta.2" + "astro": "^3.0.0-beta.3" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 94d55fbe9855..870e9e38004d 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/markdown-remark": "^3.0.0-beta.0", - "astro": "^3.0.0-beta.2", + "astro": "^3.0.0-beta.3", "hast-util-select": "^5.0.5", "rehype-autolink-headings": "^6.1.1", "rehype-slug": "^5.1.0", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index 4a0ee2570539..b5e998042551 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^3.0.0-beta.2" + "astro": "^3.0.0-beta.3" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index efd525b5aea7..fc4124b1fd7b 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^1.0.0-beta.0", + "@astrojs/mdx": "^1.0.0-beta.1", "@astrojs/preact": "^3.0.0-beta.1", - "astro": "^3.0.0-beta.2", + "astro": "^3.0.0-beta.3", "preact": "^10.15.1" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 61c3e84b86f5..7d288ce7e593 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^3.0.0-beta.1", "@nanostores/preact": "^0.4.1", - "astro": "^3.0.0-beta.2", + "astro": "^3.0.0-beta.3", "nanostores": "^0.8.1", "preact": "^10.15.1" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 64a7ce5b79fc..8adcef5f4ea6 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -11,10 +11,10 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^1.0.0-beta.0", + "@astrojs/mdx": "^1.0.0-beta.1", "@astrojs/tailwind": "^5.0.0-beta.0", "@types/canvas-confetti": "^1.6.0", - "astro": "^3.0.0-beta.2", + "astro": "^3.0.0-beta.3", "autoprefixer": "^10.4.14", "canvas-confetti": "^1.6.0", "postcss": "^8.4.24", diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index 4aa11cf87165..7ca06ccf39ed 100644 --- a/examples/with-vite-plugin-pwa/package.json +++ b/examples/with-vite-plugin-pwa/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^3.0.0-beta.2", + "astro": "^3.0.0-beta.3", "vite-plugin-pwa": "0.14.7", "workbox-window": "^6.6.0" } diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index f97aaa86c2b1..4780634811a1 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^3.0.0-beta.2", + "astro": "^3.0.0-beta.3", "vitest": "^0.31.4" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index e026a0eeda16..c0127c359b62 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,149 @@ # astro +## 3.0.0-beta.3 + +### Major Changes + +- [#8113](https://github.com/withastro/astro/pull/8113) [`2484dc408`](https://github.com/withastro/astro/commit/2484dc4080e5cd84b9a53648a1de426d7c907be2) Thanks [@Princesseuh](https://github.com/Princesseuh)! - This import alias is no longer included by default with astro:assets. If you were using this alias with experimental assets, you must convert them to relative file paths, or create your own [import aliases](https://docs.astro.build/en/guides/aliases/). + + ```diff + --- + // src/pages/posts/post-1.astro + - import rocket from '~/assets/rocket.png' + + import rocket from '../../assets/rocket.png'; + --- + ``` + +- [#7979](https://github.com/withastro/astro/pull/7979) [`dbc97b121`](https://github.com/withastro/astro/commit/dbc97b121f42583728f1cdfdbf14575fda943f5b) Thanks [@bluwy](https://github.com/bluwy)! - Export experimental `dev`, `build`, `preview`, and `sync` APIs from `astro`. These APIs allow you to run Astro's commands programmatically, and replaces the previous entry point that runs the Astro CLI. + + While these APIs are experimental, the inline config parameter is relatively stable without foreseeable changes. However, the returned results of these APIs are more likely to change in the future. + + ```ts + import { dev, build, preview, sync, type AstroInlineConfig } from 'astro'; + + // Inline Astro config object. + // Provide a path to a configuration file to load or set options directly inline. + const inlineConfig: AstroInlineConfig = { + // Inline-specific options... + configFile: './astro.config.mjs', + logLevel: 'info', + // Standard Astro config options... + site: 'https://example.com', + }; + + // Start the Astro dev server + const devServer = await dev(inlineConfig); + await devServer.stop(); + + // Build your Astro project + await build(inlineConfig); + + // Preview your built project + const previewServer = await preview(inlineConfig); + await previewServer.stop(); + + // Generate types for your Astro project + await sync(inlineConfig); + ``` + +- [#8085](https://github.com/withastro/astro/pull/8085) [`68efd4a8b`](https://github.com/withastro/astro/commit/68efd4a8b29f248397667801465b3152dc98e9a7) Thanks [@bluwy](https://github.com/bluwy)! - Remove exports for `astro/internal/*` and `astro/runtime/server/*` in favour of `astro/runtime/*`. Add new `astro/compiler-runtime` export for compiler-specific runtime code. + + These are exports for Astro's internal API and should not affect your project, but if you do use these entrypoints, you can migrate like below: + + ```diff + - import 'astro/internal/index.js'; + + import 'astro/runtime/server/index.js'; + + - import 'astro/server/index.js'; + + import 'astro/runtime/server/index.js'; + ``` + + ```diff + import { transform } from '@astrojs/compiler'; + + const result = await transform(source, { + - internalURL: 'astro/runtime/server/index.js', + + internalURL: 'astro/compiler-runtime', + // ... + }); + ``` + +- [#8030](https://github.com/withastro/astro/pull/8030) [`5208a3c8f`](https://github.com/withastro/astro/commit/5208a3c8fefcec7694857fb344af351f4631fc34) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Removed duplicate `astro/dist/jsx` export. Please use the `astro/jsx` export instead + +- [#8118](https://github.com/withastro/astro/pull/8118) [`8a5b0c1f3`](https://github.com/withastro/astro/commit/8a5b0c1f3a4be6bb62db66ec70144109ff5b4c59) Thanks [@lilnasy](https://github.com/lilnasy)! - Astro is smarter about CSS! Small stylesheets are now inlined by default, and no longer incur the cost of additional requests to your server. Your visitors will have to wait less before they see your pages, especially those in remote locations or in a subway. + + This may not be news to you if you had opted-in via the `build.inlineStylesheets` configuration. Stabilized in Astro 2.6 and set to "auto" by default for Starlight, this configuration allows you to reduce the number of requests for stylesheets by inlining them into