From 7f493f2fd1ab19fdcf833b1733a335cad9036a26 Mon Sep 17 00:00:00 2001 From: Thai Pangsakulyanont Date: Fri, 30 Aug 2019 03:42:18 +0700 Subject: [PATCH 1/2] Add date suffix to CHANGELOG entries --- CHANGELOG.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0e0a9730..aaaeecd90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ [@thakkaryash94]: https://github.com/thakkaryash94 [@hajimehoshi]: https://github.com/hajimehoshi - +## v44.3.0 (2019-08-29) ### Internals @@ -23,7 +23,7 @@ [#538]: https://github.com/bemusic/bemuse/pull/538 [#539]: https://github.com/bemusic/bemuse/pull/539 -## v44.2.4 +## v44.2.4 (2019-08-29) ### Internals @@ -33,7 +33,7 @@ [#536]: https://github.com/bemusic/bemuse/pull/536 -## v44.1.0 +## v44.1.0 (2019-08-29) ### New stuff @@ -60,7 +60,7 @@ [#533]: https://github.com/bemusic/bemuse/pull/533 [#534]: https://github.com/bemusic/bemuse/pull/534 -## v44 +## v44 (2019-08-27) This release contains no new features, just a lot of codebase modernizations. @@ -105,7 +105,7 @@ This release contains no new features, just a lot of codebase modernizations. [#525]: https://github.com/bemusic/bemuse/pull/525 [#524]: https://github.com/bemusic/bemuse/pull/524 -## v43 +## v43 (2018-11-11) This release contains multiple contributions from the community! Many thanks to everyone who helped contributing to this release. @@ -153,7 +153,7 @@ from our contributors. [#510]: https://github.com/bemusic/bemuse/pull/510 [#511]: https://github.com/bemusic/bemuse/pull/511 -## v42 +## v42 (2018-08-08) This update took a really long time as I (dtinth) was busy with other things in life. Also, this release contains many internal changes to the code From 4a19395cc9e0a74ad3dae6c4816474ac96578847 Mon Sep 17 00:00:00 2001 From: Thai Pangsakulyanont Date: Fri, 30 Aug 2019 03:42:52 +0700 Subject: [PATCH 2/2] Fix the script to add date to changelog when removing pre-release version suffix --- bin/strip-changelog-pre-version-postfix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/strip-changelog-pre-version-postfix b/bin/strip-changelog-pre-version-postfix index 3fedc8ebc..a5c3fc58c 100755 --- a/bin/strip-changelog-pre-version-postfix +++ b/bin/strip-changelog-pre-version-postfix @@ -1,4 +1,8 @@ #!/usr/bin/env node const fs = require('fs') const data = fs.readFileSync('CHANGELOG.md', 'utf8') -fs.writeFileSync('CHANGELOG.md', data.replace(/(## v[\d.]+)-pre\.\d+/g, '')) +const date = new Date().toJSON().split('T')[0] +fs.writeFileSync( + 'CHANGELOG.md', + data.replace(/(## v[\d.]+)-pre\.\d+/g, `$1 (${date})`) +)