From 5f16a4c524393ef993ab62d2f6d42ba4cae756a0 Mon Sep 17 00:00:00 2001 From: "Houston (Bot)" <108291165+astrobot-houston@users.noreply.github.com> Date: Thu, 9 Jan 2025 01:46:30 -0800 Subject: [PATCH] [ci] release (#12919) Co-authored-by: github-actions[bot] --- .changeset/afraid-peas-smash.md | 5 -- .changeset/curvy-readers-invent.md | 5 -- .changeset/famous-gorillas-confess.md | 5 -- .changeset/green-buses-add.md | 5 -- .changeset/heavy-yaks-brake.md | 5 -- .changeset/light-buttons-compare.md | 5 -- .changeset/old-clouds-act.md | 5 -- .changeset/pink-years-warn.md | 5 -- .changeset/rich-terms-sit.md | 5 -- .changeset/seven-feet-juggle.md | 5 -- .changeset/strong-cobras-own.md | 5 -- .changeset/strong-scissors-sip.md | 5 -- .changeset/sweet-zoos-move.md | 5 -- .changeset/tame-pianos-approve.md | 5 -- .changeset/tiny-plums-crash.md | 40 ---------------- examples/basics/package.json | 2 +- examples/blog/package.json | 4 +- examples/component/package.json | 2 +- examples/container-with-vitest/package.json | 2 +- examples/framework-alpine/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/hackernews/package.json | 2 +- examples/integration/package.json | 2 +- examples/minimal/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/ssr/package.json | 2 +- examples/starlog/package.json | 2 +- examples/toolbar-app/package.json | 2 +- examples/with-markdoc/package.json | 2 +- examples/with-mdx/package.json | 4 +- examples/with-nanostores/package.json | 2 +- examples/with-tailwindcss/package.json | 4 +- examples/with-vitest/package.json | 2 +- packages/astro/CHANGELOG.md | 26 +++++++++++ packages/astro/package.json | 2 +- packages/integrations/mdx/CHANGELOG.md | 8 ++++ packages/integrations/mdx/package.json | 2 +- packages/underscore-redirects/CHANGELOG.md | 41 ++++++++++++++++ packages/underscore-redirects/package.json | 2 +- pnpm-lock.yaml | 52 ++++++++++----------- 45 files changed, 130 insertions(+), 165 deletions(-) delete mode 100644 .changeset/afraid-peas-smash.md delete mode 100644 .changeset/curvy-readers-invent.md delete mode 100644 .changeset/famous-gorillas-confess.md delete mode 100644 .changeset/green-buses-add.md delete mode 100644 .changeset/heavy-yaks-brake.md delete mode 100644 .changeset/light-buttons-compare.md delete mode 100644 .changeset/old-clouds-act.md delete mode 100644 .changeset/pink-years-warn.md delete mode 100644 .changeset/rich-terms-sit.md delete mode 100644 .changeset/seven-feet-juggle.md delete mode 100644 .changeset/strong-cobras-own.md delete mode 100644 .changeset/strong-scissors-sip.md delete mode 100644 .changeset/sweet-zoos-move.md delete mode 100644 .changeset/tame-pianos-approve.md delete mode 100644 .changeset/tiny-plums-crash.md diff --git a/.changeset/afraid-peas-smash.md b/.changeset/afraid-peas-smash.md deleted file mode 100644 index 72cf6c1dca1b..000000000000 --- a/.changeset/afraid-peas-smash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes a bug where Astro attempted to decode a request URL multiple times, resulting in an unexpected behaviour when decoding the character `%` diff --git a/.changeset/curvy-readers-invent.md b/.changeset/curvy-readers-invent.md deleted file mode 100644 index c19d9794493d..000000000000 --- a/.changeset/curvy-readers-invent.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Improves the config error for invalid combinations of `context` and `access` properties under `env.schema` diff --git a/.changeset/famous-gorillas-confess.md b/.changeset/famous-gorillas-confess.md deleted file mode 100644 index 7e12528681a0..000000000000 --- a/.changeset/famous-gorillas-confess.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes an issue where `Astro.locals` coming from an adapter weren't available in the `404.astro`, when using the `astro dev` command, diff --git a/.changeset/green-buses-add.md b/.changeset/green-buses-add.md deleted file mode 100644 index 472f8493528a..000000000000 --- a/.changeset/green-buses-add.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Ensures image styles are not imported unless experimental responsive images are enabled diff --git a/.changeset/heavy-yaks-brake.md b/.changeset/heavy-yaks-brake.md deleted file mode 100644 index 50f2a1f88e3f..000000000000 --- a/.changeset/heavy-yaks-brake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/underscore-redirects': minor ---- - -Updates how the output is determined in `createRedirectsFromAstroRoutes`. Since `v0.5.0`, the output would use the `buildOutput` property and `config.output` as a fallback. It no longer uses this fallback. diff --git a/.changeset/light-buttons-compare.md b/.changeset/light-buttons-compare.md deleted file mode 100644 index 2797486dd484..000000000000 --- a/.changeset/light-buttons-compare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Improves remote image cache efficiency by separating image data and metadata into a binary and sidecar JSON file. diff --git a/.changeset/old-clouds-act.md b/.changeset/old-clouds-act.md deleted file mode 100644 index d8d6e4d8b8d7..000000000000 --- a/.changeset/old-clouds-act.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/mdx': patch ---- - -Fixes a bug that caused Image component to be imported on MDX pages that did not include images diff --git a/.changeset/pink-years-warn.md b/.changeset/pink-years-warn.md deleted file mode 100644 index aa2c6ccd920e..000000000000 --- a/.changeset/pink-years-warn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Processes markdown with empty body as remark and rehype plugins may add additional content or frontmatter diff --git a/.changeset/rich-terms-sit.md b/.changeset/rich-terms-sit.md deleted file mode 100644 index 40258bf952c3..000000000000 --- a/.changeset/rich-terms-sit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes a bug where the logged output path does not match the actual output path when using `build.format: 'preserve'` diff --git a/.changeset/seven-feet-juggle.md b/.changeset/seven-feet-juggle.md deleted file mode 100644 index df23ed777e91..000000000000 --- a/.changeset/seven-feet-juggle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Allows configuring Astro modules TypeScript compilation with the `vite.esbuild` config diff --git a/.changeset/strong-cobras-own.md b/.changeset/strong-cobras-own.md deleted file mode 100644 index 5b92cc40a03e..000000000000 --- a/.changeset/strong-cobras-own.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/mdx': patch ---- - -Makes internal `check()` function a no-op to allow faster component renders and prevent React 19 component warnings diff --git a/.changeset/strong-scissors-sip.md b/.changeset/strong-scissors-sip.md deleted file mode 100644 index 7bb1aa985929..000000000000 --- a/.changeset/strong-scissors-sip.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes a bug where content collections would sometimes appear empty when first running astro dev diff --git a/.changeset/sweet-zoos-move.md b/.changeset/sweet-zoos-move.md deleted file mode 100644 index 7c027a94483a..000000000000 --- a/.changeset/sweet-zoos-move.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes a bug where users could use `Astro.request.headers` during a rewrite inside prerendered routes. This an invalid behaviour, and now Astro will show a warning if this happens. diff --git a/.changeset/tame-pianos-approve.md b/.changeset/tame-pianos-approve.md deleted file mode 100644 index 136c1dae93f6..000000000000 --- a/.changeset/tame-pianos-approve.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes an issue where the use of `Astro.rewrite` would trigger the invalid use of `Astro.request.headers` diff --git a/.changeset/tiny-plums-crash.md b/.changeset/tiny-plums-crash.md deleted file mode 100644 index 815a4a354268..000000000000 --- a/.changeset/tiny-plums-crash.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -'@astrojs/underscore-redirects': minor ---- - -Updates the input requirements of `createRedirectsFromAstroRoutes`: - -- `routeToDynamicTargetMap` keys are `IntegrationResolvedRoute` instead of `IntegrationRouteData` (obtained from the `astro:routes:resolved` hook) -- There's a new `assets` property, that can be obtained from the `astro:build:done` hook - -```js -function myIntegration() { - let routes - let buildOutput - let config - - return { - name: "my-integration", - hooks: { - "astro:routes:resolved": (params) => { - routes = params.routes - }, - "astro:config:done": (params) => { - buildOutput = params.buildOutput - config = params.config - }, - "astro:build:done": (params) => { - const redirects = createRedirectsFromAstroRoutes({ - config, - buildOutput, - routeToDynamicTargetMap: new Map( - routes.map(route => [route, '']) - ), - dir: params.dir, - assets: params.assets - }) - } - } - } -} -``` \ No newline at end of file diff --git a/examples/basics/package.json b/examples/basics/package.json index 967abed475c6..86e92001eb5f 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^5.1.3" + "astro": "^5.1.4" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index c107628a0f8e..361d8c4ce784 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -10,9 +10,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^4.0.3", + "@astrojs/mdx": "^4.0.4", "@astrojs/rss": "^4.0.11", "@astrojs/sitemap": "^3.2.1", - "astro": "^5.1.3" + "astro": "^5.1.4" } } diff --git a/examples/component/package.json b/examples/component/package.json index c1c9647c49e1..7df86e4fea83 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^5.1.3" + "astro": "^5.1.4" }, "peerDependencies": { "astro": "^4.0.0 || ^5.0.0" diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json index cb65e951439f..c8fc2d779c55 100644 --- a/examples/container-with-vitest/package.json +++ b/examples/container-with-vitest/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/react": "^4.1.2", - "astro": "^5.1.3", + "astro": "^5.1.4", "react": "^18.3.1", "react-dom": "^18.3.1", "vitest": "^3.0.0-beta.3" diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 601893430ec1..09f1cfa78828 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -13,6 +13,6 @@ "@astrojs/alpinejs": "^0.4.1", "@types/alpinejs": "^3.13.10", "alpinejs": "^3.14.3", - "astro": "^5.1.3" + "astro": "^5.1.4" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 20c1a4e6c0ce..7a8eb53d5f35 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -17,7 +17,7 @@ "@astrojs/vue": "^5.0.4", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", - "astro": "^5.1.3", + "astro": "^5.1.4", "preact": "^10.24.3", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 4e8c40cca6be..27427889612a 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -12,7 +12,7 @@ "dependencies": { "@astrojs/preact": "^4.0.1", "@preact/signals": "^2.0.0", - "astro": "^5.1.3", + "astro": "^5.1.4", "preact": "^10.24.3" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index dec5febb83aa..668855cc3340 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -13,7 +13,7 @@ "@astrojs/react": "^4.1.2", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", - "astro": "^5.1.3", + "astro": "^5.1.4", "react": "^18.3.1", "react-dom": "^18.3.1" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index d8ea6cbd365f..8c48e8ea5c62 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@astrojs/solid-js": "^5.0.1", - "astro": "^5.1.3", + "astro": "^5.1.4", "solid-js": "^1.9.3" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index c057f0c92280..537e09a0a084 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@astrojs/svelte": "^7.0.3", - "astro": "^5.1.3", + "astro": "^5.1.4", "svelte": "^5.1.16" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 90baf26e3bf8..c23be7bf4150 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@astrojs/vue": "^5.0.4", - "astro": "^5.1.3", + "astro": "^5.1.4", "vue": "^3.5.12" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index a46b11676d22..cb419876950c 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -11,6 +11,6 @@ }, "dependencies": { "@astrojs/node": "^9.0.0", - "astro": "^5.1.3" + "astro": "^5.1.4" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index a244cc68b311..dbc0c3707344 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^5.1.3" + "astro": "^5.1.4" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/minimal/package.json b/examples/minimal/package.json index d6db60936420..6507f23b6c61 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^5.1.3" + "astro": "^5.1.4" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 953f09541e77..e60fef851162 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^5.1.3" + "astro": "^5.1.4" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 8987637643ae..69ab024f7222 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/node": "^9.0.0", "@astrojs/svelte": "^7.0.3", - "astro": "^5.1.3", + "astro": "^5.1.4", "svelte": "^5.1.16" } } diff --git a/examples/starlog/package.json b/examples/starlog/package.json index bcda7e06d584..7e24e4e3dc0f 100644 --- a/examples/starlog/package.json +++ b/examples/starlog/package.json @@ -9,7 +9,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^5.1.3", + "astro": "^5.1.4", "sass": "^1.80.6", "sharp": "^0.33.3" } diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json index 2f1cd3212907..e88d0e344e5d 100644 --- a/examples/toolbar-app/package.json +++ b/examples/toolbar-app/package.json @@ -16,6 +16,6 @@ }, "devDependencies": { "@types/node": "^18.17.8", - "astro": "^5.1.3" + "astro": "^5.1.4" } } diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index b78680856a28..4d142dfc3fb1 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -11,6 +11,6 @@ }, "dependencies": { "@astrojs/markdoc": "^0.12.4", - "astro": "^5.1.3" + "astro": "^5.1.4" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index b6db3fafab59..2c182551ae17 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -10,9 +10,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^4.0.3", + "@astrojs/mdx": "^4.0.4", "@astrojs/preact": "^4.0.1", - "astro": "^5.1.3", + "astro": "^5.1.4", "preact": "^10.24.3" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 260ad7f4442d..778c92604baf 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -12,7 +12,7 @@ "dependencies": { "@astrojs/preact": "^4.0.1", "@nanostores/preact": "^0.5.2", - "astro": "^5.1.3", + "astro": "^5.1.4", "nanostores": "^0.11.3", "preact": "^10.24.3" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 3201c8f8b3b7..16ff36acca9c 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -10,10 +10,10 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^4.0.3", + "@astrojs/mdx": "^4.0.4", "@astrojs/tailwind": "^5.1.4", "@types/canvas-confetti": "^1.6.4", - "astro": "^5.1.3", + "astro": "^5.1.4", "autoprefixer": "^10.4.20", "canvas-confetti": "^1.9.3", "postcss": "^8.4.49", diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index db6125f369e5..6daff2ea0965 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -11,7 +11,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^5.1.3", + "astro": "^5.1.4", "vitest": "^3.0.0-beta.3" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 0fcfffb5c58d..8880243cc362 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,31 @@ # astro +## 5.1.4 + +### Patch Changes + +- [#12927](https://github.com/withastro/astro/pull/12927) [`ad2a752`](https://github.com/withastro/astro/commit/ad2a752662946e3a80849605f073812b06adf632) Thanks [@ematipico](https://github.com/ematipico)! - Fixes a bug where Astro attempted to decode a request URL multiple times, resulting in an unexpected behaviour when decoding the character `%` + +- [#12912](https://github.com/withastro/astro/pull/12912) [`0c0c66b`](https://github.com/withastro/astro/commit/0c0c66bf0df23ab5a9bd2f147e303d8397d3222e) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Improves the config error for invalid combinations of `context` and `access` properties under `env.schema` + +- [#12935](https://github.com/withastro/astro/pull/12935) [`3d47e6b`](https://github.com/withastro/astro/commit/3d47e6baff7a17d3ef09630b0d90362baef41f97) Thanks [@AirBorne04](https://github.com/AirBorne04)! - Fixes an issue where `Astro.locals` coming from an adapter weren't available in the `404.astro`, when using the `astro dev` command, + +- [#12925](https://github.com/withastro/astro/pull/12925) [`44841fc`](https://github.com/withastro/astro/commit/44841fc281f8920b32f4b4a94deefeb3ad069cf3) Thanks [@ascorbic](https://github.com/ascorbic)! - Ensures image styles are not imported unless experimental responsive images are enabled + +- [#12926](https://github.com/withastro/astro/pull/12926) [`8e64bb7`](https://github.com/withastro/astro/commit/8e64bb727f78f24b26fd1c0b1289ab1ccd611114) Thanks [@oliverlynch](https://github.com/oliverlynch)! - Improves remote image cache efficiency by separating image data and metadata into a binary and sidecar JSON file. + +- [#12920](https://github.com/withastro/astro/pull/12920) [`8b9d530`](https://github.com/withastro/astro/commit/8b9d53037879cd7ca7bee4d20b4e6f08e984a7df) Thanks [@bluwy](https://github.com/bluwy)! - Processes markdown with empty body as remark and rehype plugins may add additional content or frontmatter + +- [#12918](https://github.com/withastro/astro/pull/12918) [`fd12a26`](https://github.com/withastro/astro/commit/fd12a26ac6012c6b8a26f5a178e1bb46092a1806) Thanks [@lameuler](https://github.com/lameuler)! - Fixes a bug where the logged output path does not match the actual output path when using `build.format: 'preserve'` + +- [#12676](https://github.com/withastro/astro/pull/12676) [`2ffc0fc`](https://github.com/withastro/astro/commit/2ffc0fcab78b658a6ee73a8f8b291802093dce5e) Thanks [@koyopro](https://github.com/koyopro)! - Allows configuring Astro modules TypeScript compilation with the `vite.esbuild` config + +- [#12938](https://github.com/withastro/astro/pull/12938) [`dbb04f3`](https://github.com/withastro/astro/commit/dbb04f3c04ce868b5c985c848a2c40a3761a6dad) Thanks [@ascorbic](https://github.com/ascorbic)! - Fixes a bug where content collections would sometimes appear empty when first running astro dev + +- [#12937](https://github.com/withastro/astro/pull/12937) [`30edb6d`](https://github.com/withastro/astro/commit/30edb6d9d0aaf28bea1fec73879f63fe134507d0) Thanks [@ematipico](https://github.com/ematipico)! - Fixes a bug where users could use `Astro.request.headers` during a rewrite inside prerendered routes. This an invalid behaviour, and now Astro will show a warning if this happens. + +- [#12937](https://github.com/withastro/astro/pull/12937) [`30edb6d`](https://github.com/withastro/astro/commit/30edb6d9d0aaf28bea1fec73879f63fe134507d0) Thanks [@ematipico](https://github.com/ematipico)! - Fixes an issue where the use of `Astro.rewrite` would trigger the invalid use of `Astro.request.headers` + ## 5.1.3 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 466e93cdd8fa..99a66279a639 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "5.1.3", + "version": "5.1.4", "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/mdx/CHANGELOG.md b/packages/integrations/mdx/CHANGELOG.md index c4c1986f9f2b..b5a80c2651ab 100644 --- a/packages/integrations/mdx/CHANGELOG.md +++ b/packages/integrations/mdx/CHANGELOG.md @@ -1,5 +1,13 @@ # @astrojs/mdx +## 4.0.4 + +### Patch Changes + +- [#12921](https://github.com/withastro/astro/pull/12921) [`aeb7e1a`](https://github.com/withastro/astro/commit/aeb7e1ac11ebf87847ed2fac89072aa2b4ac2aae) Thanks [@ascorbic](https://github.com/ascorbic)! - Fixes a bug that caused Image component to be imported on MDX pages that did not include images + +- [#12913](https://github.com/withastro/astro/pull/12913) [`9a3b48c`](https://github.com/withastro/astro/commit/9a3b48c5c3e8f597159454f06c5a0ce8e709bc50) Thanks [@bluwy](https://github.com/bluwy)! - Makes internal `check()` function a no-op to allow faster component renders and prevent React 19 component warnings + ## 4.0.3 ### Patch Changes diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index 2d49ad2c57fc..c6503514adc0 100644 --- a/packages/integrations/mdx/package.json +++ b/packages/integrations/mdx/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/mdx", "description": "Add support for MDX pages in your Astro site", - "version": "4.0.3", + "version": "4.0.4", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/underscore-redirects/CHANGELOG.md b/packages/underscore-redirects/CHANGELOG.md index 101586a255cf..b384c1d8072f 100644 --- a/packages/underscore-redirects/CHANGELOG.md +++ b/packages/underscore-redirects/CHANGELOG.md @@ -1,5 +1,46 @@ # @astrojs/underscore-redirects +## 0.6.0 + +### Minor Changes + +- [#12924](https://github.com/withastro/astro/pull/12924) [`3caa337`](https://github.com/withastro/astro/commit/3caa337f0ba917ad677fd8438b7045abc5d29e1c) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Updates how the output is determined in `createRedirectsFromAstroRoutes`. Since `v0.5.0`, the output would use the `buildOutput` property and `config.output` as a fallback. It no longer uses this fallback. + +- [#12924](https://github.com/withastro/astro/pull/12924) [`3caa337`](https://github.com/withastro/astro/commit/3caa337f0ba917ad677fd8438b7045abc5d29e1c) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Updates the input requirements of `createRedirectsFromAstroRoutes`: + + - `routeToDynamicTargetMap` keys are `IntegrationResolvedRoute` instead of `IntegrationRouteData` (obtained from the `astro:routes:resolved` hook) + - There's a new `assets` property, that can be obtained from the `astro:build:done` hook + + ```js + function myIntegration() { + let routes; + let buildOutput; + let config; + + return { + name: 'my-integration', + hooks: { + 'astro:routes:resolved': (params) => { + routes = params.routes; + }, + 'astro:config:done': (params) => { + buildOutput = params.buildOutput; + config = params.config; + }, + 'astro:build:done': (params) => { + const redirects = createRedirectsFromAstroRoutes({ + config, + buildOutput, + routeToDynamicTargetMap: new Map(routes.map((route) => [route, ''])), + dir: params.dir, + assets: params.assets, + }); + }, + }, + }; + } + ``` + ## 0.5.1 ### Patch Changes diff --git a/packages/underscore-redirects/package.json b/packages/underscore-redirects/package.json index aae990792da1..9bcce285ce7f 100644 --- a/packages/underscore-redirects/package.json +++ b/packages/underscore-redirects/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/underscore-redirects", "description": "Utilities to generate _redirects files in Astro projects", - "version": "0.5.1", + "version": "0.6.0", "type": "module", "author": "withastro", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 15f9f2303831..6acbc3c634a6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -142,13 +142,13 @@ importers: examples/basics: dependencies: astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro examples/blog: dependencies: '@astrojs/mdx': - specifier: ^4.0.3 + specifier: ^4.0.4 version: link:../../packages/integrations/mdx '@astrojs/rss': specifier: ^4.0.11 @@ -157,13 +157,13 @@ importers: specifier: ^3.2.1 version: link:../../packages/integrations/sitemap astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro examples/component: devDependencies: astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro examples/container-with-vitest: @@ -172,7 +172,7 @@ importers: specifier: ^4.1.2 version: link:../../packages/integrations/react astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -203,7 +203,7 @@ importers: specifier: ^3.14.3 version: 3.14.3 astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro examples/framework-multiple: @@ -230,7 +230,7 @@ importers: specifier: ^18.3.1 version: 18.3.1 astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -260,7 +260,7 @@ importers: specifier: ^2.0.0 version: 2.0.0(preact@10.25.1) astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -278,7 +278,7 @@ importers: specifier: ^18.3.1 version: 18.3.1 astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -293,7 +293,7 @@ importers: specifier: ^5.0.1 version: link:../../packages/integrations/solid astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro solid-js: specifier: ^1.9.3 @@ -305,7 +305,7 @@ importers: specifier: ^7.0.3 version: link:../../packages/integrations/svelte astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro svelte: specifier: ^5.1.16 @@ -317,7 +317,7 @@ importers: specifier: ^5.0.4 version: link:../../packages/integrations/vue astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro vue: specifier: ^3.5.12 @@ -329,25 +329,25 @@ importers: specifier: ^9.0.0 version: 9.0.0(astro@packages+astro) astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro examples/integration: devDependencies: astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro examples/minimal: dependencies: astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro examples/portfolio: dependencies: astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro examples/ssr: @@ -359,7 +359,7 @@ importers: specifier: ^7.0.3 version: link:../../packages/integrations/svelte astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro svelte: specifier: ^5.1.16 @@ -368,7 +368,7 @@ importers: examples/starlog: dependencies: astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro sass: specifier: ^1.80.6 @@ -383,7 +383,7 @@ importers: specifier: ^18.17.8 version: 18.19.50 astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro examples/with-markdoc: @@ -392,19 +392,19 @@ importers: specifier: ^0.12.4 version: link:../../packages/integrations/markdoc astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro examples/with-mdx: dependencies: '@astrojs/mdx': - specifier: ^4.0.3 + specifier: ^4.0.4 version: link:../../packages/integrations/mdx '@astrojs/preact': specifier: ^4.0.1 version: link:../../packages/integrations/preact astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -419,7 +419,7 @@ importers: specifier: ^0.5.2 version: 0.5.2(nanostores@0.11.3)(preact@10.25.1) astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro nanostores: specifier: ^0.11.3 @@ -431,7 +431,7 @@ importers: examples/with-tailwindcss: dependencies: '@astrojs/mdx': - specifier: ^4.0.3 + specifier: ^4.0.4 version: link:../../packages/integrations/mdx '@astrojs/tailwind': specifier: ^5.1.4 @@ -440,7 +440,7 @@ importers: specifier: ^1.6.4 version: 1.6.4 astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro autoprefixer: specifier: ^10.4.20 @@ -458,7 +458,7 @@ importers: examples/with-vitest: dependencies: astro: - specifier: ^5.1.3 + specifier: ^5.1.4 version: link:../../packages/astro vitest: specifier: ^3.0.0-beta.3