From 751e41cc8f6bb585beaa556b28413b4cd9b7c273 Mon Sep 17 00:00:00 2001 From: Maxim Samoilov Date: Tue, 14 Sep 2021 16:59:03 +0300 Subject: [PATCH] Do not use new ?? operator in conventional-changelog preset --- .../conventional-recommended-bump.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/conventional-changelog-e2e-tools/conventional-recommended-bump.js b/modules/conventional-changelog-e2e-tools/conventional-recommended-bump.js index 4b006741..c6cb448f 100644 --- a/modules/conventional-changelog-e2e-tools/conventional-recommended-bump.js +++ b/modules/conventional-changelog-e2e-tools/conventional-recommended-bump.js @@ -13,7 +13,7 @@ module.exports = { whatBump: (commits) => { const bumps = commits.map((commit) => { - const bodyLines = (commit.body ?? '').toLowerCase().split('\n').filter(Boolean) + const bodyLines = (commit.body || '').toLowerCase().split('\n').filter(Boolean) if (bodyLines.includes('bump major')) { return levels.major }