Skip to content

Commit

Permalink
chore(release): v4.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sebdvd committed Oct 14, 2022
1 parent e3c47cb commit 3a4d5b6
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 5 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cancelable-promise",
"version": "4.3.0",
"version": "4.3.1",
"description": "A simple cancelable promise",
"keywords": [
"promise",
Expand Down
37 changes: 35 additions & 2 deletions scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand All @@ -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}'`
);
}
}
Expand Down

0 comments on commit 3a4d5b6

Please sign in to comment.