@releasekit/notes 0.38.1 → 0.40.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.
@@ -286,6 +286,9 @@ var ChangelogConfigSchema = z.object({
286
286
  templates: TemplateConfigSchema.optional().describe("Template configuration for changelog"),
287
287
  refs: z.enum(["strip", "escape", "link"]).default("link").describe(
288
288
  "How `#NNN` issue/PR refs in the changelog are rendered. Applies to the whole entry \u2014 both the appended label and any bare `#N` carried over from the commit subject into the description (a description ref that also appears in the appended label is de-duplicated away). 'link' (default): the PR and the issues it closed are labelled as `(PR #503 \xB7 closes #500)`, where the PR links to its canonical /pull/ URL with `PR #503` as the visible text \u2014 this keeps the GitHub hovercard but stops the bare-token rich inline card that duplicated the entry; closed issues link to /issues/. An entry with no identifiable PR (a non-squash commit, or a non-GitHub repo) falls back to a plain ref list. 'escape': plain text \\#NNN (no link, no hovercard, no PR/closes labelling). 'strip': refs are removed entirely. Scoped-package / @user mentions in entry text are always neutralised regardless of this setting."
289
+ ),
290
+ demoteScopes: z.array(z.string()).default(["deps"]).describe(
291
+ 'Conventional-commit scopes whose changelog entries are demoted into a trailing "Dependencies & version bumps" subsection instead of interleaving with Added / Fixed / Changed. Applies to the standing-PR changelogs \u2014 each releasable row and the "Show all changes" footer. Nothing is hidden or dropped: low-signal dependency bumps just stop crowding the user-facing changes at the top, and a reader who wants the exact per-package deps expands the subsection. The de-duplicated change count is unchanged. Default: ["deps"]. Set to [] to render every scope inline.'
289
292
  )
290
293
  }).describe("Changelog file configuration");
291
294
  var LLMOptionsSchema = z.object({
@@ -451,7 +454,7 @@ var StandingPrConfigSchema = z.object({
451
454
  ),
452
455
  authorization: z.object({
453
456
  requiredPermission: z.enum(["admin", "maintain", "write"]).default("admin").describe(
454
- "Minimum repository permission an actor needs to steer the standing PR \u2014 tick/untick selection checkboxes, apply release labels, and (with branch protection) merge. Default: admin."
457
+ "Minimum repository permission an actor needs to steer the standing PR \u2014 tick/untick selection checkboxes, flip per-row channel toggles, apply release labels, and (with branch protection) merge. Default: admin."
455
458
  ),
456
459
  allowedActors: z.array(
457
460
  // A GitHub username (e.g. `octocat`) or a team as `@org/team-slug`. The `@…/…` form needs
@@ -467,7 +470,7 @@ var StandingPrConfigSchema = z.object({
467
470
  "Refuse to publish the standing PR when the actor who merged it is not authorized (defense-in-depth behind a branch-protection ruleset, which is the primary merge gate). Set false to rely on branch protection alone."
468
471
  )
469
472
  }).optional().describe(
470
- "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)."
473
+ "Restrict who can steer the standing PR \u2014 its selection checkboxes, per-row channel toggles, release labels, and merge. Omit to allow anyone with the GitHub permission GitHub itself requires for each action (today\u2019s behavior)."
471
474
  ),
472
475
  primaryPackages: z.array(z.string()).default([]).describe(
473
476
  "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)."
@@ -477,6 +480,12 @@ var StandingPrConfigSchema = z.object({
477
480
  ),
478
481
  combinedChangelogFooter: z.boolean().default(true).describe(
479
482
  "Append the de-duplicated combined-changelog footer to the standing PR: every change listed once, flat across packages and grouped by change type (Added/Fixed/Changed). It complements the per-row changelogs co-located with each releasable row. Set false to suppress this redundant per-package summary \u2014 the per-row changelogs remain, project-wide (shared) changes are still shown in their own block, and sync releases (which have no per-row changelogs) always show the combined changelog regardless of this setting."
483
+ ),
484
+ channelToggle: z.boolean().default(false).describe(
485
+ "Add a per-row channel toggle to the standing-PR selection list: a nested checkbox under each releasable row to ship a stable package as a prerelease (\u2192 X.Y.Z-next.0 on the `next` dist-tag) or graduate a prerelease package to its stable base \u2014 shifting just that package (and its group) without narrowing the release. Off by default so repos that do not need it keep the tight one-line-per-package list. A held-back (unticked) row hides its channel toggle. No effect on sync releases (which ship atomically as one unit)."
486
+ ),
487
+ summaryTable: z.boolean().default(false).describe(
488
+ 'Render a collapsed "Version summary" table near the top of the standing PR: one row per publishing package showing its current version, next version, bump magnitude, and dist-tag. A scannable from \u2192 to overview (the Dependabot mental model) that complements the interactive checkbox list \u2014 which GitHub only renders as a list, never in a table cell. Off by default.'
480
489
  )
481
490
  });
482
491
  var CIConfigSchema = z.object({
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createNotesCommand
4
- } from "./chunk-2FU6P7SA.js";
4
+ } from "./chunk-PD3MCPPQ.js";
5
5
  import {
6
6
  readPackageVersion
7
7
  } from "./chunk-EWEPFCCT.js";
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  runPipeline,
19
19
  saveAuth,
20
20
  versionOutputToChangelogInput
21
- } from "./chunk-2FU6P7SA.js";
21
+ } from "./chunk-PD3MCPPQ.js";
22
22
  import {
23
23
  aggregateToRoot,
24
24
  detectMonorepo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@releasekit/notes",
3
- "version": "0.38.1",
3
+ "version": "0.40.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.106.0",
50
+ "@anthropic-ai/sdk": "^0.112.3",
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.1",
57
+ "liquidjs": "^10.27.2",
58
58
  "minimatch": "^10.0.0",
59
- "openai": "^6.45.0",
59
+ "openai": "^6.48.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.1",
65
+ "@biomejs/biome": "^2.5.4",
66
66
  "@types/ejs": "^3.1.5",
67
- "@types/node": "^22.20.0",
68
- "@vitest/coverage-v8": "^4.1.9",
67
+ "@types/node": "^22.20.1",
68
+ "@vitest/coverage-v8": "^4.1.10",
69
69
  "tsup": "^8.5.1",
70
70
  "typescript": "^5.9.3",
71
- "vitest": "^4.1.9",
71
+ "vitest": "^4.1.10",
72
72
  "@releasekit/config": "0.0.0",
73
73
  "@releasekit/core": "0.0.0",
74
- "@releasekit/forge": "0.0.0",
75
- "@releasekit/git": "0.0.0"
74
+ "@releasekit/git": "0.0.0",
75
+ "@releasekit/forge": "0.0.0"
76
76
  },
77
77
  "engines": {
78
78
  "node": ">=22"