Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bin/roll-changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ if (!newVersion) {
process.exit(1);
}
const now = new Date();
const formattedDate = `${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()}`;
const padNumber = (num: number) => num.toString().padStart(2, '0');

const formattedDate = `${now.getFullYear()}-${padNumber(now.getMonth() + 1)}-${padNumber(
now.getDate(),
)}`;

const path: string = 'docs/CHANGELOG.md';
const pattern: string = '## [Unreleased]';
Expand Down
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Changed

* fix: pads date numbers in changelog automation. E.G. 2024-3-1 -> 2024-03-01
* feat: allow passing `DBCreateOptions` to `IdbStorage` constructor

## [1.1.1] - 2024-03-19
Expand Down
56 changes: 28 additions & 28 deletions package-lock.json

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