@releasekit/notes 0.34.0 → 0.36.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-4G6BQOIR.js → chunk-S6VVXWXA.js} +34 -2
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +8 -8
|
@@ -115,7 +115,12 @@ var VersionConfigSchema = z.object({
|
|
|
115
115
|
`How the "Project-wide changes" block is bounded in package-specific-tag mode. "union" (default): repo-level commits accrue from the union of the releasing packages' ranges, floored by the OLDEST unreleased baseline \u2014 so a genuinely-global commit recurs in every release until the oldest-baselined package is released past it. "sinceLastRelease": floor the block by the single nearest tag reachable across the repo, so global commits already shown by the most recent release don't recur (recommended for per-package-tag monorepos). No effect in sync mode, where one shared tag already consumes repo-level commits on each release.`
|
|
116
116
|
),
|
|
117
117
|
mainPackage: z.string().optional().describe("Package to use for version determination"),
|
|
118
|
-
skip: z.array(z.string()).optional().describe(
|
|
118
|
+
skip: z.array(z.string()).optional().describe(
|
|
119
|
+
'Packages to exclude from versioning (glob patterns or exact names). Private packages ("private": true) are skipped automatically \u2014 see includePrivate \u2014 so they do not need to be listed here.'
|
|
120
|
+
),
|
|
121
|
+
includePrivate: z.boolean().default(false).describe(
|
|
122
|
+
'Include npm packages marked "private": true (in package.json) in the release flow. Default false: private packages are skipped at discovery \u2014 they cannot be published to any registry, mirroring the Cargo `publish = false` and pub `publish_to: none` skips already applied during discovery. Set true to version a private package for internal tracking. Packages explicitly named in version.packages are always included regardless of this setting.'
|
|
123
|
+
),
|
|
119
124
|
commitMessage: z.string().optional().describe("Template for release commit messages"),
|
|
120
125
|
mismatchStrategy: z.enum(["error", "warn", "ignore", "prefer-package", "prefer-git"]).default("warn").describe("How to handle version mismatches"),
|
|
121
126
|
versionPrefix: z.string().default("").describe("Prefix for version tags"),
|
|
@@ -456,6 +461,12 @@ var StandingPrConfigSchema = z.object({
|
|
|
456
461
|
)
|
|
457
462
|
}).optional().describe(
|
|
458
463
|
"Restrict who can steer the standing PR \u2014 its selection checkboxes, release labels, and merge. Omit to allow anyone with the GitHub permission GitHub itself requires for each action (today\u2019s behavior)."
|
|
464
|
+
),
|
|
465
|
+
primaryPackages: z.array(z.string()).default([]).describe(
|
|
466
|
+
"Packages that drive releases \u2014 rendered as parent rows in the standing-PR selection list, with their coupled group-mates and changed prerequisites nested beneath, so one parent toggle holds back the whole release unit. Glob patterns or exact names. Empty (default) \u2192 flat per-package list (current behavior)."
|
|
467
|
+
),
|
|
468
|
+
selection: z.enum(["streamlined", "granular"]).default("streamlined").describe(
|
|
469
|
+
"How the selection list renders when primaryPackages is set. streamlined: one checkbox per primary, coupled members shown read-only in a collapsed pane, and a held-back primary cascades to its unit. granular: every package keeps its own checkbox, nested under its primary, with no cascade. No effect when primaryPackages is empty."
|
|
459
470
|
)
|
|
460
471
|
});
|
|
461
472
|
var CIConfigSchema = z.object({
|
|
@@ -470,7 +481,7 @@ var CIConfigSchema = z.object({
|
|
|
470
481
|
z.object({
|
|
471
482
|
enabled: z.boolean().default(true).describe("Whether PR preview comments are posted."),
|
|
472
483
|
refreshAfterRelease: z.boolean().default(false).describe(
|
|
473
|
-
'After a release completes, replay the preview comment on still-open feeder PRs so their "what would release" estimate is not left stale against the moved baseline. Cosmetic and best-effort \u2014 a failure here never fails the release.
|
|
484
|
+
'After a release completes, replay the preview comment on still-open feeder PRs so their "what would release" estimate is not left stale against the moved baseline. Cosmetic and best-effort \u2014 a failure here never fails the release. Driven automatically in-process after a successful release (both the direct and standing-PR publish paths); the standalone `refresh-after-release` command also performs it for setups that run it as a separate step.'
|
|
474
485
|
)
|
|
475
486
|
})
|
|
476
487
|
]).default(true).transform(
|
|
@@ -966,6 +977,27 @@ var GitHubForge = class {
|
|
|
966
977
|
async mergePullRequest(prNumber, method) {
|
|
967
978
|
await this.octokit.rest.pulls.merge({ ...this.base, pull_number: prNumber, merge_method: method });
|
|
968
979
|
}
|
|
980
|
+
async createIssue(issue) {
|
|
981
|
+
const { data } = await this.octokit.rest.issues.create({ ...this.base, ...issue });
|
|
982
|
+
return { number: data.number, url: data.html_url };
|
|
983
|
+
}
|
|
984
|
+
async updateIssue(issueNumber, changes) {
|
|
985
|
+
await this.octokit.rest.issues.update({ ...this.base, issue_number: issueNumber, ...changes });
|
|
986
|
+
}
|
|
987
|
+
async findOpenIssueByLabel(label) {
|
|
988
|
+
const iterator = this.octokit.paginate.iterator(this.octokit.rest.issues.listForRepo, {
|
|
989
|
+
...this.base,
|
|
990
|
+
state: "open",
|
|
991
|
+
labels: label,
|
|
992
|
+
per_page: 100
|
|
993
|
+
});
|
|
994
|
+
for await (const response of iterator) {
|
|
995
|
+
for (const issue of response.data) {
|
|
996
|
+
if (!issue.pull_request) return { number: issue.number, url: issue.html_url };
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
return null;
|
|
1000
|
+
}
|
|
969
1001
|
async getActorPermission(username) {
|
|
970
1002
|
try {
|
|
971
1003
|
const { data } = await this.octokit.rest.repos.getCollaboratorPermissionLevel({ ...this.base, username });
|
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.36.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,32 +47,32 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@anthropic-ai/sdk": "^0.
|
|
50
|
+
"@anthropic-ai/sdk": "^0.106.0",
|
|
51
51
|
"@octokit/rest": "^22.0.1",
|
|
52
52
|
"chalk": "^5.6.2",
|
|
53
53
|
"commander": "^14.0.3",
|
|
54
54
|
"ejs": "^4.0.1",
|
|
55
55
|
"handlebars": "^4.7.9",
|
|
56
56
|
"jsonc-parser": "^3.3.1",
|
|
57
|
-
"liquidjs": "^10.27.
|
|
57
|
+
"liquidjs": "^10.27.1",
|
|
58
58
|
"minimatch": "^10.0.0",
|
|
59
|
-
"openai": "^6.
|
|
59
|
+
"openai": "^6.45.0",
|
|
60
60
|
"smol-toml": "^1.7.0",
|
|
61
61
|
"yaml": "^2.9.0",
|
|
62
62
|
"zod": "^4.4.3"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@biomejs/biome": "^2.5.
|
|
65
|
+
"@biomejs/biome": "^2.5.1",
|
|
66
66
|
"@types/ejs": "^3.1.5",
|
|
67
67
|
"@types/node": "^22.20.0",
|
|
68
68
|
"@vitest/coverage-v8": "^4.1.9",
|
|
69
69
|
"tsup": "^8.5.1",
|
|
70
70
|
"typescript": "^5.9.3",
|
|
71
71
|
"vitest": "^4.1.9",
|
|
72
|
-
"@releasekit/config": "0.0.0",
|
|
73
|
-
"@releasekit/forge": "0.0.0",
|
|
74
72
|
"@releasekit/core": "0.0.0",
|
|
75
|
-
"@releasekit/
|
|
73
|
+
"@releasekit/config": "0.0.0",
|
|
74
|
+
"@releasekit/git": "0.0.0",
|
|
75
|
+
"@releasekit/forge": "0.0.0"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
78
78
|
"node": ">=22"
|