@ckeditor/ckeditor5-dev-changelog 55.6.0 → 55.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/index.d.ts +6 -6
  2. package/dist/index.js +1217 -1384
  3. package/dist/tasks/generatechangelogformonorepository.d.ts +3 -7
  4. package/dist/tasks/generatechangelogforsinglerepository.d.ts +2 -6
  5. package/dist/template.d.ts +5 -9
  6. package/dist/template.js +96 -106
  7. package/dist/types.d.ts +97 -99
  8. package/dist/utils/asyncarray.d.ts +31 -31
  9. package/dist/utils/commitchanges.d.ts +2 -6
  10. package/dist/utils/composechangelog.d.ts +16 -20
  11. package/dist/utils/composereleasesummary.d.ts +17 -17
  12. package/dist/utils/constants.d.ts +34 -38
  13. package/dist/utils/detectreleasechannel.d.ts +3 -7
  14. package/dist/utils/determinenextversion.d.ts +14 -18
  15. package/dist/utils/displaychanges.d.ts +13 -17
  16. package/dist/utils/filtervisiblesections.d.ts +7 -11
  17. package/dist/utils/findchangelogentrypaths.d.ts +8 -12
  18. package/dist/utils/findpackages.d.ts +7 -11
  19. package/dist/utils/generatechangelog.d.ts +9 -13
  20. package/dist/utils/getdateformatted.d.ts +2 -6
  21. package/dist/utils/getreleasetype.d.ts +4 -4
  22. package/dist/utils/groupentriesbysection.d.ts +7 -11
  23. package/dist/utils/internalerror.d.ts +6 -7
  24. package/dist/utils/linktogithubuser.d.ts +8 -8
  25. package/dist/utils/loginfo.d.ts +8 -8
  26. package/dist/utils/modifychangelog.d.ts +5 -9
  27. package/dist/utils/movechangelogentryfiles.d.ts +5 -9
  28. package/dist/utils/normalizeentry.d.ts +4 -4
  29. package/dist/utils/parsechangelogentries.d.ts +3 -7
  30. package/dist/utils/promptreleasetype.d.ts +3 -7
  31. package/dist/utils/providenewversion.d.ts +15 -19
  32. package/dist/utils/removechangelogentryfiles.d.ts +4 -8
  33. package/dist/utils/sortentriesbyscopeanddate.d.ts +9 -9
  34. package/dist/utils/truncatechangelog.d.ts +2 -6
  35. package/dist/utils/useraborterror.d.ts +6 -7
  36. package/dist/utils/validateentry.d.ts +13 -13
  37. package/dist/utils/validateinputversion.d.ts +6 -10
  38. package/package.json +2 -2
@@ -1,23 +1,23 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { ReleaseInfo, SectionsWithEntries } from '../types.js';
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md.
4
+ */
5
+ import type { ReleaseInfo, SectionsWithEntries } from "../types.js";
6
6
  type ComposeReleaseSummaryOptions = {
7
- sections: SectionsWithEntries;
8
- currentVersion: string;
9
- newVersion: string;
10
- packagesMetadata: Map<string, string>;
7
+ sections: SectionsWithEntries;
8
+ currentVersion: string;
9
+ newVersion: string;
10
+ packagesMetadata: Map<string, string>;
11
11
  };
12
12
  /**
13
- * Generates a categorized summary of packages released in the new version,
14
- * including new packages, major, minor, feature, and other releases.
15
- *
16
- * This function analyzes changelog sections and package metadata to:
17
- * * Identify new packages introduced with version '0.0.1'.
18
- * * Group packages by release type based on the changelog sections: major, minor, and features.
19
- * * Exclude packages already accounted for in higher-priority release categories from lower ones.
20
- * * Provide a fallback category for "other releases" that don't fall into the above groups.
21
- */
13
+ * Generates a categorized summary of packages released in the new version,
14
+ * including new packages, major, minor, feature, and other releases.
15
+ *
16
+ * This function analyzes changelog sections and package metadata to:
17
+ * * Identify new packages introduced with version '0.0.1'.
18
+ * * Group packages by release type based on the changelog sections: major, minor, and features.
19
+ * * Exclude packages already accounted for in higher-priority release categories from lower ones.
20
+ * * Provide a fallback category for "other releases" that don't fall into the above groups.
21
+ */
22
22
  export declare function composeReleaseSummary(options: ComposeReleaseSummaryOptions): Promise<Array<ReleaseInfo>>;
