@visulima/vis 6.1.4 → 6.2.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 +17 -0
- package/dist/bin.js +1 -1
- package/dist/binx.js +1 -1
- package/dist/packem_chunks/bloom-sync.js +1 -1
- package/dist/packem_chunks/catalog2.js +1 -1
- package/dist/packem_chunks/cli-exec.js +1 -1
- package/dist/packem_chunks/cli-main.js +13 -13
- package/dist/packem_chunks/context.js +4 -4
- package/dist/packem_chunks/fix.js +1 -1
- package/dist/packem_chunks/git.js +2 -2
- package/dist/packem_chunks/handler10.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/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/handler28.js +1 -1
- package/dist/packem_chunks/handler3.js +1 -1
- package/dist/packem_chunks/handler32.js +1 -1
- package/dist/packem_chunks/handler33.js +1 -1
- package/dist/packem_chunks/handler4.js +1 -1
- package/dist/packem_chunks/handler40.js +1 -1
- package/dist/packem_chunks/handler46.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 +3 -3
- 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/heal.js +1 -1
- package/dist/packem_chunks/help-command.js +1 -1
- 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/prune.js +1 -1
- package/dist/packem_chunks/status.js +1 -1
- 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 +8 -3
- package/dist/packem_shared/ReleaseClient-B4xWga1q.js +1 -0
- package/dist/packem_shared/{advisories-DHGJ6XhP.js → advisories-3ZfSV0LH.js} +1 -1
- package/dist/packem_shared/{affected-selection-DCT4CLex.js → affected-selection-BkHUfErA.js} +1 -1
- package/dist/packem_shared/{ai-analysis-CO4rT3Nd.js → ai-analysis-CbjIaasa.js} +1 -1
- package/dist/packem_shared/{ai-cache-Dkb6me20.js → ai-cache-VYBlfP7G.js} +1 -1
- package/dist/packem_shared/{ai-fix-C0OBhGDq.js → ai-fix-_ZbH_K45.js} +1 -1
- package/dist/packem_shared/{bin-DwACrJUJ.js → bin-KU_2tR-G.js} +1 -1
- package/dist/packem_shared/{build-scripts-BeMIA-_q.js → build-scripts-DtqsovcF.js} +1 -1
- package/dist/packem_shared/{dependency-scan-D8e370_h.js → dependency-scan-BUs_kdX-.js} +1 -1
- package/dist/packem_shared/{detect-C-9o_BPB.js → detect-DSMoIgaH.js} +1 -1
- package/dist/packem_shared/{docker-vRDm2lHX.js → docker-52xcbz7D.js} +1 -1
- package/dist/packem_shared/{ecosystem-gate-DpO43yAS.js → ecosystem-gate-Fu5__-JA.js} +1 -1
- package/dist/packem_shared/{env-BymuoTL8.js → env-CJVZRP-o.js} +1 -1
- package/dist/packem_shared/{env-consistency-BDfAa56d.js → env-consistency-cqaZf4xr.js} +1 -1
- package/dist/packem_shared/{failure-log-BslhfaEO.js → failure-log-Ba31iSwN.js} +1 -1
- package/dist/packem_shared/glob-Cyk1H9ZL-COXzOVwd.js +1 -0
- package/dist/packem_shared/{index-Doab17tq.js → index-0YpDONiz.js} +1 -1
- package/dist/packem_shared/{index-Cwxbl_pY.js → index-_FIeiL52.js} +1 -1
- package/dist/packem_shared/{lifecycle-Gy7mqMGg.js → lifecycle-BUKDvgHs.js} +1 -1
- package/dist/packem_shared/{manifests-kE5OweNT.js → manifests-p1zhN8pD.js} +1 -1
- package/dist/packem_shared/{min-release-age-yvuPbJ8G.js → min-release-age-D782Z1Yw.js} +1 -1
- package/dist/packem_shared/{missing-package-json-CEEPXqYi.js → missing-package-json-BoK5DGmG.js} +1 -1
- package/dist/packem_shared/{multi-eco-lockfiles-D5tM7pkg.js → multi-eco-lockfiles-OaHbR4J9.js} +1 -1
- package/dist/packem_shared/{native-config-sync-DDGt3vvd.js → native-config-sync-pyH7zbC_.js} +1 -1
- package/dist/packem_shared/{osv-4kFhXIoW.js → osv-Cc5Ay6Oh.js} +1 -1
- package/dist/packem_shared/{package-version-x7sPg2TM.js → package-version-B-FGASyU.js} +1 -1
- package/dist/packem_shared/{packument-Dg8cIDYR.js → packument-q5JfSrU7.js} +1 -1
- package/dist/packem_shared/{project-name-filter-B3tKt-Pf.js → project-name-filter-DP4RCrn3.js} +1 -1
- package/dist/packem_shared/{provenance-BG5mu0H_.js → provenance-DqvqDJn5.js} +1 -1
- package/dist/packem_shared/publish-missing-Hnqkjxov.js +35 -0
- package/dist/packem_shared/{registry-CndByNx9.js → registry-acz8_sxm.js} +1 -1
- package/dist/packem_shared/{registry-keys-CE-RZlp_.js → registry-keys-BEhcTEZZ.js} +1 -1
- package/dist/packem_shared/{renderToString-DR0zDUjh-DeiCwydO.js → renderToString-DR0zDUjh-CWJW0Ktb.js} +1 -1
- package/dist/packem_shared/{resolve-explicit-Cge6eKPt.js → resolve-explicit-DlvpbFfx.js} +1 -1
- package/dist/packem_shared/run-QPhRQBU4.js +6 -0
- package/dist/packem_shared/{run-summary-utils-DbyeUM6f.js → run-summary-utils-BiTJspOl.js} +1 -1
- package/dist/packem_shared/{runtime-check-Dw0q3X67.js → runtime-check-DaFcciiJ.js} +1 -1
- package/dist/packem_shared/{s1ngularity-BOl0c716.js → s1ngularity-CZT2Pgbl.js} +1 -1
- package/dist/packem_shared/{scaffold-files-B8zMyMvq.js → scaffold-files-CkXH8tRQ.js} +1 -1
- package/dist/packem_shared/{scan-progress-CY3XIDOY.js → scan-progress-Dd0DYpfJ.js} +1 -1
- package/dist/packem_shared/{selectors-BB0yaWyK.js → selectors-DGWSSXWM.js} +1 -1
- package/dist/packem_shared/{signatures-r1SeDHLL.js → signatures-DBVHek52.js} +1 -1
- package/dist/packem_shared/{spinner-B_rRdoro.js → spinner-BjxtOJJc.js} +1 -1
- package/dist/packem_shared/{table-bu4cV-it.js → table-c5KdYeRx.js} +1 -1
- package/dist/packem_shared/{tabs-A2EUpTHt.js → tabs-D81GPdC_.js} +1 -1
- package/dist/packem_shared/{toolchain-Bt93i37e.js → toolchain-D8qgs8sr.js} +1 -1
- package/dist/packem_shared/{typosquats-BbebOgKM.js → typosquats-BxBeFNUo.js} +1 -1
- package/dist/packem_shared/{use-measured-height-CwhybDI9.js → use-measured-height-D7d36UUm.js} +1 -1
- package/dist/packem_shared/{vis-update-app-PjJWvxqF.js → vis-update-app-C_wcaC7g.js} +1 -1
- package/dist/packem_shared/{vis-user-error-BivZDkQD.js → vis-user-error-B73F9C2Z.js} +1 -1
- package/dist/packem_shared/{watch-loop-dWYGUQwi.js → watch-loop-BeyVtDyD.js} +1 -1
- package/dist/release/index.d.ts +13 -0
- package/dist/release/index.js +1 -1
- package/dist/release/types.d.ts +6 -0
- package/index.js +26 -26
- package/package.json +9 -9
- package/schemas/vis-config.schema.json +1 -1
- package/schemas/vis-release-config.schema.json +1 -1
- package/dist/packem_shared/ReleaseClient-CRuCHDsT.js +0 -1
- package/dist/packem_shared/glob-Cyk1H9ZL-6yDyaJwk.js +0 -1
- package/dist/packem_shared/publish-DkgvB2Lk.js +0 -34
- package/dist/packem_shared/run-CKL4VGzQ.js +0 -10
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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.0",
|
|
156
|
+
"@visulima/vis-binding-darwin-x64": "6.2.0",
|
|
157
|
+
"@visulima/vis-binding-linux-arm64-gnu": "6.2.0",
|
|
158
|
+
"@visulima/vis-binding-linux-arm64-musl": "6.2.0",
|
|
159
|
+
"@visulima/vis-binding-linux-x64-gnu": "6.2.0",
|
|
160
|
+
"@visulima/vis-binding-linux-x64-musl": "6.2.0",
|
|
161
|
+
"@visulima/vis-binding-win32-arm64-msvc": "6.2.0",
|
|
162
|
+
"@visulima/vis-binding-win32-x64-msvc": "6.2.0"
|
|
163
163
|
},
|
|
164
164
|
"engines": {
|
|
165
165
|
"node": "^22.14.0 || >=24.10.0"
|
|
@@ -4426,7 +4426,7 @@
|
|
|
4426
4426
|
}
|
|
4427
4427
|
}
|
|
4428
4428
|
],
|
|
4429
|
-
"description": "Extra regex source(s) matched against each commit subject by `vis release generate`. A matching commit contributes neither a bump nor a changelog line.\n\nAccepts a single regex source or an array of them (plain strings, not `/…/` literals — the config file is also expressed as JSON in `schemas/vis-release-config.schema.json`). Invalid sources are skipped with a warning rather than failing the release.\n\nThese EXTEND the built-in machine-release-commit heuristic (`chore(release): …`, `chore(main): release …`, `chore: release v…`, `release(alpha): …`). Set `ignoreReleaseCommits: false` to drop the built-ins and match only your own patterns.\n\nA bare `[skip ci]` marker is deliberately not built in — it means \"don't run CI\", not \"don't release\", so matching it would swallow a real `fix: … [skip ci]` and its bump. Opt in with `ignoreCommitPattern: [\"\\\\[skip ci\\\\]\"]` if you want that."
|
|
4429
|
+
"description": "Extra regex source(s) matched against each commit subject by `vis release generate`. A matching commit contributes neither a bump nor a changelog line.\n\nAccepts a single regex source or an array of them (plain strings, not `/…/` literals — the config file is also expressed as JSON in `schemas/vis-release-config.schema.json`). Invalid sources are skipped with a warning rather than failing the release.\n\nThese EXTEND the built-in machine-release-commit heuristic (`chore(release): …`, `chore(main): release …`, `chore: release v…`, `release(alpha): …`). Set `ignoreReleaseCommits: false` to drop the built-ins and match only your own patterns.\n\nA bare `[skip ci]` marker is deliberately not built in — it means \"don't run CI\", not \"don't release\", so matching it would swallow a real `fix: … [skip ci]` and its bump. Opt in with `ignoreCommitPattern: [\"\\\\[skip ci\\\\]\"]` if you want that.\n\nA breaking change (`!` in the header or a `BREAKING CHANGE:` / `BREAKING-CHANGE:` footer) is exempt: it still releases as major even when its subject matches one of these patterns, so a type filter cannot swallow an incompatible change. The built-in release-commit heuristic has no such exemption."
|
|
4430
4430
|
},
|
|
4431
4431
|
"ignoreReleaseCommits": {
|
|
4432
4432
|
"type": "boolean",
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
],
|
|
283
|
-
"description": "Extra regex source(s) matched against each commit subject by `vis release generate`. A matching commit contributes neither a bump nor a changelog line.\n\nAccepts a single regex source or an array of them (plain strings, not `/…/` literals — the config file is also expressed as JSON in `schemas/vis-release-config.schema.json`). Invalid sources are skipped with a warning rather than failing the release.\n\nThese EXTEND the built-in machine-release-commit heuristic (`chore(release): …`, `chore(main): release …`, `chore: release v…`, `release(alpha): …`). Set `ignoreReleaseCommits: false` to drop the built-ins and match only your own patterns.\n\nA bare `[skip ci]` marker is deliberately not built in — it means \"don't run CI\", not \"don't release\", so matching it would swallow a real `fix: … [skip ci]` and its bump. Opt in with `ignoreCommitPattern: [\"\\\\[skip ci\\\\]\"]` if you want that."
|
|
283
|
+
"description": "Extra regex source(s) matched against each commit subject by `vis release generate`. A matching commit contributes neither a bump nor a changelog line.\n\nAccepts a single regex source or an array of them (plain strings, not `/…/` literals — the config file is also expressed as JSON in `schemas/vis-release-config.schema.json`). Invalid sources are skipped with a warning rather than failing the release.\n\nThese EXTEND the built-in machine-release-commit heuristic (`chore(release): …`, `chore(main): release …`, `chore: release v…`, `release(alpha): …`). Set `ignoreReleaseCommits: false` to drop the built-ins and match only your own patterns.\n\nA bare `[skip ci]` marker is deliberately not built in — it means \"don't run CI\", not \"don't release\", so matching it would swallow a real `fix: … [skip ci]` and its bump. Opt in with `ignoreCommitPattern: [\"\\\\[skip ci\\\\]\"]` if you want that.\n\nA breaking change (`!` in the header or a `BREAKING CHANGE:` / `BREAKING-CHANGE:` footer) is exempt: it still releases as major even when its subject matches one of these patterns, so a type filter cannot swallow an incompatible change. The built-in release-commit heuristic has no such exemption."
|
|
284
284
|
},
|
|
285
285
|
"ignoreReleaseCommits": {
|
|
286
286
|
"type": "boolean",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as i}from"../packem_chunks/context.js";import{a as d}from"./apply-DoeQAAGm.js";import{p as u}from"./publish-DkgvB2Lk.js";const y=async(t={})=>{const e=await i(t),a=await d(e,{dryRun:t.dryRun});return{changedFiles:a.changedFiles,deletedFiles:a.deletedFiles,plan:a.plan}},w=async(t={})=>{const e=await i(t),{resolveFormatter:a}=await import("../packem_chunks/resolveFormatter.js"),n=await a(e.config.changelog,e.cwd),r=new Date().toISOString().slice(0,10),s=[];for(const c of e.plan.releases){const l=e.depGraph.getPackage(c.name);if(!l)continue;const o=await n({changeFiles:c.changeFiles,date:r,release:c,target:"changelog"});s.push({content:o,file:`${l.dir}/CHANGELOG.md`,package:c.name})}return{projectChangelogs:s}},m=async(t={})=>{const e=await i(t);return await u(e,{dryRun:t.dryRun,otp:t.otp,tag:t.tag})},F=async(t={})=>{const e=await i(t);let a=!1,n;const r=async()=>{if(n)return n;a=!0;const s=await d(e,{dryRun:t.dryRun});return n={changedFiles:s.changedFiles,deletedFiles:s.deletedFiles,plan:s.plan},n};return{apply:r,discard:()=>{a=!0},plan:e.plan,[Symbol.asyncDispose]:async()=>{a||await r()}}},R=async t=>{const e=await i(t),{runSnapshot:a}=await import("../packem_chunks/snapshot.js"),n=await a({context:e,dryRun:t.dryRun,registry:t.registry,tag:t.tag});return{failed:n.failed,published:n.published,skipped:n.skipped,snapshotVersion:n.snapshotVersion,tag:n.tag}},C=async(t={})=>{const e=await i(t),a=await d(e,{dryRun:t.dryRun}),n={changedFiles:a.changedFiles,deletedFiles:a.deletedFiles,plan:a.plan},{resolveFormatter:r}=await import("../packem_chunks/resolveFormatter.js"),s=await r(e.config.changelog,e.cwd),c=new Date().toISOString().slice(0,10),l=[];for(const g of a.plan.releases){const p=e.depGraph.getPackage(g.name);if(!p)continue;const f=await s({changeFiles:g.changeFiles,date:c,release:g,target:"changelog"});l.push({content:f,file:`${p.dir}/CHANGELOG.md`,package:g.name})}const o={projectChangelogs:l};if(t.skipPublish)return{changelog:o,publish:{failed:[],published:[],skipped:[]},version:n};const h=await u(e,{dryRun:t.dryRun,otp:void 0,tag:void 0});return{changelog:o,publish:h,version:n}};class S{constructor(e={}){this.config=e}config;releaseVersion(e={}){return y({...e,config:this.config})}releaseChangelog(e={}){return w({...e,config:this.config})}releasePublish(e={}){return m({...e,config:this.config})}releaseDraft(e={}){return F({...e,config:this.config})}releaseSnapshot(e){return R({...e,config:this.config})}}export{S as ReleaseClient,C as release,w as releaseChangelog,F as releaseDraft,m as releasePublish,R as releaseSnapshot,y as releaseVersion};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as t}from"./registry-CndByNx9.js";const s=async(a,o)=>await t(a,o);export{s as l};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import{DEFAULT_CHANGES_DIR as V}from"../packem_chunks/DEFAULT_CLEAN_KEEP.js";import{createShellRunner as F}from"../packem_chunks/shell-runner.js";import{r as _,b as W}from"./apply-DoeQAAGm.js";import{parseCatalogs as D}from"../packem_chunks/catalog.js";import{c as E}from"../packem_chunks/index3.js";import{r as M}from"../packem_chunks/context.js";import{escapeMarkdown as L}from"../packem_chunks/security.js";import{VisReleaseError as O}from"./VisReleaseError-DZtgcKf8.js";const B=/\{(name|version|previousVersion|date|repo|contributors)\}/g,U=(e,s)=>e.replaceAll(B,(i,g)=>s[g]??""),K=(e,s={})=>{const i=new Set;for(const o of s.internalAuthors??[]){const u=o.trim().toLowerCase().replace(/^@/,"");u.length>0&&i.add(u)}const g=new Set,c=[];for(const o of e){const u=o.meta?.author;if(u)for(const r of u.split(",")){const t=r.trim();if(!t)continue;const h=t.replace(/^@/,"");if(h.length===0)continue;const n=h.toLowerCase();g.has(n)||i.has(n)||(g.add(n),c.push(L(t)))}}return c.length===0?"":c.map(o=>`- ${o}`).join(`
|
|
2
|
-
`)},J=e=>e.length===0?"":`## Related releases
|
|
3
|
-
|
|
4
|
-
${e.map(i=>`- [${i.name}](${i.url})`).join(`
|
|
5
|
-
`)}`,Y=(e,s,i)=>{if(!s||!s.header&&!s.footer)return e;const g=o=>U(o,{contributors:i.contributors??"",date:i.date,name:i.name,previousVersion:i.previousVersion,repo:i.repo,version:i.version}).replaceAll(/\n{3,}/g,`
|
|
6
|
-
|
|
7
|
-
`).replace(/\s+$/,""),c=[];if(s.header){const o=g(s.header);o.length>0&&c.push(o)}if(c.push(e),s.footer){const o=g(s.footer);o.length>0&&c.push(o)}return c.join(`
|
|
8
|
-
|
|
9
|
-
`)},z=e=>{if(!Array.isArray(e))return;const[s,i]=e;if(s!=="github"||typeof i!="object"||i===null)return;const{internalAuthors:g}=i;if(Array.isArray(g))return g.filter(c=>typeof c=="string")},q=e=>(e.config.publish?.publishArgs??[]).includes("--provenance")&&e.pm.id!=="bun",X=async(e,s)=>{const{options:i,persistState:g,releases:c,result:o,state:u}=s,{removePendingStages:r,upsertPendingStages:t}=await import("../packem_chunks/staged-registry.js"),h=await e.pm.readCatalogYaml(e.cwd),n=D(h),d=e.depGraph.topologicalSort(c.map(l=>l.name)),w=new Map(c.map(l=>[l.name,l])),b=new Set,C=new Map;for(const l of e.plan.releases){const m=e.depGraph.getPackage(l.name);m&&C.set(l.name,{...m.manifest,version:l.newVersion})}const P={config:e.config,cwd:e.cwd},R=e.config.plugins?.length?await import("../packem_chunks/defineReleasePlugin.js"):void 0;for(const l of d){const m=w.get(l);if(!m){o.skipped.push({name:l,reason:"topo-sort returned a name not in the release plan (internal bug)"});continue}const f=e.depGraph.getPackage(l);if(!f)continue;const y=[...new Set(e.depGraph.getDependencies(l).filter(p=>p.kind!=="devDependencies"&&b.has(p.name)).map(p=>p.name))];if(y.length>0){o.skipped.push({name:l,reason:`dependency-failed: not published because ${y.join(", ")} failed to publish (publishing would orphan this package's dependency range)`}),b.add(l);continue}const a=e.perPackageConfig.get(l)??{},v=M(f,a),$=i.publishActionsOverride??E(v),k=i.tag??e.channel?.tag;if(R){const p=await R.runWillPublishHooks(P,{dir:f.dir,name:l,oldVersion:m.oldVersion,version:m.newVersion});if(p.skip){o.skipped.push({name:l,reason:`plugin-skipped${p.by?` by "${p.by}"`:""}`}),b.add(l);continue}}const A=s.stagedRegistry.pending.find(p=>p.name===l&&p.version===m.newVersion);try{const p=await $.publish({catalogs:n,cleanPackageJsonConfig:e.config.publish?.cleanPackageJson,dryRun:i.dryRun,otp:i.otp,perPackageConfig:a,pkg:f,pm:e.pm,provenance:q(e),registry:a.registry,release:m,resumeStageId:A?.id,tag:k,versionedManifestByName:C,workspaceConfig:e.config});if(p.published||p.alreadyPublished){const T=s.stagedRegistry.pending.filter(H=>H.name===l&&H.version===m.newVersion).map(H=>H.id);T.length>0&&(s.stagedRegistry=r(s.stagedRegistry,T))}if(p.published)o.published.push({name:l,stageId:p.stageId,tarball:p.tarball,version:m.newVersion}),u.published.push(`${l}@${m.newVersion}`),R&&await R.runAfterPublishHooks(P,{dir:f.dir,name:l,oldVersion:m.oldVersion,version:m.newVersion});else if(p.alreadyPublished)o.skipped.push({name:l,reason:"already-published"}),u.published.push(`${l}@${m.newVersion}`);else if(o.skipped.push({name:l,reason:p.output??"skipped"}),p.stageId){const T=(p.output??"").startsWith("stage-rejected")?"rejected":"timeout";s.stagedRegistry=t(s.stagedRegistry,[{id:p.stageId,name:l,reason:T,stagedAt:new Date().toISOString(),tag:k??"latest",version:m.newVersion}])}await g()}catch(p){o.failed.push({name:l,reason:p.message}),b.add(l)}}R&&await R.runAfterPublishAllHooks(P,{failed:o.failed.map(l=>({name:l.name,reason:l.reason})),published:o.published.map(l=>({name:l.name,version:l.version})),skipped:o.skipped.map(l=>({name:l.name,reason:l.reason}))})},Q=async(e,s,i,g)=>{const{createRemoteClient:c,detectRemoteProvider:o}=await import("../packem_chunks/detect.js"),u=await o(e.cwd,i,e.config.provider),r=c(u,{githubHost:e.config.githubHost,gitlabHost:e.config.gitlabHost,httpProxy:e.config.httpProxy}),t=await r.detectRepoSlug(e.cwd,i);if(!t)return;const h=typeof e.config.aggregateRelease=="object"?e.config.aggregateRelease:{enabled:e.config.aggregateRelease===!0},n=e.config.publish?.draftRelease===!0,d=e.config.publish?.discussionCategory,w=e.config.publish?.addReleases;if(h.enabled){const a=new Date().toISOString().slice(0,10),$=(h.title??"Release {date}").replaceAll("{date}",a),k=`release-${a}`,A=s.published.map(p=>`- \`${p.name}\` → ${p.version}`).join(`
|
|
10
|
-
`);try{const p=await r.createRelease(i,{body:A,cwd:e.cwd,discussionCategory:d,draft:n,repo:t,tag:k,title:$});if(p?.url)for(const T of s.published)T.url=p.url}catch{}return}const{defaultTagFor:b,renderTagPattern:C}=await import("../packem_chunks/git.js"),P=e.config.releaseTagPattern,R=e.channel?.tag,l=e.config.publish?.releaseAssets??{},m=new Date().toISOString().slice(0,10),f=z(e.config.changelog),y=K(e.plan.consumedChangeFiles??[],{internalAuthors:f});for(const a of g.groups){const v=a.members.map($=>`- \`${$}\` → ${s.published.find(k=>k.name===$)?.version??a.version}`).join(`
|
|
11
|
-
`);try{const $=await r.createRelease(i,{body:v,cwd:e.cwd,discussionCategory:d,draft:n,prerelease:a.version.includes("-"),repo:t,tag:a.tag,title:`${a.name} ${a.version}`});if($?.url)for(const k of s.published)a.members.includes(k.name)&&(k.url=$.url)}catch($){console.warn(`createRelease failed for group ${a.name} (tag ${a.tag}): ${$.message}`)}}for(const a of s.published){if(g.grouped.has(a.name))continue;const $=e.perPackageConfig.get(a.name)?.releaseTagPattern??P,k=$?C($,{channel:R,name:a.name,version:a.version}):b(a.name,a.version),A=a.version.includes("-");let p=`Release of ${a.name}@${a.version}.`;if(a.stageId&&(p=`${p}
|
|
12
|
-
|
|
13
|
-
> ⏳ **Staged — not yet installable.** Approve via \`vis release stage approve ${a.stageId}\` or the npmjs.com web UI.`),l.stampHashes&&a.tarball&&(p=`${p}
|
|
14
|
-
|
|
15
|
-
### Tarball integrity
|
|
16
|
-
|
|
17
|
-
- size: \`${a.tarball.size}\` bytes
|
|
18
|
-
- sha256: \`${a.tarball.sha256}\`
|
|
19
|
-
- sha512: \`${a.tarball.sha512}\``),w!==void 0&&w!==!1)try{const N=k.lastIndexOf("@"),S=N>0?k.slice(0,N+1):"",j=await r.listRecentReleases(i,{cwd:e.cwd,excludeTag:k,limit:5,repo:t,tagPrefix:S}),I=J(j);I&&(p=w==="top"?`${I}
|
|
20
|
-
|
|
21
|
-
${p}`:`${p}
|
|
22
|
-
|
|
23
|
-
${I}`)}catch{}const{releaseNoteTemplate:T}=e.config;if(T){const S=e.plan.releases.find(j=>j.name===a.name)?.oldVersion??"";p=Y(p,T,{contributors:y,date:m,name:a.name,previousVersion:S,repo:t,version:a.version})}const H=[];l.uploadTarball&&a.tarball&&H.push(a.tarball.path);try{const N=await r.createRelease(i,{assets:H.length>0?H:void 0,body:p,cwd:e.cwd,discussionCategory:d,draft:n,prerelease:A,repo:t,tag:k,title:`${a.name} v${a.version}`});N?.url&&(a.url=N.url)}catch(N){console.warn(`createRelease failed for ${a.name}@${a.version} (tag ${k}): ${N.message}`)}}},Z=async(e,s,i)=>{const{changesDir:g,options:c,persistState:o,result:u,runner:r,state:t}=s,{writeStagedRegistry:h}=await import("../packem_chunks/staged-registry.js");if(!c.dryRun&&u.published.length>0&&u.tagsPushed){e.config.publish?.noRelease!==!0&&await Q(e,u,r,i);try{const{walkSuccessfulRelease:n}=await import("../packem_chunks/success-walk.js"),{createRemoteClient:d,detectRemoteProvider:w}=await import("../packem_chunks/detect.js"),{resolveFormatter:b}=await import("../packem_chunks/resolveFormatter.js"),C=await w(e.cwd,r,e.config.provider),P=d(C,{githubHost:e.config.githubHost,gitlabHost:e.config.gitlabHost,httpProxy:e.config.httpProxy}),R=await P.detectRepoSlug(e.cwd,r),l=await b(e.config.changelog,e.cwd),{recordRecentlyWalked:m}=await import("../packem_chunks/staged-registry.js"),f=new Set([...t.walked??[],...(s.stagedRegistry.recentlyWalked??[]).map(a=>a.key)]),y={...u,published:u.published.filter(a=>!f.has(`${a.name}@${a.version}`))};if(y.published.length>0){const a=await n(e,y,r,{client:P,formatter:l,repo:R}),v=y.published.map($=>`${$.name}@${$.version}`);t.walked=[...t.walked??[],...v],await o(),s.stagedRegistry=m(s.stagedRegistry,v),a.warnings.length>0&&e.plan.warnings.push(...a.warnings)}}catch(n){e.plan.warnings.push(`successWalk: could not run post-release walk: ${n.message}`)}if(e.config.notifications)try{const{dispatchNotifications:n}=await import("../packem_chunks/interface.js"),{createRemoteClient:d,detectRemoteProvider:w}=await import("../packem_chunks/detect.js"),b=await w(e.cwd,r,e.config.provider),P=await d(b,{githubHost:e.config.githubHost,gitlabHost:e.config.gitlabHost,httpProxy:e.config.httpProxy}).detectRepoSlug(e.cwd,r);let R;try{const f=`${e.cwd}/package.json`,y=await import("node:fs/promises");R=JSON.parse(await y.readFile(f,"utf8")).name}catch{}const l=new Set([...t.notified??[],...(s.stagedRegistry.recentlyNotified??[]).map(f=>f.key)]),m=u.published.filter(f=>!l.has(`${f.name}@${f.version}`));if(m.length>0){const f=await n(e.config.notifications,{channel:e.channel?.tag,completedAt:new Date().toISOString(),...R===void 0?{}:{monorepoName:R},published:m.map(y=>({name:y.name,tag:e.channel?.tag,...y.url===void 0?{}:{url:y.url},version:y.version})),...P===void 0?{}:{repo:P},skipped:u.skipped.map(y=>({name:y.name,reason:y.reason}))},{warn:y=>e.plan.warnings.push(y)});if(f.succeeded.length>0){const y=m.map(v=>`${v.name}@${v.version}`);t.notified=[...t.notified??[],...y],await o();const{recordRecentlyNotified:a}=await import("../packem_chunks/staged-registry.js");s.stagedRegistry=a(s.stagedRegistry,y)}if(f.failed.length>0||f.succeeded.length>0){const y=f.succeeded.length+f.failed.length;if(f.failed.length>0){e.plan.warnings.push(`[notifications] dispatched ${f.succeeded.length}/${y} channels${f.succeeded.length>0?` (succeeded: ${f.succeeded.join(", ")})`:""}; ${f.failed.length} failed.`);for(const a of f.failed)e.plan.warnings.push(`[notifications:${a.id}] ${a.error}`)}}}}catch(n){e.plan.warnings.push(`notifications: dispatch failed: ${n.message}`)}if(!c.dryRun)try{const n=await h(e.cwd,g,s.stagedRegistry);if(n.changed){const{stageAndCommitFile:d}=await import("../packem_chunks/git.js");try{await d({cwd:e.cwd,runner:r},n.path,"chore(release): record cross-runner notify/walk dedupe [skip ci]",{author:e.config.gitUser,push:!c.noPush,sign:e.config.gitSignCommits===!0})}catch(w){process.stderr.write(`[vis release] Warning: could not commit ${n.path} (notify/walk dedupe): ${w.message}
|
|
24
|
-
`)}}}catch(n){process.stderr.write(`[vis release] Warning: could not update cross-runner dedupe registry: ${n.message}
|
|
25
|
-
`)}}},x=async e=>{const{defaultTagFor:s,floatingMajorTagFor:i,renderTagPattern:g}=await import("../packem_chunks/git.js"),{resolveSyncTagGroups:c}=await import("../packem_chunks/group-tags.js"),o=e.plan.releases.filter(n=>e.depGraph.getPackage(n.name)?.manifest?.private!==!0).map(n=>({name:n.name,version:n.newVersion})),u=c(e.config,o),r=u.groups.map(n=>n.tag),t=[],h=!!e.channel?.prerelease||!!e.preMode;for(const{name:n,version:d}of o){if(u.grouped.has(n))continue;const w=e.perPackageConfig.get(n),b=w?.releaseTagPattern??e.config.releaseTagPattern;if(r.push(b?g(b,{channel:e.channel?.tag,name:n,version:d}):s(n,d)),e.config.floatingMajorTag===!0&&!h&&!b?.includes("{major}")&&w?.skipNpmPublish!==!0){const C=i(n,d);C!==void 0&&t.push(C)}}return{created:r,updated:t}},ee=async(e,s,i)=>{if((await s.run("git",["remote","get-url","--push","origin"],{cwd:e.cwd,silent:!0})).exitCode!==0)return;const{getCurrentBranch:c,resolvePushCredentials:o,verifyPushAccess:u}=await import("../packem_chunks/git.js"),r={cwd:e.cwd,runner:s},t=await u(r);if(t!==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: ${t}`;const{createRemoteClient:h,detectRemoteProvider:n}=await import("../packem_chunks/detect.js");let d;try{d=await n(e.cwd,s,e.config.provider)}catch{return}if(d!=="github")return;const b=await h(d,{githubHost:e.config.githubHost,httpProxy:e.config.httpProxy}).detectRepoSlug(e.cwd,s);if(!b)return;const C=await o(r),P={...process.env};C!==void 0&&(P.GH_TOKEN=C.token),e.config.githubHost&&(P.GH_HOST=e.config.githubHost),e.config.httpProxy&&(P.HTTPS_PROXY=e.config.httpProxy,P.HTTP_PROXY=e.config.httpProxy);const{checkGithubPushRules:R}=await import("../packem_chunks/github-push-rules.js"),l=i.noTag?{created:[],updated:[]}:await x(e),m=await R(s,{branch:await c(r),createdTags:l.created,cwd:e.cwd,env:P,repo:b,signedCommits:e.config.gitSignCommits===!0,updatedTags:l.updated});for(const f of m.warnings)process.stderr.write(`[vis release] Warning: ${f}
|
|
26
|
-
`);if(m.blocked.length>0)return`GitHub push rules would reject this release, nothing was published:
|
|
27
|
-
- ${m.blocked.join(`
|
|
28
|
-
- `)}
|
|
29
|
-
Grant the pushing token a bypass, adjust the ruleset, or pass --no-push / --no-tag.`},ae=async(e,s,i,g)=>{if(!i.dryRun&&e.channel?.mode==="version-pr"){const{createRemoteClient:c,detectRemoteProvider:o}=await import("../packem_chunks/detect.js");let u;try{const t=await o(e.cwd,s,e.config.provider);u=await c(t,{githubHost:e.config.githubHost,gitlabHost:e.config.gitlabHost,httpProxy:e.config.httpProxy}).detectRepoSlug(e.cwd,s)}catch(t){return g.failed.push({name:"_preflight",reason:`Could not read the remote to check for an open release PR: ${t.message}`}),!0}const r=e.config.versionPr?.branch??"vis-release/version-packages";if(u)try{const t=await s.run("gh",["pr","list","--head",r,"--state","open","--json","number"],{cwd:e.cwd,silent:!0});if(t.exitCode===0&&t.stdout.trim()&&t.stdout.trim()!=="[]"){const h=JSON.parse(t.stdout);if(h[0])return g.failed.push({name:"_preflight",reason:`Open release PR #${h[0].number} exists. Merge or close it before publishing locally. (Override: --no-push then \`git push --tags\` manually.)`}),!0}}catch{}}if(!i.dryRun&&e.config.prePublishCommand)try{await _(e.cwd,e.config.prePublishCommand,"prePublishCommand")}catch(c){return g.failed.push({name:"_prePublishCommand",reason:c.message}),!0}if(!i.dryRun&&!i.noPush){let c;try{c=await ee(e,s,{noTag:i.noTag===!0})}catch(o){return g.failed.push({name:"_preflight",reason:`Could not verify the release pushes: ${o.message}`}),!0}if(c!==void 0)return g.failed.push({name:"_pushAccess",reason:c}),!0}return!1},se=async(e,s)=>{const{changesDir:i,options:g,runner:c}=s,{writeStagedRegistry:o}=await import("../packem_chunks/staged-registry.js");if(!g.dryRun){const u=s.priorRegistrySnapshot.pending.length,r=s.stagedRegistry.pending.length,t=await o(e.cwd,i,s.stagedRegistry);if(t.changed){const{stageAndCommitFile:h}=await import("../packem_chunks/git.js");let n;if(t.removed)n="chore(release): clear pending stage registry [skip ci]";else if(r>u){const d=r-u;n=`chore(release): record ${d} new pending stage${d===1?"":"s"} [skip ci]`}else if(r<u){const d=u-r;n=`chore(release): drain ${d} resolved stage${d===1?"":"s"} [skip ci]`}else n=`chore(release): update pending stage registry (${r} pending) [skip ci]`;try{await h({cwd:e.cwd,runner:c},t.path,n,{author:e.config.gitUser,push:!g.noPush,sign:e.config.gitSignCommits===!0})}catch(d){process.stderr.write(`[vis release] Warning: could not commit ${t.path}: ${d.message}
|
|
30
|
-
`)}}}},ie=async(e,s)=>{const{options:i,result:g,runner:c}=s;if(!i.dryRun&&g.published.length>0&&e.config.workspaceChangelog!==!1){const o=e.config.workspaceChangelog,u=typeof o=="object"?o:void 0,r=typeof e.config.aggregateRelease=="object"?e.config.aggregateRelease.enabled:e.config.aggregateRelease===!0;if(u!==void 0||r)try{const{writeWorkspaceChangelogWave:t}=await import("../packem_chunks/workspace.js"),h=new Set(g.published.map(w=>w.name)),n=e.plan.releases.filter(w=>h.has(w.name)),d=await t({changelogConfig:e.config.changelog,cwd:e.cwd,workspaceChangelog:e.config.workspaceChangelog},n);if(d)try{const{stageAndCommitFile:w}=await import("../packem_chunks/git.js");await w({cwd:e.cwd,runner:c},d,"chore(release): record wave [skip ci]",{author:e.config.gitUser,push:!i.noPush,sign:e.config.gitSignCommits===!0})}catch(w){process.stderr.write(`[vis release] Warning: could not commit workspace CHANGELOG.md: ${w.message}
|
|
31
|
-
`)}}catch(t){process.stderr.write(`[vis release] Warning: could not write workspace CHANGELOG.md wave entry: ${t.message}
|
|
32
|
-
`)}}},G=async(e,s,i,g,c)=>{const{stageAndCommitFile:o}=await import("../packem_chunks/git.js"),{stateFilePath:u}=await import("../packem_chunks/state.js");try{const r=await o({cwd:e.cwd,runner:s},u(e.cwd,i,!0),`chore(release): ${g} publish lock [skip ci]`,{author:e.config.gitUser,push:!c.noPush,sign:e.config.gitSignCommits===!0});!c.noPush&&r.committed&&!r.pushed&&process.stderr.write(`[vis release] Warning: publish lock (${g}) was committed locally but could not be pushed — cross-runner resume may use a stale lock.
|
|
33
|
-
`)}catch(r){process.stderr.write(`[vis release] Warning: could not commit publish lock (${g}): ${r.message}
|
|
34
|
-
`)}},re=async(e,s,i,g)=>{const{filterPlanByState:c,newState:o,readState:u,writeState:r}=await import("../packem_chunks/state.js"),{readStagedRegistry:t}=await import("../packem_chunks/staged-registry.js"),h=e.config.changesDir??V,n=e.config.publish?.lockInGit===!0;let d=i.resume||n?await u(e.cwd,h,n):void 0;d&&n&&(d.channel=e.channel?.tag);const w=async()=>{i.dryRun||!d||(await r(e.cwd,h,d,n),n&&await G(e,s,h,"progress",{noPush:i.noPush}))};let b=await t(e.cwd,h);await W(e,"publish",b,{runner:s}),b=await t(e.cwd,h);const C={...b,pending:[...b.pending]};let{releases:P}=e.plan;return d?P=c(P,d):(d=o(e.channel?.tag,e.plan.releases),i.dryRun||(await r(e.cwd,h,d,n),n&&await G(e,s,h,"open",{noPush:i.noPush}))),{changesDir:h,lockInGit:n,options:i,persistState:w,priorRegistrySnapshot:C,releases:P,result:g,runner:s,stagedRegistry:b,state:d}},te=async(e,s,i)=>{const{changesDir:g,lockInGit:c,options:o,persistState:u,result:r,runner:t,state:h}=s,{clearState:n}=await import("../packem_chunks/state.js");if(!o.dryRun&&!o.noTag&&r.published.length>0){const{createOrUpdateFloatingTag:d,createTag:w,defaultTagFor:b,floatingMajorTagFor:C,pushTags:P,renderTagPattern:R}=await import("../packem_chunks/git.js"),l=e.config.releaseTagPattern,m=e.channel?.tag,f=e.config.floatingMajorTag===!0,y=!!e.channel?.prerelease||!!e.preMode;for(const{name:a,version:v}of r.published){if(i.grouped.has(a))continue;const k=e.perPackageConfig.get(a)?.releaseTagPattern??l,A=k?R(k,{channel:m,name:a,version:v}):b(a,v);try{await w({cwd:e.cwd,runner:t},A,`Release ${a}@${v}`,{signing:e.config.signing,skipRemoteCheck:e.firstRelease}),r.tags.push(A)}catch(S){e.firstRelease&&S instanceof O&&S.code==="TAG_COLLISION"?r.skipped.push({name:A,reason:"tag-creation: tag already exists (first-release — skipped)"}):r.failed.push({name:A,reason:`tag-creation: ${S.message}`})}const p=e.depGraph.getPackage(a),T=e.perPackageConfig.get(a),H=p?.manifest?.private===!0,N=T?.skipNpmPublish===!0;if(f&&!y&&!k?.includes("{major}")&&!H&&!N){const S=C(a,v);if(S!==void 0)try{await d({cwd:e.cwd,runner:t},S,{push:!o.noPush,signing:e.config.signing}),r.tags.push(S)}catch(j){r.skipped.push({name:S,reason:`floating-major-tag: ${j.message}`})}}}for(const a of i.groups)try{await w({cwd:e.cwd,runner:t},a.tag,`Release ${a.name} ${a.version}`,{signing:e.config.signing,skipRemoteCheck:e.firstRelease}),r.tags.push(a.tag)}catch(v){e.firstRelease&&v instanceof O&&v.code==="TAG_COLLISION"?r.skipped.push({name:a.tag,reason:"tag-creation: tag already exists (first-release — skipped)"}):r.failed.push({name:a.tag,reason:`tag-creation: ${v.message}`})}if(!o.noPush&&r.tags.length>0)try{await P({cwd:e.cwd,runner:t}),r.tagsPushed=!0}catch(a){r.tagsPushed=!1,r.failed.push({name:"_pushTags",reason:`git push --tags failed: ${a.message}. Retry with: git push --tags`})}h.tagged=[...r.tags],h.pushed=r.tagsPushed,await u(),r.failed.length===0&&!o.dryRun&&(await n(e.cwd,g,c),c&&await G(e,t,g,"close",{noPush:o.noPush}))}},he=async(e,s={})=>{const i={failed:[],published:[],skipped:[],tags:[],tagsPushed:!1},g=F();if(e.plan.releases.length===0||await ae(e,g,s,i))return i;const c=e.config.changesDir??V,{acquireLock:o,releaseLock:u}=await import("../packem_chunks/state.js");let r=!1;if(!s.dryRun)try{await o(e.cwd,c),r=!0}catch(t){return i.failed.push({name:"_lock",reason:t.message}),i}try{const t=await re(e,g,s,i);await X(e,t);const{resolveSyncTagGroups:h}=await import("../packem_chunks/group-tags.js"),n=h(e.config,i.published);if(await te(e,t,n),await se(e,t),await ie(e,t),await Z(e,t,n),!s.dryRun&&e.config.postPublishCommand)try{await _(e.cwd,e.config.postPublishCommand,"postPublishCommand")}catch(d){i.failed.push({name:"_postPublishCommand",reason:d.message})}return i}finally{r&&await u(e.cwd,c)}};export{he as p};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{createRequire as Y}from"node:module";import{DEFAULT_CHANGES_DIR as te}from"../packem_chunks/DEFAULT_CLEAN_KEEP.js";import{maxBump as re}from"../release/types.js";import{f as ne}from"../packem_chunks/context.js";import{r as se}from"./slug-OBHcH7wV.js";import{resolveLastReleaseRef as ie}from"../packem_chunks/version-resolver.js";let Z;const Q=r=>(Z??=Y(import.meta.url))(r),P=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ee=r=>{if(typeof P<"u"&&P.versions&&P.versions.node){const[e,t]=P.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return P.getBuiltinModule(r)}return Q(r)},{join:F}=ee("node:path"),W=/(?!.*)/;function oe(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(r){return r.map(e=>typeof e=="string"?oe(e.trim()):e.source).filter(Boolean).join("|")}function ae(r,e){if(!r)return W;const t=I(r);return e?e(t):new RegExp(`^(?:\\*\\s+)?(${t}):\\s*(.*)`,"i")}function ce(r,e){if(!r)return W;const t=e?"g":"gi";return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${I(r)})([\\w-]+)(?=\\s|$|[,;.)\\]])`,t)}function O(r,e=""){if(!r)return/()(.+)/gi;const t=I(r),n=`(?<!\\w)(?:${t})(?!\\w)`;return new RegExp(`(?<!\\w)(${t})${e}(?:\\s+(.*?))(?=${n}|$)`,"gi")}function le(r){const e=r?`|\\s+(?:${I(r)})`:"";return new RegExp(`^(?:BREAKING CHANGE|[\\w-]+)(?::\\s+${e}).+`,"i")}function fe(r={}){const e=ae(r.noteKeywords,r.notesPattern),t=ce(r.issuePrefixes,r.issuePrefixesCaseSensitive),n=O(r.referenceActions),s=O(r.referenceActions,":?"),o=le(r.issuePrefixes);return{notes:e,referenceParts:t,references:n,footerReferences:s,footerToken:o,mentions:/@([\w-]+)/g,url:/\b(?:https?):\/\/(?:www\.)?([-a-zA-Z0-9@:%_+.~#?&//=])+\b/}}const he="------------------------ >8 ------------------------";function S(r){const e=r.match(/[^\r\n]/);if(typeof e?.index!="number")return"";const t=e.index;let n=r.length-1;for(;r[n]==="\r"||r[n]===`
|
|
2
|
-
`;)n--;return r.substring(t,n+1)}function k(r,e){return r?`${r}
|
|
3
|
-
${e||""}`:e||""}function ue(r){return r?e=>!e.startsWith(r):()=>!0}function de(r,e){const t=r.indexOf(`${e} ${he}`);return t===-1?r:r.slice(0,t)}function G(r){return!r.match(/^\s*gpg:/)}function M(r,e,t){const{groups:n}=e;for(let s=0,o=t.length,i;s<o;s++)i=t[s],r[i]=(n?n[i]:e[s+1])||null;return r}const me={noteKeywords:["BREAKING CHANGE","BREAKING-CHANGE"],issuePrefixes:["#"],referenceActions:["close","closes","closed","fix","fixes","fixed","resolve","resolves","resolved"],headerPattern:/^(\w*)(?:\(([\w$@.\-*/ ]*)\))?: (.*)$/,headerCorrespondence:["type","scope","subject"],revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\.?/,revertCorrespondence:["header","hash"],fieldPattern:/^-(?=.*\w)(.*?)-$/};function D(r={}){return{merge:null,revert:null,header:null,body:null,footer:null,notes:[],mentions:[],references:[],...r}}class ge{options;regexes;lines=[];lineIndex=0;commit=D();constructor(e={}){this.options={...me,...e},this.regexes=fe(this.options)}currentLine(){return this.lines[this.lineIndex]}nextLine(){return this.lines[this.lineIndex++]}isLineAvailable(){return this.lineIndex<this.lines.length}parseReference(e,t){const{regexes:n}=this;if(n.url.test(e))return null;const s=n.referenceParts.exec(e);if(!s)return null;let[o,i=null,c,u]=s,f=null;if(i){const m=i.indexOf("/");m!==-1&&(f=i.slice(0,m),i=i.slice(m+1))}return{raw:o,action:t,owner:f,repository:i,prefix:c,issue:u}}parseReferences(e,t=!1){const{regexes:n}=this,s=t?n.footerReferences:n.references,o=e.match(s)?s:/()(.+)/gi,i=[];let c,u,f,m;for(;c=o.exec(e),!!c;)for(u=c[1]||null,f=c[2]||"";m=this.parseReference(f,u),!!m;)i.push(m);return i}skipEmptyLines(){let e=this.currentLine();for(;e!==void 0&&!e.trim();)this.nextLine(),e=this.currentLine()}parseMerge(){const{commit:e,options:t}=this,n=t.mergeCorrespondence||[],s=this.currentLine(),o=s&&t.mergePattern?s.match(t.mergePattern):null;return o?(this.nextLine(),e.merge=o[0]||null,M(e,o,n),!0):!1}parseHeader(e){e&&this.skipEmptyLines();const{commit:t,options:n}=this,s=n.headerCorrespondence||[],o=t.header??this.nextLine();let i=null;o&&(n.breakingHeaderPattern&&(i=o.match(n.breakingHeaderPattern)),!i&&n.headerPattern&&(i=o.match(n.headerPattern))),o&&(t.header=o),i&&M(t,i,s)}parseMeta(){const{options:e,commit:t}=this;if(!e.fieldPattern||!this.isLineAvailable())return!1;let n,s=null,o=!1;for(;this.isLineAvailable();){if(n=this.currentLine().match(e.fieldPattern),n){s=n[1]||null,this.nextLine();continue}if(s)o=!0,t[s]=k(t[s],this.currentLine()),this.nextLine();else break}return o}parseNotes(){const{regexes:e,commit:t}=this;if(!this.isLineAvailable())return!1;const n=this.currentLine().match(e.notes);let s;if(n){const o={title:n[1],text:n[2]};for(t.notes.push(o),t.footer=k(t.footer,this.currentLine()),this.nextLine();this.isLineAvailable();){if(this.parseMeta()||this.parseNotes())return!0;if(s=e.footerToken.test(this.currentLine()),t.references.push(...this.parseReferences(this.currentLine(),s)),s||(o.text=k(o.text,this.currentLine())),t.footer=k(t.footer,this.currentLine()),this.nextLine(),s)break}return!0}return!1}parseBodyAndFooter(e){const{commit:t,regexes:n}=this;if(!this.isLineAvailable())return e;const s=n.footerToken.test(this.currentLine()),o=!s&&e;return t.references.push(...this.parseReferences(this.currentLine(),s)),o?t.body=k(t.body,this.currentLine()):t.footer=k(t.footer,this.currentLine()),this.nextLine(),o}parseBreakingHeader(){const{commit:e,options:t}=this;if(!t.breakingHeaderPattern||e.notes.length||!e.header)return;const n=e.header.match(t.breakingHeaderPattern);n&&e.notes.push({title:"BREAKING CHANGE",text:n[3]})}parseMentions(e){const{commit:t,regexes:n}=this;let s;for(;s=n.mentions.exec(e),!!s;)t.mentions.push(s[1])}parseRevert(e){const{commit:t,options:n}=this,s=n.revertCorrespondence||[],o=n.revertPattern?e.match(n.revertPattern):null;o&&(t.revert=M({},o,s))}cleanupCommit(){const{commit:e}=this;e.body&&=S(e.body),e.footer&&=S(e.footer),e.notes.forEach(n=>{n.text=S(n.text)});const t=new Set;e.references=e.references.filter(n=>{const s=`${n.action} ${n.raw}`.toLocaleLowerCase(),o=!t.has(s);return o&&t.add(s),o})}parse(e){if(!e.trim())throw new TypeError("Expected a raw commit");const{commentChar:t}=this.options,n=ue(t),s=S(e).split(/\r?\n/),o=t?de(s,t).filter(f=>n(f)&&G(f)):s.filter(f=>G(f)),i=D();this.lines=o,this.lineIndex=0,this.commit=i;const c=this.parseMerge();this.parseHeader(c),i.header&&(i.references=this.parseReferences(i.header));let u=!0;for(;this.isLineAvailable();)this.parseMeta(),this.parseNotes()&&(u=!1),this.parseBodyAndFooter(u)||(u=!1);return this.parseBreakingHeader(),this.parseMentions(e),this.parseRevert(e),this.cleanupCommit(),i}}const K={build:"patch",chore:"patch",ci:"patch",docs:"patch",feat:"minor",fix:"patch",perf:"patch",refactor:"patch",style:"patch",test:"patch"},pe=new ge,xe=/^Revert\s+"(.+)"\s*$/,we=/This reverts commit\s+([0-9a-f]{7,40})/i,be=/^(?:[\p{Emoji_Presentation}\p{Extended_Pictographic}]|:\w+:)\s+/u,Re=(r,e)=>{const t=r.replace(be,""),n=pe.parse(`${t}
|
|
4
|
-
|
|
5
|
-
${e}`);return{breaking:n.notes.some(o=>/BREAKING/i.test(o.title)),scope:n.scope??void 0,type:n.type??void 0}},ve=(r,e,t)=>{let n,s=!1;if(t.type==="revert"){s=!0;const c=r.indexOf(":");c!==-1&&(n=r.slice(c+1).trim())}else{const c=xe.exec(r.trim());c&&(s=!0,n=c[1]?.trim())}let o;const i=we.exec(e);return i&&(o=i[1]?.toLowerCase()),{isRevert:s,targetSha:o,targetSubject:n}},Ee=(r,e=new Set,t)=>{const n=r.map(a=>{const h=Re(a.subject,a.body),{isRevert:l,targetSha:p,targetSubject:d}=ve(a.subject,a.body,h);return{...a,cancelled:!1,parsed:h,revert:l,revertSubject:d,revertTargetSha:p}}),s=n.toReversed(),o=12,i=new Map;for(const a of s)if(i.set(a.hash,a),a.hash.length>=7){const h=Math.min(a.hash.length-1,o);for(let l=7;l<=h;l+=1){const p=a.hash.slice(0,l);if(i.has(p)){const d=i.get(p);d!==null&&d!==a&&i.set(p,null)}else i.set(p,a)}}const c=(a,h)=>{if(a.revertTargetSha){const l=a.revertTargetSha.toLowerCase();let d=i.get(l)??void 0;if(d||(d=s.find(A=>A.hash.startsWith(l))),d&&d!==a)return d}if(a.revertSubject)for(let l=h.length-1;l>=0;l-=1){const p=h[l];if(p.subject===a.revertSubject)return p}},u=64,f=a=>{let h=a;for(let l=0;l<u;l+=1){if(!h.revert)return h;const p=h.cancelledBy;let d;if(p&&(d=i.get(p)??void 0,d||(d=i.get(p.slice(0,7))??void 0)),!d||d===h)return h;h=d}},m=[],g=[];for(const a of s){if(a.revert){const h=c(a,g);if(h){if(e.has(h.hash)){g.push(a);continue}const l=f(h);if(l===void 0){m.push(`Revert chain at ${a.hash} exceeded depth limit (${u}) — skipping cancellation`),g.push(a);continue}if(e.has(l.hash)){g.push(a);continue}l.cancelled=!l.cancelled,l.cancelledBy=l.cancelled?a.hash:void 0,a.cancelled=!0,a.cancelledBy=h.hash}}g.push(a)}const v=n.filter(a=>!a.cancelled&&!a.revert&&!a.subject?.startsWith("Merge ")),C=v.filter(a=>!a.parsed.type);if(v.length>0&&C.length/v.length>.5){const a=t??"<from>..HEAD";m.push(`${C.length}/${v.length} commits in ${a} have no conventional-commits prefix. Consider enabling commit-message linting.`)}return{commits:n,warnings:m}},ye=[/^chore\(release\)!?:/i,/^chore\([^\n)]{0,64}\)!?:[ \t]{0,8}release[ \t]/i,/^chore!?:[ \t]{0,8}release[ \t]/i,/^release(?:\([^\n)]{0,64}\))?!?:/i],Le=(r={})=>{const e=r.ignoreReleaseCommits===!1?[]:[...ye],t=r.ignoreCommitPattern,n=t===void 0?[]:typeof t=="string"?[t]:t;for(const s of n)if(!(typeof s!="string"||s.trim()===""))try{e.push(new RegExp(s))}catch(o){r.onInvalidPattern?.(s,o)}return e},ke=512,Ce=(r,e)=>{if(e.length===0)return!1;const t=r.slice(0,ke);return e.some(n=>(n.lastIndex=0,n.test(t)))},$e=r=>{const e=[],t=r.indexOf(`
|
|
6
|
-
`);t!==-1&&e.push(t);const n=String.raw`\n\n`;let s=r.indexOf(n);for(;s!==-1;){if(/^\s{0,8}#/.test(r.slice(s+n.length))){e.push(s);break}s=r.indexOf(n,s+1)}return(e.length>0?r.slice(0,Math.min(...e)):r).trim()},_e=async r=>{const{config:e,cwd:t,packages:n,perPackageConfig:s,runner:o}=r,i=[],c=[];if(r.from)return{notes:i,ref:r.from,warnings:c};if(r.sinceLastRelease){const g=await ie({cwd:t,packages:n,perPackageConfig:s,runner:o,workspaceConfig:e});if(g.kind==="tag"&&g.ref)return i.push(`--since-last-release: ${g.reason}.`),{notes:i,ref:g.ref,warnings:c};if(g.kind==="root-commit"&&g.ref)return r.allowFullHistory!==!0?{error:`--since-last-release: ${g.reason}. Refusing to walk it: every package touched anywhere in that history would be bumped (major, for any breaking-change marker in it) and, on the auto-publish path, published. Pass --allow-full-history if this really is a first release, or pin the start of the range explicitly.`,notes:i,warnings:c}:(c.push(`--since-last-release: ${g.reason}. Walking it because --allow-full-history was passed.`),{notes:i,ref:g.ref,warnings:c});c.push(`--since-last-release: ${g.reason}. Falling back to the merge-base with baseBranch.`)}const u=e.baseBranch??"main",f=await o.run("git",["merge-base",`origin/${u}`,"HEAD"],{cwd:t,silent:!0});if(f.exitCode===0&&f.stdout.trim())return{notes:i,ref:f.stdout.trim(),warnings:c};const m=await o.run("git",["merge-base",u,"HEAD"],{cwd:t,silent:!0});return{notes:i,ref:m.exitCode===0&&m.stdout.trim()?m.stdout.trim():"HEAD~10",warnings:c}},Ne=async r=>{const{config:e,cwd:t,fs:n,packages:s,runner:o}=r,i=await _e(r),c=[...i.notes],u=[...i.warnings];if(i.error!==void 0||i.ref===void 0)return{error:i.error??"Could not resolve the start of the commit range.",ignoredCommits:0,notes:c,status:"failed",warnings:u};const f=i.ref,m=new Map;for(const x of s){const w=(x.dir.startsWith(t)?x.dir.slice(t.length):x.dir).replaceAll("\\","/").replace(/^\/+/,"");m.set(w,x.name)}const g=x=>{for(const[R,w]of m)if(x.startsWith(`${R}/`)||x===`${R}/package.json`)return w},v=Math.random().toString(16).slice(2,10),C=`@@VIS_RELEASE_COMMIT_${v}@@`,a=`@@VIS_RELEASE_FILES_${v}@@`,h=await o.run("git",["log",`${f}..HEAD`,`--pretty=format:${C}%n%H%n%s%n%b%n${a}`,"--name-only"],{cwd:t,silent:!0});if(h.exitCode!==0)return{error:`git log failed: ${h.stderr}`,fromRef:f,ignoredCommits:0,notes:c,status:"failed",warnings:u};const l=new Map,p=[],d=[],A=h.stdout.split(C).map(x=>x.trim()).filter(Boolean);for(const x of A){const[R,w=""]=x.split(a).toReversed(),_=w.split(`
|
|
7
|
-
`),E=_[0]?.trim()??"",y=$e(_[1]??""),b=_.slice(2).join(`
|
|
8
|
-
`).trim(),L=(R??"").split(`
|
|
9
|
-
`).map(J=>J.trim()).filter(Boolean);E&&d.push({body:b,files:L,hash:E,subject:y})}const N=Le({ignoreCommitPattern:e.ignoreCommitPattern,ignoreReleaseCommits:e.ignoreReleaseCommits,onInvalidPattern:(x,R)=>{u.push(`Ignoring invalid release.ignoreCommitPattern entry ${JSON.stringify(x)}: ${R.message}`)}}),H=d.filter(x=>!Ce(x.subject,N)),$=d.length-H.length;$>0&&c.push(`Skipped ${$} release/ignored commit(s) in ${f}..HEAD.`);const{commits:z,warnings:X}=Ee(H,void 0,`${f}..HEAD`);u.push(...X);for(const{cancelled:x,files:R,parsed:w,subject:_}of z){if(x)continue;let E="patch";w.breaking?E="major":w.type&&K[w.type]&&(E=K[w.type]??"patch");const y=new Set;if(w.scope)for(const b of s)(b.name===w.scope||b.name.endsWith(`/${w.scope}`))&&y.add(b.name);if(y.size===0)for(const b of R){const L=g(b);L&&y.add(L)}for(const b of y){const L=l.get(b);l.set(b,L?re(L,E):E)}y.size>0&&p.push(`- ${_}`)}if(l.size===0)return c.push("No commits affected workspace packages — nothing to generate."),{bumps:l,fromRef:f,ignoredCommits:$,notes:c,status:"no-changes",warnings:u};const q={bumps:Object.fromEntries(l)},U=p.length>0?p.join(`
|
|
10
|
-
`):"Auto-generated change file.",T=ne(q,U);if(r.dryRun)return{bumps:l,content:T,fromRef:f,ignoredCommits:$,notes:c,status:"dry-run",warnings:u};const j=e.changesDir??te,V=(r.name??se()).replaceAll(/[^a-z0-9-]/gi,"-"),B=F(t,j,`${V}.md`);return await n.mkdir(F(t,j),{recursive:!0}),await n.writeFile(B,T),{bumps:l,content:T,createdFile:B,fromRef:f,ignoredCommits:$,notes:c,status:"written",warnings:u}};export{Ne as r};
|