@visulima/vis 7.1.0-next.5 → 7.1.0-next.6
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 +21 -0
- package/bin/route.mjs +154 -27
- 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/catalog.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/fix.js +1 -1
- 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/handler4.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 +1 -1
- package/dist/packem_chunks/handler58.js +1 -1
- package/dist/packem_chunks/handler59.js +1 -1
- package/dist/packem_chunks/handler6.js +1 -1
- package/dist/packem_chunks/handler60.js +1 -1
- package/dist/packem_chunks/handler61.js +1 -1
- package/dist/packem_chunks/handler62.js +1 -1
- package/dist/packem_chunks/handler63.js +1 -1
- package/dist/packem_chunks/handler64.js +1 -1
- package/dist/packem_chunks/handler65.js +1 -1
- package/dist/packem_chunks/handler66.js +1 -1
- package/dist/packem_chunks/handler67.js +1 -1
- package/dist/packem_chunks/handler68.js +1 -1
- package/dist/packem_chunks/handler69.js +1 -1
- package/dist/packem_chunks/handler7.js +1 -1
- package/dist/packem_chunks/handler70.js +1 -1
- package/dist/packem_chunks/handler71.js +1 -1
- package/dist/packem_chunks/handler72.js +1 -1
- package/dist/packem_chunks/handler73.js +1 -1
- package/dist/packem_chunks/handler74.js +1 -1
- package/dist/packem_chunks/handler75.js +1 -1
- package/dist/packem_chunks/handler76.js +1 -1
- package/dist/packem_chunks/handler77.js +1 -1
- package/dist/packem_chunks/handler78.js +1 -1
- package/dist/packem_chunks/handler79.js +1 -1
- package/dist/packem_chunks/handler8.js +1 -1
- package/dist/packem_chunks/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_shared/{ReleaseClient-C2xIJ6LK.js → ReleaseClient-CqGLb7S4.js} +1 -1
- package/dist/packem_shared/{advisories-DoJg1aO9.js → advisories-BnFPhsl1.js} +1 -1
- package/dist/packem_shared/{affected-selection-vthRDY8k.js → affected-selection-Bd03KJU3.js} +1 -1
- package/dist/packem_shared/{ai-analysis-BQXQSrpM.js → ai-analysis-GjV2rF4U.js} +1 -1
- package/dist/packem_shared/{ai-cache-_pgEsibl.js → ai-cache-DFKUyj11.js} +1 -1
- package/dist/packem_shared/{ai-fix-Bc5SFN7s.js → ai-fix-DpBEXHZT.js} +1 -1
- package/dist/packem_shared/{bin-N12LFeEP.js → bin-D1zq7wxi.js} +1 -1
- package/dist/packem_shared/{build-scripts-Dff0s5AH.js → build-scripts-mKGcgTzp.js} +1 -1
- package/dist/packem_shared/{dependency-scan-DheQqeil.js → dependency-scan-BGKZYS_i.js} +1 -1
- package/dist/packem_shared/{detect-CknQIlyA.js → detect-CaA92iu_.js} +1 -1
- package/dist/packem_shared/{docker-w_1gOq50.js → docker-Cs174Imq.js} +1 -1
- package/dist/packem_shared/{ecosystem-gate-BKRW_EF3.js → ecosystem-gate-DcpvfgEi.js} +1 -1
- package/dist/packem_shared/{env-consistency-2UlhhMn5.js → env-consistency-nSuzisQe.js} +1 -1
- package/dist/packem_shared/{env-CGTN0BFz.js → env-sb3SOT-b.js} +1 -1
- package/dist/packem_shared/{failure-log-DwZ4pNmp.js → failure-log-AtaeZOrx.js} +1 -1
- package/dist/packem_shared/glob-Cyk1H9ZL-QtJl508G.js +1 -0
- package/dist/packem_shared/{index-DGll9r9W.js → index-C_7lOmB0.js} +1 -1
- package/dist/packem_shared/{index-CypvJE1G.js → index-CclzWrJ5.js} +1 -1
- package/dist/packem_shared/{lifecycle-B2m1OncV.js → lifecycle-BzenugED.js} +1 -1
- package/dist/packem_shared/{manifests-hpWznbs9.js → manifests-DPwVdkqB.js} +1 -1
- package/dist/packem_shared/{min-release-age-Dy7mkYsY.js → min-release-age-BH4JKSXA.js} +1 -1
- package/dist/packem_shared/{missing-package-json-SDyf6fjC.js → missing-package-json-ByjsDBbk.js} +1 -1
- package/dist/packem_shared/{multi-eco-lockfiles-DDjCxn43.js → multi-eco-lockfiles-Bz9ViPBV.js} +1 -1
- package/dist/packem_shared/{native-config-sync-DlljvZ64.js → native-config-sync-DI7_xs-Q.js} +1 -1
- package/dist/packem_shared/{osv-C4Vn7VCy.js → osv-DaMZpVWl.js} +1 -1
- package/dist/packem_shared/{package-version-DteJxz6k.js → package-version-VdULnxr1.js} +1 -1
- package/dist/packem_shared/{packument-BHB4BqzR.js → packument-zeKEhTaX.js} +1 -1
- package/dist/packem_shared/{project-name-filter-yTiFERfc.js → project-name-filter-BklluD5Y.js} +1 -1
- package/dist/packem_shared/{provenance-BLycrdW2.js → provenance-CwyZDw8A.js} +1 -1
- package/dist/packem_shared/publish-missing-DgPXeH9w.js +38 -0
- package/dist/packem_shared/{registry-48vkYPJB.js → registry-TXpTtpgS.js} +1 -1
- package/dist/packem_shared/{registry-keys-DdqAOng1.js → registry-keys-B4CNE38T.js} +1 -1
- package/dist/packem_shared/{renderToString-DR0zDUjh-AcCpRdMt.js → renderToString-DR0zDUjh-CdBv7J9a.js} +1 -1
- package/dist/packem_shared/{resolve-explicit-BbIYCI43.js → resolve-explicit-Cg3eqSqr.js} +1 -1
- package/dist/packem_shared/{run-summary-utils-BIFZ0_Qf.js → run-summary-utils-CZ2pIIOZ.js} +1 -1
- package/dist/packem_shared/{runtime-check-B2u8WTUY.js → runtime-check-By5NHR00.js} +1 -1
- package/dist/packem_shared/{s1ngularity-CTb560h1.js → s1ngularity-CXTWGOvX.js} +1 -1
- package/dist/packem_shared/{scaffold-files-CnWTGzav.js → scaffold-files-CC1M9Gje.js} +1 -1
- package/dist/packem_shared/{scan-progress-BEB4T6jo.js → scan-progress-BaCJp5nr.js} +1 -1
- package/dist/packem_shared/{selectors-DFzKNlk8.js → selectors-DdvjAetv.js} +1 -1
- package/dist/packem_shared/{signatures-CoRC1HW7.js → signatures-Bm-ySKmD.js} +1 -1
- package/dist/packem_shared/{spinner-uH0pr4ln.js → spinner-D8Eugb6Y.js} +1 -1
- package/dist/packem_shared/{table-DL8yVcm3.js → table-Dc3wOjzc.js} +1 -1
- package/dist/packem_shared/{tabs-C1RRtWUi.js → tabs-Ch5hj2ow.js} +1 -1
- package/dist/packem_shared/{toolchain-BdYvWNPz.js → toolchain-DQIOCPht.js} +1 -1
- package/dist/packem_shared/{typosquats-D0yqKvP6.js → typosquats-Dw02Q55Q.js} +1 -1
- package/dist/packem_shared/{use-measured-height-Cq0aFDqE.js → use-measured-height-wtekNTLa.js} +1 -1
- package/dist/packem_shared/{vis-update-app-B0FW7Sl_.js → vis-update-app-it6zkxW1.js} +1 -1
- package/dist/packem_shared/{vis-user-error-Bdcaov20.js → vis-user-error-6sSghaC9.js} +1 -1
- package/dist/packem_shared/{watch-loop-B2vH6Ae0.js → watch-loop-q7f9ukDX.js} +1 -1
- package/dist/release/index.js +1 -1
- package/index.d.ts +204 -213
- package/index.js +54 -54
- package/package.json +9 -9
- package/dist/packem_shared/glob-Cyk1H9ZL-DV-XWFct.js +0 -1
- package/dist/packem_shared/publish-missing-CZK1BpWt.js +0 -38
package/index.js
CHANGED
|
@@ -92,8 +92,8 @@ function requireNative() {
|
|
|
92
92
|
try {
|
|
93
93
|
const binding = require('@visulima/vis-binding-android-arm64')
|
|
94
94
|
const bindingPackageVersion = require('@visulima/vis-binding-android-arm64/package.json').version
|
|
95
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
96
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
95
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
96
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
97
97
|
}
|
|
98
98
|
return binding
|
|
99
99
|
} catch (e) {
|
|
@@ -108,8 +108,8 @@ function requireNative() {
|
|
|
108
108
|
try {
|
|
109
109
|
const binding = require('@visulima/vis-binding-android-arm-eabi')
|
|
110
110
|
const bindingPackageVersion = require('@visulima/vis-binding-android-arm-eabi/package.json').version
|
|
111
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
112
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
111
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
112
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
113
113
|
}
|
|
114
114
|
return binding
|
|
115
115
|
} catch (e) {
|
|
@@ -129,8 +129,8 @@ function requireNative() {
|
|
|
129
129
|
try {
|
|
130
130
|
const binding = require('@visulima/vis-binding-win32-x64-gnu')
|
|
131
131
|
const bindingPackageVersion = require('@visulima/vis-binding-win32-x64-gnu/package.json').version
|
|
132
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
133
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
132
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
133
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
134
134
|
}
|
|
135
135
|
return binding
|
|
136
136
|
} catch (e) {
|
|
@@ -145,8 +145,8 @@ function requireNative() {
|
|
|
145
145
|
try {
|
|
146
146
|
const binding = require('@visulima/vis-binding-win32-x64-msvc')
|
|
147
147
|
const bindingPackageVersion = require('@visulima/vis-binding-win32-x64-msvc/package.json').version
|
|
148
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
149
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
148
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
149
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
150
150
|
}
|
|
151
151
|
return binding
|
|
152
152
|
} catch (e) {
|
|
@@ -162,8 +162,8 @@ function requireNative() {
|
|
|
162
162
|
try {
|
|
163
163
|
const binding = require('@visulima/vis-binding-win32-ia32-msvc')
|
|
164
164
|
const bindingPackageVersion = require('@visulima/vis-binding-win32-ia32-msvc/package.json').version
|
|
165
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
166
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
165
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
166
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
167
167
|
}
|
|
168
168
|
return binding
|
|
169
169
|
} catch (e) {
|
|
@@ -178,8 +178,8 @@ function requireNative() {
|
|
|
178
178
|
try {
|
|
179
179
|
const binding = require('@visulima/vis-binding-win32-arm64-msvc')
|
|
180
180
|
const bindingPackageVersion = require('@visulima/vis-binding-win32-arm64-msvc/package.json').version
|
|
181
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
182
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
181
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
182
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
183
183
|
}
|
|
184
184
|
return binding
|
|
185
185
|
} catch (e) {
|
|
@@ -197,8 +197,8 @@ function requireNative() {
|
|
|
197
197
|
try {
|
|
198
198
|
const binding = require('@visulima/vis-binding-darwin-universal')
|
|
199
199
|
const bindingPackageVersion = require('@visulima/vis-binding-darwin-universal/package.json').version
|
|
200
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
201
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
200
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
201
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
202
202
|
}
|
|
203
203
|
return binding
|
|
204
204
|
} catch (e) {
|
|
@@ -213,8 +213,8 @@ function requireNative() {
|
|
|
213
213
|
try {
|
|
214
214
|
const binding = require('@visulima/vis-binding-darwin-x64')
|
|
215
215
|
const bindingPackageVersion = require('@visulima/vis-binding-darwin-x64/package.json').version
|
|
216
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
217
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
216
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
217
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
218
218
|
}
|
|
219
219
|
return binding
|
|
220
220
|
} catch (e) {
|
|
@@ -229,8 +229,8 @@ function requireNative() {
|
|
|
229
229
|
try {
|
|
230
230
|
const binding = require('@visulima/vis-binding-darwin-arm64')
|
|
231
231
|
const bindingPackageVersion = require('@visulima/vis-binding-darwin-arm64/package.json').version
|
|
232
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
233
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
232
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
233
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
234
234
|
}
|
|
235
235
|
return binding
|
|
236
236
|
} catch (e) {
|
|
@@ -249,8 +249,8 @@ function requireNative() {
|
|
|
249
249
|
try {
|
|
250
250
|
const binding = require('@visulima/vis-binding-freebsd-x64')
|
|
251
251
|
const bindingPackageVersion = require('@visulima/vis-binding-freebsd-x64/package.json').version
|
|
252
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
253
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
252
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
253
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
254
254
|
}
|
|
255
255
|
return binding
|
|
256
256
|
} catch (e) {
|
|
@@ -265,8 +265,8 @@ function requireNative() {
|
|
|
265
265
|
try {
|
|
266
266
|
const binding = require('@visulima/vis-binding-freebsd-arm64')
|
|
267
267
|
const bindingPackageVersion = require('@visulima/vis-binding-freebsd-arm64/package.json').version
|
|
268
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
269
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
268
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
269
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
270
270
|
}
|
|
271
271
|
return binding
|
|
272
272
|
} catch (e) {
|
|
@@ -286,8 +286,8 @@ function requireNative() {
|
|
|
286
286
|
try {
|
|
287
287
|
const binding = require('@visulima/vis-binding-linux-x64-musl')
|
|
288
288
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-x64-musl/package.json').version
|
|
289
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
290
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
289
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
290
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
291
291
|
}
|
|
292
292
|
return binding
|
|
293
293
|
} catch (e) {
|
|
@@ -302,8 +302,8 @@ function requireNative() {
|
|
|
302
302
|
try {
|
|
303
303
|
const binding = require('@visulima/vis-binding-linux-x64-gnu')
|
|
304
304
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-x64-gnu/package.json').version
|
|
305
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
306
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
305
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
306
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
307
307
|
}
|
|
308
308
|
return binding
|
|
309
309
|
} catch (e) {
|
|
@@ -320,8 +320,8 @@ function requireNative() {
|
|
|
320
320
|
try {
|
|
321
321
|
const binding = require('@visulima/vis-binding-linux-arm64-musl')
|
|
322
322
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-arm64-musl/package.json').version
|
|
323
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
324
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
323
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
324
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
325
325
|
}
|
|
326
326
|
return binding
|
|
327
327
|
} catch (e) {
|
|
@@ -336,8 +336,8 @@ function requireNative() {
|
|
|
336
336
|
try {
|
|
337
337
|
const binding = require('@visulima/vis-binding-linux-arm64-gnu')
|
|
338
338
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-arm64-gnu/package.json').version
|
|
339
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
340
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
339
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
340
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
341
341
|
}
|
|
342
342
|
return binding
|
|
343
343
|
} catch (e) {
|
|
@@ -354,8 +354,8 @@ function requireNative() {
|
|
|
354
354
|
try {
|
|
355
355
|
const binding = require('@visulima/vis-binding-linux-arm-musleabihf')
|
|
356
356
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-arm-musleabihf/package.json').version
|
|
357
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
358
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
357
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
358
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
359
359
|
}
|
|
360
360
|
return binding
|
|
361
361
|
} catch (e) {
|
|
@@ -370,8 +370,8 @@ function requireNative() {
|
|
|
370
370
|
try {
|
|
371
371
|
const binding = require('@visulima/vis-binding-linux-arm-gnueabihf')
|
|
372
372
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-arm-gnueabihf/package.json').version
|
|
373
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
374
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
373
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
374
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
375
375
|
}
|
|
376
376
|
return binding
|
|
377
377
|
} catch (e) {
|
|
@@ -388,8 +388,8 @@ function requireNative() {
|
|
|
388
388
|
try {
|
|
389
389
|
const binding = require('@visulima/vis-binding-linux-loong64-musl')
|
|
390
390
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-loong64-musl/package.json').version
|
|
391
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
392
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
391
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
392
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
393
393
|
}
|
|
394
394
|
return binding
|
|
395
395
|
} catch (e) {
|
|
@@ -404,8 +404,8 @@ function requireNative() {
|
|
|
404
404
|
try {
|
|
405
405
|
const binding = require('@visulima/vis-binding-linux-loong64-gnu')
|
|
406
406
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-loong64-gnu/package.json').version
|
|
407
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
408
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
407
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
408
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
409
409
|
}
|
|
410
410
|
return binding
|
|
411
411
|
} catch (e) {
|
|
@@ -422,8 +422,8 @@ function requireNative() {
|
|
|
422
422
|
try {
|
|
423
423
|
const binding = require('@visulima/vis-binding-linux-riscv64-musl')
|
|
424
424
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-riscv64-musl/package.json').version
|
|
425
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
426
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
425
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
426
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
427
427
|
}
|
|
428
428
|
return binding
|
|
429
429
|
} catch (e) {
|
|
@@ -438,8 +438,8 @@ function requireNative() {
|
|
|
438
438
|
try {
|
|
439
439
|
const binding = require('@visulima/vis-binding-linux-riscv64-gnu')
|
|
440
440
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-riscv64-gnu/package.json').version
|
|
441
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
442
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
441
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
442
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
443
443
|
}
|
|
444
444
|
return binding
|
|
445
445
|
} catch (e) {
|
|
@@ -455,8 +455,8 @@ function requireNative() {
|
|
|
455
455
|
try {
|
|
456
456
|
const binding = require('@visulima/vis-binding-linux-ppc64-gnu')
|
|
457
457
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-ppc64-gnu/package.json').version
|
|
458
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
459
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
458
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
459
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
460
460
|
}
|
|
461
461
|
return binding
|
|
462
462
|
} catch (e) {
|
|
@@ -471,8 +471,8 @@ function requireNative() {
|
|
|
471
471
|
try {
|
|
472
472
|
const binding = require('@visulima/vis-binding-linux-s390x-gnu')
|
|
473
473
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-s390x-gnu/package.json').version
|
|
474
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
475
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
474
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
475
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
476
476
|
}
|
|
477
477
|
return binding
|
|
478
478
|
} catch (e) {
|
|
@@ -491,8 +491,8 @@ function requireNative() {
|
|
|
491
491
|
try {
|
|
492
492
|
const binding = require('@visulima/vis-binding-openharmony-arm64')
|
|
493
493
|
const bindingPackageVersion = require('@visulima/vis-binding-openharmony-arm64/package.json').version
|
|
494
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
495
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
494
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
495
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
496
496
|
}
|
|
497
497
|
return binding
|
|
498
498
|
} catch (e) {
|
|
@@ -507,8 +507,8 @@ function requireNative() {
|
|
|
507
507
|
try {
|
|
508
508
|
const binding = require('@visulima/vis-binding-openharmony-x64')
|
|
509
509
|
const bindingPackageVersion = require('@visulima/vis-binding-openharmony-x64/package.json').version
|
|
510
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
511
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
510
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
511
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
512
512
|
}
|
|
513
513
|
return binding
|
|
514
514
|
} catch (e) {
|
|
@@ -523,8 +523,8 @@ function requireNative() {
|
|
|
523
523
|
try {
|
|
524
524
|
const binding = require('@visulima/vis-binding-openharmony-arm')
|
|
525
525
|
const bindingPackageVersion = require('@visulima/vis-binding-openharmony-arm/package.json').version
|
|
526
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
527
|
-
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.
|
|
526
|
+
if (bindingPackageVersion !== '7.1.0-next.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
527
|
+
throw new Error(`Native binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
528
528
|
}
|
|
529
529
|
return binding
|
|
530
530
|
} catch (e) {
|
|
@@ -664,8 +664,8 @@ if (!nativeBinding || forceWasi) {
|
|
|
664
664
|
if (!candidateFailed) {
|
|
665
665
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
666
666
|
const bindingPackageVersion = require('@visulima/vis-binding-wasm32-wasi/package.json').version
|
|
667
|
-
if (bindingPackageVersion !== '7.1.0-next.
|
|
668
|
-
throw new Error(`WASI binding package version mismatch, expected 7.1.0-next.
|
|
667
|
+
if (bindingPackageVersion !== '7.1.0-next.6') {
|
|
668
|
+
throw new Error(`WASI binding package version mismatch, expected 7.1.0-next.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
wasiBinding = require('@visulima/vis-binding-wasm32-wasi')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/vis",
|
|
3
|
-
"version": "7.1.0-next.
|
|
3
|
+
"version": "7.1.0-next.6",
|
|
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",
|
|
@@ -153,14 +153,14 @@
|
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
155
|
"optionalDependencies": {
|
|
156
|
-
"@visulima/vis-binding-darwin-arm64": "7.1.0-next.
|
|
157
|
-
"@visulima/vis-binding-darwin-x64": "7.1.0-next.
|
|
158
|
-
"@visulima/vis-binding-linux-arm64-gnu": "7.1.0-next.
|
|
159
|
-
"@visulima/vis-binding-linux-arm64-musl": "7.1.0-next.
|
|
160
|
-
"@visulima/vis-binding-linux-x64-gnu": "7.1.0-next.
|
|
161
|
-
"@visulima/vis-binding-linux-x64-musl": "7.1.0-next.
|
|
162
|
-
"@visulima/vis-binding-win32-arm64-msvc": "7.1.0-next.
|
|
163
|
-
"@visulima/vis-binding-win32-x64-msvc": "7.1.0-next.
|
|
156
|
+
"@visulima/vis-binding-darwin-arm64": "7.1.0-next.6",
|
|
157
|
+
"@visulima/vis-binding-darwin-x64": "7.1.0-next.6",
|
|
158
|
+
"@visulima/vis-binding-linux-arm64-gnu": "7.1.0-next.6",
|
|
159
|
+
"@visulima/vis-binding-linux-arm64-musl": "7.1.0-next.6",
|
|
160
|
+
"@visulima/vis-binding-linux-x64-gnu": "7.1.0-next.6",
|
|
161
|
+
"@visulima/vis-binding-linux-x64-musl": "7.1.0-next.6",
|
|
162
|
+
"@visulima/vis-binding-win32-arm64-msvc": "7.1.0-next.6",
|
|
163
|
+
"@visulima/vis-binding-win32-x64-msvc": "7.1.0-next.6"
|
|
164
164
|
},
|
|
165
165
|
"engines": {
|
|
166
166
|
"node": "^22.14.0 || >=24.10.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as t}from"./registry-48vkYPJB.js";const s=async(a,o)=>await t(a,o);export{s as l};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import{createRequire as q}from"node:module";import{s as D}from"./index--eV4qIz5.js";import{DEFAULT_CHANGES_DIR as O}from"../packem_chunks/DEFAULT_CLEAN_KEEP.js";import{a as X,f as Q}from"../packem_chunks/context.js";import{c as Z,d as x,D as ee}from"../packem_chunks/version-resolver.js";import{createTag as se,pushTags as ae,resolveReleaseSource as re,renderTagPattern as ie,defaultTagFor as te}from"../packem_chunks/git.js";import{createShellRunner as F}from"../packem_chunks/shell-runner.js";import{r as L,b as ne}from"./apply-C6qxfMqZ.js";import{p as oe}from"../packem_chunks/native-addon.js";import{c as ce}from"../packem_chunks/index3.js";import{escapeMarkdown as ge}from"../packem_chunks/security.js";import{VisReleaseError as B}from"./VisReleaseError-DZtgcKf8.js";let K;const z=e=>(K??=q(import.meta.url))(e),V=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,W=e=>{if(typeof V<"u"&&V.versions&&V.versions.node){const[s,a]=V.versions.node.split(".").map(Number);if(s>22||s===22&&a>=3||s===20&&a>=16)return V.getBuiltinModule(e)}return z(e)},{mkdir:J,writeFile:Y}=W("node:fs/promises"),{resolve:M}=W("node:path"),le=/\{(name|version|previousVersion|date|repo|contributors)\}/g,de=(e,s)=>e.replaceAll(le,(a,n)=>s[n]??""),pe=(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 n=new Set,c=[];for(const g of e){const d=g.meta?.author;if(d)for(const t of d.split(",")){const l=t.trim();if(!l)continue;const i=l.replace(/^@/,"");if(i.length===0)continue;const r=i.toLowerCase();n.has(r)||a.has(r)||(n.add(r),c.push(ge(l)))}}return c.length===0?"":c.map(g=>`- ${g}`).join(`
|
|
2
|
-
`)},ue=e=>e.length===0?"":`## Related releases
|
|
3
|
-
|
|
4
|
-
${e.map(a=>`- [${a.name}](${a.url})`).join(`
|
|
5
|
-
`)}`,he=(e,s,a)=>{if(!s||!s.header&&!s.footer)return e;const n=g=>de(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+$/,""),c=[];if(s.header){const g=n(s.header);g.length>0&&c.push(g)}if(c.push(e),s.footer){const g=n(s.footer);g.length>0&&c.push(g)}return c.join(`
|
|
8
|
-
|
|
9
|
-
`)},fe=e=>{if(!Array.isArray(e))return;const[s,a]=e;if(s!=="github"||typeof a!="object"||a===null)return;const{internalAuthors:n}=a;if(Array.isArray(n))return n.filter(c=>typeof c=="string")},me=e=>(e.config.publish?.publishArgs??[]).includes("--provenance")&&e.pm.id!=="bun",we=async(e,s)=>{const{options:a,persistState:n,releases:c,result:g,state:d}=s,{removePendingStages:t,upsertPendingStages:l}=await import("../packem_chunks/staged-registry.js"),i=await e.pm.readCatalogYaml(e.cwd),r=oe(i),o=e.depGraph.topologicalSort(c.map(p=>p.name)),h=new Map(c.map(p=>[p.name,p])),m=new Set,k=new Map;for(const p of e.plan.releases){const b=e.depGraph.getPackage(p.name);b&&k.set(p.name,{...b.manifest,version:p.newVersion})}const P={config:e.config,cwd:e.cwd},R=e.config.plugins?.length?await import("../packem_chunks/defineReleasePlugin.js"):void 0;for(const p of o){const b=h.get(p);if(!b){g.skipped.push({name:p,reason:"topo-sort returned a name not in the release plan (internal bug)"});continue}const y=e.depGraph.getPackage(p);if(!y)continue;const v=[...new Set(e.depGraph.getDependencies(p).filter(f=>f.kind!=="devDependencies"&&m.has(f.name)).map(f=>f.name))];if(v.length>0){g.skipped.push({name:p,reason:`dependency-failed: not published because ${v.join(", ")} failed to publish (publishing would orphan this package's dependency range)`}),m.add(p);continue}const u=e.perPackageConfig.get(p)??{},C=X(y,u),$=a.publishActionsOverride??ce(C),w=a.tag??e.channel?.tag;if(R){const f=await R.runWillPublishHooks(P,{dir:y.dir,name:p,oldVersion:b.oldVersion,version:b.newVersion});if(f.skip){g.skipped.push({name:p,reason:`plugin-skipped${f.by?` by "${f.by}"`:""}`}),m.add(p);continue}}const T=s.stagedRegistry.pending.find(f=>f.name===p&&f.version===b.newVersion);try{const f=await $.publish({catalogs:r,cleanPackageJsonConfig:e.config.publish?.cleanPackageJson,dryRun:a.dryRun,otp:a.otp,perPackageConfig:u,pkg:y,pm:e.pm,provenance:me(e),registry:u.registry,release:b,resumeStageId:T?.id,tag:w,versionedManifestByName:k,workspaceConfig:e.config});if(f.published||f.alreadyPublished){const S=s.stagedRegistry.pending.filter(_=>_.name===p&&_.version===b.newVersion).map(_=>_.id);S.length>0&&(s.stagedRegistry=t(s.stagedRegistry,S))}if(f.published)g.published.push({name:p,stageId:f.stageId,tarball:f.tarball,version:b.newVersion}),d.published.push(`${p}@${b.newVersion}`),R&&await R.runAfterPublishHooks(P,{dir:y.dir,name:p,oldVersion:b.oldVersion,version:b.newVersion});else if(f.alreadyPublished)g.skipped.push({name:p,reason:"already-published"}),d.published.push(`${p}@${b.newVersion}`);else if(g.skipped.push({name:p,reason:f.output??"skipped"}),f.stageId){const S=(f.output??"").startsWith("stage-rejected")?"rejected":"timeout";s.stagedRegistry=l(s.stagedRegistry,[{id:f.stageId,name:p,reason:S,stagedAt:new Date().toISOString(),tag:w??"latest",version:b.newVersion}])}await n()}catch(f){g.failed.push({name:p,reason:f.message}),m.add(p)}}R&&await R.runAfterPublishAllHooks(P,{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}))})},ye=async(e,s,a,n)=>{const{createRemoteClient:c,detectRemoteProvider:g}=await import("../packem_chunks/detect.js"),d=await g(e.cwd,a,e.config.provider),t=c(d,{githubHost:e.config.githubHost,gitlabHost:e.config.gitlabHost,httpProxy:e.config.httpProxy}),l=await t.detectRepoSlug(e.cwd,a);if(!l)return;const i=typeof e.config.aggregateRelease=="object"?e.config.aggregateRelease:{enabled:e.config.aggregateRelease===!0},r=e.config.publish?.draftRelease===!0,o=e.config.publish?.discussionCategory,h=e.config.publish?.addReleases;if(i.enabled){const u=new Date().toISOString().slice(0,10),$=(i.title??"Release {date}").replaceAll("{date}",u),w=`release-${u}`,T=s.published.map(f=>`- \`${f.name}\` → ${f.version}`).join(`
|
|
10
|
-
`);try{const f=await t.createRelease(a,{body:T,cwd:e.cwd,discussionCategory:o,draft:r,repo:l,tag:w,title:$});if(f?.url)for(const S of s.published)S.url=f.url}catch{}return}const{defaultTagFor:m,renderTagPattern:k}=await import("../packem_chunks/git.js"),P=e.config.releaseTagPattern,R=e.channel?.tag,p=e.config.publish?.releaseAssets??{},b=new Date().toISOString().slice(0,10),y=fe(e.config.changelog),v=pe(e.plan.consumedChangeFiles??[],{internalAuthors:y});for(const u of n.groups){const C=u.members.map($=>`- \`${$}\` → ${s.published.find(w=>w.name===$)?.version??u.version}`).join(`
|
|
11
|
-
`);try{const $=await t.createRelease(a,{body:C,cwd:e.cwd,discussionCategory:o,draft:r,prerelease:u.version.includes("-"),repo:l,tag:u.tag,title:`${u.name} ${u.version}`});if($?.url)for(const w of s.published)u.members.includes(w.name)&&(w.url=$.url)}catch($){console.warn(`createRelease failed for group ${u.name} (tag ${u.tag}): ${$.message}`)}}for(const u of s.published){if(n.grouped.has(u.name))continue;const $=e.perPackageConfig.get(u.name)?.releaseTagPattern??P,w=$?k($,{channel:R,name:u.name,version:u.version}):m(u.name,u.version),T=u.version.includes("-");let f=`Release of ${u.name}@${u.version}.`;if(u.stageId&&(f=`${f}
|
|
12
|
-
|
|
13
|
-
> ⏳ **Staged — not yet installable.** Approve via \`vis release stage approve ${u.stageId}\` or the npmjs.com web UI.`),p.stampHashes&&u.tarball&&(f=`${f}
|
|
14
|
-
|
|
15
|
-
### Tarball integrity
|
|
16
|
-
|
|
17
|
-
- size: \`${u.tarball.size}\` bytes
|
|
18
|
-
- sha256: \`${u.tarball.sha256}\`
|
|
19
|
-
- sha512: \`${u.tarball.sha512}\``),h!==void 0&&h!==!1)try{const j=w.lastIndexOf("@"),H=j>0?w.slice(0,j+1):"",N=await t.listRecentReleases(a,{cwd:e.cwd,excludeTag:w,limit:5,repo:l,tagPrefix:H}),G=ue(N);G&&(f=h==="top"?`${G}
|
|
20
|
-
|
|
21
|
-
${f}`:`${f}
|
|
22
|
-
|
|
23
|
-
${G}`)}catch{}const{releaseNoteTemplate:S}=e.config;if(S){const H=e.plan.releases.find(N=>N.name===u.name)?.oldVersion??"";f=he(f,S,{contributors:v,date:b,name:u.name,previousVersion:H,repo:l,version:u.version})}const _=[];p.uploadTarball&&u.tarball&&_.push(u.tarball.path);try{const j=await t.createRelease(a,{assets:_.length>0?_:void 0,body:f,cwd:e.cwd,discussionCategory:o,draft:r,prerelease:T,repo:l,tag:w,title:`${u.name} v${u.version}`});j?.url&&(u.url=j.url)}catch(j){console.warn(`createRelease failed for ${u.name}@${u.version} (tag ${w}): ${j.message}`)}}},be=async(e,s,a)=>{const{changesDir:n,options:c,persistState:g,result:d,runner:t,state:l}=s,{writeStagedRegistry:i}=await import("../packem_chunks/staged-registry.js");if(!c.dryRun&&d.published.length>0&&d.tagsPushed){e.config.publish?.noRelease!==!0&&await ye(e,d,t,a);try{const{walkSuccessfulRelease:r}=await import("../packem_chunks/success-walk.js"),{createRemoteClient:o,detectRemoteProvider:h}=await import("../packem_chunks/detect.js"),{resolveFormatter:m}=await import("../packem_chunks/resolveFormatter.js"),k=await h(e.cwd,t,e.config.provider),P=o(k,{githubHost:e.config.githubHost,gitlabHost:e.config.gitlabHost,httpProxy:e.config.httpProxy}),R=await P.detectRepoSlug(e.cwd,t),p=await m(e.config.changelog,e.cwd),{recordRecentlyWalked:b}=await import("../packem_chunks/staged-registry.js"),y=new Set([...l.walked??[],...(s.stagedRegistry.recentlyWalked??[]).map(C=>C.key)]),v={...d,published:d.published.filter(C=>!y.has(`${C.name}@${C.version}`))},u=v.published.length>0?await r(e,v,t,{client:P,formatter:p,repo:R}):void 0;if(u?.ran===!0){const C=v.published.map($=>`${$.name}@${$.version}`);l.walked=[...l.walked??[],...C],await g(),s.stagedRegistry=b(s.stagedRegistry,C),u.warnings.length>0&&e.plan.warnings.push(...u.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:o,detectRemoteProvider:h}=await import("../packem_chunks/detect.js"),m=await h(e.cwd,t,e.config.provider),P=await o(m,{githubHost:e.config.githubHost,gitlabHost:e.config.gitlabHost,httpProxy:e.config.httpProxy}).detectRepoSlug(e.cwd,t);let R;try{const y=`${e.cwd}/package.json`,v=await import("node:fs/promises");R=JSON.parse(await v.readFile(y,"utf8")).name}catch{}const p=new Set([...l.notified??[],...(s.stagedRegistry.recentlyNotified??[]).map(y=>y.key)]),b=d.published.filter(y=>!p.has(`${y.name}@${y.version}`));if(b.length>0){const y=await r(e.config.notifications,{channel:e.channel?.tag,completedAt:new Date().toISOString(),...R===void 0?{}:{monorepoName:R},published:b.map(v=>({name:v.name,tag:e.channel?.tag,...v.url===void 0?{}:{url:v.url},version:v.version})),...P===void 0?{}:{repo:P},skipped:d.skipped.map(v=>({name:v.name,reason:v.reason}))},{warn:v=>e.plan.warnings.push(v)});if(y.succeeded.length>0){const v=b.map(C=>`${C.name}@${C.version}`);l.notified=[...l.notified??[],...v],await g();const{recordRecentlyNotified:u}=await import("../packem_chunks/staged-registry.js");s.stagedRegistry=u(s.stagedRegistry,v)}if(y.failed.length>0||y.succeeded.length>0){const v=y.succeeded.length+y.failed.length;if(y.failed.length>0){e.plan.warnings.push(`[notifications] dispatched ${y.succeeded.length}/${v} channels${y.succeeded.length>0?` (succeeded: ${y.succeeded.join(", ")})`:""}; ${y.failed.length} failed.`);for(const u of y.failed)e.plan.warnings.push(`[notifications:${u.id}] ${u.error}`)}}}}catch(r){e.plan.warnings.push(`notifications: dispatch failed: ${r.message}`)}if(!c.dryRun)try{const r=await i(e.cwd,n,s.stagedRegistry);if(r.changed){const{stageAndCommitFile:o}=await import("../packem_chunks/git.js");try{await o({cwd:e.cwd,runner:t},r.path,"chore(release): record cross-runner notify/walk dedupe [skip ci]",{author:e.config.gitUser,push:!c.noPush&&!c.noBranchPush,sign:e.config.gitSignCommits===!0})}catch(h){process.stderr.write(`[vis release] Warning: could not commit ${r.path} (notify/walk dedupe): ${h.message}
|
|
24
|
-
`)}}}catch(r){process.stderr.write(`[vis release] Warning: could not update cross-runner dedupe registry: ${r.message}
|
|
25
|
-
`)}}},ve=async e=>{const{defaultTagFor:s,floatingMajorTagFor:a,renderTagPattern:n}=await import("../packem_chunks/git.js"),{resolveSyncTagGroups:c}=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=c(e.config,g),t=d.groups.map(r=>r.tag),l=[],i=!!e.channel?.prerelease||!!e.preMode;for(const{name:r,version:o}of g){if(d.grouped.has(r))continue;const h=e.perPackageConfig.get(r),m=h?.releaseTagPattern??e.config.releaseTagPattern;if(t.push(m?n(m,{channel:e.channel?.tag,name:r,version:o}):s(r,o)),e.config.floatingMajorTag===!0&&!i&&!m?.includes("{major}")&&h?.skipNpmPublish!==!0){const k=a(r,o);k!==void 0&&l.push(k)}}return{created:t,updated:l}},Pe=async(e,s,a)=>{if((await s.run("git",["remote","get-url","--push","origin"],{cwd:e.cwd,silent:!0})).exitCode!==0)return;const{getCurrentBranch:c,resolvePushCredentials:g,verifyPushAccess:d}=await import("../packem_chunks/git.js"),t={cwd:e.cwd,runner:s},l=await d(t);if(l!==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: ${l}`;const{createRemoteClient:i,detectRemoteProvider:r}=await import("../packem_chunks/detect.js");let o;try{o=await r(e.cwd,s,e.config.provider)}catch{return}if(o!=="github")return;const m=await i(o,{githubHost:e.config.githubHost,httpProxy:e.config.httpProxy}).detectRepoSlug(e.cwd,s);if(!m)return;const k=await g(t),P={...process.env};k!==void 0&&(P.GH_TOKEN=k.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"),p=a.noTag?{created:[],updated:[]}:await ve(e),b=await R(s,{branch:await c(t),createdTags:p.created,cwd:e.cwd,env:P,repo:m,signedCommits:e.config.gitSignCommits===!0,updatedTags:p.updated});for(const y of b.warnings)process.stderr.write(`[vis release] Warning: ${y}
|
|
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.`},ke=async(e,s,a,n)=>{if(!a.dryRun&&e.channel?.mode==="version-pr"){const{createRemoteClient:t,detectRemoteProvider:l}=await import("../packem_chunks/detect.js");let i;try{const o=await l(e.cwd,s,e.config.provider);i=await t(o,{githubHost:e.config.githubHost,gitlabHost:e.config.gitlabHost,httpProxy:e.config.httpProxy}).detectRepoSlug(e.cwd,s)}catch(o){return n.failed.push({name:"_preflight",reason:`Could not read the remote to check for an open release PR: ${o.message}`}),!0}const r=e.config.versionPr?.branch??"vis-release/version-packages";if(i)try{const o=await s.run("gh",["pr","list","--head",r,"--state","open","--json","number"],{cwd:e.cwd,silent:!0});if(o.exitCode===0&&o.stdout.trim()&&o.stdout.trim()!=="[]"){const h=JSON.parse(o.stdout);if(h[0])return n.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{}}const{describeUnreleasedDependencies:c,findUnreleasedDependencies:g}=await Promise.resolve().then(()=>He),d=await g(e,e.plan.releases,{registryProbe:a.registryProbe,runner:s});if(d.size>0)return n.failed.push({name:"_unreleasedDependencies",reason:`These releases depend on versions that are not on the registry, nothing was published:
|
|
30
|
-
- ${c(d)}
|
|
31
|
-
Release those dependencies first (add a change file for them) or fix the range.`}),!0;if(!a.dryRun&&e.config.prePublishCommand)try{await L(e.cwd,e.config.prePublishCommand,"prePublishCommand")}catch(t){return n.failed.push({name:"_prePublishCommand",reason:t.message}),!0}if(!a.dryRun&&!a.noPush){let t;try{t=await Pe(e,s,{noTag:a.noTag===!0})}catch(l){return n.failed.push({name:"_preflight",reason:`Could not verify the release pushes: ${l.message}`}),!0}if(t!==void 0)return n.failed.push({name:"_pushAccess",reason:t}),!0}return!1},Re=async(e,s)=>{const{changesDir:a,options:n,runner:c}=s,{writeStagedRegistry:g}=await import("../packem_chunks/staged-registry.js");if(!n.dryRun){const d=s.priorRegistrySnapshot.pending.length,t=s.stagedRegistry.pending.length,l=await g(e.cwd,a,s.stagedRegistry);if(l.changed){const{stageAndCommitFile:i}=await import("../packem_chunks/git.js");let r;if(l.removed)r="chore(release): clear pending stage registry [skip ci]";else if(t>d){const o=t-d;r=`chore(release): record ${o} new pending stage${o===1?"":"s"} [skip ci]`}else if(t<d){const o=d-t;r=`chore(release): drain ${o} resolved stage${o===1?"":"s"} [skip ci]`}else r=`chore(release): update pending stage registry (${t} pending) [skip ci]`;try{await i({cwd:e.cwd,runner:c},l.path,r,{author:e.config.gitUser,push:!n.noPush&&!n.noBranchPush,sign:e.config.gitSignCommits===!0})}catch(o){process.stderr.write(`[vis release] Warning: could not commit ${l.path}: ${o.message}
|
|
32
|
-
`)}}}},$e=async(e,s)=>{const{options:a,result:n,runner:c}=s;if(!a.dryRun&&n.published.length>0&&e.config.workspaceChangelog!==!1){const g=e.config.workspaceChangelog,d=typeof g=="object"?g:void 0,t=typeof e.config.aggregateRelease=="object"?e.config.aggregateRelease.enabled:e.config.aggregateRelease===!0;if(d!==void 0||t)try{const{writeWorkspaceChangelogWave:l}=await import("../packem_chunks/workspace.js"),i=new Set(n.published.map(h=>h.name)),r=e.plan.releases.filter(h=>i.has(h.name)),o=await l({changelogConfig:e.config.changelog,cwd:e.cwd,workspaceChangelog:e.config.workspaceChangelog},r);if(o)try{const{stageAndCommitFile:h}=await import("../packem_chunks/git.js");await h({cwd:e.cwd,runner:c},o,"chore(release): record wave [skip ci]",{author:e.config.gitUser,push:!a.noPush&&!a.noBranchPush,sign:e.config.gitSignCommits===!0})}catch(h){process.stderr.write(`[vis release] Warning: could not commit workspace CHANGELOG.md: ${h.message}
|
|
33
|
-
`)}}catch(l){process.stderr.write(`[vis release] Warning: could not write workspace CHANGELOG.md wave entry: ${l.message}
|
|
34
|
-
`)}}},I=async(e,s,a,n,c)=>{const{stageAndCommitFile:g}=await import("../packem_chunks/git.js"),{stateFilePath:d}=await import("../packem_chunks/state.js");try{const t=await g({cwd:e.cwd,runner:s},d(e.cwd,a,!0),`chore(release): ${n} publish lock [skip ci]`,{author:e.config.gitUser,push:!c.noPush,sign:e.config.gitSignCommits===!0});!c.noPush&&t.committed&&!t.pushed&&process.stderr.write(`[vis release] Warning: publish lock (${n}) was committed locally but could not be pushed — cross-runner resume may use a stale lock.
|
|
35
|
-
`)}catch(t){process.stderr.write(`[vis release] Warning: could not commit publish lock (${n}): ${t.message}
|
|
36
|
-
`)}},Ce=async(e,s,a,n)=>{const{filterPlanByState:c,newState:g,readState:d,writeState:t}=await import("../packem_chunks/state.js"),{readStagedRegistry:l}=await import("../packem_chunks/staged-registry.js"),i=e.config.changesDir??O,r=e.config.publish?.lockInGit===!0;let o=a.resume||r?await d(e.cwd,i,r):void 0;o&&r&&(o.channel=e.channel?.tag);const h=async()=>{a.dryRun||!o||(await t(e.cwd,i,o,r),r&&await I(e,s,i,"progress",{noPush:a.noPush||a.noBranchPush}))};let m=await l(e.cwd,i);await ne(e,"publish",m,{runner:s}),m=await l(e.cwd,i);const k={...m,pending:[...m.pending]};let{releases:P}=e.plan;return o?P=c(P,o):(o=g(e.channel?.tag,e.plan.releases),a.dryRun||(await t(e.cwd,i,o,r),r&&await I(e,s,i,"open",{noPush:a.noPush||a.noBranchPush}))),{changesDir:i,lockInGit:r,options:a,persistState:h,priorRegistrySnapshot:k,releases:P,result:n,runner:s,stagedRegistry:m,state:o}},Te=async(e,s,a)=>{const{changesDir:n,lockInGit:c,options:g,persistState:d,result:t,runner:l,state:i}=s,{clearState:r}=await import("../packem_chunks/state.js");if(!g.dryRun&&!g.noTag&&t.published.length>0){const{createOrUpdateFloatingTag:o,createTag:h,defaultTagFor:m,floatingMajorTagFor:k,pushTags:P,renderTagPattern:R,resolveReleaseSource:p}=await import("../packem_chunks/git.js");let b;try{b=g.defaultTagTarget??(e.config.tagTarget==="source"?await p({cwd:e.cwd,runner:l}):void 0)}catch(w){t.failed.push({name:"_tagTarget",reason:w.message}),await d();return}const y=[],v=e.config.releaseTagPattern,u=e.channel?.tag,C=e.config.floatingMajorTag===!0,$=!!e.channel?.prerelease||!!e.preMode;for(const{name:w,version:T}of t.published){if(a.grouped.has(w))continue;const S=e.perPackageConfig.get(w)?.releaseTagPattern??v,_=S?R(S,{channel:u,name:w,version:T}):m(w,T);try{await h({cwd:e.cwd,runner:l},_,`Release ${w}@${T}`,{signing:e.config.signing,skipRemoteCheck:e.firstRelease,target:g.tagTargets?.get(w)??b}),t.tags.push(_)}catch(A){e.firstRelease&&A instanceof B&&A.code==="TAG_COLLISION"?t.skipped.push({name:_,reason:"tag-creation: tag already exists (first-release — skipped)"}):t.failed.push({name:_,reason:`tag-creation: ${A.message}`})}const j=e.depGraph.getPackage(w),H=e.perPackageConfig.get(w),N=j?.manifest?.private===!0,G=H?.skipNpmPublish===!0;if(C&&!$&&!S?.includes("{major}")&&!N&&!G){const A=k(w,T);if(A!==void 0)try{await o({cwd:e.cwd,runner:l},A,{push:!1,signing:e.config.signing,target:b}),y.push(`+refs/tags/${A}:refs/tags/${A}`),t.tags.push(A)}catch(U){t.skipped.push({name:A,reason:`floating-major-tag: ${U.message}`})}}}for(const w of a.groups)try{await h({cwd:e.cwd,runner:l},w.tag,`Release ${w.name} ${w.version}`,{signing:e.config.signing,skipRemoteCheck:e.firstRelease,target:b}),t.tags.push(w.tag)}catch(T){e.firstRelease&&T instanceof B&&T.code==="TAG_COLLISION"?t.skipped.push({name:w.tag,reason:"tag-creation: tag already exists (first-release — skipped)"}):t.failed.push({name:w.tag,reason:`tag-creation: ${T.message}`})}if(!g.noPush&&t.tags.length>0)try{await P({cwd:e.cwd,runner:l},{refspecs:y}),t.tagsPushed=!0}catch(w){t.tagsPushed=!1,t.failed.push({name:"_pushTags",reason:`git push --tags failed: ${w.message}. Retry with: git push --tags`})}i.tagged=[...t.tags],i.pushed=t.tagsPushed,await d(),t.failed.length===0&&!g.dryRun&&(await r(e.cwd,n,c),c&&await I(e,l,n,"close",{noPush:g.noPush||g.noBranchPush}))}},Se=async(e,s={})=>{const a={failed:[],published:[],skipped:[],tags:[],tagsPushed:!1},n=F();if(e.plan.releases.length===0||await ke(e,n,s,a))return a;const c=e.config.changesDir??O,{acquireLock:g,releaseLock:d}=await import("../packem_chunks/state.js");let t=!1;if(!s.dryRun)try{await g(e.cwd,c),t=!0}catch(l){return a.failed.push({name:"_lock",reason:l.message}),a}try{const l=await Ce(e,n,s,a);await we(e,l);const{resolveSyncTagGroups:i}=await import("../packem_chunks/group-tags.js"),r=i(e.config,a.published);if(await Te(e,l,r),await Re(e,l),await $e(e,l),await be(e,l,r),!s.dryRun&&e.config.postPublishCommand)try{await L(e.cwd,e.config.postPublishCommand,"postPublishCommand")}catch(o){a.failed.push({name:"_postPublishCommand",reason:o.message})}return a}finally{t&&await d(e.cwd,c)}},E=(e,s)=>async(a,n,c)=>{const g=["view",`${a.name}@${n}`,"version"];c&&g.push("--registry",c);const d=await e.run("npm",g,{cwd:s,silent:!0});return d.exitCode===0?d.stdout.trim()!=="":/\bE404\b/.test(`${d.stdout}
|
|
37
|
-
${d.stderr}`)?!1:void 0},_e=(e,s)=>{let a=e;if(e.startsWith("workspace:")){const n=e.slice(10);a=n==="*"?s:n==="^"||n==="~"?`${n}${s}`:n}return D.validRange(a,{includePrerelease:!0})===null?void 0:a},je=async(e,s,a)=>{const n=a.registryProbe??E(a.runner,e.cwd),c=new Set(s.map(l=>l.name)),g=new Map,d=[];for(const l of s){const i=e.depGraph.getPackage(l.name);if(!(!i||i.private||i.ecosystem!==void 0||e.perPackageConfig.get(i.name)?.skipNpmPublish===!0))for(const r of e.depGraph.getDependencies(i.name)){const o=e.depGraph.getPackage(r.name);if(r.kind==="devDependencies"||c.has(r.name)||!o||o.private||o.ecosystem!==void 0)continue;const h=_e(r.range,o.version);if(h===void 0)continue;const m=`${r.name}@${h}`;g.has(m)||g.set(m,n(o,h,e.perPackageConfig.get(r.name)?.registry)),d.push({dependency:r.name,key:m,name:i.name,range:h})}}const t=new Map;for(const l of d){const i=await g.get(l.key);i!==!0&&t.set(l.name,[...t.get(l.name)??[],{dependency:l.dependency,range:l.range,unknown:i===void 0}])}return t},Ae=e=>[...e].map(([s,a])=>`${s} needs ${a.map(n=>`${n.dependency}@${n.range}${n.unknown?" (registry did not answer)":""}`).join(", ")}`).join(`
|
|
38
|
-
- `),He=Object.defineProperty({__proto__:null,describeUnreleasedDependencies:Ae,findUnreleasedDependencies:je,npmRegistryProbe:E},Symbol.toStringTag,{value:"Module"}),Ne=async(e,s,a)=>{const n=await e.run("git",["log","-1","--format=%H%x00%s",String.raw`-G"version"[[:space:]]*:`,"--",a],{cwd:s,silent:!0}),[c,g]=n.stdout.trim().split("\0");return n.exitCode===0&&c?{sha:c,subject:g??""}:void 0},Ge=async(e,s={})=>{const a=s.runner??F(),n=s.registryProbe??E(a,e.cwd),c={missing:[],skipped:[],stranded:[]},g=e.config.versionPr?.title??"🚀 Versioned release",d=i=>i.startsWith(g)||ee.some(r=>r.test(i)),{default:t}=await import("../packem_chunks/index.js"),l=s.projects??[];for(const i of e.packages){const r=e.perPackageConfig.get(i.name);if(i.ecosystem!==void 0||i.private||r?.skipNpmPublish===!0||!D.valid(i.version)||l.length>0&&!l.some(p=>p===i.name||t(p,i.name)))continue;const o=await x(i,"git-tag",e.depGraph,{channelPrerelease:e.channelPrerelease,cwd:e.cwd,perPackageConfig:r,pm:e.pm,runner:a,workspaceConfig:e.config});if(o.resolvedFrom!=="git-tag"||!D.gt(i.version,o.version))continue;const h=p=>{c.skipped.push({name:i.name,reason:`${i.version} is untagged but ${p}`})},m=await Ne(a,e.cwd,i.manifestPath);if(!m){h("the commit that set it could not be found");continue}if(!d(m.subject)){h(`it was set by ${m.sha.slice(0,7)} ("${m.subject}"), which is not a release commit`);continue}const k=await n(i,i.version,r?.registry);if(k===void 0){h("the registry could not confirm whether it is published");continue}if((await a.run("git",["diff","--quiet",m.sha,"--",i.dir],{cwd:e.cwd,silent:!0})).exitCode!==0){k?h(`${i.dir} changed since ${m.sha.slice(0,7)} and the registry has it; tag it by hand`):c.stranded.push({name:i.name,previousVersion:o.version,sha:m.sha,version:i.version});continue}let R;try{R=await re({cwd:e.cwd,runner:a},m.sha)??m.sha}catch(p){h(p.message);continue}c.missing.push({commit:m.sha,name:i.name,onRegistry:k,previousVersion:o.version,target:R,version:i.version})}return c},Je=async(e,s)=>{const a=M(e.cwd,e.config.changesDir??O),n=F(),c=[];await J(a,{recursive:!0});for(const d of s){const t=M(a,`stranded-${encodeURIComponent(d.name)}-${d.version}.md`),l=`Release ${d.version}. Commit ${d.sha.slice(0,7)} set this version and it was never published, so it is released from HEAD.`;await Y(t,Q({bump:"patch",package:d.name,releaseAs:d.version},l)),c.push(t)}const g=await n.run("git",["add","--",...c],{cwd:e.cwd,silent:!0});if(g.exitCode!==0)throw new Error(`could not stage the stranded change files: ${g.stderr.trim()||`exit ${g.exitCode}`}`);return c},Ve=(e,s,a)=>{const n=e.perPackageConfig.get(s)?.releaseTagPattern??e.config.releaseTagPattern;return n?ie(n,{channel:e.channel?.tag,name:s,version:a}):te(s,a)},De=(e,s)=>{const a=D.diff(e,s);return a==="major"||a==="premajor"?"major":a==="minor"||a==="preminor"?"minor":"patch"},Ye=async(e,s={})=>{const a=F(),n=await Ge(e,{projects:s.projects,registryProbe:s.registryProbe,runner:a});if(s.deferRecovery){for(const i of n.missing)n.skipped.push({name:i.name,reason:`${i.version} waits until the stranded versions of this release are published`});n.missing=[]}const c={completed:[],failed:[],missing:n.missing,published:[],skipped:[...n.skipped],tags:[],tagsPushed:!1,warnings:[...e.plan.warnings]};n.missing.length>0&&Z();const g=n.missing.filter(i=>!i.onRegistry),d=n.missing.filter(i=>i.onRegistry);if(g.length>0){const i=g.map(o=>({changeFiles:[],isCascadeBump:!1,isDependencyBump:!1,isGroupBump:!1,name:o.name,newVersion:o.version,oldVersion:o.previousVersion,reasons:[],sources:[],type:De(o.previousVersion,o.version)})),r=await Se({...e,plan:{consumedChangeFiles:[],releases:i,warnings:c.warnings}},{...s,tagTargets:new Map(g.map(o=>[o.name,o.target]))});c.failed.push(...r.failed),c.published.push(...r.published),c.completed.push(...g.filter(o=>r.published.some(h=>h.name===o.name&&h.version===o.version))),c.skipped.push(...r.skipped),c.tags.push(...r.tags),c.tagsPushed=r.tagsPushed}if(d.length===0||s.dryRun||s.noTag)return c;const t=[],l=[];for(const i of d){const r=Ve(e,i.name,i.version);try{await se({cwd:e.cwd,runner:a},r,`Release ${i.name}@${i.version}`,{signing:e.config.signing,target:i.target}),t.push(r),l.push(i),c.skipped.push({name:i.name,reason:`already-published: tagged ${r}`})}catch(o){c.failed.push({name:r,reason:`tag-creation: ${o.message}`})}}if(c.tags.push(...t),t.length>0&&!s.noPush)try{await ae({cwd:e.cwd,runner:a}),c.tagsPushed=!0}catch(i){c.tagsPushed=!1,c.failed.push({name:"_pushTags",reason:`git push --tags failed: ${i.message}. Retry with: git push --tags`})}return(s.noPush||c.tagsPushed)&&c.completed.push(...l),c};export{Se as a,je as b,Ae as d,Ge as f,Ye as p,Je as w};
|