Skip to content

updateChangelog

Updates the changelog file with new version information and commit messages.

This function reads the current changelog, appends new entries for the latest version, and prompts the user to review the changes.

Import:

import { updateChangelog } from 'obsidian-dev-utils/script-utils/version';

Signature:

function updateChangelog(newVersion: string, options: UpdateChangelogOptions): Promise<void>

Parameters:

ParameterTypeDescription
newVersionstringThe new version number to be added to the changelog.
optionsUpdateChangelogOptionsThe UpdateChangelogOptions controlling the changelog review behavior.

Returns: Promise<void> — A Promise that resolves when the changelog update is complete.


Links to this page: