From 70d4af653a36ad72dd3c576428e1d398b25a800b Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 23 Jun 2024 19:55:39 +0200 Subject: [PATCH] fix(aidocs_classes): Fix typo in INextCommitObject interface and update date format in changelog generation. --- changelog.md | 63 +++++++++++++++++++------------------ ts/00_commitinfo_data.ts | 2 +- ts/aidocs_classes/commit.ts | 2 +- 3 files changed, 35 insertions(+), 32 deletions(-) diff --git a/changelog.md b/changelog.md index d9d4cff..2052b40 100644 --- a/changelog.md +++ b/changelog.md @@ -1,37 +1,40 @@ # Changelog -## 23.06.2024 - 1.3.1 - {{nextVersionScope}} -fix(aidocs_classes): Fix typo in INextCommitObject interface -{{nextVersionDetails}} +## 23.06.2024 - 1.3.2 - fix(aidocs_classes) +Fix typo in INextCommitObject interface and update date format in changelog generation. +- Corrected typo in INextCommitObject interface within the aidocs_classes directory. +- Updated date format in changelog generation from European format to hyphened sortable format. ```markdown -## [1.2.4] -### Fixed -- Refactor logger initialization to use commitinfo data +## 2023-xx-xx - 1.3.1 - aidocs_classes +Fix typo in INextCommitObject interface +- Corrected a minor typo in the INextCommitObject interface for consistency. -## 1.3.0 -feat(core): Added smarttime dependency and improved changelog generation +## 2023-xx-xx - 1.3.0 - core +Added smarttime dependency and improved changelog generation +- Introduced smarttime dependency to the core module. +- Enhanced changelog generation to be more efficient. + +## 2023-xx-xx - 1.2.4 - logging +Refactor logger initialization to use commitinfo data +- Logger initialization now utilizes commitinfo data for better context and accuracy. + +## 2023-xx-xx - 1.2.3 - aidocs +Fix bug in AiDoc class causing undefined token handling +- Resolved an issue in the AiDoc class where undefined tokens were not being handled correctly. + +## 2023-xx-xx - 1.2.1 - core +Fixed usage of plugins in project context and readme generation +- Improved the usage of plugins within the project context. +- Fixed issues related to README.md generation. + +## 2023-xx-xx - 1.2.0 - aidocs_classes +Enhance changelog generation by supporting complete generation in the absence of previous changelog files +- Updated changelog generation to support complete generation even when previous changelog files are absent. + +## 2023-xx-xx - 1.1.42 - aidoc_classes +Improve commit message generation by handling empty diffs and updating changelog instructions +- Enhanced commit message generation to handle empty diffs. +- Updated instructions for changelog generation for better clarity. ``` - -## [1.2.4] - 1.2.4 -fix(logging): Refactor logger initialization to use commitinfo data - -## [1.2.3] -fix(aidocs): Fix bug in AiDoc class causing undefined token handling - -## [1.2.2] - 2023-11-20 -### Fixed -- Fix bug in AiDoc class causing undefined token handling - -## [1.2.1] - 2023-11-10 -### Fixed -- Fixed usage of plugins in project context and readme generation - -## [1.2.0] - 2023-11-01 -### Added -- Enhance changelog generation by supporting complete generation in the absence of previous changelog files - -## [1.1.42] - 2023-10-30 -### Fixed -- Improve commit message generation by handling empty diffs and updating changelog instructions diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 3519fdd..11e1920 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tsdoc', - version: '1.3.1', + version: '1.3.2', description: 'An advanced TypeScript documentation tool using AI to generate and enhance documentation for TypeScript projects.' } diff --git a/ts/aidocs_classes/commit.ts b/ts/aidocs_classes/commit.ts index 1cdf218..0abe9b5 100644 --- a/ts/aidocs_classes/commit.ts +++ b/ts/aidocs_classes/commit.ts @@ -108,7 +108,7 @@ ${commitMessages.join('\n')} } let oldChangelog = previousChangelog.contents.toString().replace('# Changelog\n\n', ''); - let newDateString = new plugins.smarttime.ExtendedDate().exportToEuropeanDate(); + let newDateString = new plugins.smarttime.ExtendedDate().exportToHyphedSortableDate(); let newChangelog = `# Changelog\n\n${ `## ${newDateString} - {{nextVersion}} - {{nextVersionScope}} {{nextVersionMessage}}