23
23
  export {};
@@ -1,7 +1,3 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
1
  export declare const CHANGELOG_FILE = "CHANGELOG.md";
6
2
  export declare const CHANGELOG_HEADER = "Changelog\n=========";
7
3
  export declare const NPM_URL = "https://www.npmjs.com/package";
@@ -10,49 +6,49 @@ export declare const CHANGESET_DIRECTORY = ".changelog";
10
6
  export declare const PRE_RELEASE_DIRECTORY = "pre-release";
11
7
  export declare const TEMPLATE_FILE: string;
12
8
  export declare const SECTIONS: {
13
- readonly major: {
14
- readonly title: "MAJOR BREAKING CHANGES [ℹ️](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/versioning-policy.html#major-and-minor-breaking-changes)";
15
- readonly titleInLogs: "MAJOR BREAKING CHANGES";
16
- };
17
- readonly minor: {
18
- readonly title: "MINOR BREAKING CHANGES [ℹ️](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/versioning-policy.html#major-and-minor-breaking-changes)";
19
- readonly titleInLogs: "MINOR BREAKING CHANGES";
20
- };
21
- readonly breaking: {
22
- readonly title: "BREAKING CHANGES";
23
- };
24
- readonly feature: {
25
- readonly title: "Features";
26
- };
27
- readonly fix: {
28
- readonly title: "Bug fixes";
29
- };
30
- readonly other: {
31
- readonly title: "Other changes";
32
- };
33
- readonly warning: {
34
- readonly title: "Incorrect values";
35
- readonly excludeInChangelog: true;
36
- };
37
- readonly invalid: {
38
- readonly title: "Invalid files";
39
- readonly excludeInChangelog: true;
40
- };
9
+ readonly major: {
10
+ readonly title: string;
11
+ readonly titleInLogs: "MAJOR BREAKING CHANGES";
12
+ };
13
+ readonly minor: {
14
+ readonly title: string;
15
+ readonly titleInLogs: "MINOR BREAKING CHANGES";
16
+ };
17
+ readonly breaking: {
18
+ readonly title: "BREAKING CHANGES";
19
+ };
20
+ readonly feature: {
21
+ readonly title: "Features";
22
+ };
23
+ readonly fix: {
24
+ readonly title: "Bug fixes";
25
+ };
26
+ readonly other: {
27
+ readonly title: "Other changes";
28
+ };
29
+ readonly warning: {
30
+ readonly title: "Incorrect values";
31
+ readonly excludeInChangelog: true;
32
+ };
33
+ readonly invalid: {
34
+ readonly title: "Invalid files";
35
+ readonly excludeInChangelog: true;
36
+ };
41
37
  };
42
38
  export declare const ISSUE_SLUG_PATTERN: RegExp;
43
39
  export declare const ISSUE_PATTERN: RegExp;
44
40
  export declare const ISSUE_URL_PATTERN: RegExp;
45
41
  export declare const NICK_NAME_PATTERN: RegExp;
46
42
  export declare const TYPES: readonly [{
47
- readonly name: "Feature";
43
+ readonly name: "Feature";
48
44
  }, {
49
- readonly name: "Other";
45
+ readonly name: "Other";
50
46
  }, {
51
- readonly name: "Fix";
47
+ readonly name: "Fix";
52
48
  }, {
53
- readonly name: "Major breaking change";
49
+ readonly name: "Major breaking change";
54
50
  }, {
55
- readonly name: "Minor breaking change";
51
+ readonly name: "Minor breaking change";
56
52
  }, {
57
- readonly name: "Breaking change";
53
+ readonly name: "Breaking change";
58
54
  }];
@@ -1,9 +1,5 @@
1
+ import type { ReleaseChannel } from "../types.js";
1
2
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { ReleaseChannel } from '../types.js';
6
- /**
7
- * Detects the release channel from a version string.
8
- */
3
+ * Detects the release channel from a version string.
4
+ */
9
5
  export declare function detectReleaseChannel(version: string, promotePrerelease?: boolean): ReleaseChannel;
@@ -1,22 +1,18 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { ChangelogReleaseType, SectionsWithEntries } from '../types.js';
1
+ import type { ChangelogReleaseType, SectionsWithEntries } from "../types.js";
6
2
  export type DetermineNextVersionOptions = {
7
- sections: SectionsWithEntries;
8
- currentVersion: string;
9
- packageName: string;
10
- nextVersion: string | undefined;
11
- releaseType: ChangelogReleaseType;
3
+ sections: SectionsWithEntries;
4
+ currentVersion: string;
5
+ packageName: string;
6
+ nextVersion: string | undefined;
7
+ releaseType: ChangelogReleaseType;
12
8
  };
13
9
  /**
14
- * Determines the next version for a single package or a mono-repository setup based on
15
- * the change sections, user input, and semantic versioning rules.
16
- *
17
- * The function handles:
18
- * * Automatic version bump calculation from categorized changelog sections (major, minor, patch).
19
- * * Version bump for prerelease channels.
20
- * * User prompts for version input when no explicit version is provided.
21
- */
10
+ * Determines the next version for a single package or a mono-repository setup based on
11
+ * the change sections, user input, and semantic versioning rules.
12
+ *
13
+ * The function handles:
14
+ * * Automatic version bump calculation from categorized changelog sections (major, minor, patch).
15
+ * * Version bump for prerelease channels.
16
+ * * User prompts for version input when no explicit version is provided.
17
+ */
22
18
  export declare function determineNextVersion(options: DetermineNextVersionOptions): Promise<string>;
@@ -1,22 +1,18 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { SectionsWithEntries, TransformScope } from '../types.js';
1
+ import type { SectionsWithEntries, TransformScope } from "../types.js";
6
2
  type DisplayChangesOptions = {
7
- sections: SectionsWithEntries;
8
- isSinglePackage: boolean;
9
- transformScope?: TransformScope;
3
+ sections: SectionsWithEntries;
4
+ isSinglePackage: boolean;
5
+ transformScope?: TransformScope;
10
6
  };
11
7
  /**
12
- * Displays a formatted summary of all changelog entries grouped by sections (e.g., Features, Fixes, Breaking changes).
13
- *
14
- * This function:
15
- * * Lists all non-empty changelog sections with appropriate formatting.
16
- * * Differentiates between valid and invalid entries using visual indicators (`+` for valid, `x` for invalid).
17
- * * Supports both mono-repository and single package repositories through the `isSinglePackage` flag.
18
- * * Applies a transformation to scope names using the `transformScope` callback for a mono-repository setup.
19
- * * Outputs a helpful legend for interpreting the entry indicators.
20
- */
8
+ * Displays a formatted summary of all changelog entries grouped by sections (e.g., Features, Fixes, Breaking changes).
9
+ *
10
+ * This function:
11
+ * * Lists all non-empty changelog sections with appropriate formatting.
12
+ * * Differentiates between valid and invalid entries using visual indicators (`+` for valid, `x` for invalid).
13
+ * * Supports both mono-repository and single package repositories through the `isSinglePackage` flag.
14
+ * * Applies a transformation to scope names using the `transformScope` callback for a mono-repository setup.
15
+ * * Outputs a helpful legend for interpreting the entry indicators.
16
+ */
21
17
  export declare function displayChanges(options: DisplayChangesOptions): void;
22
18
  export {};
@@ -1,13 +1,9 @@
1
+ import type { Section, SectionsWithEntries } from "../types.js";
1
2
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { Section, SectionsWithEntries } from '../types.js';
6
- /**
7
- * Filters and returns only those changelog sections that:
8
- * * Have at least one entry.
9
- * * Are not explicitly marked to be excluded from the final changelog.
10
- *
11
- * This is used to determine which sections should be displayed or processed for changelog generation.
12
- */
3
+ * Filters and returns only those changelog sections that:
4
+ * * Have at least one entry.
5
+ * * Are not explicitly marked to be excluded from the final changelog.
6
+ *
7
+ * This is used to determine which sections should be displayed or processed for changelog generation.
8
+ */
13
9
  export declare function filterVisibleSections(sectionsWithEntries: SectionsWithEntries): Array<Section>;
