@adobe/helix-html-pipeline 6.27.20 → 6.27.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [6.27.21](https://github.com/adobe/helix-html-pipeline/compare/v6.27.20...v6.27.21) (2026-02-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * ignore wrong lastModified in sitemap.json ([#1019](https://github.com/adobe/helix-html-pipeline/issues/1019)) ([08e557f](https://github.com/adobe/helix-html-pipeline/commit/08e557f28b63b2b9e196bd5c994301c6f1389932))
7
+
1
8
  ## [6.27.20](https://github.com/adobe/helix-html-pipeline/compare/v6.27.19...v6.27.20) (2026-02-10)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.27.20",
3
+ "version": "6.27.21",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -43,9 +43,10 @@ async function generateSitemap(state) {
43
43
  const host = partition === 'preview'
44
44
  ? (previewHost || `${ref}--${repo}--${owner}.aem.page`)
45
45
  : (prodHost || liveHost || `${ref}--${repo}--${owner}.aem.live`);
46
+ const safeNumber = (num) => parseInt(num, 10) || 0;
46
47
  const loc = ({ path, lastModified }) => ` <url>
47
48
  <loc>https://${host}${escape(path)}</loc>
48
- <lastmod>${new Date(lastModified * 1000).toISOString().substring(0, 10)}</lastmod>
49
+ <lastmod>${new Date(safeNumber(lastModified) * 1000).toISOString().substring(0, 10)}</lastmod>
49
50
  </url>`;
50
51
  const xml = [
51
52
  '<?xml version="1.0" encoding="utf-8"?>',