Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Replace Object.keys with getKnownPropertyNames
  • Loading branch information
MajorLift committed Feb 8, 2024
commit da39a58a55571cf4e8a03e28096aa12c02c75f77
4 changes: 2 additions & 2 deletions src/update-changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { strict as assert } from 'assert';
import execa from 'execa';

import type Changelog from './changelog';
import { Formatter } from './changelog';
import { Formatter, getKnownPropertyNames } from './changelog';
import { ChangeCategory, Version } from './constants';
import { parseChangelog } from './parse-changelog';
import { PackageRename } from './shared-types';
Expand Down Expand Up @@ -290,7 +290,7 @@ export async function updateChangelog({
}

const hasUnreleasedChangesToRelease =
Object.keys(changelog.getUnreleasedChanges()).length > 0;
getKnownPropertyNames(changelog.getUnreleasedChanges()).length > 0;
if (hasUnreleasedChangesToRelease) {
changelog.migrateUnreleasedChangesToRelease(currentVersion);
}
Expand Down