@visulima/vis 6.2.0 → 6.4.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 +13 -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/git.js +8 -5
- 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 +4 -4
- 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/index2.js +3 -3
- 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-1hH9OIcb.js} +1 -1
- package/dist/packem_shared/{advisories-3ZfSV0LH.js → advisories-DyHTz-me.js} +1 -1
- package/dist/packem_shared/{affected-selection-BkHUfErA.js → affected-selection-C3eYhoTa.js} +1 -1
- package/dist/packem_shared/{ai-analysis-CbjIaasa.js → ai-analysis-y1glEwHU.js} +1 -1
- package/dist/packem_shared/{ai-cache-VYBlfP7G.js → ai-cache-Bq3dQd87.js} +1 -1
- package/dist/packem_shared/{ai-fix-_ZbH_K45.js → ai-fix-BQUNIOMp.js} +1 -1
- package/dist/packem_shared/apply-DA-Dv8Pq.js +8 -0
- package/dist/packem_shared/apply-release-plan-BZ_E8GXQ.js +15 -0
- package/dist/packem_shared/{bin-KU_2tR-G.js → bin-DEQ52GkZ.js} +1 -1
- package/dist/packem_shared/{build-scripts-DtqsovcF.js → build-scripts-wF0ykoin.js} +1 -1
- package/dist/packem_shared/{dependency-scan-BUs_kdX-.js → dependency-scan-BNqHSRaA.js} +1 -1
- package/dist/packem_shared/{detect-DSMoIgaH.js → detect-B9mLzG9L.js} +1 -1
- package/dist/packem_shared/{docker-52xcbz7D.js → docker-CpJj7VQ6.js} +1 -1
- package/dist/packem_shared/{ecosystem-gate-Fu5__-JA.js → ecosystem-gate-DI5TKrtm.js} +1 -1
- package/dist/packem_shared/{env-CJVZRP-o.js → env-CsENUmRe.js} +1 -1
- package/dist/packem_shared/{env-consistency-cqaZf4xr.js → env-consistency-HvLV2yQ6.js} +1 -1
- package/dist/packem_shared/{failure-log-Ba31iSwN.js → failure-log-C8Vh0Vtk.js} +1 -1
- package/dist/packem_shared/glob-Cyk1H9ZL-ChoYoZKK.js +1 -0
- package/dist/packem_shared/{index-B4AjSxHU.js → index--eV4qIz5.js} +1 -1
- package/dist/packem_shared/{index-0YpDONiz.js → index-CFglig6K.js} +1 -1
- package/dist/packem_shared/{index-_FIeiL52.js → index-CLcQ8Xe4.js} +1 -1
- package/dist/packem_shared/{interface.d-CrHOtJc1.d.ts → interface.d-Bb_1pid9.d.ts} +1 -1
- package/dist/packem_shared/{interface.d-CRqRz4jt.d.ts → interface.d-BlaMrDqd.d.ts} +7 -0
- package/dist/packem_shared/{lifecycle-BUKDvgHs.js → lifecycle-DNz4d7ND.js} +1 -1
- package/dist/packem_shared/{manifests-p1zhN8pD.js → manifests-CgyI-i-c.js} +1 -1
- package/dist/packem_shared/{min-release-age-D782Z1Yw.js → min-release-age-BpvYMZuT.js} +1 -1
- package/dist/packem_shared/{missing-package-json-BoK5DGmG.js → missing-package-json-Bg72nt4h.js} +1 -1
- package/dist/packem_shared/{multi-eco-lockfiles-OaHbR4J9.js → multi-eco-lockfiles-BCGfTwHy.js} +1 -1
- package/dist/packem_shared/{native-config-sync-pyH7zbC_.js → native-config-sync-em22UAUQ.js} +1 -1
- package/dist/packem_shared/{osv-Cc5Ay6Oh.js → osv-CjtVHCRP.js} +1 -1
- package/dist/packem_shared/{package-version-B-FGASyU.js → package-version-BzkcrNVE.js} +1 -1
- package/dist/packem_shared/{packument-q5JfSrU7.js → packument-BvTjAHsy.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-DKFmLbwE.js} +1 -1
- package/dist/packem_shared/{provenance-DqvqDJn5.js → provenance-DFN3qbB3.js} +1 -1
- package/dist/packem_shared/publish-missing-MxqARUPC.js +35 -0
- package/dist/packem_shared/{registry-acz8_sxm.js → registry-CIfr2njA.js} +1 -1
- package/dist/packem_shared/{registry-keys-BEhcTEZZ.js → registry-keys-Cq92YoCx.js} +1 -1
- package/dist/packem_shared/{renderToString-DR0zDUjh-CWJW0Ktb.js → renderToString-DR0zDUjh-BUpUCnJt.js} +1 -1
- package/dist/packem_shared/{resolve-explicit-DlvpbFfx.js → resolve-explicit-CZlkR05q.js} +1 -1
- package/dist/packem_shared/{run-summary-utils-BiTJspOl.js → run-summary-utils-BYPm6bUE.js} +1 -1
- package/dist/packem_shared/{runtime-check-DaFcciiJ.js → runtime-check-DUxn-Idd.js} +1 -1
- package/dist/packem_shared/{s1ngularity-CZT2Pgbl.js → s1ngularity-CPXsMMnh.js} +1 -1
- package/dist/packem_shared/{scaffold-files-CkXH8tRQ.js → scaffold-files-ojq9leuZ.js} +1 -1
- package/dist/packem_shared/{scan-progress-Dd0DYpfJ.js → scan-progress-DBaFUryq.js} +1 -1
- package/dist/packem_shared/{selectors-DGWSSXWM.js → selectors-aT_XJTrh.js} +1 -1
- package/dist/packem_shared/{signatures-DBVHek52.js → signatures-C2HaWfZn.js} +1 -1
- package/dist/packem_shared/{spinner-BjxtOJJc.js → spinner-C23pifwn.js} +1 -1
- package/dist/packem_shared/{table-c5KdYeRx.js → table-CAjUuSN2.js} +1 -1
- package/dist/packem_shared/{tabs-D81GPdC_.js → tabs-CogGAIWQ.js} +1 -1
- package/dist/packem_shared/{toolchain-D8qgs8sr.js → toolchain-BF6NEQJ2.js} +1 -1
- package/dist/packem_shared/{typosquats-BxBeFNUo.js → typosquats-MPA4DNWt.js} +1 -1
- package/dist/packem_shared/{use-measured-height-D7d36UUm.js → use-measured-height-BHJ8aL73.js} +1 -1
- package/dist/packem_shared/{vis-update-app-C_wcaC7g.js → vis-update-app--aolEPqW.js} +1 -1
- package/dist/packem_shared/{vis-user-error-B73F9C2Z.js → vis-user-error-DUyARIaA.js} +1 -1
- package/dist/packem_shared/{watch-loop-BeyVtDyD.js → watch-loop-C7VCU587.js} +1 -1
- package/dist/release/core/changelog/index.d.ts +1 -1
- package/dist/release/core/package-managers/index.d.ts +2 -2
- package/dist/release/core/version-actions/index.d.ts +3 -3
- package/dist/release/index.d.ts +3 -3
- package/dist/release/index.js +1 -1
- package/dist/release/plugin-sdk.d.ts +3 -3
- package/dist/release/types.d.ts +67 -7
- package/index.js +26 -26
- package/package.json +9 -9
- package/schemas/vis-config.schema.json +31 -3
- package/schemas/vis-release-config.schema.json +31 -3
- package/dist/packem_shared/apply-DoeQAAGm.js +0 -6
- package/dist/packem_shared/apply-release-plan-BalHtK-g.js +0 -15
- package/dist/packem_shared/glob-Cyk1H9ZL-COXzOVwd.js +0 -1
- package/dist/packem_shared/publish-missing-Hnqkjxov.js +0 -35
package/index.js
CHANGED
|
@@ -82,7 +82,7 @@ function requireNative() {
|
|
|
82
82
|
const binding = require('@visulima/vis-binding-android-arm64')
|
|
83
83
|
const bindingPackageVersion = require('@visulima/vis-binding-android-arm64/package.json').version
|
|
84
84
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
85
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
85
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
86
86
|
}
|
|
87
87
|
return binding
|
|
88
88
|
} catch (e) {
|
|
@@ -98,7 +98,7 @@ function requireNative() {
|
|
|
98
98
|
const binding = require('@visulima/vis-binding-android-arm-eabi')
|
|
99
99
|
const bindingPackageVersion = require('@visulima/vis-binding-android-arm-eabi/package.json').version
|
|
100
100
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
101
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
101
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
102
102
|
}
|
|
103
103
|
return binding
|
|
104
104
|
} catch (e) {
|
|
@@ -119,7 +119,7 @@ function requireNative() {
|
|
|
119
119
|
const binding = require('@visulima/vis-binding-win32-x64-gnu')
|
|
120
120
|
const bindingPackageVersion = require('@visulima/vis-binding-win32-x64-gnu/package.json').version
|
|
121
121
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
122
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
122
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
123
123
|
}
|
|
124
124
|
return binding
|
|
125
125
|
} catch (e) {
|
|
@@ -135,7 +135,7 @@ function requireNative() {
|
|
|
135
135
|
const binding = require('@visulima/vis-binding-win32-x64-msvc')
|
|
136
136
|
const bindingPackageVersion = require('@visulima/vis-binding-win32-x64-msvc/package.json').version
|
|
137
137
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
138
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
138
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
139
139
|
}
|
|
140
140
|
return binding
|
|
141
141
|
} catch (e) {
|
|
@@ -152,7 +152,7 @@ function requireNative() {
|
|
|
152
152
|
const binding = require('@visulima/vis-binding-win32-ia32-msvc')
|
|
153
153
|
const bindingPackageVersion = require('@visulima/vis-binding-win32-ia32-msvc/package.json').version
|
|
154
154
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
155
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
155
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
156
156
|
}
|
|
157
157
|
return binding
|
|
158
158
|
} catch (e) {
|
|
@@ -168,7 +168,7 @@ function requireNative() {
|
|
|
168
168
|
const binding = require('@visulima/vis-binding-win32-arm64-msvc')
|
|
169
169
|
const bindingPackageVersion = require('@visulima/vis-binding-win32-arm64-msvc/package.json').version
|
|
170
170
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
171
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
171
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
172
172
|
}
|
|
173
173
|
return binding
|
|
174
174
|
} catch (e) {
|
|
@@ -187,7 +187,7 @@ function requireNative() {
|
|
|
187
187
|
const binding = require('@visulima/vis-binding-darwin-universal')
|
|
188
188
|
const bindingPackageVersion = require('@visulima/vis-binding-darwin-universal/package.json').version
|
|
189
189
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
190
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
190
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
191
191
|
}
|
|
192
192
|
return binding
|
|
193
193
|
} catch (e) {
|
|
@@ -203,7 +203,7 @@ function requireNative() {
|
|
|
203
203
|
const binding = require('@visulima/vis-binding-darwin-x64')
|
|
204
204
|
const bindingPackageVersion = require('@visulima/vis-binding-darwin-x64/package.json').version
|
|
205
205
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
206
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
206
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
207
207
|
}
|
|
208
208
|
return binding
|
|
209
209
|
} catch (e) {
|
|
@@ -219,7 +219,7 @@ function requireNative() {
|
|
|
219
219
|
const binding = require('@visulima/vis-binding-darwin-arm64')
|
|
220
220
|
const bindingPackageVersion = require('@visulima/vis-binding-darwin-arm64/package.json').version
|
|
221
221
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
222
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
222
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
223
223
|
}
|
|
224
224
|
return binding
|
|
225
225
|
} catch (e) {
|
|
@@ -239,7 +239,7 @@ function requireNative() {
|
|
|
239
239
|
const binding = require('@visulima/vis-binding-freebsd-x64')
|
|
240
240
|
const bindingPackageVersion = require('@visulima/vis-binding-freebsd-x64/package.json').version
|
|
241
241
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
242
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
242
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
243
243
|
}
|
|
244
244
|
return binding
|
|
245
245
|
} catch (e) {
|
|
@@ -255,7 +255,7 @@ function requireNative() {
|
|
|
255
255
|
const binding = require('@visulima/vis-binding-freebsd-arm64')
|
|
256
256
|
const bindingPackageVersion = require('@visulima/vis-binding-freebsd-arm64/package.json').version
|
|
257
257
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
258
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
258
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
259
259
|
}
|
|
260
260
|
return binding
|
|
261
261
|
} catch (e) {
|
|
@@ -276,7 +276,7 @@ function requireNative() {
|
|
|
276
276
|
const binding = require('@visulima/vis-binding-linux-x64-musl')
|
|
277
277
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-x64-musl/package.json').version
|
|
278
278
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
279
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
279
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
280
280
|
}
|
|
281
281
|
return binding
|
|
282
282
|
} catch (e) {
|
|
@@ -292,7 +292,7 @@ function requireNative() {
|
|
|
292
292
|
const binding = require('@visulima/vis-binding-linux-x64-gnu')
|
|
293
293
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-x64-gnu/package.json').version
|
|
294
294
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
295
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
295
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
296
296
|
}
|
|
297
297
|
return binding
|
|
298
298
|
} catch (e) {
|
|
@@ -310,7 +310,7 @@ function requireNative() {
|
|
|
310
310
|
const binding = require('@visulima/vis-binding-linux-arm64-musl')
|
|
311
311
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-arm64-musl/package.json').version
|
|
312
312
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
313
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
313
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
314
314
|
}
|
|
315
315
|
return binding
|
|
316
316
|
} catch (e) {
|
|
@@ -326,7 +326,7 @@ function requireNative() {
|
|
|
326
326
|
const binding = require('@visulima/vis-binding-linux-arm64-gnu')
|
|
327
327
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-arm64-gnu/package.json').version
|
|
328
328
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
329
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
329
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
330
330
|
}
|
|
331
331
|
return binding
|
|
332
332
|
} catch (e) {
|
|
@@ -344,7 +344,7 @@ function requireNative() {
|
|
|
344
344
|
const binding = require('@visulima/vis-binding-linux-arm-musleabihf')
|
|
345
345
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-arm-musleabihf/package.json').version
|
|
346
346
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
347
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
347
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
348
348
|
}
|
|
349
349
|
return binding
|
|
350
350
|
} catch (e) {
|
|
@@ -360,7 +360,7 @@ function requireNative() {
|
|
|
360
360
|
const binding = require('@visulima/vis-binding-linux-arm-gnueabihf')
|
|
361
361
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-arm-gnueabihf/package.json').version
|
|
362
362
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
363
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
363
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
364
364
|
}
|
|
365
365
|
return binding
|
|
366
366
|
} catch (e) {
|
|
@@ -378,7 +378,7 @@ function requireNative() {
|
|
|
378
378
|
const binding = require('@visulima/vis-binding-linux-loong64-musl')
|
|
379
379
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-loong64-musl/package.json').version
|
|
380
380
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
381
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
381
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
382
382
|
}
|
|
383
383
|
return binding
|
|
384
384
|
} catch (e) {
|
|
@@ -394,7 +394,7 @@ function requireNative() {
|
|
|
394
394
|
const binding = require('@visulima/vis-binding-linux-loong64-gnu')
|
|
395
395
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-loong64-gnu/package.json').version
|
|
396
396
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
397
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
397
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
398
398
|
}
|
|
399
399
|
return binding
|
|
400
400
|
} catch (e) {
|
|
@@ -412,7 +412,7 @@ function requireNative() {
|
|
|
412
412
|
const binding = require('@visulima/vis-binding-linux-riscv64-musl')
|
|
413
413
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-riscv64-musl/package.json').version
|
|
414
414
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
415
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
415
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
416
416
|
}
|
|
417
417
|
return binding
|
|
418
418
|
} catch (e) {
|
|
@@ -428,7 +428,7 @@ function requireNative() {
|
|
|
428
428
|
const binding = require('@visulima/vis-binding-linux-riscv64-gnu')
|
|
429
429
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-riscv64-gnu/package.json').version
|
|
430
430
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
431
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
431
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
432
432
|
}
|
|
433
433
|
return binding
|
|
434
434
|
} catch (e) {
|
|
@@ -445,7 +445,7 @@ function requireNative() {
|
|
|
445
445
|
const binding = require('@visulima/vis-binding-linux-ppc64-gnu')
|
|
446
446
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-ppc64-gnu/package.json').version
|
|
447
447
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
448
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
448
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
449
449
|
}
|
|
450
450
|
return binding
|
|
451
451
|
} catch (e) {
|
|
@@ -461,7 +461,7 @@ function requireNative() {
|
|
|
461
461
|
const binding = require('@visulima/vis-binding-linux-s390x-gnu')
|
|
462
462
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-s390x-gnu/package.json').version
|
|
463
463
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
464
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
464
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
465
465
|
}
|
|
466
466
|
return binding
|
|
467
467
|
} catch (e) {
|
|
@@ -481,7 +481,7 @@ function requireNative() {
|
|
|
481
481
|
const binding = require('@visulima/vis-binding-openharmony-arm64')
|
|
482
482
|
const bindingPackageVersion = require('@visulima/vis-binding-openharmony-arm64/package.json').version
|
|
483
483
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
484
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
484
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
485
485
|
}
|
|
486
486
|
return binding
|
|
487
487
|
} catch (e) {
|
|
@@ -497,7 +497,7 @@ function requireNative() {
|
|
|
497
497
|
const binding = require('@visulima/vis-binding-openharmony-x64')
|
|
498
498
|
const bindingPackageVersion = require('@visulima/vis-binding-openharmony-x64/package.json').version
|
|
499
499
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
500
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
500
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
501
501
|
}
|
|
502
502
|
return binding
|
|
503
503
|
} catch (e) {
|
|
@@ -513,7 +513,7 @@ function requireNative() {
|
|
|
513
513
|
const binding = require('@visulima/vis-binding-openharmony-arm')
|
|
514
514
|
const bindingPackageVersion = require('@visulima/vis-binding-openharmony-arm/package.json').version
|
|
515
515
|
if (bindingPackageVersion !== '4.3.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
516
|
-
throw new Error(`Native binding package version mismatch, expected 6.
|
|
516
|
+
throw new Error(`Native binding package version mismatch, expected 6.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
517
517
|
}
|
|
518
518
|
return binding
|
|
519
519
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/vis",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"description": "A monorepo dev toolkit — task runner, remote caching, security scanning, git hooks, and AI agent integrations — powered by @visulima/task-runner",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build",
|
|
@@ -152,14 +152,14 @@
|
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
"optionalDependencies": {
|
|
155
|
-
"@visulima/vis-binding-darwin-arm64": "6.
|
|
156
|
-
"@visulima/vis-binding-darwin-x64": "6.
|
|
157
|
-
"@visulima/vis-binding-linux-arm64-gnu": "6.
|
|
158
|
-
"@visulima/vis-binding-linux-arm64-musl": "6.
|
|
159
|
-
"@visulima/vis-binding-linux-x64-gnu": "6.
|
|
160
|
-
"@visulima/vis-binding-linux-x64-musl": "6.
|
|
161
|
-
"@visulima/vis-binding-win32-arm64-msvc": "6.
|
|
162
|
-
"@visulima/vis-binding-win32-x64-msvc": "6.
|
|
155
|
+
"@visulima/vis-binding-darwin-arm64": "6.4.0",
|
|
156
|
+
"@visulima/vis-binding-darwin-x64": "6.4.0",
|
|
157
|
+
"@visulima/vis-binding-linux-arm64-gnu": "6.4.0",
|
|
158
|
+
"@visulima/vis-binding-linux-arm64-musl": "6.4.0",
|
|
159
|
+
"@visulima/vis-binding-linux-x64-gnu": "6.4.0",
|
|
160
|
+
"@visulima/vis-binding-linux-x64-musl": "6.4.0",
|
|
161
|
+
"@visulima/vis-binding-win32-arm64-msvc": "6.4.0",
|
|
162
|
+
"@visulima/vis-binding-win32-x64-msvc": "6.4.0"
|
|
163
163
|
},
|
|
164
164
|
"engines": {
|
|
165
165
|
"node": "^22.14.0 || >=24.10.0"
|
|
@@ -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": {
|
|
@@ -4534,6 +4538,10 @@
|
|
|
4534
4538
|
"$ref": "#/$defs/PublishConfig",
|
|
4535
4539
|
"description": "Publish-related config."
|
|
4536
4540
|
},
|
|
4541
|
+
"pushRetries": {
|
|
4542
|
+
"type": "number",
|
|
4543
|
+
"description": "How many times `vis release ci release` (auto-publish) rebases its version commit onto the release branch and pushes again when the branch moved during the run. Requires `tagTarget: \"source\"`: rebasing puts the commits that moved the branch below the release commit, where tags on that commit would hide them from the next release.\n\nDefault: `3` with `tagTarget: \"source\"`, otherwise no retry."
|
|
4544
|
+
},
|
|
4537
4545
|
"python": {
|
|
4538
4546
|
"type": "object",
|
|
4539
4547
|
"properties": {
|
|
@@ -4600,10 +4608,22 @@
|
|
|
4600
4608
|
"additionalProperties": false,
|
|
4601
4609
|
"description": "Swift packages as release packages. Off by default. Every directory under the root with a `Package.swift` is a release package named by its `Package(name: \"…\")` literal. The version comes from Git tags, and the release creates the tag."
|
|
4602
4610
|
},
|
|
4611
|
+
"tagTarget": {
|
|
4612
|
+
"type": "string",
|
|
4613
|
+
"enum": [
|
|
4614
|
+
"release-commit",
|
|
4615
|
+
"source"
|
|
4616
|
+
],
|
|
4617
|
+
"description": "Which commit the release tags point at.\n\n- `\"release-commit\"` (default): the version commit the release creates.\n- `\"source\"`: the commit the release was planned from, already on the branch. The version commit records it in a `Release-Source:` trailer, so it survives the rebase `vis release ci release` does when the branch moved during the run (see `pushRetries`): commits landing mid-run stay in the next release's range. A tag's tree then still holds the previous manifest versions."
|
|
4618
|
+
},
|
|
4603
4619
|
"updateInternalDependencies": {
|
|
4604
4620
|
"$ref": "#/$defs/UpdateInternalDependenciesMode",
|
|
4605
4621
|
"description": "Dep-propagation mode. Default: `\"out-of-range\"`."
|
|
4606
4622
|
},
|
|
4623
|
+
"verifyLockfile": {
|
|
4624
|
+
"type": "boolean",
|
|
4625
|
+
"description": "After the version step regenerates the lockfile, check that a frozen install accepts it (`pnpm install --frozen-lockfile --lockfile-only`) and fail the release, before anything is committed or published, when it does not. pnpm only: `true` with another package manager is an error.\n\nDefault: on for pnpm."
|
|
4626
|
+
},
|
|
4607
4627
|
"versionPr": {
|
|
4608
4628
|
"$ref": "#/$defs/VersionPrConfig",
|
|
4609
4629
|
"description": "Version-PR config."
|
|
@@ -4842,6 +4862,14 @@
|
|
|
4842
4862
|
],
|
|
4843
4863
|
"additionalProperties": false
|
|
4844
4864
|
},
|
|
4865
|
+
"InternalDependencyRangesMode": {
|
|
4866
|
+
"type": "string",
|
|
4867
|
+
"enum": [
|
|
4868
|
+
"rewrite",
|
|
4869
|
+
"preserve-satisfying"
|
|
4870
|
+
],
|
|
4871
|
+
"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."
|
|
4872
|
+
},
|
|
4845
4873
|
"NotificationsConfig": {
|
|
4846
4874
|
"type": "object",
|
|
4847
4875
|
"properties": {
|
|
@@ -5612,7 +5640,7 @@
|
|
|
5612
5640
|
"properties": {
|
|
5613
5641
|
"commentBody": {
|
|
5614
5642
|
"type": "string",
|
|
5615
|
-
"description": "Comment body template posted on every referenced PR / issue. Tokens: - `{
|
|
5643
|
+
"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
5644
|
},
|
|
5617
5645
|
"enabled": {
|
|
5618
5646
|
"type": "boolean",
|
|
@@ -5627,11 +5655,11 @@
|
|
|
5627
5655
|
},
|
|
5628
5656
|
"skipPrerelease": {
|
|
5629
5657
|
"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`."
|
|
5658
|
+
"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
5659
|
}
|
|
5632
5660
|
},
|
|
5633
5661
|
"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)
|
|
5662
|
+
"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
5663
|
},
|
|
5636
5664
|
"UpdateInternalDependenciesMode": {
|
|
5637
5665
|
"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": {
|
|
@@ -388,6 +392,10 @@
|
|
|
388
392
|
"$ref": "#/$defs/PublishConfig",
|
|
389
393
|
"description": "Publish-related config."
|
|
390
394
|
},
|
|
395
|
+
"pushRetries": {
|
|
396
|
+
"type": "number",
|
|
397
|
+
"description": "How many times `vis release ci release` (auto-publish) rebases its version commit onto the release branch and pushes again when the branch moved during the run. Requires `tagTarget: \"source\"`: rebasing puts the commits that moved the branch below the release commit, where tags on that commit would hide them from the next release.\n\nDefault: `3` with `tagTarget: \"source\"`, otherwise no retry."
|
|
398
|
+
},
|
|
391
399
|
"python": {
|
|
392
400
|
"type": "object",
|
|
393
401
|
"properties": {
|
|
@@ -454,10 +462,22 @@
|
|
|
454
462
|
"additionalProperties": false,
|
|
455
463
|
"description": "Swift packages as release packages. Off by default. Every directory under the root with a `Package.swift` is a release package named by its `Package(name: \"…\")` literal. The version comes from Git tags, and the release creates the tag."
|
|
456
464
|
},
|
|
465
|
+
"tagTarget": {
|
|
466
|
+
"type": "string",
|
|
467
|
+
"enum": [
|
|
468
|
+
"release-commit",
|
|
469
|
+
"source"
|
|
470
|
+
],
|
|
471
|
+
"description": "Which commit the release tags point at.\n\n- `\"release-commit\"` (default): the version commit the release creates.\n- `\"source\"`: the commit the release was planned from, already on the branch. The version commit records it in a `Release-Source:` trailer, so it survives the rebase `vis release ci release` does when the branch moved during the run (see `pushRetries`): commits landing mid-run stay in the next release's range. A tag's tree then still holds the previous manifest versions."
|
|
472
|
+
},
|
|
457
473
|
"updateInternalDependencies": {
|
|
458
474
|
"$ref": "#/$defs/UpdateInternalDependenciesMode",
|
|
459
475
|
"description": "Dep-propagation mode. Default: `\"out-of-range\"`."
|
|
460
476
|
},
|
|
477
|
+
"verifyLockfile": {
|
|
478
|
+
"type": "boolean",
|
|
479
|
+
"description": "After the version step regenerates the lockfile, check that a frozen install accepts it (`pnpm install --frozen-lockfile --lockfile-only`) and fail the release, before anything is committed or published, when it does not. pnpm only: `true` with another package manager is an error.\n\nDefault: on for pnpm."
|
|
480
|
+
},
|
|
461
481
|
"versionPr": {
|
|
462
482
|
"$ref": "#/$defs/VersionPrConfig",
|
|
463
483
|
"description": "Version-PR config."
|
|
@@ -696,6 +716,14 @@
|
|
|
696
716
|
],
|
|
697
717
|
"additionalProperties": false
|
|
698
718
|
},
|
|
719
|
+
"InternalDependencyRangesMode": {
|
|
720
|
+
"type": "string",
|
|
721
|
+
"enum": [
|
|
722
|
+
"rewrite",
|
|
723
|
+
"preserve-satisfying"
|
|
724
|
+
],
|
|
725
|
+
"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."
|
|
726
|
+
},
|
|
699
727
|
"NotificationsConfig": {
|
|
700
728
|
"type": "object",
|
|
701
729
|
"properties": {
|
|
@@ -1466,7 +1494,7 @@
|
|
|
1466
1494
|
"properties": {
|
|
1467
1495
|
"commentBody": {
|
|
1468
1496
|
"type": "string",
|
|
1469
|
-
"description": "Comment body template posted on every referenced PR / issue. Tokens: - `{
|
|
1497
|
+
"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
1498
|
},
|
|
1471
1499
|
"enabled": {
|
|
1472
1500
|
"type": "boolean",
|
|
@@ -1481,11 +1509,11 @@
|
|
|
1481
1509
|
},
|
|
1482
1510
|
"skipPrerelease": {
|
|
1483
1511
|
"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`."
|
|
1512
|
+
"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
1513
|
}
|
|
1486
1514
|
},
|
|
1487
1515
|
"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)
|
|
1516
|
+
"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
1517
|
},
|
|
1490
1518
|
"UpdateInternalDependenciesMode": {
|
|
1491
1519
|
"type": "string",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{createRequire as j}from"node:module";import{DEFAULT_CHANGES_DIR as M}from"../packem_chunks/DEFAULT_CLEAN_KEEP.js";import{VisReleaseError as G}from"./VisReleaseError-DZtgcKf8.js";import{a as D}from"./apply-release-plan-BalHtK-g.js";import{createShellRunner as R}from"../packem_chunks/shell-runner.js";import{R as N}from"../packem_chunks/context.js";let b;const S=e=>(b??=j(import.meta.url))(e),P=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$=e=>{if(typeof P<"u"&&P.versions&&P.versions.node){const[i,t]=P.versions.node.split(".").map(Number);if(i>22||i===22&&t>=3||i===20&&t>=16)return P.getBuiltinModule(e)}return S(e)},{writeFile:_,unlink:E}=$("node:fs/promises"),{resolve:A}=$("node:path"),T=e=>{const i=e.channel?.tag??e.branch??"main",{releases:t}=e.plan,d=t.length<=3?t.map(r=>`${r.name}@${r.newVersion}`).join(", "):`version ${t.length} packages`,m=t.map(r=>`- ${r.name}: ${r.oldVersion} → ${r.newVersion}`).join(`
|
|
2
|
-
`);return`release(${i}): ${d} [skip ci]
|
|
3
|
-
|
|
4
|
-
${m}`},H=async(e,i,t)=>{const d=await import("node:fs/promises"),{stageAndCommit:m}=await import("../packem_chunks/git.js"),r=R(),w=["pnpm-lock.yaml","package-lock.json","yarn.lock","bun.lock","bun.lockb"],l=await import("node:path"),o=[];for(const a of w)try{await d.access(l.join(e.cwd,a)),o.push(l.join(e.cwd,a))}catch{}const f=e.config.aggregateRelease===!0||typeof e.config.aggregateRelease=="object"&&e.config.aggregateRelease.enabled;let s;if(e.config.oneCommitPerPackage===!0&&!f&&e.plan.releases.length>0){const a=e.channel?.tag??e.branch??"main",n=i.writes.map(h=>h.path),g=new Set,{releases:c}=e.plan;for(let h=0;h<c.length;h+=1){const p=c[h],k=e.depGraph.getPackage(p.name),u=k?`${k.dir}${l.sep}`:void 0,y=u?n.filter(v=>v.startsWith(u)):[];for(const v of y)g.add(v);const V=h===c.length-1?[...n.filter(v=>!g.has(v)),...i.deletions,...o]:[],F=[...y,...V];F.length!==0&&(s=await m({cwd:e.cwd,runner:r},F,`release(${a}): ${p.name}@${p.newVersion} [skip ci]`,{author:e.config.gitUser}))}}else{const a=t??T(e),n=[...i.writes.map(g=>g.path),...i.deletions,...o];s=await m({cwd:e.cwd,runner:r},n,a,{author:e.config.gitUser})}return s},I=async(e,i)=>{const t=[],{applyExtraFilesForRelease:d}=await import("../packem_chunks/extra-files.js"),{applyVersionFilesForRelease:m}=await import("../packem_chunks/cargo-lock.js").then(a=>a.v),{cargoManifestPaths:r}=await import("../packem_chunks/cargo-lock.js").then(a=>a.b),w=await Promise.all(e.plan.releases.map(async a=>{const n=e.depGraph.getPackage(a.name);if(!n)return{warnings:[],writes:[]};const g=e.perPackageConfig.get(a.name)?.extraFiles??[],c=e.config.publish?.extraFiles??[],h=e.perPackageConfig.get(a.name)?.versionFiles??[],k=g.length>0||c.length>0?await d(e.cwd,n.dir,a.newVersion,a.name,c,g):{warnings:[],writes:[]},u=h.length>0?await m(n.dir,h,a.newVersion,a.name,new Map(k.writes.map(y=>[y.path,y.content]))):{writes:[]};return{warnings:k.warnings,writes:[...k.writes,...u.writes]}})),l=new Map,o=new Set;for(const a of w){for(const n of a.writes)l.set(n.path,n.content),o.add(n.path);t.push(...a.warnings)}const f=e.packages.filter(a=>a.ecosystem==="cargo"),s=e.plan.releases.flatMap(a=>{const n=e.depGraph.getPackage(a.name);if(!n||n.ecosystem!==void 0&&n.ecosystem!=="cargo")return[];const g=n.ecosystem==="cargo"?[n.manifestPath]:r(n.dir,e.perPackageConfig.get(a.name)??{});return g.length>0||n.ecosystem==="cargo"?[{ecosystem:n.ecosystem,manifestPaths:g,name:a.name,newVersion:a.newVersion}]:[]});if(s.length>0){const a=new Set(f.map(c=>c.manifestPath));f.length>0&&a.add(A(e.cwd,"Cargo.toml"));for(const c of e.packages)if(c.ecosystem===void 0)for(const h of r(c.dir,e.perPackageConfig.get(c.name)??{}))a.add(h);const{planCargoWorkspace:n}=await import("../packem_chunks/cargo-plan.js"),g=await n({crateManifests:f.map(c=>c.manifestPath),cwd:e.cwd,pending:l,releases:s,rewriteDependents:e.config.cargo?.discover===!0,scanManifests:[...a]});for(const c of g.touched)o.add(c);t.push(...g.warnings)}for(const a of N){const n=e.plan.releases.flatMap(c=>e.depGraph.getPackage(c.name)?.ecosystem===a.id?[{name:c.name,newVersion:c.newVersion}]:[]);if(n.length===0||a.plan===void 0)continue;const g=await a.plan({context:e,pending:l,projects:e.projectsByEcosystem?.get(a.id)??[],releases:n});for(const c of g.touched)o.add(c);t.push(...g.warnings)}for(const a of o)i.writes.push({content:l.get(a),path:a});t.length>0&&e.plan.warnings.push(...t)},q=async(e,i)=>{if(e.length===0)return;const{join:t}=await import("node:path");let d;try{const{createRequire:r}=await import("node:module"),{pathToFileURL:w}=await import("node:url"),l=r(t(i,"package.json"));d=await import(w(l.resolve("prettier")).href)}catch{return}const m=await import("node:fs/promises");for(const r of e)try{const w=await d.getFileInfo(r);if(w.ignored||!w.inferredParser)continue;const l=await m.readFile(r,"utf8"),o=await d.resolveConfig(r),f=await d.format(l,{...o,filepath:r});f!==l&&await m.writeFile(r,f)}catch{}},C=async(e,i,t)=>{if(!i||i.trim()==="")return;const d=R(),m=process.platform==="win32",r=m?"cmd":"sh",w=m?["/c",i]:["-c",i],l=await d.run(r,w,{cwd:e,silent:!1});if(l.exitCode!==0)throw new Error(`${t} failed (exit ${l.exitCode}): ${i}`)},L=async(e,i)=>{const{normaliseGroup:t}=await import("../release/types.js"),d=[...e.config.fixed??[],...e.config.linked??[]].map(r=>t(r)),{default:m}=await import("../packem_chunks/index.js");for(const[r,w]of Object.entries(i)){const l=Number.parseInt(r.replace(/^group-/,""),10),o=d[l];!o||!e.plan.releases.some(s=>o.packages.some(a=>s.name===a||m(a,s.name)))||await C(e.cwd,w,`groupPreVersionCommand[${r}]`)}},O=async(e,i,t,d={})=>{const{findConflictingPendingStages:m,readStagedRegistry:r,removePendingStages:w,writeStagedRegistry:l}=await import("../packem_chunks/staged-registry.js"),o=e.config.changesDir??M;let f=t??await r(e.cwd,o);if(f.pending.length===0)return;const s=new Map(e.plan.releases.map(p=>[p.name,p.newVersion])),a=[...s.keys()];let n=m(f,a).filter(p=>s.get(p.name)!==p.version);if(n.length===0)return;let g=[];if(!d.skipSelfHeal){const p=d.runner??R();g=(await Promise.all(n.map(async u=>{const y=await p.run("npm",["view",`${u.name}@${u.version}`,"dist.tarball","--silent"],{cwd:e.cwd,silent:!0});return y.exitCode===0&&y.stdout.trim().length>0?u.id:void 0}))).filter(u=>u!==void 0)}if(g.length>0){if(f=w(f,g),d.persistSelfHeal!==!1)try{await l(e.cwd,o,f)}catch{}if(n=m(f,a).filter(p=>s.get(p.name)!==p.version),n.length===0)return}const c=n.map(p=>` • ${p.name}@${p.version} — stage ${p.id} (${p.reason}, recorded ${p.stagedAt})`).join(`
|
|
5
|
-
`),h=i==="version"?"version":"publish";throw new G({code:"STAGE_PENDING",hint:"Resolve via `vis release stage approve <id>` / `--all` or `vis release stage reject <id>`, commit the updated staged.json, then retry.",message:`Refusing to ${h} — ${n.length} package(s) have a pending stage from a prior wave:
|
|
6
|
-
${c}`})},Q=async(e,i={})=>{if(e.plan.releases.length===0)return{changedFiles:[],deletedFiles:[],plan:e.plan};await O(e,"version",void 0,{persistSelfHeal:!1}),!i.dryRun&&e.config.preVersionCommand&&await C(e.cwd,e.config.preVersionCommand,"preVersionCommand"),!i.dryRun&&e.config.groupPreVersionCommands&&await L(e,e.config.groupPreVersionCommands);const{readFileSync:t}=await import("node:fs"),{resolveFormatter:d}=await import("../packem_chunks/resolveFormatter.js"),{resolveGroupChangelogRouting:m}=await import("../packem_chunks/workspace.js"),r=await d(e.config.changelog,e.cwd),w=new Date().toISOString().slice(0,10),l=m(e.config,e.packages,e.cwd),o=await D(e.plan,e.depGraph,{changelogPath:s=>l.get(s.name)??`${s.dir}/CHANGELOG.md`,readChangelog:s=>{try{return t(s,"utf8")}catch{return}},readManifest:s=>{try{return t(s,"utf8")}catch{return}},renderChangelogEntry:s=>r({changeFiles:s.changeFiles,date:w,release:s,target:"changelog"})});if(await I(e,o),i.dryRun)return{changedFiles:o.writes.map(s=>s.path),deletedFiles:o.deletions,plan:e.plan};await Promise.all([...o.writes.map(s=>_(s.path,s.content)),...o.deletions.map(async s=>{try{await E(s)}catch{}})]);try{await e.pm.installLockfileOnly({cwd:e.cwd,silent:!0})}catch{}if(!i.dryRun&&e.config.formatChangedFiles&&await q(o.writes.map(s=>s.path),e.cwd),e.config.plugins?.length){const{runApplyDraftHooks:s}=await import("../packem_chunks/defineReleasePlugin.js");await s({config:e.config,cwd:e.cwd},e.plan)}const f=i.commit?await H(e,o,i.commitMessage):void 0;if(!i.dryRun&&e.config.postVersionCommand&&await C(e.cwd,e.config.postVersionCommand,"postVersionCommand"),!i.dryRun&&e.preMode?.mode==="exit-pending"){const{deletePreMode:s,preModeFilePath:a}=await import("../packem_chunks/pre-mode.js"),n=e.config.changesDir??".vis/release";await s(e.cwd,n)&&e.plan.warnings.push(`Pre-mode exited: \`${a(e.cwd,n)}\` was deleted. Commit the deletion so the registry stays consistent across CI runs.`)}return{changedFiles:o.writes.map(s=>s.path),commitSha:f,deletedFiles:o.deletions,plan:e.plan}};export{Q as a,O as b,C as r};
|
|
@@ -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};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import{a as G}from"./index-B4AjSxHU.js";import{c as M,d as D,D as W}from"../packem_chunks/version-resolver.js";import{createTag as L,pushTags as B,renderTagPattern as U,defaultTagFor as K}from"../packem_chunks/git.js";import{createShellRunner as O}from"../packem_chunks/shell-runner.js";import{DEFAULT_CHANGES_DIR as _}from"../packem_chunks/DEFAULT_CLEAN_KEEP.js";import{r as E,b as z}from"./apply-DoeQAAGm.js";import{parseCatalogs as J}from"../packem_chunks/catalog.js";import{c as Y}from"../packem_chunks/index3.js";import{a as q}from"../packem_chunks/context.js";import{escapeMarkdown as X}from"../packem_chunks/security.js";import{VisReleaseError as F}from"./VisReleaseError-DZtgcKf8.js";const Q=/\{(name|version|previousVersion|date|repo|contributors)\}/g,Z=(e,s)=>e.replaceAll(Q,(a,l)=>s[l]??""),x=(e,s={})=>{const a=new Set;for(const g of s.internalAuthors??[]){const d=g.trim().toLowerCase().replace(/^@/,"");d.length>0&&a.add(d)}const l=new Set,n=[];for(const g of e){const d=g.meta?.author;if(d)for(const o of d.split(",")){const i=o.trim();if(!i)continue;const c=i.replace(/^@/,"");if(c.length===0)continue;const r=c.toLowerCase();l.has(r)||a.has(r)||(l.add(r),n.push(X(i)))}}return n.length===0?"":n.map(g=>`- ${g}`).join(`
|
|
2
|
-
`)},ee=e=>e.length===0?"":`## Related releases
|
|
3
|
-
|
|
4
|
-
${e.map(a=>`- [${a.name}](${a.url})`).join(`
|
|
5
|
-
`)}`,se=(e,s,a)=>{if(!s||!s.header&&!s.footer)return e;const l=g=>Z(g,{contributors:a.contributors??"",date:a.date,name:a.name,previousVersion:a.previousVersion,repo:a.repo,version:a.version}).replaceAll(/\n{3,}/g,`
|
|
6
|
-
|
|
7
|
-
`).replace(/\s+$/,""),n=[];if(s.header){const g=l(s.header);g.length>0&&n.push(g)}if(n.push(e),s.footer){const g=l(s.footer);g.length>0&&n.push(g)}return n.join(`
|
|
8
|
-
|
|
9
|
-
`)},ae=e=>{if(!Array.isArray(e))return;const[s,a]=e;if(s!=="github"||typeof a!="object"||a===null)return;const{internalAuthors:l}=a;if(Array.isArray(l))return l.filter(n=>typeof n=="string")},ie=e=>(e.config.publish?.publishArgs??[]).includes("--provenance")&&e.pm.id!=="bun",re=async(e,s)=>{const{options:a,persistState:l,releases:n,result:g,state:d}=s,{removePendingStages:o,upsertPendingStages:i}=await import("../packem_chunks/staged-registry.js"),c=await e.pm.readCatalogYaml(e.cwd),r=J(c),u=e.depGraph.topologicalSort(n.map(p=>p.name)),f=new Map(n.map(p=>[p.name,p])),m=new Set,$=new Map;for(const p of e.plan.releases){const b=e.depGraph.getPackage(p.name);b&&$.set(p.name,{...b.manifest,version:p.newVersion})}const v={config:e.config,cwd:e.cwd},P=e.config.plugins?.length?await import("../packem_chunks/defineReleasePlugin.js"):void 0;for(const p of u){const b=f.get(p);if(!b){g.skipped.push({name:p,reason:"topo-sort returned a name not in the release plan (internal bug)"});continue}const w=e.depGraph.getPackage(p);if(!w)continue;const y=[...new Set(e.depGraph.getDependencies(p).filter(h=>h.kind!=="devDependencies"&&m.has(h.name)).map(h=>h.name))];if(y.length>0){g.skipped.push({name:p,reason:`dependency-failed: not published because ${y.join(", ")} failed to publish (publishing would orphan this package's dependency range)`}),m.add(p);continue}const t=e.perPackageConfig.get(p)??{},k=q(w,t),C=a.publishActionsOverride??Y(k),R=a.tag??e.channel?.tag;if(P){const h=await P.runWillPublishHooks(v,{dir:w.dir,name:p,oldVersion:b.oldVersion,version:b.newVersion});if(h.skip){g.skipped.push({name:p,reason:`plugin-skipped${h.by?` by "${h.by}"`:""}`}),m.add(p);continue}}const A=s.stagedRegistry.pending.find(h=>h.name===p&&h.version===b.newVersion);try{const h=await C.publish({catalogs:r,cleanPackageJsonConfig:e.config.publish?.cleanPackageJson,dryRun:a.dryRun,otp:a.otp,perPackageConfig:t,pkg:w,pm:e.pm,provenance:ie(e),registry:t.registry,release:b,resumeStageId:A?.id,tag:R,versionedManifestByName:$,workspaceConfig:e.config});if(h.published||h.alreadyPublished){const S=s.stagedRegistry.pending.filter(H=>H.name===p&&H.version===b.newVersion).map(H=>H.id);S.length>0&&(s.stagedRegistry=o(s.stagedRegistry,S))}if(h.published)g.published.push({name:p,stageId:h.stageId,tarball:h.tarball,version:b.newVersion}),d.published.push(`${p}@${b.newVersion}`),P&&await P.runAfterPublishHooks(v,{dir:w.dir,name:p,oldVersion:b.oldVersion,version:b.newVersion});else if(h.alreadyPublished)g.skipped.push({name:p,reason:"already-published"}),d.published.push(`${p}@${b.newVersion}`);else if(g.skipped.push({name:p,reason:h.output??"skipped"}),h.stageId){const S=(h.output??"").startsWith("stage-rejected")?"rejected":"timeout";s.stagedRegistry=i(s.stagedRegistry,[{id:h.stageId,name:p,reason:S,stagedAt:new Date().toISOString(),tag:R??"latest",version:b.newVersion}])}await l()}catch(h){g.failed.push({name:p,reason:h.message}),m.add(p)}}P&&await P.runAfterPublishAllHooks(v,{failed:g.failed.map(p=>({name:p.name,reason:p.reason})),published:g.published.map(p=>({name:p.name,version:p.version})),skipped:g.skipped.map(p=>({name:p.name,reason:p.reason}))})},te=async(e,s,a,l)=>{const{createRemoteClient:n,detectRemoteProvider:g}=await import("../packem_chunks/detect.js"),d=await g(e.cwd,a,e.config.provider),o=n(d,{githubHost:e.config.githubHost,gitlabHost:e.config.gitlabHost,httpProxy:e.config.httpProxy}),i=await o.detectRepoSlug(e.cwd,a);if(!i)return;const c=typeof e.config.aggregateRelease=="object"?e.config.aggregateRelease:{enabled:e.config.aggregateRelease===!0},r=e.config.publish?.draftRelease===!0,u=e.config.publish?.discussionCategory,f=e.config.publish?.addReleases;if(c.enabled){const t=new Date().toISOString().slice(0,10),C=(c.title??"Release {date}").replaceAll("{date}",t),R=`release-${t}`,A=s.published.map(h=>`- \`${h.name}\` → ${h.version}`).join(`
|
|
10
|
-
`);try{const h=await o.createRelease(a,{body:A,cwd:e.cwd,discussionCategory:u,draft:r,repo:i,tag:R,title:C});if(h?.url)for(const S of s.published)S.url=h.url}catch{}return}const{defaultTagFor:m,renderTagPattern:$}=await import("../packem_chunks/git.js"),v=e.config.releaseTagPattern,P=e.channel?.tag,p=e.config.publish?.releaseAssets??{},b=new Date().toISOString().slice(0,10),w=ae(e.config.changelog),y=x(e.plan.consumedChangeFiles??[],{internalAuthors:w});for(const t of l.groups){const k=t.members.map(C=>`- \`${C}\` → ${s.published.find(R=>R.name===C)?.version??t.version}`).join(`
|
|
11
|
-
`);try{const C=await o.createRelease(a,{body:k,cwd:e.cwd,discussionCategory:u,draft:r,prerelease:t.version.includes("-"),repo:i,tag:t.tag,title:`${t.name} ${t.version}`});if(C?.url)for(const R of s.published)t.members.includes(R.name)&&(R.url=C.url)}catch(C){console.warn(`createRelease failed for group ${t.name} (tag ${t.tag}): ${C.message}`)}}for(const t of s.published){if(l.grouped.has(t.name))continue;const C=e.perPackageConfig.get(t.name)?.releaseTagPattern??v,R=C?$(C,{channel:P,name:t.name,version:t.version}):m(t.name,t.version),A=t.version.includes("-");let h=`Release of ${t.name}@${t.version}.`;if(t.stageId&&(h=`${h}
|
|
12
|
-
|
|
13
|
-
> ⏳ **Staged — not yet installable.** Approve via \`vis release stage approve ${t.stageId}\` or the npmjs.com web UI.`),p.stampHashes&&t.tarball&&(h=`${h}
|
|
14
|
-
|
|
15
|
-
### Tarball integrity
|
|
16
|
-
|
|
17
|
-
- size: \`${t.tarball.size}\` bytes
|
|
18
|
-
- sha256: \`${t.tarball.sha256}\`
|
|
19
|
-
- sha512: \`${t.tarball.sha512}\``),f!==void 0&&f!==!1)try{const j=R.lastIndexOf("@"),T=j>0?R.slice(0,j+1):"",N=await o.listRecentReleases(a,{cwd:e.cwd,excludeTag:R,limit:5,repo:i,tagPrefix:T}),V=ee(N);V&&(h=f==="top"?`${V}
|
|
20
|
-
|
|
21
|
-
${h}`:`${h}
|
|
22
|
-
|
|
23
|
-
${V}`)}catch{}const{releaseNoteTemplate:S}=e.config;if(S){const T=e.plan.releases.find(N=>N.name===t.name)?.oldVersion??"";h=se(h,S,{contributors:y,date:b,name:t.name,previousVersion:T,repo:i,version:t.version})}const H=[];p.uploadTarball&&t.tarball&&H.push(t.tarball.path);try{const j=await o.createRelease(a,{assets:H.length>0?H:void 0,body:h,cwd:e.cwd,discussionCategory:u,draft:r,prerelease:A,repo:i,tag:R,title:`${t.name} v${t.version}`});j?.url&&(t.url=j.url)}catch(j){console.warn(`createRelease failed for ${t.name}@${t.version} (tag ${R}): ${j.message}`)}}},ne=async(e,s,a)=>{const{changesDir:l,options:n,persistState:g,result:d,runner:o,state:i}=s,{writeStagedRegistry:c}=await import("../packem_chunks/staged-registry.js");if(!n.dryRun&&d.published.length>0&&d.tagsPushed){e.config.publish?.noRelease!==!0&&await te(e,d,o,a);try{const{walkSuccessfulRelease:r}=await import("../packem_chunks/success-walk.js"),{createRemoteClient:u,detectRemoteProvider:f}=await import("../packem_chunks/detect.js"),{resolveFormatter:m}=await import("../packem_chunks/resolveFormatter.js"),$=await f(e.cwd,o,e.config.provider),v=u($,{githubHost:e.config.githubHost,gitlabHost:e.config.gitlabHost,httpProxy:e.config.httpProxy}),P=await v.detectRepoSlug(e.cwd,o),p=await m(e.config.changelog,e.cwd),{recordRecentlyWalked:b}=await import("../packem_chunks/staged-registry.js"),w=new Set([...i.walked??[],...(s.stagedRegistry.recentlyWalked??[]).map(t=>t.key)]),y={...d,published:d.published.filter(t=>!w.has(`${t.name}@${t.version}`))};if(y.published.length>0){const t=await r(e,y,o,{client:v,formatter:p,repo:P}),k=y.published.map(C=>`${C.name}@${C.version}`);i.walked=[...i.walked??[],...k],await g(),s.stagedRegistry=b(s.stagedRegistry,k),t.warnings.length>0&&e.plan.warnings.push(...t.warnings)}}catch(r){e.plan.warnings.push(`successWalk: could not run post-release walk: ${r.message}`)}if(e.config.notifications)try{const{dispatchNotifications:r}=await import("../packem_chunks/interface.js"),{createRemoteClient:u,detectRemoteProvider:f}=await import("../packem_chunks/detect.js"),m=await f(e.cwd,o,e.config.provider),v=await u(m,{githubHost:e.config.githubHost,gitlabHost:e.config.gitlabHost,httpProxy:e.config.httpProxy}).detectRepoSlug(e.cwd,o);let P;try{const w=`${e.cwd}/package.json`,y=await import("node:fs/promises");P=JSON.parse(await y.readFile(w,"utf8")).name}catch{}const p=new Set([...i.notified??[],...(s.stagedRegistry.recentlyNotified??[]).map(w=>w.key)]),b=d.published.filter(w=>!p.has(`${w.name}@${w.version}`));if(b.length>0){const w=await r(e.config.notifications,{channel:e.channel?.tag,completedAt:new Date().toISOString(),...P===void 0?{}:{monorepoName:P},published:b.map(y=>({name:y.name,tag:e.channel?.tag,...y.url===void 0?{}:{url:y.url},version:y.version})),...v===void 0?{}:{repo:v},skipped:d.skipped.map(y=>({name:y.name,reason:y.reason}))},{warn:y=>e.plan.warnings.push(y)});if(w.succeeded.length>0){const y=b.map(k=>`${k.name}@${k.version}`);i.notified=[...i.notified??[],...y],await g();const{recordRecentlyNotified:t}=await import("../packem_chunks/staged-registry.js");s.stagedRegistry=t(s.stagedRegistry,y)}if(w.failed.length>0||w.succeeded.length>0){const y=w.succeeded.length+w.failed.length;if(w.failed.length>0){e.plan.warnings.push(`[notifications] dispatched ${w.succeeded.length}/${y} channels${w.succeeded.length>0?` (succeeded: ${w.succeeded.join(", ")})`:""}; ${w.failed.length} failed.`);for(const t of w.failed)e.plan.warnings.push(`[notifications:${t.id}] ${t.error}`)}}}}catch(r){e.plan.warnings.push(`notifications: dispatch failed: ${r.message}`)}if(!n.dryRun)try{const r=await c(e.cwd,l,s.stagedRegistry);if(r.changed){const{stageAndCommitFile:u}=await import("../packem_chunks/git.js");try{await u({cwd:e.cwd,runner:o},r.path,"chore(release): record cross-runner notify/walk dedupe [skip ci]",{author:e.config.gitUser,push:!n.noPush,sign:e.config.gitSignCommits===!0})}catch(f){process.stderr.write(`[vis release] Warning: could not commit ${r.path} (notify/walk dedupe): ${f.message}
|
|
24
|
-
`)}}}catch(r){process.stderr.write(`[vis release] Warning: could not update cross-runner dedupe registry: ${r.message}
|
|
25
|
-
`)}}},oe=async e=>{const{defaultTagFor:s,floatingMajorTagFor:a,renderTagPattern:l}=await import("../packem_chunks/git.js"),{resolveSyncTagGroups:n}=await import("../packem_chunks/group-tags.js"),g=e.plan.releases.filter(r=>e.depGraph.getPackage(r.name)?.manifest?.private!==!0).map(r=>({name:r.name,version:r.newVersion})),d=n(e.config,g),o=d.groups.map(r=>r.tag),i=[],c=!!e.channel?.prerelease||!!e.preMode;for(const{name:r,version:u}of g){if(d.grouped.has(r))continue;const f=e.perPackageConfig.get(r),m=f?.releaseTagPattern??e.config.releaseTagPattern;if(o.push(m?l(m,{channel:e.channel?.tag,name:r,version:u}):s(r,u)),e.config.floatingMajorTag===!0&&!c&&!m?.includes("{major}")&&f?.skipNpmPublish!==!0){const $=a(r,u);$!==void 0&&i.push($)}}return{created:o,updated:i}},ge=async(e,s,a)=>{if((await s.run("git",["remote","get-url","--push","origin"],{cwd:e.cwd,silent:!0})).exitCode!==0)return;const{getCurrentBranch:n,resolvePushCredentials:g,verifyPushAccess:d}=await import("../packem_chunks/git.js"),o={cwd:e.cwd,runner:s},i=await d(o);if(i!==void 0)return`Cannot push to origin, nothing was published. Set VIS_GH_TOKEN (or GITHUB_TOKEN / GITLAB_TOKEN) with write access, or pass --no-push. git said: ${i}`;const{createRemoteClient:c,detectRemoteProvider:r}=await import("../packem_chunks/detect.js");let u;try{u=await r(e.cwd,s,e.config.provider)}catch{return}if(u!=="github")return;const m=await c(u,{githubHost:e.config.githubHost,httpProxy:e.config.httpProxy}).detectRepoSlug(e.cwd,s);if(!m)return;const $=await g(o),v={...process.env};$!==void 0&&(v.GH_TOKEN=$.token),e.config.githubHost&&(v.GH_HOST=e.config.githubHost),e.config.httpProxy&&(v.HTTPS_PROXY=e.config.httpProxy,v.HTTP_PROXY=e.config.httpProxy);const{checkGithubPushRules:P}=await import("../packem_chunks/github-push-rules.js"),p=a.noTag?{created:[],updated:[]}:await oe(e),b=await P(s,{branch:await n(o),createdTags:p.created,cwd:e.cwd,env:v,repo:m,signedCommits:e.config.gitSignCommits===!0,updatedTags:p.updated});for(const w of b.warnings)process.stderr.write(`[vis release] Warning: ${w}
|
|
26
|
-
`);if(b.blocked.length>0)return`GitHub push rules would reject this release, nothing was published:
|
|
27
|
-
- ${b.blocked.join(`
|
|
28
|
-
- `)}
|
|
29
|
-
Grant the pushing token a bypass, adjust the ruleset, or pass --no-push / --no-tag.`},ce=async(e,s,a,l)=>{if(!a.dryRun&&e.channel?.mode==="version-pr"){const{createRemoteClient:n,detectRemoteProvider:g}=await import("../packem_chunks/detect.js");let d;try{const i=await g(e.cwd,s,e.config.provider);d=await n(i,{githubHost:e.config.githubHost,gitlabHost:e.config.gitlabHost,httpProxy:e.config.httpProxy}).detectRepoSlug(e.cwd,s)}catch(i){return l.failed.push({name:"_preflight",reason:`Could not read the remote to check for an open release PR: ${i.message}`}),!0}const o=e.config.versionPr?.branch??"vis-release/version-packages";if(d)try{const i=await s.run("gh",["pr","list","--head",o,"--state","open","--json","number"],{cwd:e.cwd,silent:!0});if(i.exitCode===0&&i.stdout.trim()&&i.stdout.trim()!=="[]"){const c=JSON.parse(i.stdout);if(c[0])return l.failed.push({name:"_preflight",reason:`Open release PR #${c[0].number} exists. Merge or close it before publishing locally. (Override: --no-push then \`git push --tags\` manually.)`}),!0}}catch{}}if(!a.dryRun&&e.config.prePublishCommand)try{await E(e.cwd,e.config.prePublishCommand,"prePublishCommand")}catch(n){return l.failed.push({name:"_prePublishCommand",reason:n.message}),!0}if(!a.dryRun&&!a.noPush){let n;try{n=await ge(e,s,{noTag:a.noTag===!0})}catch(g){return l.failed.push({name:"_preflight",reason:`Could not verify the release pushes: ${g.message}`}),!0}if(n!==void 0)return l.failed.push({name:"_pushAccess",reason:n}),!0}return!1},le=async(e,s)=>{const{changesDir:a,options:l,runner:n}=s,{writeStagedRegistry:g}=await import("../packem_chunks/staged-registry.js");if(!l.dryRun){const d=s.priorRegistrySnapshot.pending.length,o=s.stagedRegistry.pending.length,i=await g(e.cwd,a,s.stagedRegistry);if(i.changed){const{stageAndCommitFile:c}=await import("../packem_chunks/git.js");let r;if(i.removed)r="chore(release): clear pending stage registry [skip ci]";else if(o>d){const u=o-d;r=`chore(release): record ${u} new pending stage${u===1?"":"s"} [skip ci]`}else if(o<d){const u=d-o;r=`chore(release): drain ${u} resolved stage${u===1?"":"s"} [skip ci]`}else r=`chore(release): update pending stage registry (${o} pending) [skip ci]`;try{await c({cwd:e.cwd,runner:n},i.path,r,{author:e.config.gitUser,push:!l.noPush,sign:e.config.gitSignCommits===!0})}catch(u){process.stderr.write(`[vis release] Warning: could not commit ${i.path}: ${u.message}
|
|
30
|
-
`)}}}},de=async(e,s)=>{const{options:a,result:l,runner:n}=s;if(!a.dryRun&&l.published.length>0&&e.config.workspaceChangelog!==!1){const g=e.config.workspaceChangelog,d=typeof g=="object"?g:void 0,o=typeof e.config.aggregateRelease=="object"?e.config.aggregateRelease.enabled:e.config.aggregateRelease===!0;if(d!==void 0||o)try{const{writeWorkspaceChangelogWave:i}=await import("../packem_chunks/workspace.js"),c=new Set(l.published.map(f=>f.name)),r=e.plan.releases.filter(f=>c.has(f.name)),u=await i({changelogConfig:e.config.changelog,cwd:e.cwd,workspaceChangelog:e.config.workspaceChangelog},r);if(u)try{const{stageAndCommitFile:f}=await import("../packem_chunks/git.js");await f({cwd:e.cwd,runner:n},u,"chore(release): record wave [skip ci]",{author:e.config.gitUser,push:!a.noPush,sign:e.config.gitSignCommits===!0})}catch(f){process.stderr.write(`[vis release] Warning: could not commit workspace CHANGELOG.md: ${f.message}
|
|
31
|
-
`)}}catch(i){process.stderr.write(`[vis release] Warning: could not write workspace CHANGELOG.md wave entry: ${i.message}
|
|
32
|
-
`)}}},I=async(e,s,a,l,n)=>{const{stageAndCommitFile:g}=await import("../packem_chunks/git.js"),{stateFilePath:d}=await import("../packem_chunks/state.js");try{const o=await g({cwd:e.cwd,runner:s},d(e.cwd,a,!0),`chore(release): ${l} publish lock [skip ci]`,{author:e.config.gitUser,push:!n.noPush,sign:e.config.gitSignCommits===!0});!n.noPush&&o.committed&&!o.pushed&&process.stderr.write(`[vis release] Warning: publish lock (${l}) was committed locally but could not be pushed — cross-runner resume may use a stale lock.
|
|
33
|
-
`)}catch(o){process.stderr.write(`[vis release] Warning: could not commit publish lock (${l}): ${o.message}
|
|
34
|
-
`)}},pe=async(e,s,a,l)=>{const{filterPlanByState:n,newState:g,readState:d,writeState:o}=await import("../packem_chunks/state.js"),{readStagedRegistry:i}=await import("../packem_chunks/staged-registry.js"),c=e.config.changesDir??_,r=e.config.publish?.lockInGit===!0;let u=a.resume||r?await d(e.cwd,c,r):void 0;u&&r&&(u.channel=e.channel?.tag);const f=async()=>{a.dryRun||!u||(await o(e.cwd,c,u,r),r&&await I(e,s,c,"progress",{noPush:a.noPush}))};let m=await i(e.cwd,c);await z(e,"publish",m,{runner:s}),m=await i(e.cwd,c);const $={...m,pending:[...m.pending]};let{releases:v}=e.plan;return u?v=n(v,u):(u=g(e.channel?.tag,e.plan.releases),a.dryRun||(await o(e.cwd,c,u,r),r&&await I(e,s,c,"open",{noPush:a.noPush}))),{changesDir:c,lockInGit:r,options:a,persistState:f,priorRegistrySnapshot:$,releases:v,result:l,runner:s,stagedRegistry:m,state:u}},ue=async(e,s,a)=>{const{changesDir:l,lockInGit:n,options:g,persistState:d,result:o,runner:i,state:c}=s,{clearState:r}=await import("../packem_chunks/state.js");if(!g.dryRun&&!g.noTag&&o.published.length>0){const{createOrUpdateFloatingTag:u,createTag:f,defaultTagFor:m,floatingMajorTagFor:$,pushTags:v,renderTagPattern:P}=await import("../packem_chunks/git.js"),p=e.config.releaseTagPattern,b=e.channel?.tag,w=e.config.floatingMajorTag===!0,y=!!e.channel?.prerelease||!!e.preMode;for(const{name:t,version:k}of o.published){if(a.grouped.has(t))continue;const R=e.perPackageConfig.get(t)?.releaseTagPattern??p,A=R?P(R,{channel:b,name:t,version:k}):m(t,k);try{await f({cwd:e.cwd,runner:i},A,`Release ${t}@${k}`,{signing:e.config.signing,skipRemoteCheck:e.firstRelease,target:g.tagTargets?.get(t)}),o.tags.push(A)}catch(T){e.firstRelease&&T instanceof F&&T.code==="TAG_COLLISION"?o.skipped.push({name:A,reason:"tag-creation: tag already exists (first-release — skipped)"}):o.failed.push({name:A,reason:`tag-creation: ${T.message}`})}const h=e.depGraph.getPackage(t),S=e.perPackageConfig.get(t),H=h?.manifest?.private===!0,j=S?.skipNpmPublish===!0;if(w&&!y&&!R?.includes("{major}")&&!H&&!j){const T=$(t,k);if(T!==void 0)try{await u({cwd:e.cwd,runner:i},T,{push:!g.noPush,signing:e.config.signing}),o.tags.push(T)}catch(N){o.skipped.push({name:T,reason:`floating-major-tag: ${N.message}`})}}}for(const t of a.groups)try{await f({cwd:e.cwd,runner:i},t.tag,`Release ${t.name} ${t.version}`,{signing:e.config.signing,skipRemoteCheck:e.firstRelease}),o.tags.push(t.tag)}catch(k){e.firstRelease&&k instanceof F&&k.code==="TAG_COLLISION"?o.skipped.push({name:t.tag,reason:"tag-creation: tag already exists (first-release — skipped)"}):o.failed.push({name:t.tag,reason:`tag-creation: ${k.message}`})}if(!g.noPush&&o.tags.length>0)try{await v({cwd:e.cwd,runner:i}),o.tagsPushed=!0}catch(t){o.tagsPushed=!1,o.failed.push({name:"_pushTags",reason:`git push --tags failed: ${t.message}. Retry with: git push --tags`})}c.tagged=[...o.tags],c.pushed=o.tagsPushed,await d(),o.failed.length===0&&!g.dryRun&&(await r(e.cwd,l,n),n&&await I(e,i,l,"close",{noPush:g.noPush}))}},he=async(e,s={})=>{const a={failed:[],published:[],skipped:[],tags:[],tagsPushed:!1},l=O();if(e.plan.releases.length===0||await ce(e,l,s,a))return a;const n=e.config.changesDir??_,{acquireLock:g,releaseLock:d}=await import("../packem_chunks/state.js");let o=!1;if(!s.dryRun)try{await g(e.cwd,n),o=!0}catch(i){return a.failed.push({name:"_lock",reason:i.message}),a}try{const i=await pe(e,l,s,a);await re(e,i);const{resolveSyncTagGroups:c}=await import("../packem_chunks/group-tags.js"),r=c(e.config,a.published);if(await ue(e,i,r),await le(e,i),await de(e,i),await ne(e,i,r),!s.dryRun&&e.config.postPublishCommand)try{await E(e.cwd,e.config.postPublishCommand,"postPublishCommand")}catch(u){a.failed.push({name:"_postPublishCommand",reason:u.message})}return a}finally{o&&await d(e.cwd,n)}},fe=(e,s)=>async(a,l,n)=>{const g=["view",`${a.name}@${l}`,"version"];n&&g.push("--registry",n);const d=await e.run("npm",g,{cwd:s,silent:!0});return d.exitCode===0?d.stdout.trim()!=="":/\bE404\b/.test(`${d.stdout}
|
|
35
|
-
${d.stderr}`)?!1:void 0},me=async(e,s,a)=>{const l=await e.run("git",["log","-1","--format=%H%x00%s",String.raw`-G"version"[[:space:]]*:`,"--",a],{cwd:s,silent:!0}),[n,g]=l.stdout.trim().split("\0");return l.exitCode===0&&n?{sha:n,subject:g??""}:void 0},we=async(e,s={})=>{const a=s.runner??O(),l=s.registryProbe??fe(a,e.cwd),n={missing:[],skipped:[]},g=e.config.versionPr?.title??"🚀 Versioned release",d=c=>c.startsWith(g)||W.some(r=>r.test(c)),{default:o}=await import("../packem_chunks/index.js"),i=s.projects??[];for(const c of e.packages){const r=e.perPackageConfig.get(c.name);if(c.ecosystem!==void 0||c.private||r?.skipNpmPublish===!0||!G.valid(c.version)||i.length>0&&!i.some(P=>P===c.name||o(P,c.name)))continue;const u=await D(c,"git-tag",e.depGraph,{cwd:e.cwd,perPackageConfig:r,pm:e.pm,runner:a,workspaceConfig:e.config});if(u.resolvedFrom!=="git-tag"||!G.gt(c.version,u.version))continue;const f=P=>{n.skipped.push({name:c.name,reason:`${c.version} is untagged but ${P}`})},m=await me(a,e.cwd,c.manifestPath);if(!m){f("the commit that set it could not be found");continue}if(!d(m.subject)){f(`it was set by ${m.sha.slice(0,7)} ("${m.subject}"), which is not a release commit`);continue}if((await a.run("git",["diff","--quiet",m.sha,"--",c.dir],{cwd:e.cwd,silent:!0})).exitCode!==0){f(`${c.dir} changed since ${m.sha.slice(0,7)}; the next release covers it`);continue}const v=await l(c,c.version,r?.registry);if(v===void 0){f("the registry could not confirm whether it is published");continue}n.missing.push({commit:m.sha,name:c.name,onRegistry:v,previousVersion:u.version,version:c.version})}return n},be=(e,s,a)=>{const l=e.perPackageConfig.get(s)?.releaseTagPattern??e.config.releaseTagPattern;return l?U(l,{channel:e.channel?.tag,name:s,version:a}):K(s,a)},ye=(e,s)=>{const a=G.diff(e,s);return a==="major"||a==="premajor"?"major":a==="minor"||a==="preminor"?"minor":"patch"},Ne=async(e,s={})=>{const a=O(),l=await we(e,{projects:s.projects,registryProbe:s.registryProbe,runner:a}),n={failed:[],missing:l.missing,published:[],skipped:[...l.skipped],tags:[],tagsPushed:!1};l.missing.length>0&&M();const g=l.missing.filter(i=>!i.onRegistry),d=l.missing.filter(i=>i.onRegistry);if(g.length>0){const i=g.map(r=>({changeFiles:[],isCascadeBump:!1,isDependencyBump:!1,isGroupBump:!1,name:r.name,newVersion:r.version,oldVersion:r.previousVersion,reasons:[],sources:[],type:ye(r.previousVersion,r.version)})),c=await he({...e,plan:{consumedChangeFiles:[],releases:i,warnings:[]}},{...s,tagTargets:new Map(g.map(r=>[r.name,r.commit]))});n.failed.push(...c.failed),n.published.push(...c.published),n.skipped.push(...c.skipped),n.tags.push(...c.tags),n.tagsPushed=c.tagsPushed}if(d.length===0||s.dryRun||s.noTag)return n;const o=[];for(const i of d){const c=be(e,i.name,i.version);try{await L({cwd:e.cwd,runner:a},c,`Release ${i.name}@${i.version}`,{signing:e.config.signing,target:i.commit}),o.push(c),n.skipped.push({name:i.name,reason:`already-published: tagged ${c}`})}catch(r){n.failed.push({name:c,reason:`tag-creation: ${r.message}`})}}if(n.tags.push(...o),o.length>0&&!s.noPush)try{await B({cwd:e.cwd,runner:a}),n.tagsPushed=!0}catch(i){n.tagsPushed=!1,n.failed.push({name:"_pushTags",reason:`git push --tags failed: ${i.message}. Retry with: git push --tags`})}return n};export{he as a,Ne as p};
|