From 571bd0d9426df2348199cc2a459c795aff1cc9af Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 21 Jun 2022 12:36:03 +0000 Subject: [PATCH] [ci] release --- .changeset/cyan-kids-sleep.md | 11 --- .changeset/empty-bats-grow.md | 5 -- .changeset/fluffy-hounds-smash.md | 7 -- .changeset/four-numbers-flash.md | 7 -- .changeset/funny-terms-matter.md | 5 -- .changeset/great-badgers-raise.md | 5 -- .changeset/hungry-ravens-cheat.md | 5 -- .changeset/pink-pugs-beg.md | 5 -- .changeset/popular-cherries-float.md | 18 ---- .changeset/unlucky-hairs-camp.md | 9 -- .changeset/wild-phones-work.md | 6 -- examples/basics/package.json | 2 +- 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 | 4 +- examples/framework-multiple/package.json | 4 +- 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/integrations-playground/package.json | 6 +- examples/minimal/package.json | 2 +- examples/non-html-pages/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 | 4 +- examples/with-markdown-shiki/package.json | 4 +- examples/with-markdown/package.json | 4 +- examples/with-nanostores/package.json | 2 +- examples/with-tailwindcss/package.json | 2 +- examples/with-vite-plugin-pwa/package.json | 2 +- packages/astro/CHANGELOG.md | 24 ++++++ packages/astro/package.json | 6 +- packages/astro/src/core/build/generate.ts | 5 +- packages/astro/src/core/build/page-data.ts | 2 +- packages/astro/src/core/build/static-build.ts | 11 +-- .../src/core/build/vite-plugin-analyzer.ts | 48 +++++------ .../astro/src/core/build/vite-plugin-ssr.ts | 4 +- packages/astro/src/runtime/server/metadata.ts | 3 +- packages/astro/src/vite-plugin-astro/index.ts | 4 +- packages/astro/src/vite-plugin-astro/types.ts | 8 +- .../astro/src/vite-plugin-markdown/index.ts | 3 +- .../astro/test/astro-markdown-drafts.test.js | 2 +- packages/integrations/lit/CHANGELOG.md | 10 +++ packages/integrations/lit/package.json | 2 +- packages/integrations/lit/server-shim.js | 4 +- packages/integrations/lit/server.js | 4 +- packages/integrations/lit/src/index.ts | 2 +- packages/integrations/netlify/CHANGELOG.md | 6 ++ packages/integrations/netlify/package.json | 2 +- .../netlify/src/integration-edge-functions.ts | 10 +-- .../edge-functions/dynamic-import.test.js | 2 +- packages/integrations/sitemap/CHANGELOG.md | 19 +++++ packages/integrations/sitemap/package.json | 2 +- packages/markdown/remark/CHANGELOG.md | 12 +++ packages/markdown/remark/package.json | 2 +- packages/telemetry/CHANGELOG.md | 10 +++ packages/telemetry/package.json | 2 +- pnpm-lock.yaml | 83 +++++++++---------- 67 files changed, 212 insertions(+), 233 deletions(-) delete mode 100644 .changeset/cyan-kids-sleep.md delete mode 100644 .changeset/empty-bats-grow.md delete mode 100644 .changeset/fluffy-hounds-smash.md delete mode 100644 .changeset/four-numbers-flash.md delete mode 100644 .changeset/funny-terms-matter.md delete mode 100644 .changeset/great-badgers-raise.md delete mode 100644 .changeset/hungry-ravens-cheat.md delete mode 100644 .changeset/pink-pugs-beg.md delete mode 100644 .changeset/popular-cherries-float.md delete mode 100644 .changeset/unlucky-hairs-camp.md delete mode 100644 .changeset/wild-phones-work.md diff --git a/.changeset/cyan-kids-sleep.md b/.changeset/cyan-kids-sleep.md deleted file mode 100644 index e533efa72c11..000000000000 --- a/.changeset/cyan-kids-sleep.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'astro': patch ---- - -Significantly improved build performance - -This change reflects in a significantly improved build performance, especially on larger sites. - -With this change Astro is not building everything by statically analyzing `.astro` files. This means it no longer needs to dynamically *run* your code in order to know what JavaScript needs to be built. - -With one particular large site we found it to build __32%__ faster. diff --git a/.changeset/empty-bats-grow.md b/.changeset/empty-bats-grow.md deleted file mode 100644 index 4ad7871c9a49..000000000000 --- a/.changeset/empty-bats-grow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/markdown-remark': patch ---- - -Fix: HTML comments in markdown code blocks should not be wrapped in JS comments diff --git a/.changeset/fluffy-hounds-smash.md b/.changeset/fluffy-hounds-smash.md deleted file mode 100644 index ec877a1563c4..000000000000 --- a/.changeset/fluffy-hounds-smash.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'astro': patch -'@astrojs/netlify': patch -'@astrojs/markdown-remark': patch ---- - -Fix: "vpath" import error when building for netlify edge diff --git a/.changeset/four-numbers-flash.md b/.changeset/four-numbers-flash.md deleted file mode 100644 index 4e6046624f73..000000000000 --- a/.changeset/four-numbers-flash.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@astrojs/telemetry': patch ---- - -Fix telemetry crashing astro build/dev when using optional integrations - -Telemetry will now ignore falsy integration values but will gather a count of how many integrations out of the total are now optional integrations \ No newline at end of file diff --git a/.changeset/funny-terms-matter.md b/.changeset/funny-terms-matter.md deleted file mode 100644 index 50e953fe0bc7..000000000000 --- a/.changeset/funny-terms-matter.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/telemetry': patch ---- - -Add's optional integrations field to `@astrojs/telemetry`'s payload diff --git a/.changeset/great-badgers-raise.md b/.changeset/great-badgers-raise.md deleted file mode 100644 index b26dc6bd25a8..000000000000 --- a/.changeset/great-badgers-raise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Properly catch falsy components diff --git a/.changeset/hungry-ravens-cheat.md b/.changeset/hungry-ravens-cheat.md deleted file mode 100644 index 982c0b7bfda0..000000000000 --- a/.changeset/hungry-ravens-cheat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Add component hydration in Markdown E2E tests diff --git a/.changeset/pink-pugs-beg.md b/.changeset/pink-pugs-beg.md deleted file mode 100644 index ee78d3d71830..000000000000 --- a/.changeset/pink-pugs-beg.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/markdown-remark': patch ---- - -Encodes ampersand characters in code blocks diff --git a/.changeset/popular-cherries-float.md b/.changeset/popular-cherries-float.md deleted file mode 100644 index f04ab3f3ce54..000000000000 --- a/.changeset/popular-cherries-float.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@astrojs/sitemap': minor ---- - -# Key features - -- Split up your large sitemap into multiple sitemaps by custom limit. -- Ability to add sitemap specific attributes such as `lastmod` etc. -- Final output customization via JS function. -- Localization support. -- Reliability: all config options are validated. - -## Important changes - -The integration always generates at least two files instead of one: - -- `sitemap-index.xml` - index file; -- `sitemap-{i}.xml` - actual sitemap. diff --git a/.changeset/unlucky-hairs-camp.md b/.changeset/unlucky-hairs-camp.md deleted file mode 100644 index d63d123ba2b5..000000000000 --- a/.changeset/unlucky-hairs-camp.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@astrojs/lit': minor ---- - -Conform to Constructor based rendering - -This changes `@astrojs/lit` to conform to the way rendering happens in all other frameworks. Instead of using the tag name `` you use the imported constructor function, `` like you would do with any other framework. - -Support for `tag-name` syntax had to be removed due to the fact that it was a runtime feature that was not statically analyzable. To improve build performance, we have removed all runtime based component discovery. Using the imported Constructor name allows Astro to discover what components need to be built and bundled for production without ever running your file. diff --git a/.changeset/wild-phones-work.md b/.changeset/wild-phones-work.md deleted file mode 100644 index a55eecadf560..000000000000 --- a/.changeset/wild-phones-work.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'astro': patch -'@astrojs/markdown-remark': patch ---- - -Remove extra newlines around Markdown components diff --git a/examples/basics/package.json b/examples/basics/package.json index fcd325d7fd76..bc62c0a10971 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.47" + "astro": "^1.0.0-beta.48" } } diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index a4e929c454ad..1d41b93dad51 100644 --- a/examples/blog-multiple-authors/package.json +++ b/examples/blog-multiple-authors/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/preact": "^0.1.3", - "astro": "^1.0.0-beta.47", + "astro": "^1.0.0-beta.48", "sass": "^1.52.2" }, "dependencies": { diff --git a/examples/blog/package.json b/examples/blog/package.json index b6868a85e1ef..57305fd1c0aa 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/preact": "^0.1.3", - "astro": "^1.0.0-beta.47" + "astro": "^1.0.0-beta.48" }, "dependencies": { "preact": "^10.7.3" diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index 994c7217d2e7..acf46ec25542 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.47" + "astro": "^1.0.0-beta.48" } } diff --git a/examples/component/package.json b/examples/component/package.json index 95aa060a984e..eeedb76d496a 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.47" + "astro": "^1.0.0-beta.48" } } diff --git a/examples/docs/package.json b/examples/docs/package.json index fb6de9e86c37..3da3a65a9c3a 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -20,6 +20,6 @@ "devDependencies": { "@astrojs/preact": "^0.1.3", "@astrojs/react": "^0.1.3", - "astro": "^1.0.0-beta.47" + "astro": "^1.0.0-beta.48" } } diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json index c87d102833f7..5f7c0b3ef211 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.47" + "astro": "^1.0.0-beta.48" } } diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index e39b542a2d0a..5f0201b5ac51 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.47" + "astro": "^1.0.0-beta.48" }, "dependencies": { "alpinejs": "^3.10.2" diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index a8b6e99811d3..90e28a7ce587 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/lit": "^0.1.5", - "astro": "^1.0.0-beta.47" + "@astrojs/lit": "^0.2.0", + "astro": "^1.0.0-beta.48" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index da416a9483ac..b9da125c5794 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -9,13 +9,13 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/lit": "^0.1.5", + "@astrojs/lit": "^0.2.0", "@astrojs/preact": "^0.1.3", "@astrojs/react": "^0.1.3", "@astrojs/solid-js": "^0.1.4", "@astrojs/svelte": "^0.1.4", "@astrojs/vue": "^0.1.5", - "astro": "^1.0.0-beta.47" + "astro": "^1.0.0-beta.48" }, "dependencies": { "@webcomponents/template-shadowroot": "^0.1.0", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 0fe4f654b26f..998c971fa1f0 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/preact": "^0.1.3", - "astro": "^1.0.0-beta.47" + "astro": "^1.0.0-beta.48" }, "dependencies": { "preact": "^10.7.3" diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 29c835f48da3..0d6640f7a0ed 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/react": "^0.1.3", - "astro": "^1.0.0-beta.47" + "astro": "^1.0.0-beta.48" }, "dependencies": { "@types/react": "^18.0.10", diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index c5245b00424d..934194dca5f0 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/solid-js": "^0.1.4", - "astro": "^1.0.0-beta.47" + "astro": "^1.0.0-beta.48" }, "dependencies": { "solid-js": "^1.4.3" diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 6a64cd98d4d6..adae56f4abd2 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/svelte": "^0.1.4", - "astro": "^1.0.0-beta.47" + "astro": "^1.0.0-beta.48" }, "dependencies": { "svelte": "^3.48.0" diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index f0e2094dfc6b..1c2039c5a5fc 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/vue": "^0.1.5", - "astro": "^1.0.0-beta.47" + "astro": "^1.0.0-beta.48" }, "dependencies": { "vue": "^3.2.36" diff --git a/examples/integrations-playground/package.json b/examples/integrations-playground/package.json index 0e3e8b358f30..a6ed6f2f10f8 100644 --- a/examples/integrations-playground/package.json +++ b/examples/integrations-playground/package.json @@ -9,14 +9,14 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/lit": "^0.1.5", + "@astrojs/lit": "^0.2.0", "@astrojs/partytown": "^0.1.4", "@astrojs/react": "^0.1.3", - "@astrojs/sitemap": "^0.1.2", + "@astrojs/sitemap": "^0.2.0", "@astrojs/solid-js": "0.1.4", "@astrojs/tailwind": "^0.2.1", "@astrojs/turbolinks": "^0.1.3", - "astro": "^1.0.0-beta.47", + "astro": "^1.0.0-beta.48", "solid-js": "^1.4.3" }, "dependencies": { diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 508cb6f6b4a8..703ac01274a1 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.47" + "astro": "^1.0.0-beta.48" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 03e86d153627..e7b99469dc74 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.47" + "astro": "^1.0.0-beta.48" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index fc85e99e5659..f9a025227712 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/preact": "^0.1.3", - "astro": "^1.0.0-beta.47", + "astro": "^1.0.0-beta.48", "sass": "^1.52.2" }, "dependencies": { diff --git a/examples/ssr/package.json b/examples/ssr/package.json index fa177d6205bd..b890113671e2 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -11,7 +11,7 @@ "devDependencies": { "@astrojs/node": "^0.1.2", "@astrojs/svelte": "^0.1.4", - "astro": "^1.0.0-beta.47", + "astro": "^1.0.0-beta.48", "concurrently": "^7.2.1", "lightcookie": "^1.0.25", "unocss": "^0.15.6", diff --git a/examples/starter/package.json b/examples/starter/package.json index 31ea235011a5..d7d1c09f54ef 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^1.0.0-beta.47" + "astro": "^1.0.0-beta.48" } } diff --git a/examples/subpath/package.json b/examples/subpath/package.json index 3397bac5f520..1d7edd3d34d0 100644 --- a/examples/subpath/package.json +++ b/examples/subpath/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/react": "^0.1.3", - "astro": "^1.0.0-beta.47", + "astro": "^1.0.0-beta.48", "sass": "^1.52.2" }, "dependencies": { diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index f04b1ebdf25b..af1b6c43c3db 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -9,8 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/markdown-remark": "^0.11.2", - "astro": "^1.0.0-beta.47", + "@astrojs/markdown-remark": "^0.11.3", + "astro": "^1.0.0-beta.48", "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 7b8cebd56e22..c02779d9bb5a 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/markdown-remark": "^0.11.2", - "astro": "^1.0.0-beta.47" + "@astrojs/markdown-remark": "^0.11.3", + "astro": "^1.0.0-beta.48" } } diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json index 0ed1661f5986..e315f420d9cb 100644 --- a/examples/with-markdown/package.json +++ b/examples/with-markdown/package.json @@ -9,12 +9,12 @@ "preview": "astro preview" }, "devDependencies": { - "@astrojs/markdown-remark": "^0.11.2", + "@astrojs/markdown-remark": "^0.11.3", "@astrojs/preact": "^0.1.3", "@astrojs/react": "^0.1.3", "@astrojs/svelte": "^0.1.4", "@astrojs/vue": "^0.1.5", - "astro": "^1.0.0-beta.47" + "astro": "^1.0.0-beta.48" }, "dependencies": { "preact": "^10.7.3", diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 3d1db2b4b656..f6d0c22d3652 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -25,6 +25,6 @@ "@astrojs/solid-js": "^0.1.4", "@astrojs/svelte": "^0.1.4", "@astrojs/vue": "^0.1.5", - "astro": "^1.0.0-beta.47" + "astro": "^1.0.0-beta.48" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 3d162039d821..e0e93de7d515 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/tailwind": "^0.2.1", - "astro": "^1.0.0-beta.47", + "astro": "^1.0.0-beta.48", "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 54c5918c8273..cb8b96706a2c 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.47", + "astro": "^1.0.0-beta.48", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.3" } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index d10a040594de..dd79729e2e27 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,29 @@ # astro +## 1.0.0-beta.48 + +### Patch Changes + +- [#3625](https://github.com/withastro/astro/pull/3625) [`f5afaf24`](https://github.com/withastro/astro/commit/f5afaf24984ee7d4d6e908a7eeed17f5ca18c61e) Thanks [@matthewp](https://github.com/matthewp)! - Significantly improved build performance + + This change reflects in a significantly improved build performance, especially on larger sites. + + With this change Astro is not building everything by statically analyzing `.astro` files. This means it no longer needs to dynamically _run_ your code in order to know what JavaScript needs to be built. + + With one particular large site we found it to build **32%** faster. + +* [#3612](https://github.com/withastro/astro/pull/3612) [`fca58cfd`](https://github.com/withastro/astro/commit/fca58cfd91b68501ec82350ab023170b208d8ce7) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fix: "vpath" import error when building for netlify edge + +- [#3650](https://github.com/withastro/astro/pull/3650) [`d9f6dcf6`](https://github.com/withastro/astro/commit/d9f6dcf6ea05f78a33606509de0714f8b0625f96) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Properly catch falsy components + +* [#3610](https://github.com/withastro/astro/pull/3610) [`6ab749be`](https://github.com/withastro/astro/commit/6ab749be5c60c4b57aae8a0ba6083d010fe3b791) Thanks [@hippotastic](https://github.com/hippotastic)! - Add component hydration in Markdown E2E tests + +- [#3620](https://github.com/withastro/astro/pull/3620) [`05aa7244`](https://github.com/withastro/astro/commit/05aa72442cd4512b94abdb39623e8caa2c1839b0) Thanks [@hippotastic](https://github.com/hippotastic)! - Remove extra newlines around Markdown components + +- Updated dependencies [[`80c71c7c`](https://github.com/withastro/astro/commit/80c71c7c56d15dc05ec0c5a848130aad222d7d51), [`fca58cfd`](https://github.com/withastro/astro/commit/fca58cfd91b68501ec82350ab023170b208d8ce7), [`9c8a7c0b`](https://github.com/withastro/astro/commit/9c8a7c0b09db2fb6925929d4efe01d5ececbf08e), [`9c8a7c0b`](https://github.com/withastro/astro/commit/9c8a7c0b09db2fb6925929d4efe01d5ececbf08e), [`48e67fe0`](https://github.com/withastro/astro/commit/48e67fe05398dc4b1fca12db36c1b37bb341277a), [`05aa7244`](https://github.com/withastro/astro/commit/05aa72442cd4512b94abdb39623e8caa2c1839b0)]: + - @astrojs/markdown-remark@0.11.3 + - @astrojs/telemetry@0.1.3 + ## 1.0.0-beta.47 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 5165f4e43446..849ed934ccbd 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "1.0.0-beta.47", + "version": "1.0.0-beta.48", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", @@ -80,9 +80,9 @@ "dependencies": { "@astrojs/compiler": "^0.16.1", "@astrojs/language-server": "^0.13.4", - "@astrojs/markdown-remark": "^0.11.2", + "@astrojs/markdown-remark": "^0.11.3", "@astrojs/prism": "0.4.1", - "@astrojs/telemetry": "^0.1.2", + "@astrojs/telemetry": "^0.1.3", "@astrojs/webapi": "^0.12.0", "@babel/core": "^7.18.2", "@babel/generator": "^7.18.2", diff --git a/packages/astro/src/core/build/generate.ts b/packages/astro/src/core/build/generate.ts index 469d04c501b4..37abb91ad0dd 100644 --- a/packages/astro/src/core/build/generate.ts +++ b/packages/astro/src/core/build/generate.ts @@ -61,7 +61,8 @@ function shouldSkipDraft(pageModule: ComponentInstance, astroConfig: AstroConfig // Drafts are disabled !astroConfig.markdown.drafts && // This is a draft post - ('frontmatter' in pageModule && (pageModule as any).frontmatter.draft === true) + 'frontmatter' in pageModule && + (pageModule as any).frontmatter.draft === true ); } @@ -133,7 +134,7 @@ async function generatePage( ); } - if(shouldSkipDraft(pageModule, opts.astroConfig)) { + if (shouldSkipDraft(pageModule, opts.astroConfig)) { info(opts.logging, null, `${magenta('⚠️')} Skipping draft ${pageData.route.component}`); return; } diff --git a/packages/astro/src/core/build/page-data.ts b/packages/astro/src/core/build/page-data.ts index 371b7bd26284..27a6fa80e909 100644 --- a/packages/astro/src/core/build/page-data.ts +++ b/packages/astro/src/core/build/page-data.ts @@ -132,7 +132,7 @@ export async function collectPagesData( moduleSpecifier: '', css: new Set(), hoistedScript: undefined, - scripts: new Set() + scripts: new Set(), }; } diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts index 2300c790a3f2..f9df0319332e 100644 --- a/packages/astro/src/core/build/static-build.ts +++ b/packages/astro/src/core/build/static-build.ts @@ -4,10 +4,7 @@ import { bgGreen, bgMagenta, black, dim } from 'kleur/colors'; import type { RollupOutput } from 'rollup'; import { fileURLToPath } from 'url'; import * as vite from 'vite'; -import { - BuildInternals, - createBuildInternals, -} from '../../core/build/internal.js'; +import { BuildInternals, createBuildInternals } from '../../core/build/internal.js'; import { prependForwardSlash } from '../../core/path.js'; import { emptyDir, removeDir } from '../../core/util.js'; import { runHookBuildSetup } from '../../integrations/index.js'; @@ -73,7 +70,7 @@ export async function staticBuild(opts: StaticBuildOptions) { const clientInput = new Set([ ...internals.discoveredHydratedComponents, ...internals.discoveredClientOnlyComponents, - ...astroConfig._ctx.renderers.map(r => r.clientEntrypoint).filter(a => a) as string[], + ...(astroConfig._ctx.renderers.map((r) => r.clientEntrypoint).filter((a) => a) as string[]), ...internals.discoveredScripts, ]); @@ -90,7 +87,7 @@ export async function staticBuild(opts: StaticBuildOptions) { } } else { // Inject the manifest - await injectManifest(opts, internals) + await injectManifest(opts, internals); info(opts.logging, null, `\n${bgMagenta(black(' finalizing server assets '))}\n`); await ssrMoveAssets(opts); @@ -144,7 +141,7 @@ async function ssrBuild(opts: StaticBuildOptions, internals: BuildInternals, inp // SSR needs to be last isBuildingToSSR(opts.astroConfig) && vitePluginSSR(opts, internals, opts.astroConfig._ctx.adapter!), - vitePluginAnalyzer(opts.astroConfig, internals) + vitePluginAnalyzer(opts.astroConfig, internals), ], publicDir: ssr ? false : viteConfig.publicDir, root: viteConfig.root, diff --git a/packages/astro/src/core/build/vite-plugin-analyzer.ts b/packages/astro/src/core/build/vite-plugin-analyzer.ts index 8b8b663e69cb..fea6f7ddb591 100644 --- a/packages/astro/src/core/build/vite-plugin-analyzer.ts +++ b/packages/astro/src/core/build/vite-plugin-analyzer.ts @@ -1,5 +1,3 @@ - - import type { Plugin as VitePlugin } from 'vite'; import type { PluginContext } from 'rollup'; import type { AstroConfig } from '../../@types/astro'; @@ -10,32 +8,26 @@ import { prependForwardSlash } from '../../core/path.js'; import { getPageDataByViteID, trackClientOnlyPageDatas } from './internal.js'; import { getTopLevelPages } from './graph.js'; - export function vitePluginAnalyzer( astroConfig: AstroConfig, internals: BuildInternals ): VitePlugin { - function hoistedScriptScanner() { const uniqueHoistedIds = new Map(); const pageScripts = new Map>(); return { - scan( - this: PluginContext, - scripts: AstroPluginMetadata['astro']['scripts'], - from: string - ) { + scan(this: PluginContext, scripts: AstroPluginMetadata['astro']['scripts'], from: string) { const hoistedScripts = new Set(); - for(let i = 0; i < scripts.length; i++) { + for (let i = 0; i < scripts.length; i++) { const hid = `${from.replace('/@fs', '')}?astro&type=script&index=${i}`; hoistedScripts.add(hid); } if (hoistedScripts.size) { - for(const pageId of getTopLevelPages(from, this)) { - for(const hid of hoistedScripts) { - if(pageScripts.has(pageId)) { + for (const pageId of getTopLevelPages(from, this)) { + for (const hid of hoistedScripts) { + if (pageScripts.has(pageId)) { pageScripts.get(pageId)?.add(hid); } else { pageScripts.set(pageId, new Set([hid])); @@ -46,16 +38,16 @@ export function vitePluginAnalyzer( }, finalize() { - for(const [pageId, hoistedScripts] of pageScripts) { + for (const [pageId, hoistedScripts] of pageScripts) { const pageData = getPageDataByViteID(internals, pageId); - if(!pageData) continue; + if (!pageData) continue; const { component } = pageData; const astroModuleId = prependForwardSlash(component); const uniqueHoistedId = JSON.stringify(Array.from(hoistedScripts).sort()); let moduleId: string; - + // If we're already tracking this set of hoisted scripts, get the unique id if (uniqueHoistedIds.has(uniqueHoistedId)) { moduleId = uniqueHoistedIds.get(uniqueHoistedId)!; @@ -65,7 +57,7 @@ export function vitePluginAnalyzer( uniqueHoistedIds.set(uniqueHoistedId, moduleId); } internals.discoveredScripts.add(moduleId); - + // Make sure to track that this page uses this set of hoisted scripts if (internals.hoistedScriptIdToPagesMap.has(moduleId)) { const pages = internals.hoistedScriptIdToPagesMap.get(moduleId); @@ -75,42 +67,42 @@ export function vitePluginAnalyzer( internals.hoistedScriptIdToHoistedMap.set(moduleId, hoistedScripts); } } - } + }, }; } - + return { name: '@astro/rollup-plugin-astro-analyzer', generateBundle() { const hoistScanner = hoistedScriptScanner(); const ids = this.getModuleIds(); - for(const id of ids) { + for (const id of ids) { const info = this.getModuleInfo(id); - if(!info || !info.meta?.astro) continue; + if (!info || !info.meta?.astro) continue; const astro = info.meta.astro as AstroPluginMetadata['astro']; - for(const c of astro.hydratedComponents) { + for (const c of astro.hydratedComponents) { internals.discoveredHydratedComponents.add(c.resolvedPath || c.specifier); } // Scan hoisted scripts hoistScanner.scan.call(this, astro.scripts, id); - if(astro.clientOnlyComponents.length) { + if (astro.clientOnlyComponents.length) { const clientOnlys: string[] = []; - for(const c of astro.clientOnlyComponents) { + for (const c of astro.clientOnlyComponents) { const cid = c.resolvedPath || c.specifier; internals.discoveredClientOnlyComponents.add(cid); clientOnlys.push(cid); } - for(const pageId of getTopLevelPages(id, this)) { + for (const pageId of getTopLevelPages(id, this)) { const pageData = getPageDataByViteID(internals, pageId); - if(!pageData) continue; - + if (!pageData) continue; + trackClientOnlyPageDatas(internals, pageData, clientOnlys); } } @@ -118,6 +110,6 @@ export function vitePluginAnalyzer( // Finalize hoisting hoistScanner.finalize(); - } + }, }; } diff --git a/packages/astro/src/core/build/vite-plugin-ssr.ts b/packages/astro/src/core/build/vite-plugin-ssr.ts index 4fc1274c71c9..99f0bced5880 100644 --- a/packages/astro/src/core/build/vite-plugin-ssr.ts +++ b/packages/astro/src/core/build/vite-plugin-ssr.ts @@ -82,7 +82,7 @@ if(_start in adapter) { internals.staticFiles.add(chunk.fileName); } } - + for (const [chunkName, chunk] of Object.entries(bundle)) { if (chunk.type === 'asset') { continue; @@ -97,7 +97,7 @@ if(_start in adapter) { } export async function injectManifest(buildOpts: StaticBuildOptions, internals: BuildInternals) { - if(!internals.ssrEntryChunk) { + if (!internals.ssrEntryChunk) { throw new Error(`Did not generate an entry chunk for SSR`); } diff --git a/packages/astro/src/runtime/server/metadata.ts b/packages/astro/src/runtime/server/metadata.ts index 11adeb4ead7b..c2bf0407f7a3 100644 --- a/packages/astro/src/runtime/server/metadata.ts +++ b/packages/astro/src/runtime/server/metadata.ts @@ -52,7 +52,8 @@ export class Metadata { *hoistedScriptPaths() { for (const metadata of this.deepMetadata()) { - let i = 0, pathname = metadata.mockURL.pathname; + let i = 0, + pathname = metadata.mockURL.pathname; while (i < metadata.hoisted.length) { // Strip off the leading "/@fs" added during compilation. diff --git a/packages/astro/src/vite-plugin-astro/index.ts b/packages/astro/src/vite-plugin-astro/index.ts index b0e97c2e0455..94fea7c89f3a 100644 --- a/packages/astro/src/vite-plugin-astro/index.ts +++ b/packages/astro/src/vite-plugin-astro/index.ts @@ -113,7 +113,7 @@ export default function astro({ config, logging }: AstroPluginOptions): vite.Plu source, ssr: Boolean(opts?.ssr), viteTransform, - pluginContext: this + pluginContext: this, }; if (query.astro) { if (query.type === 'style') { @@ -222,7 +222,7 @@ export default function astro({ config, logging }: AstroPluginOptions): vite.Plu const astroMetadata: AstroPluginMetadata['astro'] = { clientOnlyComponents: transformResult.clientOnlyComponents, hydratedComponents: transformResult.hydratedComponents, - scripts: transformResult.scripts + scripts: transformResult.scripts, }; return { diff --git a/packages/astro/src/vite-plugin-astro/types.ts b/packages/astro/src/vite-plugin-astro/types.ts index 6537b6f382fa..bf6a1cee51ba 100644 --- a/packages/astro/src/vite-plugin-astro/types.ts +++ b/packages/astro/src/vite-plugin-astro/types.ts @@ -2,8 +2,8 @@ import type { TransformResult } from '@astrojs/compiler'; export interface PluginMetadata { astro: { - hydratedComponents: TransformResult['hydratedComponents'], - clientOnlyComponents: TransformResult['clientOnlyComponents'], - scripts: TransformResult['scripts'] - } + hydratedComponents: TransformResult['hydratedComponents']; + clientOnlyComponents: TransformResult['clientOnlyComponents']; + scripts: TransformResult['scripts']; + }; } diff --git a/packages/astro/src/vite-plugin-markdown/index.ts b/packages/astro/src/vite-plugin-markdown/index.ts index 77b70a2aa623..f8cbf8f45623 100644 --- a/packages/astro/src/vite-plugin-markdown/index.ts +++ b/packages/astro/src/vite-plugin-markdown/index.ts @@ -15,7 +15,6 @@ import { resolvePages, viteID } from '../core/util.js'; import { PAGE_SSR_SCRIPT_ID } from '../vite-plugin-scripts/index.js'; import { getFileInfo } from '../vite-plugin-utils/index.js'; - interface AstroPluginOptions { config: AstroConfig; } @@ -212,7 +211,7 @@ ${tsResult}`; const astroMetadata: AstroPluginMetadata['astro'] = { clientOnlyComponents: transformResult.clientOnlyComponents, hydratedComponents: transformResult.hydratedComponents, - scripts: transformResult.scripts + scripts: transformResult.scripts, }; return { diff --git a/packages/astro/test/astro-markdown-drafts.test.js b/packages/astro/test/astro-markdown-drafts.test.js index 4d44bdb67707..8f6c753e4c5f 100644 --- a/packages/astro/test/astro-markdown-drafts.test.js +++ b/packages/astro/test/astro-markdown-drafts.test.js @@ -19,7 +19,7 @@ describe('Astro Markdown with draft posts disabled', () => { } catch (err) { expect(err.code).to.equal('ENOENT'); } - expect(renderedDraft).to.equal(false,'Rendered a draft post'); + expect(renderedDraft).to.equal(false, 'Rendered a draft post'); }); }); diff --git a/packages/integrations/lit/CHANGELOG.md b/packages/integrations/lit/CHANGELOG.md index c8a14445384f..354729d92356 100644 --- a/packages/integrations/lit/CHANGELOG.md +++ b/packages/integrations/lit/CHANGELOG.md @@ -1,5 +1,15 @@ # @astrojs/lit +## 0.2.0 + +### Minor Changes + +- [#3625](https://github.com/withastro/astro/pull/3625) [`f5afaf24`](https://github.com/withastro/astro/commit/f5afaf24984ee7d4d6e908a7eeed17f5ca18c61e) Thanks [@matthewp](https://github.com/matthewp)! - Conform to Constructor based rendering + + This changes `@astrojs/lit` to conform to the way rendering happens in all other frameworks. Instead of using the tag name `` you use the imported constructor function, `` like you would do with any other framework. + + Support for `tag-name` syntax had to be removed due to the fact that it was a runtime feature that was not statically analyzable. To improve build performance, we have removed all runtime based component discovery. Using the imported Constructor name allows Astro to discover what components need to be built and bundled for production without ever running your file. + ## 0.1.5 ### Patch Changes diff --git a/packages/integrations/lit/package.json b/packages/integrations/lit/package.json index bd8620a0046e..546f510a0bfc 100644 --- a/packages/integrations/lit/package.json +++ b/packages/integrations/lit/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/lit", - "version": "0.1.5", + "version": "0.2.0", "description": "Use Lit components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/integrations/lit/server-shim.js b/packages/integrations/lit/server-shim.js index e4d123c37afd..9a4c7e408ed0 100644 --- a/packages/integrations/lit/server-shim.js +++ b/packages/integrations/lit/server-shim.js @@ -7,7 +7,7 @@ document.getElementsByTagName = () => []; document.currentScript = null; const ceDefine = customElements.define; -customElements.define = function(tagName, Ctr) { +customElements.define = function (tagName, Ctr) { Ctr[Symbol.for('tagName')] = tagName; return ceDefine.call(this, tagName, Ctr); -} +}; diff --git a/packages/integrations/lit/server.js b/packages/integrations/lit/server.js index df284dbeb7fa..bc8995061c0d 100644 --- a/packages/integrations/lit/server.js +++ b/packages/integrations/lit/server.js @@ -9,7 +9,7 @@ function isCustomElementTag(name) { function getCustomElementConstructor(name) { if (typeof customElements !== 'undefined' && isCustomElementTag(name)) { return customElements.get(name) || null; - } else if(typeof name === 'function') { + } else if (typeof name === 'function') { return name; } return null; @@ -28,7 +28,7 @@ async function check(Component, _props, _children) { function* render(Component, attrs, children) { let tagName = Component; - if(typeof tagName !== 'string') { + if (typeof tagName !== 'string') { tagName = Component[Symbol.for('tagName')]; } const instance = new LitElementRenderer(tagName); diff --git a/packages/integrations/lit/src/index.ts b/packages/integrations/lit/src/index.ts index bebb58ac3daf..95db13c3d0c5 100644 --- a/packages/integrations/lit/src/index.ts +++ b/packages/integrations/lit/src/index.ts @@ -18,7 +18,7 @@ function getViteConfiguration() { '@lit-labs/ssr/lib/install-global-dom-shim.js', '@lit-labs/ssr/lib/render-lit-html.js', '@lit-labs/ssr/lib/lit-element-renderer.js', - '@astrojs/lit/server.js' + '@astrojs/lit/server.js', ], }, }; diff --git a/packages/integrations/netlify/CHANGELOG.md b/packages/integrations/netlify/CHANGELOG.md index da765aed6345..f3f7587662ff 100644 --- a/packages/integrations/netlify/CHANGELOG.md +++ b/packages/integrations/netlify/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/netlify +## 0.4.5 + +### Patch Changes + +- [#3612](https://github.com/withastro/astro/pull/3612) [`fca58cfd`](https://github.com/withastro/astro/commit/fca58cfd91b68501ec82350ab023170b208d8ce7) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fix: "vpath" import error when building for netlify edge + ## 0.4.4 ### Patch Changes diff --git a/packages/integrations/netlify/package.json b/packages/integrations/netlify/package.json index aa31245d45ef..2e212b9f2db5 100644 --- a/packages/integrations/netlify/package.json +++ b/packages/integrations/netlify/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/netlify", "description": "Deploy your site to Netlify", - "version": "0.4.4", + "version": "0.4.5", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/netlify/src/integration-edge-functions.ts b/packages/integrations/netlify/src/integration-edge-functions.ts index f82e6ecc2a72..019fa531c775 100644 --- a/packages/integrations/netlify/src/integration-edge-functions.ts +++ b/packages/integrations/netlify/src/integration-edge-functions.ts @@ -109,19 +109,19 @@ export function netlifyEdgeFunctions({ dist }: NetlifyEdgeFunctionsOptions = {}) const injectPlugin: VitePlugin = { name: '@astrojs/netlify/plugin-inject', generateBundle(_options, bundle) { - if(_buildConfig.serverEntry in bundle) { + if (_buildConfig.serverEntry in bundle) { const chunk = bundle[_buildConfig.serverEntry]; - if(chunk && chunk.type === 'chunk') { + if (chunk && chunk.type === 'chunk') { chunk.code = `globalThis.process = { argv: [], env: {}, };${chunk.code}`; } } - } + }, }; updateConfig({ vite: { - plugins: [injectPlugin] - } + plugins: [injectPlugin], + }, }); }, 'astro:config:done': ({ config, setAdapter }) => { diff --git a/packages/integrations/netlify/test/edge-functions/dynamic-import.test.js b/packages/integrations/netlify/test/edge-functions/dynamic-import.test.js index b23f9b4c4879..2a261b7f670f 100644 --- a/packages/integrations/netlify/test/edge-functions/dynamic-import.test.js +++ b/packages/integrations/netlify/test/edge-functions/dynamic-import.test.js @@ -19,7 +19,7 @@ Deno.test({ const doc = new DOMParser().parseFromString(html, `text/html`); const div = doc.querySelector('#thing'); assert(div, 'div exists'); - } catch(err) { + } catch (err) { console.error(err); } finally { await close(); diff --git a/packages/integrations/sitemap/CHANGELOG.md b/packages/integrations/sitemap/CHANGELOG.md index 45d423ca457c..2eb64846dc31 100644 --- a/packages/integrations/sitemap/CHANGELOG.md +++ b/packages/integrations/sitemap/CHANGELOG.md @@ -1,5 +1,24 @@ # @astrojs/sitemap +## 0.2.0 + +### Minor Changes + +- [#3579](https://github.com/withastro/astro/pull/3579) [`1031c06f`](https://github.com/withastro/astro/commit/1031c06f9c6794d9ee6fb18c145ca5614e6f0583) Thanks [@alextim](https://github.com/alextim)! - # Key features + + - Split up your large sitemap into multiple sitemaps by custom limit. + - Ability to add sitemap specific attributes such as `lastmod` etc. + - Final output customization via JS function. + - Localization support. + - Reliability: all config options are validated. + + ## Important changes + + The integration always generates at least two files instead of one: + + - `sitemap-index.xml` - index file; + - `sitemap-{i}.xml` - actual sitemap. + ## 0.1.2 ### Patch Changes diff --git a/packages/integrations/sitemap/package.json b/packages/integrations/sitemap/package.json index d61c608b3b54..3fd3bd753032 100644 --- a/packages/integrations/sitemap/package.json +++ b/packages/integrations/sitemap/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/sitemap", "description": "Generate a sitemap for Astro", - "version": "0.1.2", + "version": "0.2.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/markdown/remark/CHANGELOG.md b/packages/markdown/remark/CHANGELOG.md index 7144cb8fb17a..2140cf1f892d 100644 --- a/packages/markdown/remark/CHANGELOG.md +++ b/packages/markdown/remark/CHANGELOG.md @@ -1,5 +1,17 @@ # @astrojs/markdown-remark +## 0.11.3 + +### Patch Changes + +- [#3638](https://github.com/withastro/astro/pull/3638) [`80c71c7c`](https://github.com/withastro/astro/commit/80c71c7c56d15dc05ec0c5a848130aad222d7d51) Thanks [@tony-sull](https://github.com/tony-sull)! - Fix: HTML comments in markdown code blocks should not be wrapped in JS comments + +* [#3612](https://github.com/withastro/astro/pull/3612) [`fca58cfd`](https://github.com/withastro/astro/commit/fca58cfd91b68501ec82350ab023170b208d8ce7) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fix: "vpath" import error when building for netlify edge + +- [#3630](https://github.com/withastro/astro/pull/3630) [`48e67fe0`](https://github.com/withastro/astro/commit/48e67fe05398dc4b1fca12db36c1b37bb341277a) Thanks [@tony-sull](https://github.com/tony-sull)! - Encodes ampersand characters in code blocks + +* [#3620](https://github.com/withastro/astro/pull/3620) [`05aa7244`](https://github.com/withastro/astro/commit/05aa72442cd4512b94abdb39623e8caa2c1839b0) Thanks [@hippotastic](https://github.com/hippotastic)! - Remove extra newlines around Markdown components + ## 0.11.2 ### Patch Changes diff --git a/packages/markdown/remark/package.json b/packages/markdown/remark/package.json index 261f6929497c..08cca86bd62e 100644 --- a/packages/markdown/remark/package.json +++ b/packages/markdown/remark/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/markdown-remark", - "version": "0.11.2", + "version": "0.11.3", "type": "module", "author": "withastro", "license": "MIT", diff --git a/packages/telemetry/CHANGELOG.md b/packages/telemetry/CHANGELOG.md index d3aaa5717b20..c6e53875a5af 100644 --- a/packages/telemetry/CHANGELOG.md +++ b/packages/telemetry/CHANGELOG.md @@ -1,5 +1,15 @@ # @astrojs/telemetry +## 0.1.3 + +### Patch Changes + +- [#3614](https://github.com/withastro/astro/pull/3614) [`9c8a7c0b`](https://github.com/withastro/astro/commit/9c8a7c0b09db2fb6925929d4efe01d5ececbf08e) Thanks [@okikio](https://github.com/okikio)! - Fix telemetry crashing astro build/dev when using optional integrations + + Telemetry will now ignore falsy integration values but will gather a count of how many integrations out of the total are now optional integrations + +* [#3614](https://github.com/withastro/astro/pull/3614) [`9c8a7c0b`](https://github.com/withastro/astro/commit/9c8a7c0b09db2fb6925929d4efe01d5ececbf08e) Thanks [@okikio](https://github.com/okikio)! - Add's optional integrations field to `@astrojs/telemetry`'s payload + ## 0.1.2 ### Patch Changes diff --git a/packages/telemetry/package.json b/packages/telemetry/package.json index 40ef39900027..ac80025a98e3 100644 --- a/packages/telemetry/package.json +++ b/packages/telemetry/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/telemetry", - "version": "0.1.2", + "version": "0.1.3", "type": "module", "types": "./dist/types/index.d.ts", "author": "withastro", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e680d29e97f1..f7bd7113c491 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -47,14 +47,14 @@ importers: examples/basics: specifiers: - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 devDependencies: astro: link:../../packages/astro examples/blog: specifiers: '@astrojs/preact': ^0.1.3 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 preact: ^10.7.3 dependencies: preact: 10.7.3 @@ -65,7 +65,7 @@ importers: examples/blog-multiple-authors: specifiers: '@astrojs/preact': ^0.1.3 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 preact: ^10.7.3 sass: ^1.52.2 dependencies: @@ -77,14 +77,14 @@ importers: examples/component: specifiers: - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 devDependencies: astro: link:../../packages/astro examples/component/demo: specifiers: '@example/my-component': workspace:* - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 devDependencies: '@example/my-component': link:../packages/my-component astro: link:../../../packages/astro @@ -100,7 +100,7 @@ importers: '@docsearch/css': ^3.1.0 '@docsearch/react': ^3.1.0 '@types/react': ^17.0.45 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 preact: ^10.7.3 react: ^17.0.2 react-dom: ^17.0.2 @@ -119,14 +119,14 @@ importers: examples/env-vars: specifiers: - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 devDependencies: astro: link:../../packages/astro examples/framework-alpine: specifiers: alpinejs: ^3.10.2 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 dependencies: alpinejs: 3.10.2 devDependencies: @@ -134,9 +134,9 @@ importers: examples/framework-lit: specifiers: - '@astrojs/lit': ^0.1.5 + '@astrojs/lit': ^0.2.0 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 lit: ^2.2.5 dependencies: '@webcomponents/template-shadowroot': 0.1.0 @@ -147,14 +147,14 @@ importers: examples/framework-multiple: specifiers: - '@astrojs/lit': ^0.1.5 + '@astrojs/lit': ^0.2.0 '@astrojs/preact': ^0.1.3 '@astrojs/react': ^0.1.3 '@astrojs/solid-js': ^0.1.4 '@astrojs/svelte': ^0.1.4 '@astrojs/vue': ^0.1.5 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 lit: ^2.2.5 preact: ^10.7.3 react: ^18.1.0 @@ -183,7 +183,7 @@ importers: examples/framework-preact: specifiers: '@astrojs/preact': ^0.1.3 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 preact: ^10.7.3 dependencies: preact: 10.7.3 @@ -196,7 +196,7 @@ importers: '@astrojs/react': ^0.1.3 '@types/react': ^18.0.10 '@types/react-dom': ^18.0.5 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 react: ^18.1.0 react-dom: ^18.1.0 dependencies: @@ -211,7 +211,7 @@ importers: examples/framework-solid: specifiers: '@astrojs/solid-js': ^0.1.4 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 solid-js: ^1.4.3 dependencies: solid-js: 1.4.3 @@ -222,7 +222,7 @@ importers: examples/framework-svelte: specifiers: '@astrojs/svelte': ^0.1.4 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 svelte: ^3.48.0 dependencies: svelte: 3.48.0 @@ -233,7 +233,7 @@ importers: examples/framework-vue: specifiers: '@astrojs/vue': ^0.1.5 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 vue: ^3.2.36 dependencies: vue: 3.2.37 @@ -243,15 +243,15 @@ importers: examples/integrations-playground: specifiers: - '@astrojs/lit': ^0.1.5 + '@astrojs/lit': ^0.2.0 '@astrojs/partytown': ^0.1.4 '@astrojs/react': ^0.1.3 - '@astrojs/sitemap': ^0.1.2 + '@astrojs/sitemap': ^0.2.0 '@astrojs/solid-js': 0.1.4 '@astrojs/tailwind': ^0.2.1 '@astrojs/turbolinks': ^0.1.3 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 lit: ^2.2.5 preact: ^10.7.3 react: ^18.1.0 @@ -280,20 +280,20 @@ importers: examples/minimal: specifiers: - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 devDependencies: astro: link:../../packages/astro examples/non-html-pages: specifiers: - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 devDependencies: astro: link:../../packages/astro examples/portfolio: specifiers: '@astrojs/preact': ^0.1.3 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 preact: ^10.7.3 sass: ^1.52.2 dependencies: @@ -307,7 +307,7 @@ importers: specifiers: '@astrojs/node': ^0.1.2 '@astrojs/svelte': ^0.1.4 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 concurrently: ^7.2.1 lightcookie: ^1.0.25 svelte: ^3.48.0 @@ -326,14 +326,14 @@ importers: examples/starter: specifiers: - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 devDependencies: astro: link:../../packages/astro examples/subpath: specifiers: '@astrojs/react': ^0.1.3 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 react: ^18.1.0 react-dom: ^18.1.0 sass: ^1.52.2 @@ -347,12 +347,12 @@ importers: examples/with-markdown: specifiers: - '@astrojs/markdown-remark': ^0.11.2 + '@astrojs/markdown-remark': ^0.11.3 '@astrojs/preact': ^0.1.3 '@astrojs/react': ^0.1.3 '@astrojs/svelte': ^0.1.4 '@astrojs/vue': ^0.1.5 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 preact: ^10.7.3 react: ^18.1.0 react-dom: ^18.1.0 @@ -374,8 +374,8 @@ importers: examples/with-markdown-plugins: specifiers: - '@astrojs/markdown-remark': ^0.11.2 - astro: ^1.0.0-beta.47 + '@astrojs/markdown-remark': ^0.11.3 + astro: ^1.0.0-beta.48 hast-util-select: 5.0.1 rehype-autolink-headings: ^6.1.1 rehype-slug: ^5.0.1 @@ -392,8 +392,8 @@ importers: examples/with-markdown-shiki: specifiers: - '@astrojs/markdown-remark': ^0.11.2 - astro: ^1.0.0-beta.47 + '@astrojs/markdown-remark': ^0.11.3 + astro: ^1.0.0-beta.48 devDependencies: '@astrojs/markdown-remark': link:../../packages/markdown/remark astro: link:../../packages/astro @@ -408,7 +408,7 @@ importers: '@nanostores/preact': ^0.1.3 '@nanostores/react': ^0.1.5 '@nanostores/vue': ^0.4.1 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 nanostores: ^0.5.12 preact: ^10.7.3 react: ^18.1.0 @@ -436,7 +436,7 @@ importers: examples/with-tailwindcss: specifiers: '@astrojs/tailwind': ^0.2.1 - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 autoprefixer: ^10.4.7 canvas-confetti: ^1.5.1 postcss: ^8.4.14 @@ -451,7 +451,7 @@ importers: examples/with-vite-plugin-pwa: specifiers: - astro: ^1.0.0-beta.47 + astro: ^1.0.0-beta.48 vite-plugin-pwa: 0.11.11 workbox-window: ^6.5.3 devDependencies: @@ -463,9 +463,9 @@ importers: specifiers: '@astrojs/compiler': ^0.16.1 '@astrojs/language-server': ^0.13.4 - '@astrojs/markdown-remark': ^0.11.2 + '@astrojs/markdown-remark': ^0.11.3 '@astrojs/prism': 0.4.1 - '@astrojs/telemetry': ^0.1.2 + '@astrojs/telemetry': ^0.1.3 '@astrojs/webapi': ^0.12.0 '@babel/core': ^7.18.2 '@babel/generator': ^7.18.2 @@ -8188,11 +8188,6 @@ packages: /debug/3.2.7: resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true dependencies: ms: 2.1.3 dev: false @@ -11109,8 +11104,6 @@ packages: debug: 3.2.7 iconv-lite: 0.4.24 sax: 1.2.4 - transitivePeerDependencies: - - supports-color dev: false /netmask/2.0.2: @@ -11194,8 +11187,6 @@ packages: rimraf: 2.7.1 semver: 5.7.1 tar: 4.4.19 - transitivePeerDependencies: - - supports-color dev: false /node-releases/2.0.5: