From a37441940017cab116927d8c2ebfd4aeca7db2fb Mon Sep 17 00:00:00 2001 From: Wyatt Date: Sat, 20 Jun 2026 17:35:59 -0400 Subject: [PATCH] fix(docs-site): pin @astrojs/sitemap to ~3.2.1 for Astro 4 compat sitemap 3.7.3 reads opts.routes from astro:build:done, which only exists in Astro 5; on Astro 4.16 it is undefined and crashes the build with 'Cannot read properties of undefined (reading reduce)'. Pin to the 3.2.x line and lock it so the docs-site build completes. --- docs-site/package-lock.json | 42 +++++++++++++++++++++++++------------ docs-site/package.json | 4 ++-- 2 files changed, 31 insertions(+), 15 deletions(-) diff --git a/docs-site/package-lock.json b/docs-site/package-lock.json index 2dbed6e..3913977 100644 --- a/docs-site/package-lock.json +++ b/docs-site/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "dependencies": { "@astrojs/mdx": "^3.0.0", - "@astrojs/sitemap": "^3.1.0", + "@astrojs/sitemap": "~3.2.1", "astro": "^4.8.0", "redoc": "^2.1.5" }, @@ -96,14 +96,23 @@ } }, "node_modules/@astrojs/sitemap": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.7.3.tgz", - "integrity": "sha512-f8euLVsyeAmAkSm/1M2Kb8sL8byQmfgbvBNaHFItCheTj/IpiJYSEWVcqDHZ/yEHxiS7+w87mQkzwZaPHmk5GA==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.2.1.tgz", + "integrity": "sha512-uxMfO8f7pALq0ADL6Lk68UV6dNYjJ2xGUzyjjVj60JLBs5a6smtlkBYv3tQ0DzoqwS7c9n4FUx5lgv0yPo/fgA==", "license": "MIT", "dependencies": { - "sitemap": "^9.0.0", + "sitemap": "^8.0.0", "stream-replace-string": "^2.0.0", - "zod": "^4.3.6" + "zod": "^3.23.8" + } + }, + "node_modules/@astrojs/sitemap/node_modules/zod": { + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" } }, "node_modules/@astrojs/telemetry": { @@ -6628,24 +6637,30 @@ "license": "MIT" }, "node_modules/sitemap": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-9.0.1.tgz", - "integrity": "sha512-S6hzjGJSG3d6if0YoF5kTyeRJvia6FSTBroE5fQ0bu1QNxyJqhhinfUsXi9fH3MgtXODWvwo2BDyQSnhPQ88uQ==", + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-8.0.3.tgz", + "integrity": "sha512-9Ew1tR2WYw8RGE2XLy7GjkusvYXy8Rg6y8TYuBuQMfIEdGcWoJpY2Wr5DzsEiL/TKCw56+YKTCCUHglorEYK+A==", "license": "MIT", "dependencies": { - "@types/node": "^24.9.2", + "@types/node": "^17.0.5", "@types/sax": "^1.2.1", "arg": "^5.0.0", "sax": "^1.4.1" }, "bin": { - "sitemap": "dist/esm/cli.js" + "sitemap": "dist/cli.js" }, "engines": { - "node": ">=20.19.5", - "npm": ">=10.8.2" + "node": ">=14.0.0", + "npm": ">=6.0.0" } }, + "node_modules/sitemap/node_modules/@types/node": { + "version": "17.0.45", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", + "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==", + "license": "MIT" + }, "node_modules/slugify": { "version": "1.4.7", "resolved": "https://registry.npmjs.org/slugify/-/slugify-1.4.7.tgz", @@ -7524,6 +7539,7 @@ "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz", "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==", "license": "MIT", + "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/docs-site/package.json b/docs-site/package.json index a86f588..594f7ec 100644 --- a/docs-site/package.json +++ b/docs-site/package.json @@ -8,9 +8,9 @@ "preview": "astro preview" }, "dependencies": { - "astro": "^4.8.0", "@astrojs/mdx": "^3.0.0", - "@astrojs/sitemap": "^3.1.0", + "@astrojs/sitemap": "~3.2.1", + "astro": "^4.8.0", "redoc": "^2.1.5" }, "devDependencies": {