@releasekit/notes 0.43.1 → 0.44.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.
- package/dist/{aggregator-SCGIHWXW.js → aggregator-JHRFNT67.js} +2 -2
- package/dist/{chunk-T54LUVMQ.js → chunk-KTLNPX37.js} +263 -176
- package/dist/{chunk-YIHEHXCU.js → chunk-VD3TYCTF.js} +64 -79
- package/dist/{chunk-6HUNK367.js → chunk-YCULLVSG.js} +1 -1
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +14 -5
- package/dist/index.js +3 -3
- package/docs/llm-release-notes.md +17 -1
- package/docs/monorepo.md +2 -0
- package/package.json +1 -2
|
@@ -8,6 +8,18 @@ import { fileURLToPath } from "url";
|
|
|
8
8
|
import chalk from "chalk";
|
|
9
9
|
import { minimatch } from "minimatch";
|
|
10
10
|
import * as path3 from "path";
|
|
11
|
+
import * as fs3 from "fs";
|
|
12
|
+
import * as os from "os";
|
|
13
|
+
import * as path4 from "path";
|
|
14
|
+
var CODE_SPAN_OR_COMMENT_OPEN = /(?<!(?<!\\)\\(?:\\\\)*)`[^`]*`|<!--/g;
|
|
15
|
+
function escapeCommentOpeners(text, opts) {
|
|
16
|
+
return text.replace(CODE_SPAN_OR_COMMENT_OPEN, (match) => {
|
|
17
|
+
if (!match.startsWith("`")) {
|
|
18
|
+
return "<!--";
|
|
19
|
+
}
|
|
20
|
+
return opts?.keepCodeSpans ? match : match.replaceAll("<!--", "<!\u200B--");
|
|
21
|
+
});
|
|
22
|
+
}
|
|
11
23
|
function parseGitHubOwnerRepo(repoUrl) {
|
|
12
24
|
const [, scpOwner, scpRepo] = repoUrl.match(/^git@github\.com:([^/]+)\/(.+?)(?:\.git)?$/) ?? [];
|
|
13
25
|
if (scpOwner && scpRepo) {
|
|
@@ -88,16 +100,16 @@ function removeDescriptionRefs(text, refs) {
|
|
|
88
100
|
var BREAKING_SECTION = "Breaking";
|
|
89
101
|
var DEMOTED_SECTION = "Dependencies & version bumps";
|
|
90
102
|
var CHANGELOG_TYPE_LABELS = {
|
|
91
|
-
feat: "Added",
|
|
92
|
-
fix: "Fixed",
|
|
93
103
|
added: "Added",
|
|
104
|
+
feat: "Added",
|
|
94
105
|
changed: "Changed",
|
|
95
106
|
deprecated: "Deprecated",
|
|
96
107
|
removed: "Removed",
|
|
97
108
|
fixed: "Fixed",
|
|
109
|
+
fix: "Fixed",
|
|
110
|
+
security: "Security",
|
|
98
111
|
perf: "Performance",
|
|
99
112
|
refactor: "Refactored",
|
|
100
|
-
security: "Security",
|
|
101
113
|
docs: "Documentation",
|
|
102
114
|
chore: "Chores",
|
|
103
115
|
test: "Tests",
|
|
@@ -110,7 +122,7 @@ var CHANGELOG_LABEL_ORDER = [...new Set(Object.values(CHANGELOG_TYPE_LABELS))];
|
|
|
110
122
|
function changelogTypeLabel(type) {
|
|
111
123
|
return Object.hasOwn(CHANGELOG_TYPE_LABELS, type) ? CHANGELOG_TYPE_LABELS[type] : type.charAt(0).toUpperCase() + type.slice(1);
|
|
112
124
|
}
|
|
113
|
-
function groupChangelogSections(items, entryOf, {
|
|
125
|
+
function groupChangelogSections(items, entryOf, { demoteScopes = [] } = {}) {
|
|
114
126
|
const demote = new Set(demoteScopes);
|
|
115
127
|
const breaking = [];
|
|
116
128
|
const demoted = [];
|
|
@@ -135,7 +147,7 @@ function groupChangelogSections(items, entryOf, { labelOrder = CHANGELOG_LABEL_O
|
|
|
135
147
|
if (breaking.length > 0) {
|
|
136
148
|
sections.push({ label: BREAKING_SECTION, items: breaking });
|
|
137
149
|
}
|
|
138
|
-
for (const label of
|
|
150
|
+
for (const label of CHANGELOG_LABEL_ORDER) {
|
|
139
151
|
const list = byLabel.get(label);
|
|
140
152
|
if (list) {
|
|
141
153
|
sections.push({ label, items: list });
|
|
@@ -300,13 +312,8 @@ var CODE_TO_EXIT = {
|
|
|
300
312
|
PACKAGES_NOT_FOUND: EXIT_CODES.CONFIG_ERROR,
|
|
301
313
|
PACKAGE_NOT_FOUND: EXIT_CODES.CONFIG_ERROR,
|
|
302
314
|
WORKSPACE_ERROR: EXIT_CODES.CONFIG_ERROR,
|
|
303
|
-
NOT_GIT_REPO: EXIT_CODES.GIT_ERROR,
|
|
304
|
-
GIT_PROCESS_ERROR: EXIT_CODES.GIT_ERROR,
|
|
305
|
-
TAG_ALREADY_EXISTS: EXIT_CODES.GIT_ERROR,
|
|
306
315
|
VERSION_CALCULATION_ERROR: EXIT_CODES.VERSION_ERROR,
|
|
307
316
|
STRICT_REACHABLE_UNREACHABLE: EXIT_CODES.VERSION_ERROR,
|
|
308
|
-
NO_COMMIT_MESSAGE: EXIT_CODES.VERSION_ERROR,
|
|
309
|
-
NO_FILES: EXIT_CODES.VERSION_ERROR,
|
|
310
317
|
CARGO_LOCK_SYNC_ERROR: EXIT_CODES.VERSION_ERROR,
|
|
311
318
|
// @releasekit/publish
|
|
312
319
|
PIPELINE_STAGE_ERROR: EXIT_CODES.PUBLISH_ERROR,
|
|
@@ -358,8 +365,8 @@ function isPathWithinRoot(root, target) {
|
|
|
358
365
|
}
|
|
359
366
|
|
|
360
367
|
// src/output/markdown.ts
|
|
361
|
-
import * as
|
|
362
|
-
import * as
|
|
368
|
+
import * as fs4 from "fs";
|
|
369
|
+
import * as path5 from "path";
|
|
363
370
|
var DEFAULT_FIRST_RELEASE_TEXT = "_First release of ${packageName}._";
|
|
364
371
|
function firstReleaseLine(context, config) {
|
|
365
372
|
if (!context.isFirstRelease || config === false) {
|
|
@@ -368,15 +375,14 @@ function firstReleaseLine(context, config) {
|
|
|
368
375
|
const template = config?.text ?? DEFAULT_FIRST_RELEASE_TEXT;
|
|
369
376
|
return template.replaceAll("${packageName}", context.packageName).replaceAll("${version}", context.version);
|
|
370
377
|
}
|
|
371
|
-
|
|
378
|
+
function escapeCommitText(text) {
|
|
379
|
+
return escapeCommentOpeners(escapeChangelogMentions(text), { keepCodeSpans: true });
|
|
380
|
+
}
|
|
372
381
|
function formatEntry(entry, opts) {
|
|
373
382
|
const refsMode = opts?.refs ?? "link";
|
|
374
383
|
const appendedRefs = [...entry.issueIds ?? [], entry.prNumber];
|
|
375
|
-
const description =
|
|
376
|
-
|
|
377
|
-
);
|
|
378
|
-
const scope = entry.scope ? escapeChangelogMentions(entry.scope) : void 0;
|
|
379
|
-
const leadIn = entry.leadIn ? escapeChangelogMentions(entry.leadIn) : void 0;
|
|
384
|
+
const description = neutralizeDescriptionRefs(entry.description, appendedRefs, refsMode, opts?.repoUrl ?? null);
|
|
385
|
+
const { scope, leadIn } = entry;
|
|
380
386
|
let line;
|
|
381
387
|
if (leadIn && entry.breaking) {
|
|
382
388
|
line = `- **BREAKING** **${leadIn}**: ${description}`;
|
|
@@ -395,11 +401,10 @@ function formatEntry(entry, opts) {
|
|
|
395
401
|
if (refs) {
|
|
396
402
|
line += ` ${refs}`;
|
|
397
403
|
}
|
|
398
|
-
return line;
|
|
404
|
+
return escapeCommitText(line);
|
|
399
405
|
}
|
|
400
406
|
function formatCategorySection(name, entries, refOpts) {
|
|
401
|
-
const
|
|
402
|
-
lines.push(`### ${name}`);
|
|
407
|
+
const blocks = [`### ${name}`];
|
|
403
408
|
const scopeCounts = /* @__PURE__ */ new Map();
|
|
404
409
|
for (const entry of entries) {
|
|
405
410
|
if (entry.scope) {
|
|
@@ -412,36 +417,27 @@ function formatCategorySection(name, entries, refOpts) {
|
|
|
412
417
|
groupedScopes.add(scope);
|
|
413
418
|
}
|
|
414
419
|
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
group.push(entry);
|
|
425
|
-
byScope.set(entry.scope, group);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
const renderedScopes = /* @__PURE__ */ new Set();
|
|
429
|
-
for (const entry of entries) {
|
|
430
|
-
if (entry.scope && groupedScopes.has(entry.scope)) {
|
|
431
|
-
if (!renderedScopes.has(entry.scope)) {
|
|
432
|
-
renderedScopes.add(entry.scope);
|
|
433
|
-
lines.push(`**${escapeChangelogMentions(entry.scope)}**:`);
|
|
434
|
-
for (const e of byScope.get(entry.scope) ?? []) {
|
|
435
|
-
lines.push(formatEntry(e, { ...refOpts, hideScope: true }));
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
} else {
|
|
439
|
-
lines.push(formatEntry(entry, refOpts));
|
|
440
|
-
}
|
|
420
|
+
const ungrouped = [];
|
|
421
|
+
const byScope = /* @__PURE__ */ new Map();
|
|
422
|
+
for (const entry of entries) {
|
|
423
|
+
if (entry.scope && groupedScopes.has(entry.scope)) {
|
|
424
|
+
const group = byScope.get(entry.scope) ?? [];
|
|
425
|
+
group.push(entry);
|
|
426
|
+
byScope.set(entry.scope, group);
|
|
427
|
+
} else {
|
|
428
|
+
ungrouped.push(entry);
|
|
441
429
|
}
|
|
442
430
|
}
|
|
443
|
-
|
|
444
|
-
|
|
431
|
+
if (ungrouped.length > 0) {
|
|
432
|
+
blocks.push(ungrouped.map((entry) => formatEntry(entry, refOpts)).join("\n"));
|
|
433
|
+
}
|
|
434
|
+
for (const [scope, group] of byScope) {
|
|
435
|
+
blocks.push(
|
|
436
|
+
`**${escapeCommitText(scope)}**:`,
|
|
437
|
+
group.map((entry) => formatEntry(entry, { ...refOpts, hideScope: true })).join("\n")
|
|
438
|
+
);
|
|
439
|
+
}
|
|
440
|
+
return blocks;
|
|
445
441
|
}
|
|
446
442
|
function rerouteBreakingEntries(categories) {
|
|
447
443
|
const hasBreaking = categories.some((c) => c.entries.some((e) => e.breaking));
|
|
@@ -550,24 +546,19 @@ function resolveLinks(entries, linksConfig) {
|
|
|
550
546
|
return merged;
|
|
551
547
|
}
|
|
552
548
|
function formatVersion(context, options) {
|
|
553
|
-
const lines = [];
|
|
554
549
|
const refOpts = { refs: options?.refs ?? "link", repoUrl: context.repoUrl };
|
|
555
550
|
const versionLabel = options?.includePackageName && context.packageName ? `${context.packageName}@${context.version}` : context.version;
|
|
556
551
|
const versionHeader = context.previousVersion ? `## [${versionLabel}]` : `## ${versionLabel}`;
|
|
557
|
-
|
|
558
|
-
lines.push("");
|
|
552
|
+
const blocks = [`${versionHeader} - ${context.date}`];
|
|
559
553
|
const introLine = firstReleaseLine(context, options?.firstRelease);
|
|
560
554
|
if (introLine) {
|
|
561
|
-
|
|
562
|
-
lines.push("");
|
|
555
|
+
blocks.push(introLine);
|
|
563
556
|
}
|
|
564
557
|
if (context.compareUrl) {
|
|
565
|
-
|
|
566
|
-
lines.push("");
|
|
558
|
+
blocks.push(`[Full Changelog](${context.compareUrl})`);
|
|
567
559
|
}
|
|
568
560
|
if (context.enhanced?.summary) {
|
|
569
|
-
|
|
570
|
-
lines.push("");
|
|
561
|
+
blocks.push(context.enhanced.summary);
|
|
571
562
|
}
|
|
572
563
|
if (context.enhanced?.categories && context.enhanced.categories.length > 0) {
|
|
573
564
|
let categories = rerouteBreakingEntries(context.enhanced.categories);
|
|
@@ -576,26 +567,22 @@ function formatVersion(context, options) {
|
|
|
576
567
|
if (category.entries.length === 0) {
|
|
577
568
|
continue;
|
|
578
569
|
}
|
|
579
|
-
|
|
570
|
+
blocks.push(...formatCategorySection(category.name, category.entries, refOpts));
|
|
580
571
|
}
|
|
581
572
|
const links = resolveLinks(context.entries, options?.links);
|
|
582
573
|
if (links.length > 0) {
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
lines.push("");
|
|
574
|
+
blocks.push(
|
|
575
|
+
`### ${options?.links?.title ?? "Links"}`,
|
|
576
|
+
links.map((link) => `- [${link.label}](${link.url})`).join("\n")
|
|
577
|
+
);
|
|
588
578
|
}
|
|
589
579
|
} else {
|
|
590
|
-
for (const section of groupChangelogSections(context.entries, (e) => e
|
|
591
|
-
|
|
592
|
-
for (const entry of section.items) {
|
|
593
|
-
lines.push(formatEntry(entry, refOpts));
|
|
594
|
-
}
|
|
595
|
-
lines.push("");
|
|
580
|
+
for (const section of groupChangelogSections(context.entries, (e) => e)) {
|
|
581
|
+
blocks.push(`### ${section.label}`, section.items.map((entry) => formatEntry(entry, refOpts)).join("\n"));
|
|
596
582
|
}
|
|
597
583
|
}
|
|
598
|
-
return
|
|
584
|
+
return `${blocks.join("\n\n")}
|
|
585
|
+
`;
|
|
599
586
|
}
|
|
600
587
|
function formatHeader() {
|
|
601
588
|
return `# Changelog
|
|
@@ -604,7 +591,6 @@ All notable changes to this project will be documented in this file.
|
|
|
604
591
|
|
|
605
592
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
606
593
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
607
|
-
|
|
608
594
|
`;
|
|
609
595
|
}
|
|
610
596
|
function renderMarkdown(contexts, options) {
|
|
@@ -615,7 +601,7 @@ function renderMarkdown(contexts, options) {
|
|
|
615
601
|
return sections.join("\n");
|
|
616
602
|
}
|
|
617
603
|
function prependVersions(existingPath, contexts, options) {
|
|
618
|
-
const existing =
|
|
604
|
+
const existing = fs4.existsSync(existingPath) ? fs4.readFileSync(existingPath, "utf-8") : "";
|
|
619
605
|
if (existing.trim() === "") {
|
|
620
606
|
return renderMarkdown(contexts, options);
|
|
621
607
|
}
|
|
@@ -628,10 +614,9 @@ ${existing}`;
|
|
|
628
614
|
if (headerEnd === -1) {
|
|
629
615
|
return `${existing.trimEnd()}
|
|
630
616
|
|
|
631
|
-
|
|
632
617
|
${sections}`;
|
|
633
618
|
}
|
|
634
|
-
return `${existing.slice(0, headerEnd)}
|
|
619
|
+
return `${existing.slice(0, headerEnd).trimEnd()}
|
|
635
620
|
|
|
636
621
|
${sections}
|
|
637
622
|
${existing.slice(headerEnd + 1)}`;
|
|
@@ -644,16 +629,16 @@ function writeMarkdown(outputPath, contexts, config, dryRun, options) {
|
|
|
644
629
|
info(content);
|
|
645
630
|
return;
|
|
646
631
|
}
|
|
647
|
-
const dir =
|
|
648
|
-
if (!
|
|
649
|
-
|
|
632
|
+
const dir = path5.dirname(outputPath);
|
|
633
|
+
if (!fs4.existsSync(dir)) {
|
|
634
|
+
fs4.mkdirSync(dir, { recursive: true });
|
|
650
635
|
}
|
|
651
636
|
if (outputPath === "-") {
|
|
652
637
|
process.stdout.write(content);
|
|
653
638
|
return;
|
|
654
639
|
}
|
|
655
640
|
const updated = config.updateStrategy === "regenerate" ? content : prependVersions(outputPath, contexts, options);
|
|
656
|
-
|
|
641
|
+
fs4.writeFileSync(outputPath, updated, "utf-8");
|
|
657
642
|
success(`${label} written to ${outputPath}`);
|
|
658
643
|
}
|
|
659
644
|
|
package/dist/cli.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createNotesCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KTLNPX37.js";
|
|
5
5
|
import {
|
|
6
6
|
readPackageVersion
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VD3TYCTF.js";
|
|
8
8
|
|
|
9
9
|
// src/cli.ts
|
|
10
10
|
import * as fs from "fs";
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import 'commander';
|
|
|
5
5
|
declare const MonorepoConfigSchema: z.ZodObject<{
|
|
6
6
|
rootPath: z.ZodOptional<z.ZodString>;
|
|
7
7
|
packagesPath: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, z.core.$
|
|
8
|
+
}, z.core.$strict>;
|
|
9
9
|
type MonorepoConfig = z.infer<typeof MonorepoConfigSchema>;
|
|
10
10
|
declare function loadAuth(): Record<string, string>;
|
|
11
11
|
declare function saveAuth(provider: string, apiKey: string): void;
|
|
@@ -49,6 +49,8 @@ interface VersionPackageChangelog {
|
|
|
49
49
|
revisionRange: string;
|
|
50
50
|
repoUrl: string | null;
|
|
51
51
|
entries: VersionChangelogEntry[];
|
|
52
|
+
/** The tag this changelog releases: the package's own, or a sync release's shared one. Absent in older manifests. */
|
|
53
|
+
tag?: string;
|
|
52
54
|
}
|
|
53
55
|
/** `'graduated'`: a prerelease promoted to stable, ignoring any requested bump. `'first-release'`: no prior tag. */
|
|
54
56
|
type VersionAction = 'first-release' | 'graduated' | 'bumped';
|
|
@@ -63,7 +65,8 @@ interface VersionOutput {
|
|
|
63
65
|
strategy?: 'sync' | 'single' | 'async' | 'group';
|
|
64
66
|
updates: VersionPackageUpdate[];
|
|
65
67
|
changelogs: VersionPackageChangelog[];
|
|
66
|
-
/** Entries from commits that touch no package
|
|
68
|
+
/** Entries from commits that touch no package outside `sharedPackages`, counting the directories a package
|
|
69
|
+
* versions through `cargo.paths` / `pub.paths`. */
|
|
67
70
|
sharedEntries?: VersionChangelogEntry[];
|
|
68
71
|
commitMessage?: string;
|
|
69
72
|
/** Consumer-facing tags from `tagTemplate`. */
|
|
@@ -74,6 +77,11 @@ interface VersionOutput {
|
|
|
74
77
|
* been force-moved off it.
|
|
75
78
|
*/
|
|
76
79
|
baselineTags?: string[];
|
|
80
|
+
/**
|
|
81
|
+
* Files the version step wrote that no update names, such as the `Cargo.toml` of a non-releasing crate that depends
|
|
82
|
+
* on a releasing crate. Absent when there are none, and in older manifests.
|
|
83
|
+
*/
|
|
84
|
+
additionalFiles?: string[];
|
|
77
85
|
}
|
|
78
86
|
interface VersionPackageUpdate {
|
|
79
87
|
packageName: string;
|
|
@@ -143,12 +151,13 @@ interface PackageChangelog {
|
|
|
143
151
|
packageName: string;
|
|
144
152
|
version: string;
|
|
145
153
|
previousVersion: string | null;
|
|
154
|
+
tag?: string;
|
|
146
155
|
revisionRange: string;
|
|
147
156
|
repoUrl: string | null;
|
|
148
157
|
date: string;
|
|
149
158
|
entries: ChangelogEntry[];
|
|
150
159
|
}
|
|
151
|
-
type InputSource = 'version'
|
|
160
|
+
type InputSource = 'version';
|
|
152
161
|
interface ChangelogInput {
|
|
153
162
|
source: InputSource;
|
|
154
163
|
packages: PackageChangelog[];
|
|
@@ -245,7 +254,7 @@ interface TemplateConfig {
|
|
|
245
254
|
}
|
|
246
255
|
interface LLMConfig {
|
|
247
256
|
provider: 'openai' | 'openai-compatible' | 'anthropic' | 'ollama';
|
|
248
|
-
model
|
|
257
|
+
model?: string;
|
|
249
258
|
baseURL?: string;
|
|
250
259
|
apiKey?: string;
|
|
251
260
|
options?: {
|
|
@@ -367,7 +376,7 @@ declare class ConfigError extends NotesError {
|
|
|
367
376
|
}
|
|
368
377
|
declare function getExitCode(error: NotesError): number;
|
|
369
378
|
|
|
370
|
-
declare function versionOutputToChangelogInput(data: Pick<VersionOutput, 'changelogs'>): ChangelogInput;
|
|
379
|
+
declare function versionOutputToChangelogInput(data: Pick<VersionOutput, 'changelogs'> & Partial<Pick<VersionOutput, 'updates' | 'tags'>>): ChangelogInput;
|
|
371
380
|
declare function parseVersionOutput(json: string): ChangelogInput;
|
|
372
381
|
declare function parseVersionOutputFile(filePath: string): ChangelogInput;
|
|
373
382
|
declare function parseVersionOutputStdin(): Promise<ChangelogInput>;
|
package/dist/index.js
CHANGED
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
runPipeline,
|
|
20
20
|
saveAuth,
|
|
21
21
|
versionOutputToChangelogInput
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KTLNPX37.js";
|
|
23
23
|
import {
|
|
24
24
|
aggregateToRoot,
|
|
25
25
|
detectMonorepo,
|
|
26
26
|
writeMonorepoChangelogs
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YCULLVSG.js";
|
|
28
28
|
import {
|
|
29
29
|
debug,
|
|
30
30
|
formatVersion,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
renderMarkdown,
|
|
33
33
|
success,
|
|
34
34
|
writeMarkdown
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-VD3TYCTF.js";
|
|
36
36
|
|
|
37
37
|
// src/output/json.ts
|
|
38
38
|
import * as fs from "fs";
|
|
@@ -34,13 +34,16 @@ Without LLM, the built-in renderer groups entries by their conventional commit t
|
|
|
34
34
|
## [2.0.0] - 2026-01-15
|
|
35
35
|
|
|
36
36
|
### Changed
|
|
37
|
+
|
|
37
38
|
- rename connect() to initialize() across public API
|
|
38
39
|
|
|
39
40
|
### Added
|
|
41
|
+
|
|
40
42
|
- add triggerDeeplink() for deep link testing
|
|
41
43
|
- add mock IPC handler support
|
|
42
44
|
|
|
43
45
|
### Fixed
|
|
46
|
+
|
|
44
47
|
- null pointer in renderer process memory management
|
|
45
48
|
```
|
|
46
49
|
|
|
@@ -50,14 +53,18 @@ With `enhance + categorize` enabled, the same commits produce:
|
|
|
50
53
|
## [2.0.0] - 2026-01-15
|
|
51
54
|
|
|
52
55
|
### Breaking
|
|
56
|
+
|
|
53
57
|
- **BREAKING** **API rename**: Rename connect() to initialize()
|
|
54
58
|
|
|
55
59
|
### New
|
|
60
|
+
|
|
56
61
|
**ipc**:
|
|
62
|
+
|
|
57
63
|
- **Deeplink testing**: Add deep link support via triggerDeeplink()
|
|
58
64
|
- Add mock IPC support
|
|
59
65
|
|
|
60
66
|
### Fixed
|
|
67
|
+
|
|
61
68
|
- Resolve memory leak in renderer process
|
|
62
69
|
```
|
|
63
70
|
|
|
@@ -236,12 +243,14 @@ When the built-in markdown renderer encounters a category where **two or more en
|
|
|
236
243
|
|
|
237
244
|
```markdown
|
|
238
245
|
### New
|
|
246
|
+
|
|
239
247
|
**ipc**:
|
|
248
|
+
|
|
240
249
|
- **Deeplink testing**: Add deep link support via triggerDeeplink()
|
|
241
250
|
- Add mock IPC support
|
|
242
251
|
```
|
|
243
252
|
|
|
244
|
-
A scope that appears on only one entry renders inline: `- **scope**: description`. Entries with no scope render as plain bullets.
|
|
253
|
+
A scope that appears on only one entry renders inline: `- **scope**: description`. Entries with no scope render as plain bullets. Both come before the scope groups, so no entry sits under a label it doesn't have.
|
|
245
254
|
|
|
246
255
|
Scope is assigned by the LLM (or inherited from the source commit). Control what scopes are valid with the `scopes` config.
|
|
247
256
|
|
|
@@ -351,6 +360,7 @@ Rendered output:
|
|
|
351
360
|
|
|
352
361
|
```markdown
|
|
353
362
|
### Migration guide
|
|
363
|
+
|
|
354
364
|
- [v2.0 migration](https://docs.example.com/migrate-v2)
|
|
355
365
|
- [Full guide](https://docs.example.com/full-guide)
|
|
356
366
|
```
|
|
@@ -439,20 +449,26 @@ Note that `links` is a property of `releaseNotes`, not `llm`.
|
|
|
439
449
|
## [2.0.0] - 2026-01-15
|
|
440
450
|
|
|
441
451
|
### Breaking
|
|
452
|
+
|
|
442
453
|
- **BREAKING** **API rename**: Rename connect() to initialize()
|
|
443
454
|
|
|
444
455
|
### New
|
|
456
|
+
|
|
445
457
|
**ipc**:
|
|
458
|
+
|
|
446
459
|
- **Deeplink testing**: Add deep link support via triggerDeeplink()
|
|
447
460
|
- Add mock IPC support
|
|
448
461
|
|
|
449
462
|
### Fixed
|
|
463
|
+
|
|
450
464
|
- Resolve memory leak in renderer process
|
|
451
465
|
|
|
452
466
|
### Developer
|
|
467
|
+
|
|
453
468
|
- Migrate bundler to esbuild 0.20
|
|
454
469
|
|
|
455
470
|
### Links
|
|
471
|
+
|
|
456
472
|
- [v2.0 migration guide](https://docs.example.com/migrate-v2)
|
|
457
473
|
```
|
|
458
474
|
|
package/docs/monorepo.md
CHANGED
|
@@ -39,11 +39,13 @@ In `"root"` or `"both"` mode, the root changelog aggregates entries from all pac
|
|
|
39
39
|
## [@myorg/core@2.0.0] — 2026-03-15
|
|
40
40
|
|
|
41
41
|
### Added
|
|
42
|
+
|
|
42
43
|
- New streaming API
|
|
43
44
|
|
|
44
45
|
## [utils@1.1.0] — 2026-03-15
|
|
45
46
|
|
|
46
47
|
### Fixed
|
|
48
|
+
|
|
47
49
|
- Memory leak in event handler
|
|
48
50
|
```
|
|
49
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@releasekit/notes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.1",
|
|
4
4
|
"description": "Release notes and changelog generation with LLM-powered enhancement and flexible templating",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"@releasekit/config": "0.0.0",
|
|
67
67
|
"@releasekit/core": "0.0.0",
|
|
68
68
|
"@releasekit/forge": "0.0.0",
|
|
69
|
-
"@releasekit/git": "0.0.0",
|
|
70
69
|
"@types/ejs": "^3.1.5",
|
|
71
70
|
"@types/node": "^26.6.6",
|
|
72
71
|
"@vitest/coverage-v8": "^5.1.0",
|