@adobe/helix-html-pipeline 5.0.0 → 5.0.1

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
+ ## [5.0.1](https://github.com/adobe/helix-html-pipeline/compare/v5.0.0...v5.0.1) (2023-09-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * properly handle empty string ([#395](https://github.com/adobe/helix-html-pipeline/issues/395)) ([daac492](https://github.com/adobe/helix-html-pipeline/commit/daac49224642eeb69951ee68256fcb7f264f4f0c))
7
+
1
8
  # [5.0.0](https://github.com/adobe/helix-html-pipeline/compare/v4.1.5...v5.0.0) (2023-09-09)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -53,7 +53,7 @@
53
53
  "hast-util-to-html": "8.0.4",
54
54
  "hast-util-to-string": "2.0.0",
55
55
  "hastscript": "7.2.0",
56
- "jose": "4.14.5",
56
+ "jose": "4.14.6",
57
57
  "mdast-util-to-hast": "12.3.0",
58
58
  "mdast-util-to-string": "4.0.0",
59
59
  "mime": "3.0.0",
@@ -76,16 +76,16 @@
76
76
  "@semantic-release/git": "10.0.1",
77
77
  "@semantic-release/npm": "10.0.5",
78
78
  "c8": "8.0.1",
79
- "eslint": "8.48.0",
79
+ "eslint": "8.49.0",
80
80
  "eslint-import-resolver-exports": "1.0.0-beta.5",
81
81
  "eslint-plugin-header": "3.1.1",
82
82
  "eslint-plugin-import": "2.28.1",
83
- "esmock": "2.3.8",
83
+ "esmock": "2.4.1",
84
84
  "husky": "8.0.3",
85
85
  "js-yaml": "4.1.0",
86
86
  "jsdom": "22.1.0",
87
87
  "junit-report-builder": "3.0.1",
88
- "lint-staged": "13.3.0",
88
+ "lint-staged": "14.0.1",
89
89
  "mocha": "10.2.0",
90
90
  "mocha-multi-reporters": "1.5.1",
91
91
  "mocha-suppress-logs": "0.3.1",
@@ -160,8 +160,10 @@ export default function extractMetaData(state, req) {
160
160
 
161
161
  // prune empty values and explicit "" strings from sheet based metadata
162
162
  Object.entries(metaConfig).forEach(([name, value]) => {
163
- if (!value || value === '""') {
163
+ if (!value) {
164
164
  delete metaConfig[name];
165
+ } else if (value === '""') {
166
+ metaConfig[name] = undefined;
165
167
  }
166
168
  });
167
169