fix(docs-site): pin @astrojs/sitemap to ~3.2.1 for Astro 4 compat
Validate Flux manifests / kustomize-build (pull_request) Successful in 21s

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.
This commit is contained in:
2026-06-20 17:35:59 -04:00
parent d3f7222db1
commit a374419400
2 changed files with 31 additions and 15 deletions
+29 -13
View File
@@ -9,7 +9,7 @@
"version": "1.0.0", "version": "1.0.0",
"dependencies": { "dependencies": {
"@astrojs/mdx": "^3.0.0", "@astrojs/mdx": "^3.0.0",
"@astrojs/sitemap": "^3.1.0", "@astrojs/sitemap": "~3.2.1",
"astro": "^4.8.0", "astro": "^4.8.0",
"redoc": "^2.1.5" "redoc": "^2.1.5"
}, },
@@ -96,14 +96,23 @@
} }
}, },
"node_modules/@astrojs/sitemap": { "node_modules/@astrojs/sitemap": {
"version": "3.7.3", "version": "3.2.1",
"resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.7.3.tgz", "resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.2.1.tgz",
"integrity": "sha512-f8euLVsyeAmAkSm/1M2Kb8sL8byQmfgbvBNaHFItCheTj/IpiJYSEWVcqDHZ/yEHxiS7+w87mQkzwZaPHmk5GA==", "integrity": "sha512-uxMfO8f7pALq0ADL6Lk68UV6dNYjJ2xGUzyjjVj60JLBs5a6smtlkBYv3tQ0DzoqwS7c9n4FUx5lgv0yPo/fgA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"sitemap": "^9.0.0", "sitemap": "^8.0.0",
"stream-replace-string": "^2.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": { "node_modules/@astrojs/telemetry": {
@@ -6628,24 +6637,30 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/sitemap": { "node_modules/sitemap": {
"version": "9.0.1", "version": "8.0.3",
"resolved": "https://registry.npmjs.org/sitemap/-/sitemap-9.0.1.tgz", "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-8.0.3.tgz",
"integrity": "sha512-S6hzjGJSG3d6if0YoF5kTyeRJvia6FSTBroE5fQ0bu1QNxyJqhhinfUsXi9fH3MgtXODWvwo2BDyQSnhPQ88uQ==", "integrity": "sha512-9Ew1tR2WYw8RGE2XLy7GjkusvYXy8Rg6y8TYuBuQMfIEdGcWoJpY2Wr5DzsEiL/TKCw56+YKTCCUHglorEYK+A==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@types/node": "^24.9.2", "@types/node": "^17.0.5",
"@types/sax": "^1.2.1", "@types/sax": "^1.2.1",
"arg": "^5.0.0", "arg": "^5.0.0",
"sax": "^1.4.1" "sax": "^1.4.1"
}, },
"bin": { "bin": {
"sitemap": "dist/esm/cli.js" "sitemap": "dist/cli.js"
}, },
"engines": { "engines": {
"node": ">=20.19.5", "node": ">=14.0.0",
"npm": ">=10.8.2" "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": { "node_modules/slugify": {
"version": "1.4.7", "version": "1.4.7",
"resolved": "https://registry.npmjs.org/slugify/-/slugify-1.4.7.tgz", "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", "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
"integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==", "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
"license": "MIT", "license": "MIT",
"peer": true,
"funding": { "funding": {
"url": "https://github.com/sponsors/colinhacks" "url": "https://github.com/sponsors/colinhacks"
} }
+2 -2
View File
@@ -8,9 +8,9 @@
"preview": "astro preview" "preview": "astro preview"
}, },
"dependencies": { "dependencies": {
"astro": "^4.8.0",
"@astrojs/mdx": "^3.0.0", "@astrojs/mdx": "^3.0.0",
"@astrojs/sitemap": "^3.1.0", "@astrojs/sitemap": "~3.2.1",
"astro": "^4.8.0",
"redoc": "^2.1.5" "redoc": "^2.1.5"
}, },
"devDependencies": { "devDependencies": {