From 01cda9d4efe956f4ac80356f5082e820279a650b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 22 Aug 2022 19:16:28 +0000 Subject: [PATCH] [ci] release --- .changeset/big-cougars-jam.md | 5 -- .changeset/few-mayflies-invent.md | 5 -- .changeset/giant-ants-smoke.md | 5 -- .changeset/heavy-pants-change.md | 5 -- .changeset/itchy-crews-care.md | 5 -- .changeset/purple-guests-fetch.md | 5 -- .changeset/rare-comics-roll.md | 5 -- .changeset/silver-dragons-run.md | 5 -- .changeset/six-jars-push.md | 5 -- .changeset/smooth-nails-remain.md | 5 -- examples/basics/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 | 4 +- 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/package.json | 2 +- examples/ssr/package.json | 2 +- examples/subpath/package.json | 2 +- examples/with-markdown-plugins/package.json | 2 +- examples/with-markdown-shiki/package.json | 2 +- examples/with-mdx/package.json | 2 +- examples/with-nanostores/package.json | 2 +- examples/with-tailwindcss/package.json | 2 +- examples/with-vite-plugin-pwa/package.json | 2 +- examples/with-vitest/package.json | 2 +- packages/astro/CHANGELOG.md | 18 +++++ packages/astro/package.json | 2 +- packages/integrations/alpinejs/CHANGELOG.md | 7 ++ packages/integrations/alpinejs/package.json | 2 +- packages/integrations/image/CHANGELOG.md | 6 ++ packages/integrations/image/package.json | 2 +- packages/integrations/image/src/build/ssg.ts | 30 ++++++-- packages/integrations/image/src/index.ts | 8 ++- .../integrations/image/src/utils/logger.ts | 6 +- packages/integrations/vercel/CHANGELOG.md | 8 ++- packages/integrations/vercel/package.json | 2 +- pnpm-lock.yaml | 69 +++++++++---------- 48 files changed, 136 insertions(+), 128 deletions(-) delete mode 100644 .changeset/big-cougars-jam.md delete mode 100644 .changeset/few-mayflies-invent.md delete mode 100644 .changeset/giant-ants-smoke.md delete mode 100644 .changeset/heavy-pants-change.md delete mode 100644 .changeset/itchy-crews-care.md delete mode 100644 .changeset/purple-guests-fetch.md delete mode 100644 .changeset/rare-comics-roll.md delete mode 100644 .changeset/silver-dragons-run.md delete mode 100644 .changeset/six-jars-push.md delete mode 100644 .changeset/smooth-nails-remain.md create mode 100644 packages/integrations/alpinejs/CHANGELOG.md diff --git a/.changeset/big-cougars-jam.md b/.changeset/big-cougars-jam.md deleted file mode 100644 index 3e0c708e59fc4..0000000000000 --- a/.changeset/big-cougars-jam.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Bump Vite to 3.0.9 diff --git a/.changeset/few-mayflies-invent.md b/.changeset/few-mayflies-invent.md deleted file mode 100644 index 4df57c2dc32ef..0000000000000 --- a/.changeset/few-mayflies-invent.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Allow user config to set `markdown.drafts` option diff --git a/.changeset/giant-ants-smoke.md b/.changeset/giant-ants-smoke.md deleted file mode 100644 index 3b8054ab315b6..0000000000000 --- a/.changeset/giant-ants-smoke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Refactor static build config merge diff --git a/.changeset/heavy-pants-change.md b/.changeset/heavy-pants-change.md deleted file mode 100644 index 32c7b30efe1af..0000000000000 --- a/.changeset/heavy-pants-change.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/vercel': patch ---- - -Fix react-dom on Vercel edge diff --git a/.changeset/itchy-crews-care.md b/.changeset/itchy-crews-care.md deleted file mode 100644 index 01b4621dcba8b..0000000000000 --- a/.changeset/itchy-crews-care.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/image': patch ---- - -The integration now includes a logger to better track progress in SSG builds. Use the new `logLevel: "debug"` integration option to see detailed logs of every image transformation built in your project. diff --git a/.changeset/purple-guests-fetch.md b/.changeset/purple-guests-fetch.md deleted file mode 100644 index 590dff82a1be9..0000000000000 --- a/.changeset/purple-guests-fetch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/alpinejs': minor ---- - -Add new official Alpine.js integration diff --git a/.changeset/rare-comics-roll.md b/.changeset/rare-comics-roll.md deleted file mode 100644 index 0f7e7b8b03aa6..0000000000000 --- a/.changeset/rare-comics-roll.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Preserve all error stack lines diff --git a/.changeset/silver-dragons-run.md b/.changeset/silver-dragons-run.md deleted file mode 100644 index a18538e9b32b5..0000000000000 --- a/.changeset/silver-dragons-run.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Refactor JSX build plugin, improve performance diff --git a/.changeset/six-jars-push.md b/.changeset/six-jars-push.md deleted file mode 100644 index 3f353faf2c6c1..0000000000000 --- a/.changeset/six-jars-push.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Provide correct MIME type for dynamic endpoint routes in dev diff --git a/.changeset/smooth-nails-remain.md b/.changeset/smooth-nails-remain.md deleted file mode 100644 index 185e12f7eea0d..0000000000000 --- a/.changeset/smooth-nails-remain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes race condition between directives being defined diff --git a/examples/basics/package.json b/examples/basics/package.json index a5dd4f4866a32..9e0849cf88d74 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "devDependencies": { - "astro": "^1.0.6" + "astro": "^1.0.7" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 32afc2ce12217..951470ff807ed 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -13,6 +13,6 @@ "@astrojs/mdx": "^0.10.0", "@astrojs/rss": "^1.0.0", "@astrojs/sitemap": "^1.0.0", - "astro": "^1.0.6" + "astro": "^1.0.7" } } diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index b09f4b28f4ecd..53f20e8df8b53 100644 --- a/examples/component/demo/package.json +++ b/examples/component/demo/package.json @@ -11,6 +11,6 @@ }, "devDependencies": { "@example/my-component": "workspace:*", - "astro": "^1.0.6" + "astro": "^1.0.7" } } diff --git a/examples/component/package.json b/examples/component/package.json index 15a8185c7a049..5b95bf2a37c96 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -8,6 +8,6 @@ "serve": "astro --root demo preview" }, "devDependencies": { - "astro": "^1.0.6" + "astro": "^1.0.7" } } diff --git a/examples/docs/package.json b/examples/docs/package.json index d5ec51c2d0ee7..a1fffb14a8bb7 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -21,6 +21,6 @@ "devDependencies": { "@astrojs/preact": "^1.0.2", "@astrojs/react": "^1.0.0", - "astro": "^1.0.6" + "astro": "^1.0.7" } } diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json index 13243f258d03b..b957da714fb69 100644 --- a/examples/env-vars/package.json +++ b/examples/env-vars/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "devDependencies": { - "astro": "^1.0.6" + "astro": "^1.0.7" } } diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 0841c8395e93b..38273d9c5e58f 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -10,10 +10,10 @@ "astro": "astro" }, "devDependencies": { - "@astrojs/alpinejs": "^0.0.1", + "@astrojs/alpinejs": "^0.1.0", "@types/alpinejs": "^3.7.0", "alpinejs": "^3.10.2", - "astro": "^1.0.6" + "astro": "^1.0.7" }, "dependencies": {} } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 82bdf8a370e20..48dd0936f41aa 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/lit": "^1.0.0", - "astro": "^1.0.6" + "astro": "^1.0.7" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 4609c415d821e..b78b4e42e4faa 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -15,7 +15,7 @@ "@astrojs/solid-js": "^1.0.0", "@astrojs/svelte": "^1.0.0", "@astrojs/vue": "^1.0.0", - "astro": "^1.0.6" + "astro": "^1.0.7" }, "dependencies": { "preact": "^10.7.3", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 0aac5421c2453..01dd0b08cd47b 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/preact": "^1.0.2", - "astro": "^1.0.6" + "astro": "^1.0.7" }, "dependencies": { "preact": "^10.7.3" diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 3a4d1611bfe56..a371919aab799 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -13,7 +13,7 @@ "@astrojs/react": "^1.0.0", "@types/react": "^18.0.10", "@types/react-dom": "^18.0.5", - "astro": "^1.0.6" + "astro": "^1.0.7" }, "dependencies": { "react": "^18.1.0", diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 1c6cf5b9d8773..778ed95297132 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/solid-js": "^1.0.0", - "astro": "^1.0.6" + "astro": "^1.0.7" }, "dependencies": { "solid-js": "^1.4.3" diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index d36c44cffdb43..8562dc3187a1c 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/svelte": "^1.0.0", - "astro": "^1.0.6" + "astro": "^1.0.7" }, "dependencies": { "svelte": "^3.48.0" diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index b2babf211cb69..c998fb588849e 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/vue": "^1.0.0", - "astro": "^1.0.6" + "astro": "^1.0.7" }, "dependencies": { "vue": "^3.2.37" diff --git a/examples/minimal/package.json b/examples/minimal/package.json index bd7db722fd9d7..81b3c6822b755 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "devDependencies": { - "astro": "^1.0.6" + "astro": "^1.0.7" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 6776c408e7091..aaed3ebd24b06 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "devDependencies": { - "astro": "^1.0.6" + "astro": "^1.0.7" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 01679dd6ccbf7..d25c8f07868fc 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/preact": "^1.0.2", - "astro": "^1.0.6", + "astro": "^1.0.7", "sass": "^1.52.2" }, "dependencies": { diff --git a/examples/ssr/package.json b/examples/ssr/package.json index e8229be5ac32b..082e4896349f0 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@astrojs/node": "^1.0.0", "@astrojs/svelte": "^1.0.0", - "astro": "^1.0.6", + "astro": "^1.0.7", "concurrently": "^7.2.1", "lightcookie": "^1.0.25", "unocss": "^0.15.6", diff --git a/examples/subpath/package.json b/examples/subpath/package.json index 8538b0774b71d..10aa82f781813 100644 --- a/examples/subpath/package.json +++ b/examples/subpath/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/react": "^1.0.0", - "astro": "^1.0.6" + "astro": "^1.0.7" }, "dependencies": { "react": "^18.1.0", diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index a4a6e312719da..0098dd710b307 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/markdown-remark": "^1.0.0", - "astro": "^1.0.6", + "astro": "^1.0.7", "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 35d3debbeee77..86d52d286f6ed 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -11,6 +11,6 @@ }, "devDependencies": { "@astrojs/markdown-remark": "^1.0.0", - "astro": "^1.0.6" + "astro": "^1.0.7" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index eb36792f1d9af..4c1ba699b6741 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@astrojs/mdx": "^0.10.0", "@astrojs/preact": "^1.0.2", - "astro": "^1.0.6", + "astro": "^1.0.7", "preact": "^10.6.5" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 308f363bf31b2..dbdc84d357bea 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -16,6 +16,6 @@ }, "devDependencies": { "@astrojs/preact": "^1.0.2", - "astro": "^1.0.6" + "astro": "^1.0.7" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 267f754c8bf30..af41dceb25ad6 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/tailwind": "^1.0.0", - "astro": "^1.0.6", + "astro": "^1.0.7", "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 9603645280f92..102c0d645025e 100644 --- a/examples/with-vite-plugin-pwa/package.json +++ b/examples/with-vite-plugin-pwa/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "devDependencies": { - "astro": "^1.0.6", + "astro": "^1.0.7", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.3" } diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 9b1b4d8033258..d33105c30cc74 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "devDependencies": { - "astro": "^1.0.6", + "astro": "^1.0.7", "vitest": "^0.20.3" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index f49c99606370b..628e80aa8b761 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,23 @@ # astro +## 1.0.7 + +### Patch Changes + +- [#4415](https://github.com/withastro/astro/pull/4415) [`39088e11d`](https://github.com/withastro/astro/commit/39088e11db2ab69b370616d7cb369952cd9fd266) Thanks [@bluwy](https://github.com/bluwy)! - Bump Vite to 3.0.9 + +* [#4362](https://github.com/withastro/astro/pull/4362) [`aa5118e85`](https://github.com/withastro/astro/commit/aa5118e8543bb9ed240681acdabfcc09bdbb5438) Thanks [@joseph-lozano](https://github.com/joseph-lozano)! - Allow user config to set `markdown.drafts` option + +- [#4344](https://github.com/withastro/astro/pull/4344) [`500332a42`](https://github.com/withastro/astro/commit/500332a426c8fa43e6534f0e41de5fc902f98ccd) Thanks [@bluwy](https://github.com/bluwy)! - Refactor static build config merge + +* [#4364](https://github.com/withastro/astro/pull/4364) [`77b068086`](https://github.com/withastro/astro/commit/77b068086d923e99eb693d1c57b7d6cd906a1e8a) Thanks [@bluwy](https://github.com/bluwy)! - Preserve all error stack lines + +- [#4405](https://github.com/withastro/astro/pull/4405) [`a70f69a06`](https://github.com/withastro/astro/commit/a70f69a06c069781c56393289f82efc1251fc37b) Thanks [@FredKSchott](https://github.com/FredKSchott)! - Refactor JSX build plugin, improve performance + +* [#4356](https://github.com/withastro/astro/pull/4356) [`beed20be4`](https://github.com/withastro/astro/commit/beed20be4a4dd01a52cff49887420b6a8b92b1a9) Thanks [@delucis](https://github.com/delucis)! - Provide correct MIME type for dynamic endpoint routes in dev + +- [#4375](https://github.com/withastro/astro/pull/4375) [`5e82f6c24`](https://github.com/withastro/astro/commit/5e82f6c245be332764fcd5a90be491a430655c87) Thanks [@matthewp](https://github.com/matthewp)! - Fixes race condition between directives being defined + ## 1.0.6 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 35e2486c878de..5be9f98ea2ac7 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "1.0.6", + "version": "1.0.7", "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/alpinejs/CHANGELOG.md b/packages/integrations/alpinejs/CHANGELOG.md new file mode 100644 index 0000000000000..9c0640e688adc --- /dev/null +++ b/packages/integrations/alpinejs/CHANGELOG.md @@ -0,0 +1,7 @@ +# @astrojs/alpinejs + +## 0.1.0 + +### Minor Changes + +- [#4406](https://github.com/withastro/astro/pull/4406) [`7310e8a17`](https://github.com/withastro/astro/commit/7310e8a1780dff2ffb57f8a6cfd3d021d019f6b8) Thanks [@FredKSchott](https://github.com/FredKSchott)! - Add new official Alpine.js integration diff --git a/packages/integrations/alpinejs/package.json b/packages/integrations/alpinejs/package.json index 7bbd2449c501e..e452694321f23 100644 --- a/packages/integrations/alpinejs/package.json +++ b/packages/integrations/alpinejs/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/alpinejs", "description": "The official Alpine.js integration for Astro.", - "version": "0.0.1", + "version": "0.1.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/image/CHANGELOG.md b/packages/integrations/image/CHANGELOG.md index cad8e22494ad8..274845a5b59c0 100644 --- a/packages/integrations/image/CHANGELOG.md +++ b/packages/integrations/image/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/image +## 0.3.5 + +### Patch Changes + +- [#4342](https://github.com/withastro/astro/pull/4342) [`c4af8723b`](https://github.com/withastro/astro/commit/c4af8723bd232d78d24dbd58feaef87dbaec07c7) Thanks [@tony-sull](https://github.com/tony-sull)! - The integration now includes a logger to better track progress in SSG builds. Use the new `logLevel: "debug"` integration option to see detailed logs of every image transformation built in your project. + ## 0.3.4 ### Patch Changes diff --git a/packages/integrations/image/package.json b/packages/integrations/image/package.json index be0f1c2c32be1..6d9b35c4a0a6c 100644 --- a/packages/integrations/image/package.json +++ b/packages/integrations/image/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/image", "description": "Load and transform images in your Astro site.", - "version": "0.3.4", + "version": "0.3.5", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/image/src/build/ssg.ts b/packages/integrations/image/src/build/ssg.ts index c4f873f33ec28..eeb1c5ff899ab 100644 --- a/packages/integrations/image/src/build/ssg.ts +++ b/packages/integrations/image/src/build/ssg.ts @@ -24,8 +24,14 @@ export interface SSGBuildParams { export async function ssgBuild({ loader, staticImages, srcDir, outDir, logLevel }: SSGBuildParams) { const timer = performance.now(); - info({ level: logLevel, prefix: false, message: `${bgGreen(black(` optimizing ${staticImages.size} image${staticImages.size > 1 ? 's' : ''} `))}` }); - + info({ + level: logLevel, + prefix: false, + message: `${bgGreen( + black(` optimizing ${staticImages.size} image${staticImages.size > 1 ? 's' : ''} `) + )}`, + }); + const inputFiles = new Set(); // process transforms one original image file at a time @@ -47,7 +53,7 @@ export async function ssgBuild({ loader, staticImages, srcDir, outDir, logLevel if (!inputBuffer) { // eslint-disable-next-line no-console - warn({ level: logLevel, message : `"${src}" image could not be fetched` }); + warn({ level: logLevel, message: `"${src}" image could not be fetched` }); continue; } @@ -65,7 +71,11 @@ export async function ssgBuild({ loader, staticImages, srcDir, outDir, logLevel const timeChange = getTimeStat(timeStart, timeEnd); const timeIncrease = `(+${timeChange})`; const pathRelative = inputFile.replace(fileURLToPath(srcDir), ''); - debug({ level: logLevel, prefix: false, message: ` ${cyan('└─')} ${dim(`(original) ${pathRelative}`)} ${dim(timeIncrease)}` }); + debug({ + level: logLevel, + prefix: false, + message: ` ${cyan('└─')} ${dim(`(original) ${pathRelative}`)} ${dim(timeIncrease)}`, + }); } // process each transformed versiono of the @@ -91,9 +101,17 @@ export async function ssgBuild({ loader, staticImages, srcDir, outDir, logLevel const timeChange = getTimeStat(timeStart, timeEnd); const timeIncrease = `(+${timeChange})`; const pathRelative = outputFile.replace(fileURLToPath(outDir), ''); - debug({ level: logLevel, prefix: false, message: ` ${cyan('└─')} ${dim(pathRelative)} ${dim(timeIncrease)}` }); + debug({ + level: logLevel, + prefix: false, + message: ` ${cyan('└─')} ${dim(pathRelative)} ${dim(timeIncrease)}`, + }); } } - info({ level: logLevel, prefix: false, message: (dim(`Completed in ${getTimeStat(timer, performance.now())}.\n`)) }); + info({ + level: logLevel, + prefix: false, + message: dim(`Completed in ${getTimeStat(timer, performance.now())}.\n`), + }); } diff --git a/packages/integrations/image/src/index.ts b/packages/integrations/image/src/index.ts index d3e154d6219c1..28df1ec387a8e 100644 --- a/packages/integrations/image/src/index.ts +++ b/packages/integrations/image/src/index.ts @@ -110,7 +110,13 @@ export default function integration(options: IntegrationOptions = {}): AstroInte const loader = globalThis?.astroImage?.loader; if (loader && 'transform' in loader && staticImages.size > 0) { - await ssgBuild({ loader, staticImages, srcDir: _config.srcDir, outDir: dir, logLevel: resolvedOptions.logLevel }); + await ssgBuild({ + loader, + staticImages, + srcDir: _config.srcDir, + outDir: dir, + logLevel: resolvedOptions.logLevel, + }); } } }, diff --git a/packages/integrations/image/src/utils/logger.ts b/packages/integrations/image/src/utils/logger.ts index 3c11dacdc9a78..849a4deb4fa63 100644 --- a/packages/integrations/image/src/utils/logger.ts +++ b/packages/integrations/image/src/utils/logger.ts @@ -60,15 +60,15 @@ function getPrefix(level: LoggerLevel, timestamp: boolean) { return prefix; } -const log = (_level: LoggerLevel, dest: (message: string) => void) => +const log = + (_level: LoggerLevel, dest: (message: string) => void) => ({ message, level, prefix = true, timestamp = true }: LogMessage) => { if (levels[_level] >= levels[level]) { dest(`${prefix ? getPrefix(level, timestamp) : ''}${message}`); } - } + }; export const info = log('info', console.info); export const debug = log('debug', console.debug); export const warn = log('warn', console.warn); export const error = log('error', console.error); - diff --git a/packages/integrations/vercel/CHANGELOG.md b/packages/integrations/vercel/CHANGELOG.md index 69871113b5bf1..47db36b0eba55 100644 --- a/packages/integrations/vercel/CHANGELOG.md +++ b/packages/integrations/vercel/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/vercel +## 1.0.1 + +### Patch Changes + +- [#4421](https://github.com/withastro/astro/pull/4421) [`7820096e1`](https://github.com/withastro/astro/commit/7820096e1ba29ecc58aa7e13311a255acd2fe977) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fix react-dom on Vercel edge + ## 1.0.0 ### Major Changes @@ -53,7 +59,7 @@ The new `Astro.clientAddress` property allows you to get the IP address of the requested user. ```astro -
Your address {Astro.clientAddress}
+ ``` This property is only available when building for SSR, and only if the adapter you are using supports providing the IP address. If you attempt to access the property in a SSG app it will throw an error. diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index bee390d185d21..3e797e643e956 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/vercel", "description": "Deploy your site to Vercel", - "version": "1.0.0", + "version": "1.0.1", "type": "module", "author": "withastro", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1a28c6da20582..90111499c0e6d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -56,7 +56,7 @@ importers: examples/basics: specifiers: - astro: ^1.0.6 + astro: ^1.0.7 devDependencies: astro: link:../../packages/astro @@ -65,7 +65,7 @@ importers: '@astrojs/mdx': ^0.10.0 '@astrojs/rss': ^1.0.0 '@astrojs/sitemap': ^1.0.0 - astro: ^1.0.6 + astro: ^1.0.7 devDependencies: '@astrojs/mdx': link:../../packages/integrations/mdx '@astrojs/rss': link:../../packages/astro-rss @@ -74,14 +74,14 @@ importers: examples/component: specifiers: - astro: ^1.0.6 + astro: ^1.0.7 devDependencies: astro: link:../../packages/astro examples/component/demo: specifiers: '@example/my-component': workspace:* - astro: ^1.0.6 + astro: ^1.0.7 devDependencies: '@example/my-component': link:../packages/my-component astro: link:../../../packages/astro @@ -97,7 +97,7 @@ importers: '@docsearch/css': ^3.1.0 '@docsearch/react': ^3.1.0 '@types/react': ^17.0.45 - astro: ^1.0.6 + astro: ^1.0.7 preact: ^10.7.3 react: ^18.1.0 react-dom: ^18.1.0 @@ -116,16 +116,16 @@ importers: examples/env-vars: specifiers: - astro: ^1.0.6 + astro: ^1.0.7 devDependencies: astro: link:../../packages/astro examples/framework-alpine: specifiers: - '@astrojs/alpinejs': ^0.0.1 + '@astrojs/alpinejs': ^0.1.0 '@types/alpinejs': ^3.7.0 alpinejs: ^3.10.2 - astro: ^1.0.6 + astro: ^1.0.7 devDependencies: '@astrojs/alpinejs': link:../../packages/integrations/alpinejs '@types/alpinejs': 3.7.0 @@ -136,7 +136,7 @@ importers: specifiers: '@astrojs/lit': ^1.0.0 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.0.6 + astro: ^1.0.7 lit: ^2.2.5 dependencies: '@webcomponents/template-shadowroot': 0.1.0 @@ -152,7 +152,7 @@ importers: '@astrojs/solid-js': ^1.0.0 '@astrojs/svelte': ^1.0.0 '@astrojs/vue': ^1.0.0 - astro: ^1.0.6 + astro: ^1.0.7 preact: ^10.7.3 react: ^18.1.0 react-dom: ^18.1.0 @@ -177,7 +177,7 @@ importers: examples/framework-preact: specifiers: '@astrojs/preact': ^1.0.2 - astro: ^1.0.6 + astro: ^1.0.7 preact: ^10.7.3 dependencies: preact: 10.10.2 @@ -190,7 +190,7 @@ importers: '@astrojs/react': ^1.0.0 '@types/react': ^18.0.10 '@types/react-dom': ^18.0.5 - astro: ^1.0.6 + astro: ^1.0.7 react: ^18.1.0 react-dom: ^18.1.0 dependencies: @@ -205,7 +205,7 @@ importers: examples/framework-solid: specifiers: '@astrojs/solid-js': ^1.0.0 - astro: ^1.0.6 + astro: ^1.0.7 solid-js: ^1.4.3 dependencies: solid-js: 1.4.8 @@ -216,7 +216,7 @@ importers: examples/framework-svelte: specifiers: '@astrojs/svelte': ^1.0.0 - astro: ^1.0.6 + astro: ^1.0.7 svelte: ^3.48.0 dependencies: svelte: 3.49.0 @@ -227,7 +227,7 @@ importers: examples/framework-vue: specifiers: '@astrojs/vue': ^1.0.0 - astro: ^1.0.6 + astro: ^1.0.7 vue: ^3.2.37 dependencies: vue: 3.2.37 @@ -237,20 +237,20 @@ importers: examples/minimal: specifiers: - astro: ^1.0.6 + astro: ^1.0.7 devDependencies: astro: link:../../packages/astro examples/non-html-pages: specifiers: - astro: ^1.0.6 + astro: ^1.0.7 devDependencies: astro: link:../../packages/astro examples/portfolio: specifiers: '@astrojs/preact': ^1.0.2 - astro: ^1.0.6 + astro: ^1.0.7 preact: ^10.7.3 sass: ^1.52.2 dependencies: @@ -264,7 +264,7 @@ importers: specifiers: '@astrojs/node': ^1.0.0 '@astrojs/svelte': ^1.0.0 - astro: ^1.0.6 + astro: ^1.0.7 concurrently: ^7.2.1 lightcookie: ^1.0.25 svelte: ^3.48.0 @@ -284,7 +284,7 @@ importers: examples/subpath: specifiers: '@astrojs/react': ^1.0.0 - astro: ^1.0.6 + astro: ^1.0.7 react: ^18.1.0 react-dom: ^18.1.0 dependencies: @@ -297,7 +297,7 @@ importers: examples/with-markdown-plugins: specifiers: '@astrojs/markdown-remark': ^1.0.0 - astro: ^1.0.6 + astro: ^1.0.7 hast-util-select: 5.0.1 rehype-autolink-headings: ^6.1.1 rehype-slug: ^5.0.1 @@ -315,7 +315,7 @@ importers: examples/with-markdown-shiki: specifiers: '@astrojs/markdown-remark': ^1.0.0 - astro: ^1.0.6 + astro: ^1.0.7 devDependencies: '@astrojs/markdown-remark': link:../../packages/markdown/remark astro: link:../../packages/astro @@ -324,7 +324,7 @@ importers: specifiers: '@astrojs/mdx': ^0.10.0 '@astrojs/preact': ^1.0.2 - astro: ^1.0.6 + astro: ^1.0.7 preact: ^10.6.5 devDependencies: '@astrojs/mdx': link:../../packages/integrations/mdx @@ -336,7 +336,7 @@ importers: specifiers: '@astrojs/preact': ^1.0.2 '@nanostores/preact': ^0.1.3 - astro: ^1.0.6 + astro: ^1.0.7 nanostores: ^0.5.12 preact: ^10.7.3 dependencies: @@ -350,7 +350,7 @@ importers: examples/with-tailwindcss: specifiers: '@astrojs/tailwind': ^1.0.0 - astro: ^1.0.6 + astro: ^1.0.7 autoprefixer: ^10.4.7 canvas-confetti: ^1.5.1 postcss: ^8.4.14 @@ -361,21 +361,21 @@ importers: autoprefixer: 10.4.8_postcss@8.4.16 canvas-confetti: 1.5.1 postcss: 8.4.16 - tailwindcss: 3.1.8_postcss@8.4.16 + tailwindcss: 3.1.8 examples/with-vite-plugin-pwa: specifiers: - astro: ^1.0.6 + astro: ^1.0.7 vite-plugin-pwa: 0.11.11 workbox-window: ^6.5.3 devDependencies: astro: link:../../packages/astro - vite-plugin-pwa: 0.11.11_workbox-window@6.5.4 + vite-plugin-pwa: 0.11.11 workbox-window: 6.5.4 examples/with-vitest: specifiers: - astro: ^1.0.6 + astro: ^1.0.7 vitest: ^0.20.3 devDependencies: astro: link:../../packages/astro @@ -2025,7 +2025,7 @@ importers: astro: link:../../.. autoprefixer: 10.4.8_postcss@8.4.16 postcss: 8.4.16 - tailwindcss: 3.1.8_postcss@8.4.16 + tailwindcss: 3.1.8 packages/astro/test/fixtures/type-imports: specifiers: @@ -2564,7 +2564,7 @@ importers: '@proload/core': 0.3.2 autoprefixer: 10.4.8_postcss@8.4.16 postcss: 8.4.16 - tailwindcss: 3.1.8_postcss@8.4.16 + tailwindcss: 3.1.8 devDependencies: astro: link:../../astro astro-scripts: link:../../../scripts @@ -15891,12 +15891,10 @@ packages: tslib: 2.4.0 dev: true - /tailwindcss/3.1.8_postcss@8.4.16: + /tailwindcss/3.1.8: resolution: {integrity: sha512-YSneUCZSFDYMwk+TGq8qYFdCA3yfBRdBlS7txSq0LUmzyeqRe3a8fBQzbz9M3WS/iFT4BNf/nmw9mEzrnSaC0g==} engines: {node: '>=12.13.0'} hasBin: true - peerDependencies: - postcss: ^8.0.9 dependencies: arg: 5.0.2 chokidar: 3.5.3 @@ -16646,11 +16644,10 @@ packages: magic-string: 0.26.2 dev: true - /vite-plugin-pwa/0.11.11_workbox-window@6.5.4: + /vite-plugin-pwa/0.11.11: resolution: {integrity: sha512-/nSLS7VfGN5UrL4a1ALGEQAyga/H0hYZjEkwPehiEFW1PM1DTi1A8GkPCsmevKwR6vt10P+5wS1wrvSgwQemzw==} peerDependencies: vite: ^2.0.0 - workbox-window: ^6.4.0 peerDependenciesMeta: vite: optional: true