@@ -1,17 +1,13 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { ChangesetPathsWithGithubUrl, LinkFilter, RepositoryConfig } from '../types.js';
1
+ import type { ChangesetPathsWithGithubUrl, LinkFilter, RepositoryConfig } from "../types.js";
6
2
  type FindChangelogEntryPathsOptions = {
7
- cwd: string;
8
- externalRepositories: Array<RepositoryConfig>;
9
- linkFilter?: LinkFilter;
10
- shouldSkipLinks?: boolean;
11
- includeSubdirectories?: boolean;
3
+ cwd: string;
4
+ externalRepositories: Array<RepositoryConfig>;
5
+ linkFilter?: LinkFilter;
6
+ shouldSkipLinks?: boolean;
7
+ includeSubdirectories?: boolean;
12
8
  };
13
9
  /**
14
- * Gathers changelog entry file paths (Markdown files) from the main repository and any configured external repositories.
15
- */
10
+ * Gathers changelog entry file paths (Markdown files) from the main repository and any configured external repositories.
11
+ */
16
12
  export declare function findChangelogEntryPaths(options: FindChangelogEntryPathsOptions): Promise<Array<ChangesetPathsWithGithubUrl>>;
17
13
  export {};
@@ -1,16 +1,12 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { RepositoryConfig } from '../types.js';
1
+ import type { RepositoryConfig } from "../types.js";
6
2
  type FindPackagesOptions = {
7
- cwd: string;
8
- packagesDirectory: string | null;
9
- externalRepositories: Array<RepositoryConfig>;
10
- shouldIgnoreRootPackage?: boolean;
3
+ cwd: string;
4
+ packagesDirectory: string | null;
5
+ externalRepositories: Array<RepositoryConfig>;
6
+ shouldIgnoreRootPackage?: boolean;
11
7
  };
12
8
  /**
13
- * Retrieves the names and versions of packages found in both the main repository and any external repositories.
14
- */
9
+ * Retrieves the names and versions of packages found in both the main repository and any external repositories.
10
+ */
15
11
  export declare function findPackages(options: FindPackagesOptions): Promise<Map<string, string>>;
16
12
  export {};
@@ -1,18 +1,14 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { ConfigBase, GenerateChangelogEntryPoint, MonoRepoConfigBase } from '../types.js';
1
+ import type { ConfigBase, GenerateChangelogEntryPoint, MonoRepoConfigBase } from "../types.js";
6
2
  type GenerateChangelogConfig = ConfigBase & MonoRepoConfigBase & {
7
- isSinglePackage: boolean;
3
+ isSinglePackage: boolean;
8
4
  };
9
5
  /**
10
- * Entry point for generating a changelog with error handling.
11
- *
12
- * This wrapper ensures that:
13
- * * Interruptions from the user (e.g., Ctrl+C or intentional aborts) exit silently with code 0.
14
- * * Expected and unexpected internal errors are logged to the console and exit with code 1.
15
- * * Other unexpected errors are re-thrown for higher-level handling.
16
- */
6
+ * Entry point for generating a changelog with error handling.
7
+ *
8
+ * This wrapper ensures that:
9
+ * * Interruptions from the user (e.g., Ctrl+C or intentional aborts) exit silently with code 0.
10
+ * * Expected and unexpected internal errors are logged to the console and exit with code 1.
11
+ * * Other unexpected errors are re-thrown for higher-level handling.
12
+ */
17
13
  export declare const generateChangelog: GenerateChangelogEntryPoint<GenerateChangelogConfig>;
18
14
  export {};
@@ -1,8 +1,4 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- /**
6
- * Formats a date string `YYYY-MM-DD` into a human-readable format for the changelog.
7
- */
2
+ * Formats a date string `YYYY-MM-DD` into a human-readable format for the changelog.
3
+ */
8
4
  export declare function getDateFormatted(date: string): string;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import { type ChangelogReleaseType } from '../types.js';
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md.
4
+ */
5
+ import { type ChangelogReleaseType } from "../types.js";
6
6
  export declare function getReleaseType(currentVersion: string, nextVersion: string): ChangelogReleaseType;
@@ -1,16 +1,12 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { ParsedFile, SectionsWithEntries, TransformScope } from '../types.js';
1
+ import type { ParsedFile, SectionsWithEntries, TransformScope } from "../types.js";
6
2
  type GroupEntriesBySectionOptions = {
7
- files: Array<ParsedFile>;
8
- packagesMetadata: Map<string, string>;
9
- transformScope?: TransformScope;
10
- isSinglePackage: boolean;
3
+ files: Array<ParsedFile>;
4
+ packagesMetadata: Map<string, string>;
5
+ transformScope?: TransformScope;
6
+ isSinglePackage: boolean;
11
7
  };
