@releasekit/notes 0.21.0 → 0.23.0
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/{chunk-VLRGPIOB.js → chunk-U7DE6XZR.js} +24 -2
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -5
|
@@ -76,6 +76,23 @@ var VersionCargoConfigSchema = z.object({
|
|
|
76
76
|
});
|
|
77
77
|
var VersionConfigSchema = z.object({
|
|
78
78
|
tagTemplate: z.string().default("v{version}"),
|
|
79
|
+
/**
|
|
80
|
+
* Optional secondary tag template for an internal "baseline" marker that records the
|
|
81
|
+
* release commit on the source branch. Use this when `tagTemplate` resolves to a tag that
|
|
82
|
+
* gets force-moved off the source branch by a downstream step (for example, a GitHub
|
|
83
|
+
* Action distributing built artifacts at the version tag) — the baseline tag stays on the
|
|
84
|
+
* release commit so version-bump and changelog calculations can still find the previous
|
|
85
|
+
* release in the working branch's history.
|
|
86
|
+
*
|
|
87
|
+
* Supports `${packageName}`, `${prefix}`, `${version}` substitutions. Leave unset for
|
|
88
|
+
* single-tag workflows (the default).
|
|
89
|
+
*/
|
|
90
|
+
baselineTagTemplate: z.string().refine((tpl) => tpl.includes("${version}"), {
|
|
91
|
+
message: (
|
|
92
|
+
// biome-ignore lint/suspicious/noTemplateCurlyInString: documenting the expected placeholder syntax to the user
|
|
93
|
+
'baselineTagTemplate must contain a ${version} placeholder so the prefix can be derived (e.g. "release/${prefix}${version}").'
|
|
94
|
+
)
|
|
95
|
+
}).optional(),
|
|
79
96
|
packageSpecificTags: z.boolean().default(false),
|
|
80
97
|
preset: z.string().default("conventional"),
|
|
81
98
|
sync: z.boolean().default(true),
|
|
@@ -1611,12 +1628,17 @@ function makeValidator2(entries, context) {
|
|
|
1611
1628
|
if (!zodResult.success) {
|
|
1612
1629
|
return { valid: false, error: `Schema error: ${zodResult.error.message}` };
|
|
1613
1630
|
}
|
|
1614
|
-
|
|
1631
|
+
const receivedCount = zodResult.data.entries.length;
|
|
1632
|
+
if (receivedCount < entries.length) {
|
|
1615
1633
|
return {
|
|
1616
1634
|
valid: false,
|
|
1617
|
-
error: `Expected ${entries.length} entries, got ${
|
|
1635
|
+
error: `Expected ${entries.length} entries, got ${receivedCount} (entries missing \u2014 cannot proceed)`
|
|
1618
1636
|
};
|
|
1619
1637
|
}
|
|
1638
|
+
if (receivedCount > entries.length) {
|
|
1639
|
+
warn(`LLM returned ${receivedCount} entries for ${entries.length} inputs; truncating to expected count.`);
|
|
1640
|
+
zodResult.data.entries.length = entries.length;
|
|
1641
|
+
}
|
|
1620
1642
|
const categoryNames = context.categories?.map((c) => c.name);
|
|
1621
1643
|
if (categoryNames?.length) {
|
|
1622
1644
|
const invalid = zodResult.data.entries.filter((e) => !categoryNames.includes(e.category)).map((e) => e.category);
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@releasekit/notes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
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",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@anthropic-ai/sdk": "^0.
|
|
50
|
+
"@anthropic-ai/sdk": "^0.95.1",
|
|
51
51
|
"@octokit/request-error": "^7.1.0",
|
|
52
52
|
"@octokit/rest": "^22.0.1",
|
|
53
53
|
"chalk": "^5.6.2",
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"handlebars": "^4.7.9",
|
|
57
57
|
"liquidjs": "^10.25.7",
|
|
58
58
|
"minimatch": "^10.0.0",
|
|
59
|
-
"openai": "^6.
|
|
59
|
+
"openai": "^6.37.0",
|
|
60
60
|
"smol-toml": "^1.6.1",
|
|
61
61
|
"zod": "^4.4.3"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@biomejs/biome": "^2.4.
|
|
64
|
+
"@biomejs/biome": "^2.4.15",
|
|
65
65
|
"@types/ejs": "^3.1.5",
|
|
66
|
-
"@types/node": "^22.19.
|
|
66
|
+
"@types/node": "^22.19.18",
|
|
67
67
|
"@vitest/coverage-v8": "^4.1.5",
|
|
68
68
|
"tsup": "^8.5.1",
|
|
69
69
|
"typescript": "^5.9.3",
|