From 3a4d5b6a373601da308b4445ff39b267ff7df02d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20David=20=28seb=29?= <50570955+alk-sdavid@users.noreply.github.com> Date: Fri, 14 Oct 2022 16:08:34 +0200 Subject: [PATCH] chore(release): v4.3.1 --- CHANGELOG.md | 18 ++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- scripts.js | 37 +++++++++++++++++++++++++++++++++++-- 4 files changed, 56 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92e5e7d0..28f91c9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ +## [4.3.1](https://github.com/alkemics/CancelablePromise/releases/tag/v4.3.1) (2022-10-14) + +Noticeable changes: + +- fix(type): add toStringTag symbol to class fields to be compatible with Promise type + +Other changes: + +- chore(release): update preparation commit message +- chore(deps-dev): bump @babel/preset-env from 7.19.3 to 7.19.4 +- chore(deps-dev): bump terser from 5.15.0 to 5.15.1 +- chore(deps-dev): bump core-js from 3.25.3 to 3.25.5 +- chore(deps-dev): bump @babel/cli from 7.18.10 to 7.19.3 +- chore(deps-dev): bump @babel/core from 7.19.1 to 7.19.3 +- chore(deps-dev): bump @babel/preset-typescript from 7.17.12 to 7.18.6 +- fix(cypress): migrate cypress config file for v10 +- fix(tests): fix tests for jest v28 + ## [4.3.0](https://github.com/alkemics/CancelablePromise/releases/tag/v4.3.0) (2022-03-14) - chore(deps-dev): bump @typescript-eslint/eslint-plugin diff --git a/package-lock.json b/package-lock.json index fbad7148..ee610bd9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cancelable-promise", - "version": "4.3.0", + "version": "4.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "cancelable-promise", - "version": "4.3.0", + "version": "4.3.1", "license": "MIT", "devDependencies": { "@babel/cli": "~7.19.3", diff --git a/package.json b/package.json index c7ba80b0..e65899c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cancelable-promise", - "version": "4.3.0", + "version": "4.3.1", "description": "A simple cancelable promise", "keywords": [ "promise", diff --git a/scripts.js b/scripts.js index a0e89c85..4b649803 100644 --- a/scripts.js +++ b/scripts.js @@ -53,7 +53,40 @@ async function prepareRelease() { const { stdout } = await exec( `git log --oneline --pretty=format:'- %s' origin/master..HEAD` ); - const commits = stdout.toString().trim(); + const dict = {}; + const commits = stdout + .toString() + .trim() + .replace(/(\r\n)|\r|\n/g, '\n') + .split(/\n+/g) + .filter((c) => { + if (c.includes('Merge pull request #')) { + return false; + } + if (c.includes('chore(deps-dev): bump')) { + if ( + [ + '@babel/cli', + '@babel/core', + '@babel/preset-env', + '@babel/preset-typescript', + 'core-js', + 'terser', + ].some((dep) => { + const result = !(dep in dict) && c.includes(dep); + if (result) { + dict[dep] = true; + } + return result; + }) + ) { + return true; + } + return false; + } + return true; + }) + .join('\n'); let changelog = await fs.readFile('CHANGELOG.md', { encoding: 'utf8' }); changelog = `## [${newVersion}](${url}) (${date}) @@ -67,7 +100,7 @@ ${changelog}`; `git commit -m "chore(release): update changelog for v${newVersion}" --no-verify` ); await exec( - `npm version --no-commit-hooks ${newVersion} -m '[RELEASE] v${newVersion}'` + `npm version --no-commit-hooks ${newVersion} -m 'chore(release) v${newVersion}'` ); } }