12
8
  /**
13
- * This function categorizes changelog entries based on their types and packages.
14
- */
9
+ * This function categorizes changelog entries based on their types and packages.
10
+ */
15
11
  export declare function groupEntriesBySection(options: GroupEntriesBySectionOptions): SectionsWithEntries;
16
12
  export {};
@@ -1,9 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md.
4
+ */
5
5
  /**
6
- * Custom error class for handling validation errors in the changelog generation process.
7
- */
8
- export declare class InternalError extends Error {
9
- }
6
+ * Custom error class for handling validation errors in the changelog generation process.
7
+ */
8
+ export declare class InternalError extends Error {}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md.
4
+ */
5
5
  /**
6
- * This function enhances changelog entries by linking contributor usernames to their GitHub profiles.
7
- *
8
- * It searches for occurrences of GitHub-style mentions (e.g., @username) in the given comment string
9
- * and transforms them into Markdown links pointing to the corresponding GitHub user page.
10
- */
6
+ * This function enhances changelog entries by linking contributor usernames to their GitHub profiles.
7
+ *
8
+ * It searches for occurrences of GitHub-style mentions (e.g., @username) in the given comment string
9
+ * and transforms them into Markdown links pointing to the corresponding GitHub user page.
10
+ */
11
11
  export declare function linkToGitHubUser(comment: string): string;
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md.
4
+ */
5
5
  /**
6
- * This function provides a consistent logging format for the changelog generation process.
7
- *
8
- * It logs the given text to the console, optionally indenting it by a specified number of levels.
9
- */
6
+ * This function provides a consistent logging format for the changelog generation process.
7
+ *
8
+ * It logs the given text to the console, optionally indenting it by a specified number of levels.
9
+ */
10
10
  export declare function logInfo(text: string, { indent }?: {
11
- indent: number;
11
+ indent: number;
12
12
  }): void;
@@ -1,11 +1,7 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- /**
6
- * This function writes the generated changelog content to the repository's changelog file.
7
- *
8
- * It reads the existing changelog (if any), inserts the new changelog content after the defined header,
9
- * writes the updated content back to the changelog file, and truncates the changelog to keep a manageable length.
10
- */
2
+ * This function writes the generated changelog content to the repository's changelog file.
3
+ *
4
+ * It reads the existing changelog (if any), inserts the new changelog content after the defined header,
5
+ * writes the updated content back to the changelog file, and truncates the changelog to keep a manageable length.
6
+ */
11
7
  export declare function modifyChangelog(newChangelog: string, cwd: string): Promise<void>;
@@ -1,11 +1,7 @@
1
+ import type { ChangesetPathsWithGithubUrl } from "../types.js";
1
2
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { ChangesetPathsWithGithubUrl } from '../types.js';
6
- /**
7
- * Moves changelog entry files to cycle-specific directories instead of deleting them.
8
- * This preserves the history of changes across prerelease cycles.
9
- * Returns an array of entry paths that were modified by the move operation
10
- */
3
+ * Moves changelog entry files to cycle-specific directories instead of deleting them.
4
+ * This preserves the history of changes across prerelease cycles.
5
+ * Returns an array of entry paths that were modified by the move operation
6
+ */
11
7
  export declare function moveChangelogEntryFiles(entryPaths: Array<ChangesetPathsWithGithubUrl>): Promise<Array<ChangesetPathsWithGithubUrl>>;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { FileMetadata, ParsedFile } from '../types.js';
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md.
4
+ */
5
+ import type { FileMetadata, ParsedFile } from "../types.js";
6
6
  export declare function normalizeEntry(entry: ParsedFile<Partial<FileMetadata>>, isSinglePackage: boolean): ParsedFile;
