@visulima/vis 6.2.0 → 6.3.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/CHANGELOG.md +7 -0
- package/dist/bin.js +1 -1
- package/dist/binx.js +1 -1
- package/dist/packem_chunks/DEFAULT_CLEAN_KEEP.js +1 -1
- package/dist/packem_chunks/bloom-sync.js +1 -1
- package/dist/packem_chunks/cargo-lock.js +5 -5
- package/dist/packem_chunks/cargo-plan.js +3 -3
- package/dist/packem_chunks/catalog2.js +1 -1
- package/dist/packem_chunks/cli-exec.js +1 -1
- package/dist/packem_chunks/cli-main.js +1 -1
- package/dist/packem_chunks/composer-projects.js +2 -2
- package/dist/packem_chunks/context.js +4 -4
- package/dist/packem_chunks/detect.js +4 -4
- package/dist/packem_chunks/fix.js +1 -1
- package/dist/packem_chunks/go-plan.js +1 -1
- package/dist/packem_chunks/go-projects.js +1 -1
- package/dist/packem_chunks/group-tags.js +1 -1
- package/dist/packem_chunks/handler.js +1 -1
- package/dist/packem_chunks/handler10.js +1 -1
- package/dist/packem_chunks/handler11.js +1 -1
- package/dist/packem_chunks/handler12.js +1 -1
- package/dist/packem_chunks/handler13.js +1 -1
- package/dist/packem_chunks/handler14.js +1 -1
- package/dist/packem_chunks/handler15.js +1 -1
- package/dist/packem_chunks/handler16.js +1 -1
- package/dist/packem_chunks/handler17.js +1 -1
- package/dist/packem_chunks/handler18.js +1 -1
- package/dist/packem_chunks/handler19.js +1 -1
- package/dist/packem_chunks/handler2.js +1 -1
- package/dist/packem_chunks/handler20.js +1 -1
- package/dist/packem_chunks/handler21.js +1 -1
- package/dist/packem_chunks/handler23.js +1 -1
- package/dist/packem_chunks/handler24.js +1 -1
- package/dist/packem_chunks/handler25.js +1 -1
- package/dist/packem_chunks/handler26.js +1 -1
- package/dist/packem_chunks/handler27.js +1 -1
- package/dist/packem_chunks/handler28.js +1 -1
- package/dist/packem_chunks/handler29.js +1 -1
- package/dist/packem_chunks/handler3.js +1 -1
- package/dist/packem_chunks/handler32.js +1 -1
- package/dist/packem_chunks/handler4.js +1 -1
- package/dist/packem_chunks/handler46.js +1 -1
- package/dist/packem_chunks/handler49.js +1 -1
- package/dist/packem_chunks/handler5.js +1 -1
- package/dist/packem_chunks/handler50.js +1 -1
- package/dist/packem_chunks/handler51.js +1 -1
- package/dist/packem_chunks/handler52.js +1 -1
- package/dist/packem_chunks/handler54.js +1 -1
- package/dist/packem_chunks/handler55.js +1 -1
- package/dist/packem_chunks/handler56.js +1 -1
- package/dist/packem_chunks/handler58.js +1 -1
- package/dist/packem_chunks/handler59.js +1 -1
- package/dist/packem_chunks/handler6.js +1 -1
- package/dist/packem_chunks/handler60.js +1 -1
- package/dist/packem_chunks/handler61.js +1 -1
- package/dist/packem_chunks/handler62.js +1 -1
- package/dist/packem_chunks/handler63.js +1 -1
- package/dist/packem_chunks/handler64.js +1 -1
- package/dist/packem_chunks/handler65.js +1 -1
- package/dist/packem_chunks/handler66.js +1 -1
- package/dist/packem_chunks/handler67.js +1 -1
- package/dist/packem_chunks/handler68.js +1 -1
- package/dist/packem_chunks/handler69.js +1 -1
- package/dist/packem_chunks/handler7.js +1 -1
- package/dist/packem_chunks/handler70.js +1 -1
- package/dist/packem_chunks/handler71.js +1 -1
- package/dist/packem_chunks/handler72.js +1 -1
- package/dist/packem_chunks/handler73.js +1 -1
- package/dist/packem_chunks/handler74.js +1 -1
- package/dist/packem_chunks/handler75.js +1 -1
- package/dist/packem_chunks/handler76.js +1 -1
- package/dist/packem_chunks/handler77.js +1 -1
- package/dist/packem_chunks/handler78.js +1 -1
- package/dist/packem_chunks/handler79.js +1 -1
- package/dist/packem_chunks/handler8.js +1 -1
- package/dist/packem_chunks/handler9.js +1 -1
- package/dist/packem_chunks/heal-accept.js +1 -1
- package/dist/packem_chunks/heal.js +1 -1
- package/dist/packem_chunks/help-command.js +1 -1
- package/dist/packem_chunks/index3.js +26 -26
- package/dist/packem_chunks/index7.js +1 -1
- package/dist/packem_chunks/keys-refresh.js +1 -1
- package/dist/packem_chunks/list.js +1 -1
- package/dist/packem_chunks/loader.js +1 -1
- package/dist/packem_chunks/print-config.js +1 -1
- package/dist/packem_chunks/prune.js +1 -1
- package/dist/packem_chunks/python-projects.js +1 -1
- package/dist/packem_chunks/snapshot.js +1 -1
- package/dist/packem_chunks/status.js +1 -1
- package/dist/packem_chunks/success-walk.js +16 -6
- package/dist/packem_chunks/sync.js +1 -1
- package/dist/packem_chunks/sync2.js +1 -1
- package/dist/packem_chunks/tripwire.js +1 -1
- package/dist/packem_chunks/verify-lockfile.js +1 -1
- package/dist/packem_chunks/version-resolver.js +1 -1
- package/dist/packem_chunks/workspace.js +1 -1
- package/dist/packem_shared/{ReleaseClient-B4xWga1q.js → ReleaseClient-DXlaCQuQ.js} +1 -1
- package/dist/packem_shared/{advisories-3ZfSV0LH.js → advisories-DvmoRKco.js} +1 -1
- package/dist/packem_shared/{affected-selection-BkHUfErA.js → affected-selection-BCYW97-p.js} +1 -1
- package/dist/packem_shared/{ai-analysis-CbjIaasa.js → ai-analysis-C7JT_zkS.js} +1 -1
- package/dist/packem_shared/{ai-cache-VYBlfP7G.js → ai-cache-B-3KMpa9.js} +1 -1
- package/dist/packem_shared/{ai-fix-_ZbH_K45.js → ai-fix-PRDGLhGn.js} +1 -1
- package/dist/packem_shared/{apply-DoeQAAGm.js → apply-DBU-Gu24.js} +4 -4
- package/dist/packem_shared/apply-release-plan-BZ_E8GXQ.js +15 -0
- package/dist/packem_shared/{bin-KU_2tR-G.js → bin-Bi_j0gXS.js} +1 -1
- package/dist/packem_shared/{build-scripts-DtqsovcF.js → build-scripts-Bc8dOvdA.js} +1 -1
- package/dist/packem_shared/{dependency-scan-BUs_kdX-.js → dependency-scan-YbYZyLNf.js} +1 -1
- package/dist/packem_shared/{detect-DSMoIgaH.js → detect-clCqXvt_.js} +1 -1
- package/dist/packem_shared/{docker-52xcbz7D.js → docker-hegwl1I6.js} +1 -1
- package/dist/packem_shared/{ecosystem-gate-Fu5__-JA.js → ecosystem-gate-C9GmY9oJ.js} +1 -1
- package/dist/packem_shared/{env-CJVZRP-o.js → env-DDmZsWBr.js} +1 -1
- package/dist/packem_shared/{env-consistency-cqaZf4xr.js → env-consistency-Bn8a_NXB.js} +1 -1
- package/dist/packem_shared/{failure-log-Ba31iSwN.js → failure-log-D-YtsYF3.js} +1 -1
- package/dist/packem_shared/glob-Cyk1H9ZL-BjuiUjNv.js +1 -0
- package/dist/packem_shared/{index-B4AjSxHU.js → index--eV4qIz5.js} +1 -1
- package/dist/packem_shared/{index-_FIeiL52.js → index-BRrpyvTT.js} +1 -1
- package/dist/packem_shared/{index-0YpDONiz.js → index-C297jo7X.js} +1 -1
- package/dist/packem_shared/{lifecycle-BUKDvgHs.js → lifecycle-BBEFEzfq.js} +1 -1
- package/dist/packem_shared/{manifests-p1zhN8pD.js → manifests-Caf3hlIO.js} +1 -1
- package/dist/packem_shared/{min-release-age-D782Z1Yw.js → min-release-age-BysoCN79.js} +1 -1
- package/dist/packem_shared/{missing-package-json-BoK5DGmG.js → missing-package-json-Cvjhtrwa.js} +1 -1
- package/dist/packem_shared/{multi-eco-lockfiles-OaHbR4J9.js → multi-eco-lockfiles-g-vAXRj7.js} +1 -1
- package/dist/packem_shared/{native-config-sync-pyH7zbC_.js → native-config-sync-Bm9PtGpG.js} +1 -1
- package/dist/packem_shared/{osv-Cc5Ay6Oh.js → osv-9k7R7LU3.js} +1 -1
- package/dist/packem_shared/{package-version-B-FGASyU.js → package-version-CNjr03oy.js} +1 -1
- package/dist/packem_shared/{packument-q5JfSrU7.js → packument-D_qCUp6X.js} +1 -1
- package/dist/packem_shared/{pm-runner-Dboj-wZG.js → pm-runner-BXRi4ZM9.js} +1 -1
- package/dist/packem_shared/{project-name-filter-DP4RCrn3.js → project-name-filter-D7cvTZtS.js} +1 -1
- package/dist/packem_shared/{provenance-DqvqDJn5.js → provenance-DSeGe6vU.js} +1 -1
- package/dist/packem_shared/{publish-missing-Hnqkjxov.js → publish-missing-DwaM7zcX.js} +1 -1
- package/dist/packem_shared/{registry-acz8_sxm.js → registry-Mb5e6Tf4.js} +1 -1
- package/dist/packem_shared/{registry-keys-BEhcTEZZ.js → registry-keys-CQxcAR-Z.js} +1 -1
- package/dist/packem_shared/{renderToString-DR0zDUjh-CWJW0Ktb.js → renderToString-DR0zDUjh-DPXtZSQK.js} +1 -1
- package/dist/packem_shared/{resolve-explicit-DlvpbFfx.js → resolve-explicit-YbCvwu7l.js} +1 -1
- package/dist/packem_shared/{run-summary-utils-BiTJspOl.js → run-summary-utils-B0K6xaLZ.js} +1 -1
- package/dist/packem_shared/{runtime-check-DaFcciiJ.js → runtime-check-DDPs78Zv.js} +1 -1
- package/dist/packem_shared/{s1ngularity-CZT2Pgbl.js → s1ngularity-CCkRFMDX.js} +1 -1
- package/dist/packem_shared/{scaffold-files-CkXH8tRQ.js → scaffold-files-Xt6zE44I.js} +1 -1
- package/dist/packem_shared/{scan-progress-Dd0DYpfJ.js → scan-progress-BbxXKvTV.js} +1 -1
- package/dist/packem_shared/{selectors-DGWSSXWM.js → selectors-CwKjRLHo.js} +1 -1
- package/dist/packem_shared/{signatures-DBVHek52.js → signatures-DDD9Iaer.js} +1 -1
- package/dist/packem_shared/{spinner-BjxtOJJc.js → spinner-BItORXCk.js} +1 -1
- package/dist/packem_shared/{table-c5KdYeRx.js → table-DsmWzLWy.js} +1 -1
- package/dist/packem_shared/{tabs-D81GPdC_.js → tabs-D61j1uvE.js} +1 -1
- package/dist/packem_shared/{toolchain-D8qgs8sr.js → toolchain-Z0l12EQs.js} +1 -1
- package/dist/packem_shared/{typosquats-BxBeFNUo.js → typosquats-Da4w5sjI.js} +1 -1
- package/dist/packem_shared/{use-measured-height-D7d36UUm.js → use-measured-height-UU40gqT7.js} +1 -1
- package/dist/packem_shared/{vis-update-app-C_wcaC7g.js → vis-update-app-Bin63opa.js} +1 -1
- package/dist/packem_shared/{vis-user-error-B73F9C2Z.js → vis-user-error-wkTUvlyX.js} +1 -1
- package/dist/packem_shared/{watch-loop-BeyVtDyD.js → watch-loop-CGBVtTBl.js} +1 -1
- package/dist/release/index.d.ts +3 -3
- package/dist/release/index.js +1 -1
- package/dist/release/types.d.ts +36 -7
- package/index.js +26 -26
- package/package.json +9 -9
- package/schemas/vis-config.schema.json +15 -3
- package/schemas/vis-release-config.schema.json +15 -3
- package/dist/packem_shared/apply-release-plan-BalHtK-g.js +0 -15
- package/dist/packem_shared/glob-Cyk1H9ZL-COXzOVwd.js +0 -1
|
@@ -4439,6 +4439,10 @@
|
|
|
4439
4439
|
},
|
|
4440
4440
|
"description": "Globs that override `ignore` and `private` exclusion."
|
|
4441
4441
|
},
|
|
4442
|
+
"internalDependencyRanges": {
|
|
4443
|
+
"$ref": "#/$defs/InternalDependencyRangesMode",
|
|
4444
|
+
"description": "How the version step updates a released package's specifiers for other workspace packages in the same wave. `updateInternalDependencies` decides which dependents cascade; this decides what gets written. Default: `\"rewrite\"`.\n\nUse `\"preserve-satisfying\"` for promotion-safe ranges such as `>=1.0.0-alpha.76 <2.0.0-0`, which `\"rewrite\"` turns into `>=<newVersion>` (ratcheted floor, no ceiling)."
|
|
4445
|
+
},
|
|
4442
4446
|
"linked": {
|
|
4443
4447
|
"type": "array",
|
|
4444
4448
|
"items": {
|
|
@@ -4842,6 +4846,14 @@
|
|
|
4842
4846
|
],
|
|
4843
4847
|
"additionalProperties": false
|
|
4844
4848
|
},
|
|
4849
|
+
"InternalDependencyRangesMode": {
|
|
4850
|
+
"type": "string",
|
|
4851
|
+
"enum": [
|
|
4852
|
+
"rewrite",
|
|
4853
|
+
"preserve-satisfying"
|
|
4854
|
+
],
|
|
4855
|
+
"description": "What the version step writes into a released package's specifier for an internal dependency. `\"rewrite\"` sets every specifier to `<operator><newVersion>`; `\"preserve-satisfying\"` leaves a range that still admits the new version untouched, raises the floor of an outgrown one (keeping its ceiling) and fails the release when the new version is past the ceiling."
|
|
4856
|
+
},
|
|
4845
4857
|
"NotificationsConfig": {
|
|
4846
4858
|
"type": "object",
|
|
4847
4859
|
"properties": {
|
|
@@ -5612,7 +5624,7 @@
|
|
|
5612
5624
|
"properties": {
|
|
5613
5625
|
"commentBody": {
|
|
5614
5626
|
"type": "string",
|
|
5615
|
-
"description": "Comment body template posted on every referenced PR / issue. Tokens: - `{
|
|
5627
|
+
"description": "Comment body template posted on every referenced PR / issue. Tokens: - `{releases}` — every package + version the ref shipped in, with release and npm links, grouped per channel and accumulated across waves. A channel listing more than 10 packages collapses into a `<details>` block. - `{version}` — the version of the first package in this wave - `{name}` — the name of the first package in this wave - `{tag}` — this wave's channel tag (dist-tag), e.g. `latest` - `{url}` — the first package's forge release URL when available\n\nDefault: `\":tada: This has been released :tada:\\n\\n{releases}\"`."
|
|
5616
5628
|
},
|
|
5617
5629
|
"enabled": {
|
|
5618
5630
|
"type": "boolean",
|
|
@@ -5627,11 +5639,11 @@
|
|
|
5627
5639
|
},
|
|
5628
5640
|
"skipPrerelease": {
|
|
5629
5641
|
"type": "boolean",
|
|
5630
|
-
"description": "Skip the walk entirely on prerelease channels — the typical \"don't notify users their PR shipped in a beta\" guardrail. Default `true`."
|
|
5642
|
+
"description": "Skip the walk entirely on prerelease channels — the typical \"don't notify users their PR shipped in a beta\" guardrail. Default `true`. A monorepo that releases from a prerelease line (`1.0.0-alpha.*`) must set `false`, or no comment is ever posted."
|
|
5631
5643
|
}
|
|
5632
5644
|
},
|
|
5633
5645
|
"additionalProperties": false,
|
|
5634
|
-
"description": "Post-release notification walk — semantic-release parity.\n\n**Default OFF.** Set `release.successWalk: {}` to opt in with defaults. Leaving `successWalk` undefined in the workspace config is the explicit \"don't touch third-party PRs\" stance — sticky comments and the `released` label are an irreversible side effect on every PR mentioned in a changelog body, so we never apply them implicitly.\n\nWhen opted in, after a successful publish wave vis walks every PR / issue referenced in the rendered changelog entries and: 1. Posts (or upserts)
|
|
5646
|
+
"description": "Post-release notification walk — semantic-release parity.\n\n**Default OFF.** Set `release.successWalk: {}` to opt in with defaults. Leaving `successWalk` undefined in the workspace config is the explicit \"don't touch third-party PRs\" stance — sticky comments and the `released` label are an irreversible side effect on every PR mentioned in a changelog body, so we never apply them implicitly.\n\nWhen opted in, after a successful publish wave vis walks every PR / issue referenced in the rendered changelog entries and: 1. Posts (or upserts) one sticky comment listing every package + version the ref shipped in. The list accumulates per channel (dist-tag): a PR shipped on `alpha` and later on `latest` shows both, and re-running a wave changes nothing. 2. Adds the configured labels (default `[\"released\"]`).\n\nOn GitLab, `#N` is an issue and `!N` a merge request; each gets the note and labels on its own object. On GitHub the token needs `issues: write` and `pull-requests: write`.\n\nFailure to walk a single ref is non-fatal — the publish itself already succeeded; we don't want a forge API blip rolling that back."
|
|
5635
5647
|
},
|
|
5636
5648
|
"UpdateInternalDependenciesMode": {
|
|
5637
5649
|
"type": "string",
|
|
@@ -293,6 +293,10 @@
|
|
|
293
293
|
},
|
|
294
294
|
"description": "Globs that override `ignore` and `private` exclusion."
|
|
295
295
|
},
|
|
296
|
+
"internalDependencyRanges": {
|
|
297
|
+
"$ref": "#/$defs/InternalDependencyRangesMode",
|
|
298
|
+
"description": "How the version step updates a released package's specifiers for other workspace packages in the same wave. `updateInternalDependencies` decides which dependents cascade; this decides what gets written. Default: `\"rewrite\"`.\n\nUse `\"preserve-satisfying\"` for promotion-safe ranges such as `>=1.0.0-alpha.76 <2.0.0-0`, which `\"rewrite\"` turns into `>=<newVersion>` (ratcheted floor, no ceiling)."
|
|
299
|
+
},
|
|
296
300
|
"linked": {
|
|
297
301
|
"type": "array",
|
|
298
302
|
"items": {
|
|
@@ -696,6 +700,14 @@
|
|
|
696
700
|
],
|
|
697
701
|
"additionalProperties": false
|
|
698
702
|
},
|
|
703
|
+
"InternalDependencyRangesMode": {
|
|
704
|
+
"type": "string",
|
|
705
|
+
"enum": [
|
|
706
|
+
"rewrite",
|
|
707
|
+
"preserve-satisfying"
|
|
708
|
+
],
|
|
709
|
+
"description": "What the version step writes into a released package's specifier for an internal dependency. `\"rewrite\"` sets every specifier to `<operator><newVersion>`; `\"preserve-satisfying\"` leaves a range that still admits the new version untouched, raises the floor of an outgrown one (keeping its ceiling) and fails the release when the new version is past the ceiling."
|
|
710
|
+
},
|
|
699
711
|
"NotificationsConfig": {
|
|
700
712
|
"type": "object",
|
|
701
713
|
"properties": {
|
|
@@ -1466,7 +1478,7 @@
|
|
|
1466
1478
|
"properties": {
|
|
1467
1479
|
"commentBody": {
|
|
1468
1480
|
"type": "string",
|
|
1469
|
-
"description": "Comment body template posted on every referenced PR / issue. Tokens: - `{
|
|
1481
|
+
"description": "Comment body template posted on every referenced PR / issue. Tokens: - `{releases}` — every package + version the ref shipped in, with release and npm links, grouped per channel and accumulated across waves. A channel listing more than 10 packages collapses into a `<details>` block. - `{version}` — the version of the first package in this wave - `{name}` — the name of the first package in this wave - `{tag}` — this wave's channel tag (dist-tag), e.g. `latest` - `{url}` — the first package's forge release URL when available\n\nDefault: `\":tada: This has been released :tada:\\n\\n{releases}\"`."
|
|
1470
1482
|
},
|
|
1471
1483
|
"enabled": {
|
|
1472
1484
|
"type": "boolean",
|
|
@@ -1481,11 +1493,11 @@
|
|
|
1481
1493
|
},
|
|
1482
1494
|
"skipPrerelease": {
|
|
1483
1495
|
"type": "boolean",
|
|
1484
|
-
"description": "Skip the walk entirely on prerelease channels — the typical \"don't notify users their PR shipped in a beta\" guardrail. Default `true`."
|
|
1496
|
+
"description": "Skip the walk entirely on prerelease channels — the typical \"don't notify users their PR shipped in a beta\" guardrail. Default `true`. A monorepo that releases from a prerelease line (`1.0.0-alpha.*`) must set `false`, or no comment is ever posted."
|
|
1485
1497
|
}
|
|
1486
1498
|
},
|
|
1487
1499
|
"additionalProperties": false,
|
|
1488
|
-
"description": "Post-release notification walk — semantic-release parity.\n\n**Default OFF.** Set `release.successWalk: {}` to opt in with defaults. Leaving `successWalk` undefined in the workspace config is the explicit \"don't touch third-party PRs\" stance — sticky comments and the `released` label are an irreversible side effect on every PR mentioned in a changelog body, so we never apply them implicitly.\n\nWhen opted in, after a successful publish wave vis walks every PR / issue referenced in the rendered changelog entries and: 1. Posts (or upserts)
|
|
1500
|
+
"description": "Post-release notification walk — semantic-release parity.\n\n**Default OFF.** Set `release.successWalk: {}` to opt in with defaults. Leaving `successWalk` undefined in the workspace config is the explicit \"don't touch third-party PRs\" stance — sticky comments and the `released` label are an irreversible side effect on every PR mentioned in a changelog body, so we never apply them implicitly.\n\nWhen opted in, after a successful publish wave vis walks every PR / issue referenced in the rendered changelog entries and: 1. Posts (or upserts) one sticky comment listing every package + version the ref shipped in. The list accumulates per channel (dist-tag): a PR shipped on `alpha` and later on `latest` shows both, and re-running a wave changes nothing. 2. Adds the configured labels (default `[\"released\"]`).\n\nOn GitLab, `#N` is an issue and `!N` a merge request; each gets the note and labels on its own object. On GitHub the token needs `issues: write` and `pull-requests: write`.\n\nFailure to walk a single ref is non-fatal — the publish itself already succeeded; we don't want a forge API blip rolling that back."
|
|
1489
1501
|
},
|
|
1490
1502
|
"UpdateInternalDependenciesMode": {
|
|
1491
1503
|
"type": "string",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const m=["dependencies","devDependencies","peerDependencies","optionalDependencies"],$=(e,s)=>{if(e.startsWith("catalog:")||e==="*"||e==="workspace:*"||e==="workspace:^"||e==="workspace:~")return e;if(e.startsWith("workspace:")){const n=e.slice(10);return`workspace:${g(n)}${s}`}if(e.startsWith("npm:")){const n=e.lastIndexOf("@");if(n<=4)return e;const i=e.slice(4,n),r=e.slice(n+1),a=g(r);return`npm:${i}@${a}${s}`}return`${g(e)}${s}`},w=/^([\^~=]|>=?|<=?)/,g=e=>{const s=w.exec(e);return s?s[1]??"^":"^"},W=async(e,s,t={})=>{const n=t.serializeManifest??C,i=t.changelogPath??x,r=t.renderChangelogEntry??M,a=new Map(e.releases.map(o=>[o.name,o.newVersion])),p=await Promise.all(e.releases.map(async o=>{const c=s.getPackage(o.name);if(!c)return;const h=y(c.manifest,o.newVersion,a),d=t.readManifest?.(c.manifestPath),u=i(c);return{changelogEntry:await r(o),changelogPath:u,manifestWrite:c.ecosystem===void 0?{content:n(h,d),path:c.manifestPath}:void 0}})),f=[],l=new Map;for(const o of p){if(!o)continue;o.manifestWrite&&f.push(o.manifestWrite);const c=l.get(o.changelogPath);c?c.push(o.changelogEntry):l.set(o.changelogPath,[o.changelogEntry])}for(const[o,c]of l){const h=c.join(`
|
|
2
|
-
|
|
3
|
-
`),d=t.readChangelog?.(o);f.push({content:k(h,d),path:o})}return{deletions:e.consumedChangeFiles.map(o=>o.path),writes:f}},y=(e,s,t)=>{const n={...e,version:s};for(const i of m){const r=e[i];if(!r||typeof r!="object")continue;const a={...r};let p=!1;for(const[f,l]of Object.entries(r)){const o=t.get(f);if(o===void 0)continue;const c=$(l,o);c!==l&&(a[f]=c,p=!0)}p&&(n[i]=a)}return n},E=/^# .+/,P=/^## /m,k=(e,s)=>{const t=e.trim();if(!s||s.trim()==="")return`# Changelog
|
|
4
|
-
|
|
5
|
-
${t}
|
|
6
|
-
`;const n=s.split(/\r?\n/);if(n[0]&&E.test(n[0])){let i=1;for(;i<n.length&&!(n[i]??"").startsWith("## ");)i+=1;const r=n.slice(0,i),a=n.slice(i);return r.length>0&&r[r.length-1]!==""&&r.push(""),[...r,t,"",...a].join(`
|
|
7
|
-
`).replaceAll(/\n{3,}/g,`
|
|
8
|
-
|
|
9
|
-
`)}return P.test(s)?`${t}
|
|
10
|
-
|
|
11
|
-
${s.trimStart()}`:`${t}
|
|
12
|
-
|
|
13
|
-
${s.trimStart()}`},C=(e,s)=>{const t=D(s);return`${JSON.stringify(e,null,t)}
|
|
14
|
-
`},D=e=>{if(!e)return 4;const s=/\n(\s+)"/.exec(e);if(!s)return 4;const t=(s[1]??"").length;return t===2||t===4?t:4},x=e=>`${e.dir}/CHANGELOG.md`,M=e=>{const s=new Date().toISOString().slice(0,10),t=[`## ${e.newVersion}`,`<sub>${s}</sub>`,""];if(e.isCascadeBump||e.isGroupBump)for(const n of e.sources)t.push(`- Version bump from ${n.name}@${n.newVersion}`);else if(e.isDependencyBump&&e.changeFiles.length===0)for(const n of e.sources)n.newVersion===""?t.push(`- Removed dependency ${n.name}`):t.push(`- Updated dependency ${n.name}@${n.newVersion}`);else for(const n of e.changeFiles)for(const i of n.body.split(/\r?\n/)){if(i.trim()===""){t.push("");continue}t.push(i.startsWith("-")||i.startsWith("*")?i:`- ${i}`)}return t.join(`
|
|
15
|
-
`)};export{W as a,k as p,$ as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as t}from"./registry-acz8_sxm.js";const s=async(a,o)=>await t(a,o);export{s as l};
|