diff --git a/changelog.md b/changelog.md index e544119..75a5a21 100644 --- a/changelog.md +++ b/changelog.md @@ -1,11 +1,16 @@ # Changelog +## 2024-06-23 - 1.3.9 - fix(aidoc) +Fix changelog generation by properly stripping markdown code fences + +- Corrected the changelog generation code to ensure markdown code fences are properly stripped. + + ## 2024-06-23 - 1.3.8 - fix(changelog) Fix changelog generation by properly stripping markdown code fences - Corrected the changelog generation code to ensure markdown code fences are properly stripped. - ## 2024-06-23 - 1.3.7 - fix(aidoc) Update to include package-lock.json in uncommitted changes check diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 80c80c2..70d4974 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.8', + version: '1.3.9', 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 1334c54..ebfb31e 100644 --- a/ts/aidocs_classes/commit.ts +++ b/ts/aidocs_classes/commit.ts @@ -110,7 +110,7 @@ ${JSON.stringify(commitMessages, null, 2)} previousChangelog = await plugins.smartfile.SmartFile.fromString( previousChangelogPath, - result2.message.replace('```markdown', '').replace('```', ''), + result2.message.replaceAll('```markdown', '').replaceAll('```', ''), 'utf8' ); } @@ -120,8 +120,7 @@ ${JSON.stringify(commitMessages, null, 2)} let newChangelog = `# Changelog\n\n${`## ${newDateString} - {{nextVersion}} - {{nextVersionScope}} {{nextVersionMessage}} -{{nextVersionDetails}} -`}\n\n${oldChangelog}`; +{{nextVersionDetails}}`}\n\n${oldChangelog}`; resultObject.changelog = newChangelog; return resultObject;