@@ -1,9 +1,5 @@
1
+ import type { ChangesetPathsWithGithubUrl, ParsedFile } from "../types.js";
1
2
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { ChangesetPathsWithGithubUrl, ParsedFile } from '../types.js';
6
- /**
7
- * Reads and processes input files to extract changelog entries.
8
- */
3
+ * Reads and processes input files to extract changelog entries.
4
+ */
9
5
  export declare function parseChangelogEntries(entryPaths: Array<ChangesetPathsWithGithubUrl>, isSinglePackage: boolean): Promise<Array<ParsedFile>>;
@@ -1,9 +1,5 @@
1
+ import type { ChangelogReleaseType } from "../types.js";
1
2
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { ChangelogReleaseType } from '../types.js';
6
- /**
7
- * Prompts the user to choose between latest or prerelease
8
- */
3
+ * Prompts the user to choose between latest or prerelease
4
+ */
9
5
  export declare function promptReleaseType(currentVersion: string): Promise<ChangelogReleaseType>;
@@ -1,24 +1,20 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import { type ReleaseType } from 'semver';
6
- import type { ChangelogReleaseType, ReleaseChannel } from '../types.js';
1
+ import { type ReleaseType } from "semver";
2
+ import type { ChangelogReleaseType, ReleaseChannel } from "../types.js";
7
3
  type Options = {
8
- packageName: string;
9
- version: string;
10
- bumpType: ReleaseType;
11
- releaseChannel: ReleaseChannel;
12
- indentLevel?: number;
13
- displayValidationWarning: boolean;
14
- releaseType: ChangelogReleaseType;
4
+ packageName: string;
5
+ version: string;
6
+ bumpType: ReleaseType;
7
+ releaseChannel: ReleaseChannel;
8
+ indentLevel?: number;
9
+ displayValidationWarning: boolean;
10
+ releaseType: ChangelogReleaseType;
15
11
  };
16
12
  /**
17
- * Prompts the user to provide a new version for a package.
18
- *
19
- * Validates the input (version format, version higher than current, availability).
20
- *
21
- * Optionally shows warnings for invalid changes and allows user to abort.
22
- */
13
+ * Prompts the user to provide a new version for a package.
14
+ *
15
+ * Validates the input (version format, version higher than current, availability).
16
+ *
17
+ * Optionally shows warnings for invalid changes and allows user to abort.
18
+ */
23
19
  export declare function provideNewVersion(options: Options): Promise<string>;
24
20
  export {};
@@ -1,10 +1,6 @@
1
+ import type { ChangesetPathsWithGithubUrl } from "../types.js";
1
2
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { ChangesetPathsWithGithubUrl } from '../types.js';
6
- /**
7
- * Cleans up the input files that have been incorporated into the changelog by deleting them
8
- * and removing any resulting empty directories both in the current repository and in any external repositories.
9
- */
3
+ * Cleans up the input files that have been incorporated into the changelog by deleting them
4
+ * and removing any resulting empty directories both in the current repository and in any external repositories.
5
+ */
10
6
  export declare function removeChangelogEntryFiles(entryPaths: Array<ChangesetPathsWithGithubUrl>): Promise<void>;
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- import type { ParsedFile } from '../types.js';
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md.
4
+ */
5
+ import type { ParsedFile } from "../types.js";
6
6
  /**
7
- * Sorts parsed files according to the rules:
8
- * 1. Entries with more scopes at the top.
9
- * 2. Entries with single scope grouped by scope and sorted by date within a group.
10
- * 3. Entries with no scope at the bottom.
11
- */
7
+ * Sorts parsed files according to the rules:
8
+ * 1. Entries with more scopes at the top.
9
+ * 2. Entries with single scope grouped by scope and sorted by date within a group.
10
+ * 3. Entries with no scope at the bottom.
11
+ */
12
12
  export declare function sortEntriesByScopeAndDate(entries: Array<ParsedFile>): Array<ParsedFile>;
@@ -1,8 +1,4 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
5
- /**
6
- * This function limits the size of the changelog by removing older entries.
7
- */
2
+ * This function limits the size of the changelog by removing older entries.
3
+ */
8
4
  export declare function truncateChangelog(length: number, cwd: string): void;
@@ -1,9 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md.
4
+ */
5
5
  /**
6
- * Custom error class for handling a case when a user aborts the process (at any stage).
7
- */
8
- export declare class UserAbortError extends Error {
9
- }
6
+ * Custom error class for handling a case when a user aborts the process (at any stage).
7
+ */
8
+ export declare class UserAbortError extends Error {}