@sentry/craft 3.8.0 → 3.10.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.
Files changed (2) hide show
  1. package/dist/craft +424 -260
  2. package/package.json +1 -1
package/dist/craft CHANGED
@@ -1076,14 +1076,14 @@ function _parseInt(input) {
1076
1076
  }
1077
1077
  function parseSemver(input) {
1078
1078
  const match3 = input.match(SEMVER_REGEXP) || [];
1079
- const major2 = _parseInt(match3[1]);
1080
- const minor = _parseInt(match3[2]);
1081
- const patch = _parseInt(match3[3]);
1079
+ const major3 = _parseInt(match3[1]);
1080
+ const minor2 = _parseInt(match3[2]);
1081
+ const patch2 = _parseInt(match3[3]);
1082
1082
  return {
1083
1083
  buildmetadata: match3[5],
1084
- major: isNaN(major2) ? void 0 : major2,
1085
- minor: isNaN(minor) ? void 0 : minor,
1086
- patch: isNaN(patch) ? void 0 : patch,
1084
+ major: isNaN(major3) ? void 0 : major3,
1085
+ minor: isNaN(minor2) ? void 0 : minor2,
1086
+ patch: isNaN(patch2) ? void 0 : patch2,
1087
1087
  prerelease: match3[4]
1088
1088
  };
1089
1089
  }
@@ -36311,8 +36311,8 @@ function hasStableSyncModuleHooks(isDeno3) {
36311
36311
  if (isDeno3) {
36312
36312
  return true;
36313
36313
  }
36314
- const { major: major2 = 0, minor = 0 } = parseSemver(process.versions.node ?? "0.0.0");
36315
- return major2 > 25 || major2 === 25 && minor >= 1 || major2 === 24 && minor >= 13;
36314
+ const { major: major3 = 0, minor: minor2 = 0 } = parseSemver(process.versions.node ?? "0.0.0");
36315
+ return major3 > 25 || major3 === 25 && minor2 >= 1 || major3 === 24 && minor2 >= 13;
36316
36316
  }
36317
36317
  function getPackageType(dir) {
36318
36318
  if (packageTypeByDir.has(dir)) {
@@ -46332,14 +46332,14 @@ function requireLoader() {
46332
46332
  if (match3 === null) {
46333
46333
  throwError(state2, "ill-formed argument of the YAML directive");
46334
46334
  }
46335
- const major2 = parseInt(match3[1], 10);
46336
- const minor = parseInt(match3[2], 10);
46337
- if (major2 !== 1) {
46335
+ const major3 = parseInt(match3[1], 10);
46336
+ const minor2 = parseInt(match3[2], 10);
46337
+ if (major3 !== 1) {
46338
46338
  throwError(state2, "unacceptable YAML version of the document");
46339
46339
  }
46340
46340
  state2.version = args[0];
46341
- state2.checkLineBreaks = minor < 2;
46342
- if (minor !== 1 && minor !== 2) {
46341
+ state2.checkLineBreaks = minor2 < 2;
46342
+ if (minor2 !== 1 && minor2 !== 2) {
46343
46343
  throwWarning(state2, "unsupported YAML version of the document");
46344
46344
  }
46345
46345
  },
@@ -48861,7 +48861,7 @@ var require_ms = __commonJS({
48861
48861
  options = options || {};
48862
48862
  var type2 = typeof val;
48863
48863
  if (type2 === "string" && val.length > 0) {
48864
- return parse16(val);
48864
+ return parse17(val);
48865
48865
  } else if (type2 === "number" && isFinite(val)) {
48866
48866
  return options.long ? fmtLong2(val) : fmtShort2(val);
48867
48867
  }
@@ -48869,7 +48869,7 @@ var require_ms = __commonJS({
48869
48869
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
48870
48870
  );
48871
48871
  };
48872
- function parse16(str2) {
48872
+ function parse17(str2) {
48873
48873
  str2 = String(str2);
48874
48874
  if (str2.length > 100) {
48875
48875
  return;
@@ -61025,14 +61025,41 @@ async function getDefaultBranch(git, remoteName) {
61025
61025
  );
61026
61026
  }
61027
61027
  async function getLatestTag(git, tagPrefix = "") {
61028
+ return describeLatestTag(git, tagPrefix, []);
61029
+ }
61030
+ async function getLatestStableTag(git, tagPrefix = "") {
61031
+ return findLatestTag(git, tagPrefix, (tagVersion) => !tagVersion?.pre);
61032
+ }
61033
+ async function getChangelogBaseTag(git, version2, tagPrefix = "") {
61034
+ const release3 = parseVersion(version2);
61035
+ return findLatestTag(
61036
+ git,
61037
+ tagPrefix,
61038
+ (tagVersion) => !tagVersion?.pre || !!release3?.pre && tagVersion.major === release3.major && tagVersion.minor === release3.minor && tagVersion.patch === release3.patch
61039
+ );
61040
+ }
61041
+ async function findLatestTag(git, tagPrefix, accept) {
61042
+ const skippedTags = [];
61043
+ for (; ; ) {
61044
+ const tag2 = await describeLatestTag(git, tagPrefix, skippedTags);
61045
+ if (!tag2 || accept(parseVersion(tag2.slice(tagPrefix.length)))) {
61046
+ return tag2;
61047
+ }
61048
+ skippedTags.push(tag2);
61049
+ }
61050
+ }
61051
+ async function describeLatestTag(git, tagPrefix, excludedTags) {
61028
61052
  try {
61029
61053
  const args = ["describe", "--tags", "--abbrev=0"];
61030
61054
  if (tagPrefix) {
61031
61055
  args.push("--match", `${tagPrefix}*`);
61032
61056
  }
61057
+ for (const tag2 of excludedTags) {
61058
+ args.push("--exclude", tag2);
61059
+ }
61033
61060
  return (await git.raw(args)).trim();
61034
61061
  } catch (err) {
61035
- if (err instanceof Error && (err.message.startsWith("fatal: No names found") || err.message.startsWith("Nothing to describe"))) {
61062
+ if (err instanceof Error && (err.message.startsWith("fatal: No names found") || err.message.startsWith("fatal: No tags can describe") || err.message.startsWith("Nothing to describe"))) {
61036
61063
  return "";
61037
61064
  }
61038
61065
  throw err;
@@ -61288,6 +61315,7 @@ var init_git = __esm({
61288
61315
  import_fastest_levenshtein = __toESM(require_mod());
61289
61316
  import_node_path13 = __toESM(require("node:path"));
61290
61317
  init_workspaces();
61318
+ init_version8();
61291
61319
  PRExtractor = /(?<=\(#)\d+(?=\)$)/;
61292
61320
  }
61293
61321
  });
@@ -71107,7 +71135,7 @@ var require_fast_content_type_parse = __commonJS({
71107
71135
  var defaultContentType = { type: "", parameters: new NullObject() };
71108
71136
  Object.freeze(defaultContentType.parameters);
71109
71137
  Object.freeze(defaultContentType);
71110
- function parse16(header) {
71138
+ function parse17(header) {
71111
71139
  if (typeof header !== "string") {
71112
71140
  throw new TypeError("argument header is required and must be a string");
71113
71141
  }
@@ -71183,8 +71211,8 @@ var require_fast_content_type_parse = __commonJS({
71183
71211
  }
71184
71212
  return result;
71185
71213
  }
71186
- module2.exports.default = { parse: parse16, safeParse: safeParse3 };
71187
- module2.exports.parse = parse16;
71214
+ module2.exports.default = { parse: parse17, safeParse: safeParse3 };
71215
+ module2.exports.parse = parse17;
71188
71216
  module2.exports.safeParse = safeParse3;
71189
71217
  module2.exports.defaultContentType = defaultContentType;
71190
71218
  }
@@ -77285,7 +77313,7 @@ var require_mustache = __commonJS({
77285
77313
  Writer.prototype.clearCache = function clearCache() {
77286
77314
  this.cache = {};
77287
77315
  };
77288
- Writer.prototype.parse = function parse16(template, tags) {
77316
+ Writer.prototype.parse = function parse17(template, tags) {
77289
77317
  var cache4 = this.cache;
77290
77318
  var cacheKey = template + ":" + (tags || mustache2.tags).join(":");
77291
77319
  var tokens = cache4[cacheKey];
@@ -77372,7 +77400,7 @@ var require_mustache = __commonJS({
77372
77400
  mustache2.clearCache = function clearCache() {
77373
77401
  return defaultWriter.clearCache();
77374
77402
  };
77375
- mustache2.parse = function parse16(template, tags) {
77403
+ mustache2.parse = function parse17(template, tags) {
77376
77404
  return defaultWriter.parse(template, tags);
77377
77405
  };
77378
77406
  mustache2.render = function render2(template, view, partials, tags) {
@@ -119439,20 +119467,31 @@ var init_gem = __esm({
119439
119467
  });
119440
119468
 
119441
119469
  // src/targets/ghPages.ts
119442
- var fs12, DEFAULT_DEPLOY_ARCHIVE_REGEX2, DEFAULT_DEPLOY_BRANCH, GhPagesTarget;
119470
+ function describePagesBuild(build) {
119471
+ if (!build) {
119472
+ return "timed out";
119473
+ }
119474
+ return build.error.message || build.status;
119475
+ }
119476
+ var fs12, DEFAULT_DEPLOY_ARCHIVE_REGEX2, DEFAULT_DEPLOY_BRANCH, PAGES_BUILD_POLL_INTERVAL_MS, PAGES_BUILD_MAX_POLLS, PAGES_MAX_REBUILDS, GhPagesTarget;
119443
119477
  var init_ghPages = __esm({
119444
119478
  "src/targets/ghPages.ts"() {
119445
119479
  "use strict";
119446
119480
  init_import_meta_url();
119447
119481
  fs12 = __toESM(require("fs"));
119482
+ init_async();
119448
119483
  init_errors2();
119449
119484
  init_files();
119450
119485
  init_githubApi();
119451
119486
  init_git();
119487
+ init_helpers();
119452
119488
  init_system();
119453
119489
  init_base5();
119454
119490
  DEFAULT_DEPLOY_ARCHIVE_REGEX2 = /^(?:.+-)?gh-pages\.zip$/;
119455
119491
  DEFAULT_DEPLOY_BRANCH = "gh-pages";
119492
+ PAGES_BUILD_POLL_INTERVAL_MS = 10 * 1e3;
119493
+ PAGES_BUILD_MAX_POLLS = 90;
119494
+ PAGES_MAX_REBUILDS = 2;
119456
119495
  GhPagesTarget = class extends BaseTarget {
119457
119496
  /** Target name */
119458
119497
  name = "gh-pages";
@@ -119522,6 +119561,7 @@ var init_ghPages = __esm({
119522
119561
  * @param branch Branch to push
119523
119562
  * @param archivePath Path to the archive
119524
119563
  * @param version Version to deploy
119564
+ * @returns SHA of the pushed commit
119525
119565
  */
119526
119566
  async commitArchiveToBranch(directory, remote, branch, archivePath, version2) {
119527
119567
  this.logger.info(
@@ -119553,6 +119593,78 @@ var init_ghPages = __esm({
119553
119593
  await git.commit(`craft(gh-pages): update, version "${version2}"`);
119554
119594
  this.logger.info(`Pushing branch "${branch}"...`);
119555
119595
  await git.push("origin", branch, ["--set-upstream"]);
119596
+ return (await git.revparse(["HEAD"])).trim();
119597
+ }
119598
+ /**
119599
+ * Waits until GitHub Pages builds the pushed commit, and requests a
119600
+ * rebuild when the build fails.
119601
+ *
119602
+ * A push to the branch only starts the build. GitHub can fail the build
119603
+ * later, for example when its deploy job times out (getsentry/craft#960).
119604
+ * Skips the wait when the token cannot read Pages, or when Pages does not
119605
+ * build from the configured branch.
119606
+ *
119607
+ * @param sha SHA of the pushed commit
119608
+ */
119609
+ async waitForPagesBuild(sha) {
119610
+ const { githubOwner: owner, githubRepo: repo, branch } = this.ghPagesConfig;
119611
+ let pages;
119612
+ try {
119613
+ pages = (await this.github.repos.getPages({ owner, repo })).data;
119614
+ } catch (e5) {
119615
+ if (e5.status === 403 || e5.status === 404) {
119616
+ this.logger.warn(
119617
+ `Cannot read GitHub Pages settings of ${owner}/${repo} (HTTP ${e5.status}), not waiting for the Pages build.`
119618
+ );
119619
+ return;
119620
+ }
119621
+ throw e5;
119622
+ }
119623
+ if (pages.build_type !== "legacy" || pages.source?.branch !== branch) {
119624
+ this.logger.info(
119625
+ `GitHub Pages of ${owner}/${repo} does not build from branch "${branch}", not waiting for the Pages build.`
119626
+ );
119627
+ return;
119628
+ }
119629
+ let failedBuild;
119630
+ for (let attempt = 0; attempt <= PAGES_MAX_REBUILDS; attempt++) {
119631
+ if (attempt > 0) {
119632
+ this.logger.warn(
119633
+ `GitHub Pages build failed (${describePagesBuild(failedBuild)}), requesting rebuild ${attempt}/${PAGES_MAX_REBUILDS}...`
119634
+ );
119635
+ await this.github.repos.requestPagesBuild({ owner, repo });
119636
+ }
119637
+ const build = await this.pollPagesBuild(sha, failedBuild?.url);
119638
+ if (build?.status === "built") {
119639
+ this.logger.info(`GitHub Pages build for ${sha} is complete.`);
119640
+ return;
119641
+ }
119642
+ failedBuild = build ?? failedBuild;
119643
+ }
119644
+ reportError(
119645
+ `GitHub Pages build for ${sha} failed after ${PAGES_MAX_REBUILDS} rebuilds (${describePagesBuild(failedBuild)}). See https://github.com/${owner}/${repo}/deployments/github-pages`
119646
+ );
119647
+ }
119648
+ /**
119649
+ * Reads the latest GitHub Pages build until the build for `sha` finishes
119650
+ *
119651
+ * @param sha SHA of the pushed commit
119652
+ * @param ignoreUrl URL of an earlier failed build of the same commit
119653
+ * @returns The finished build, or undefined when the wait timed out
119654
+ */
119655
+ async pollPagesBuild(sha, ignoreUrl) {
119656
+ const { githubOwner: owner, githubRepo: repo } = this.ghPagesConfig;
119657
+ for (let poll = 0; poll < PAGES_BUILD_MAX_POLLS; poll++) {
119658
+ await sleep(PAGES_BUILD_POLL_INTERVAL_MS);
119659
+ const build = (await this.github.repos.getLatestPagesBuild({ owner, repo })).data;
119660
+ if (build.commit === sha && build.url !== ignoreUrl && (build.status === "built" || build.status === "errored")) {
119661
+ return build;
119662
+ }
119663
+ this.logger.debug(
119664
+ `Latest GitHub Pages build: ${build.status} for ${build.commit}`
119665
+ );
119666
+ }
119667
+ return void 0;
119556
119668
  }
119557
119669
  /**
119558
119670
  * Pushes an archive with static HTML web assets to the configured branch
@@ -119583,7 +119695,7 @@ Details: ${JSON.stringify(
119583
119695
  githubRepo,
119584
119696
  getGitHubApiToken()
119585
119697
  );
119586
- await withTempDir(
119698
+ const sha = await withTempDir(
119587
119699
  async (directory) => this.commitArchiveToBranch(
119588
119700
  directory,
119589
119701
  remote,
@@ -119594,6 +119706,11 @@ Details: ${JSON.stringify(
119594
119706
  true,
119595
119707
  "craft-gh-pages-"
119596
119708
  );
119709
+ if (isDryRun()) {
119710
+ this.logger.info("[dry-run] Not waiting for the GitHub Pages build.");
119711
+ } else {
119712
+ await this.waitForPagesBuild(sha);
119713
+ }
119597
119714
  this.logger.info("GitHub pages release complete");
119598
119715
  }
119599
119716
  };
@@ -124103,8 +124220,8 @@ var init_npm = __esm({
124103
124220
  if (!parsedVersion) {
124104
124221
  reportError(`Cannot parse NPM version: "${npmVersionStr}"`);
124105
124222
  }
124106
- const { major: major2 = 0, minor = 0 } = parsedVersion ?? {};
124107
- if (major2 < NPM_MIN_MAJOR || major2 === NPM_MIN_MAJOR && minor < NPM_MIN_MINOR) {
124223
+ const { major: major3 = 0, minor: minor2 = 0 } = parsedVersion ?? {};
124224
+ if (major3 < NPM_MIN_MAJOR || major3 === NPM_MIN_MAJOR && minor2 < NPM_MIN_MINOR) {
124108
124225
  reportError(
124109
124226
  `NPM version is too old: ${npmVersionStr}. Please update your NodeJS`
124110
124227
  );
@@ -124158,7 +124275,7 @@ var init_npm = __esm({
124158
124275
  "npm target: OIDC trusted publishing requires npm, but only yarn was found. Install npm >= 11.5.1 to use OIDC."
124159
124276
  );
124160
124277
  }
124161
- const { major: major2, minor, patch } = this.npmVersion;
124278
+ const { major: major3, minor: minor2, patch: patch2 } = this.npmVersion;
124162
124279
  if (!versionGreaterOrEqualThan(this.npmVersion, NPM_OIDC_MIN_VERSION)) {
124163
124280
  const {
124164
124281
  major: minMaj,
@@ -124166,7 +124283,7 @@ var init_npm = __esm({
124166
124283
  patch: minPat
124167
124284
  } = NPM_OIDC_MIN_VERSION;
124168
124285
  throw new ConfigurationError(
124169
- `npm target: OIDC trusted publishing requires npm >= ${minMaj}.${minMin}.${minPat}, but found ${major2}.${minor}.${patch}. Update npm (or Node.js) to use OIDC.`
124286
+ `npm target: OIDC trusted publishing requires npm >= ${minMaj}.${minMin}.${minPat}, but found ${major3}.${minor2}.${patch2}. Update npm (or Node.js) to use OIDC.`
124170
124287
  );
124171
124288
  }
124172
124289
  useOidc = true;
@@ -124179,14 +124296,14 @@ var init_npm = __esm({
124179
124296
  );
124180
124297
  useOidc = true;
124181
124298
  } else {
124182
- const { major: major2, minor, patch } = this.npmVersion;
124299
+ const { major: major3, minor: minor2, patch: patch2 } = this.npmVersion;
124183
124300
  const {
124184
124301
  major: minMaj,
124185
124302
  minor: minMin,
124186
124303
  patch: minPat
124187
124304
  } = NPM_OIDC_MIN_VERSION;
124188
124305
  this.logger.warn(
124189
- `OIDC environment detected but npm ${major2}.${minor}.${patch} is too old for trusted publishing (requires >= ${minMaj}.${minMin}.${minPat}). Falling through to token-based auth.`
124306
+ `OIDC environment detected but npm ${major3}.${minor2}.${patch2} is too old for trusted publishing (requires >= ${minMaj}.${minMin}.${minPat}). Falling through to token-based auth.`
124190
124307
  );
124191
124308
  }
124192
124309
  }
@@ -125824,12 +125941,12 @@ var init_registry = __esm({
125824
125941
  });
125825
125942
 
125826
125943
  // src/targets/registry.ts
125827
- var import_async8, BATCH_KEYS, PUSH_MAX_ATTEMPTS, PUSH_RETRY_DELAY_SECS, PUSH_RETRY_EXP_FACTOR, RegistryTarget;
125944
+ var import_async9, BATCH_KEYS, PUSH_MAX_ATTEMPTS, PUSH_RETRY_DELAY_SECS, PUSH_RETRY_EXP_FACTOR, RegistryTarget;
125828
125945
  var init_registry2 = __esm({
125829
125946
  "src/targets/registry.ts"() {
125830
125947
  "use strict";
125831
125948
  init_import_meta_url();
125832
- import_async8 = __toESM(require_async());
125949
+ import_async9 = __toESM(require_async());
125833
125950
  init_errors2();
125834
125951
  init_files();
125835
125952
  init_githubApi();
@@ -126058,7 +126175,7 @@ var init_registry2 = __esm({
126058
126175
  "Adding extra data (checksums, download links) for available artifacts..."
126059
126176
  );
126060
126177
  const files = {};
126061
- await (0, import_async8.mapLimit)(
126178
+ await (0, import_async9.mapLimit)(
126062
126179
  artifacts,
126063
126180
  MAX_DOWNLOAD_CONCURRENCY,
126064
126181
  async (artifact) => {
@@ -135138,24 +135255,24 @@ function decode2(at4, to3) {
135138
135255
  if (at4 >= to3) {
135139
135256
  throw new Error("unexpected end of (decode) payload.");
135140
135257
  }
135141
- const major2 = (payload[at4] & 224) >> 5;
135142
- const minor = payload[at4] & 31;
135143
- switch (major2) {
135258
+ const major3 = (payload[at4] & 224) >> 5;
135259
+ const minor2 = payload[at4] & 31;
135260
+ switch (major3) {
135144
135261
  case majorUint64:
135145
135262
  case majorNegativeInt64:
135146
135263
  case majorTag:
135147
135264
  let unsignedInt;
135148
135265
  let offset;
135149
- if (minor < 24) {
135150
- unsignedInt = minor;
135266
+ if (minor2 < 24) {
135267
+ unsignedInt = minor2;
135151
135268
  offset = 1;
135152
135269
  } else {
135153
- switch (minor) {
135270
+ switch (minor2) {
135154
135271
  case extendedOneByte:
135155
135272
  case extendedFloat16:
135156
135273
  case extendedFloat32:
135157
135274
  case extendedFloat64:
135158
- const countLength = minorValueToArgumentLength[minor];
135275
+ const countLength = minorValueToArgumentLength[minor2];
135159
135276
  const countOffset = countLength + 1;
135160
135277
  offset = countOffset;
135161
135278
  if (to3 - at4 < countOffset) {
@@ -135173,13 +135290,13 @@ function decode2(at4, to3) {
135173
135290
  }
135174
135291
  break;
135175
135292
  default:
135176
- throw new Error(`unexpected minor value ${minor}.`);
135293
+ throw new Error(`unexpected minor value ${minor2}.`);
135177
135294
  }
135178
135295
  }
135179
- if (major2 === majorUint64) {
135296
+ if (major3 === majorUint64) {
135180
135297
  _offset = offset;
135181
135298
  return castBigInt(unsignedInt);
135182
- } else if (major2 === majorNegativeInt64) {
135299
+ } else if (major3 === majorNegativeInt64) {
135183
135300
  let negativeInt;
135184
135301
  if (typeof unsignedInt === "bigint") {
135185
135302
  negativeInt = BigInt(-1) - unsignedInt;
@@ -135189,7 +135306,7 @@ function decode2(at4, to3) {
135189
135306
  _offset = offset;
135190
135307
  return castBigInt(negativeInt);
135191
135308
  } else {
135192
- if (minor === 2 || minor === 3) {
135309
+ if (minor2 === 2 || minor2 === 3) {
135193
135310
  const length = decodeCount(at4 + offset, to3);
135194
135311
  let b9 = BigInt(0);
135195
135312
  const start = at4 + offset + _offset;
@@ -135197,8 +135314,8 @@ function decode2(at4, to3) {
135197
135314
  b9 = b9 << BigInt(8) | BigInt(payload[i5]);
135198
135315
  }
135199
135316
  _offset = offset + _offset + length;
135200
- return minor === 3 ? -b9 - BigInt(1) : b9;
135201
- } else if (minor === 4) {
135317
+ return minor2 === 3 ? -b9 - BigInt(1) : b9;
135318
+ } else if (minor2 === 4) {
135202
135319
  const decimalFraction = decode2(at4 + offset, to3);
135203
135320
  const [exponent, mantissa] = decimalFraction;
135204
135321
  const normalizer = mantissa < 0 ? -1 : 1;
@@ -135227,8 +135344,8 @@ function decode2(at4, to3) {
135227
135344
  case majorMap:
135228
135345
  case majorList:
135229
135346
  case majorUnstructuredByteString:
135230
- if (minor === minorIndefinite) {
135231
- switch (major2) {
135347
+ if (minor2 === minorIndefinite) {
135348
+ switch (major3) {
135232
135349
  case majorUtf8String:
135233
135350
  return decodeUtf8StringIndefinite(at4, to3);
135234
135351
  case majorMap:
@@ -135239,7 +135356,7 @@ function decode2(at4, to3) {
135239
135356
  return decodeUnstructuredByteStringIndefinite(at4, to3);
135240
135357
  }
135241
135358
  } else {
135242
- switch (major2) {
135359
+ switch (major3) {
135243
135360
  case majorUtf8String:
135244
135361
  return decodeUtf8String(at4, to3);
135245
135362
  case majorMap:
@@ -135298,13 +135415,13 @@ function bytesToFloat16(a5, b9) {
135298
135415
  return scalar * (exponentComponent * summation);
135299
135416
  }
135300
135417
  function decodeCount(at4, to3) {
135301
- const minor = payload[at4] & 31;
135302
- if (minor < 24) {
135418
+ const minor2 = payload[at4] & 31;
135419
+ if (minor2 < 24) {
135303
135420
  _offset = 1;
135304
- return minor;
135421
+ return minor2;
135305
135422
  }
135306
- if (minor === extendedOneByte || minor === extendedFloat16 || minor === extendedFloat32 || minor === extendedFloat64) {
135307
- const countLength = minorValueToArgumentLength[minor];
135423
+ if (minor2 === extendedOneByte || minor2 === extendedFloat16 || minor2 === extendedFloat32 || minor2 === extendedFloat64) {
135424
+ const countLength = minorValueToArgumentLength[minor2];
135308
135425
  _offset = countLength + 1;
135309
135426
  if (to3 - at4 < _offset) {
135310
135427
  throw new Error(`countLength ${countLength} greater than remaining buf len.`);
@@ -135319,7 +135436,7 @@ function decodeCount(at4, to3) {
135319
135436
  }
135320
135437
  return demote(dataView.getBigUint64(countIndex));
135321
135438
  }
135322
- throw new Error(`unexpected minor value ${minor}.`);
135439
+ throw new Error(`unexpected minor value ${minor2}.`);
135323
135440
  }
135324
135441
  function decodeUtf8String(at4, to3) {
135325
135442
  const length = decodeCount(at4, to3);
@@ -135342,12 +135459,12 @@ function decodeUtf8StringIndefinite(at4, to3) {
135342
135459
  _offset = at4 - base + 2;
135343
135460
  return bytesToUtf8(data2, 0, data2.length);
135344
135461
  }
135345
- const major2 = (payload[at4] & 224) >> 5;
135346
- const minor = payload[at4] & 31;
135347
- if (major2 !== majorUtf8String) {
135348
- throw new Error(`unexpected major type ${major2} in indefinite string.`);
135462
+ const major3 = (payload[at4] & 224) >> 5;
135463
+ const minor2 = payload[at4] & 31;
135464
+ if (major3 !== majorUtf8String) {
135465
+ throw new Error(`unexpected major type ${major3} in indefinite string.`);
135349
135466
  }
135350
- if (minor === minorIndefinite) {
135467
+ if (minor2 === minorIndefinite) {
135351
135468
  throw new Error("nested indefinite string.");
135352
135469
  }
135353
135470
  const bytes = decodeUnstructuredByteString(at4, to3);
@@ -135380,12 +135497,12 @@ function decodeUnstructuredByteStringIndefinite(at4, to3) {
135380
135497
  _offset = at4 - base + 2;
135381
135498
  return data2;
135382
135499
  }
135383
- const major2 = (payload[at4] & 224) >> 5;
135384
- const minor = payload[at4] & 31;
135385
- if (major2 !== majorUnstructuredByteString) {
135386
- throw new Error(`unexpected major type ${major2} in indefinite string.`);
135500
+ const major3 = (payload[at4] & 224) >> 5;
135501
+ const minor2 = payload[at4] & 31;
135502
+ if (major3 !== majorUnstructuredByteString) {
135503
+ throw new Error(`unexpected major type ${major3} in indefinite string.`);
135387
135504
  }
135388
- if (minor === minorIndefinite) {
135505
+ if (minor2 === minorIndefinite) {
135389
135506
  throw new Error("nested indefinite string.");
135390
135507
  }
135391
135508
  const bytes = decodeUnstructuredByteString(at4, to3);
@@ -135437,9 +135554,9 @@ function decodeMap(at4, to3) {
135437
135554
  if (at4 >= to3) {
135438
135555
  throw new Error("unexpected end of map payload.");
135439
135556
  }
135440
- const major2 = (payload[at4] & 224) >> 5;
135441
- if (major2 !== majorUtf8String) {
135442
- throw new Error(`unexpected major type ${major2} for map key at index ${at4}.`);
135557
+ const major3 = (payload[at4] & 224) >> 5;
135558
+ if (major3 !== majorUtf8String) {
135559
+ throw new Error(`unexpected major type ${major3} for map key at index ${at4}.`);
135443
135560
  }
135444
135561
  const key = decode2(at4, to3);
135445
135562
  at4 += _offset;
@@ -135462,9 +135579,9 @@ function decodeMapIndefinite(at4, to3) {
135462
135579
  _offset = at4 - base + 2;
135463
135580
  return map3;
135464
135581
  }
135465
- const major2 = (payload[at4] & 224) >> 5;
135466
- if (major2 !== majorUtf8String) {
135467
- throw new Error(`unexpected major type ${major2} for map key.`);
135582
+ const major3 = (payload[at4] & 224) >> 5;
135583
+ if (major3 !== majorUtf8String) {
135584
+ throw new Error(`unexpected major type ${major3} for map key.`);
135468
135585
  }
135469
135586
  const key = decode2(at4, to3);
135470
135587
  at4 += _offset;
@@ -135475,12 +135592,12 @@ function decodeMapIndefinite(at4, to3) {
135475
135592
  throw new Error("expected break marker.");
135476
135593
  }
135477
135594
  function decodeSpecial(at4, to3) {
135478
- const minor = payload[at4] & 31;
135479
- switch (minor) {
135595
+ const minor2 = payload[at4] & 31;
135596
+ switch (minor2) {
135480
135597
  case specialTrue:
135481
135598
  case specialFalse:
135482
135599
  _offset = 1;
135483
- return minor === specialTrue;
135600
+ return minor2 === specialTrue;
135484
135601
  case specialNull:
135485
135602
  _offset = 1;
135486
135603
  return null;
@@ -135506,7 +135623,7 @@ function decodeSpecial(at4, to3) {
135506
135623
  _offset = 9;
135507
135624
  return dataView.getFloat64(at4 + 1);
135508
135625
  default:
135509
- throw new Error(`unexpected minor value ${minor}.`);
135626
+ throw new Error(`unexpected minor value ${minor2}.`);
135510
135627
  }
135511
135628
  }
135512
135629
  function castBigInt(bigInt) {
@@ -135570,22 +135687,22 @@ function resize(size2) {
135570
135687
  }
135571
135688
  dataView2 = new DataView(data.buffer, data.byteOffset, data.byteLength);
135572
135689
  }
135573
- function encodeHeader(major2, value) {
135690
+ function encodeHeader(major3, value) {
135574
135691
  if (value < 24) {
135575
- data[cursor++] = major2 << 5 | value;
135692
+ data[cursor++] = major3 << 5 | value;
135576
135693
  } else if (value < 1 << 8) {
135577
- data[cursor++] = major2 << 5 | 24;
135694
+ data[cursor++] = major3 << 5 | 24;
135578
135695
  data[cursor++] = value;
135579
135696
  } else if (value < 1 << 16) {
135580
- data[cursor++] = major2 << 5 | extendedFloat16;
135697
+ data[cursor++] = major3 << 5 | extendedFloat16;
135581
135698
  dataView2.setUint16(cursor, value);
135582
135699
  cursor += 2;
135583
135700
  } else if (value < 2 ** 32) {
135584
- data[cursor++] = major2 << 5 | extendedFloat32;
135701
+ data[cursor++] = major3 << 5 | extendedFloat32;
135585
135702
  dataView2.setUint32(cursor, value);
135586
135703
  cursor += 4;
135587
135704
  } else {
135588
- data[cursor++] = major2 << 5 | extendedFloat64;
135705
+ data[cursor++] = major3 << 5 | extendedFloat64;
135589
135706
  dataView2.setBigUint64(cursor, typeof value === "bigint" ? value : BigInt(value));
135590
135707
  cursor += 8;
135591
135708
  }
@@ -135609,23 +135726,23 @@ function encode(_input) {
135609
135726
  } else if (typeof input === "number") {
135610
135727
  if (Number.isInteger(input)) {
135611
135728
  const nonNegative = input >= 0;
135612
- const major2 = nonNegative ? majorUint64 : majorNegativeInt64;
135729
+ const major3 = nonNegative ? majorUint64 : majorNegativeInt64;
135613
135730
  const value = nonNegative ? input : -input - 1;
135614
135731
  if (value < 24) {
135615
- data[cursor++] = major2 << 5 | value;
135732
+ data[cursor++] = major3 << 5 | value;
135616
135733
  } else if (value < 256) {
135617
- data[cursor++] = major2 << 5 | 24;
135734
+ data[cursor++] = major3 << 5 | 24;
135618
135735
  data[cursor++] = value;
135619
135736
  } else if (value < 65536) {
135620
- data[cursor++] = major2 << 5 | extendedFloat16;
135737
+ data[cursor++] = major3 << 5 | extendedFloat16;
135621
135738
  data[cursor++] = value >> 8;
135622
135739
  data[cursor++] = value;
135623
135740
  } else if (value < 4294967296) {
135624
- data[cursor++] = major2 << 5 | extendedFloat32;
135741
+ data[cursor++] = major3 << 5 | extendedFloat32;
135625
135742
  dataView2.setUint32(cursor, value);
135626
135743
  cursor += 4;
135627
135744
  } else {
135628
- data[cursor++] = major2 << 5 | extendedFloat64;
135745
+ data[cursor++] = major3 << 5 | extendedFloat64;
135629
135746
  dataView2.setBigUint64(cursor, BigInt(value));
135630
135747
  cursor += 8;
135631
135748
  }
@@ -135637,24 +135754,24 @@ function encode(_input) {
135637
135754
  continue;
135638
135755
  } else if (typeof input === "bigint") {
135639
135756
  const nonNegative = input >= 0;
135640
- const major2 = nonNegative ? majorUint64 : majorNegativeInt64;
135757
+ const major3 = nonNegative ? majorUint64 : majorNegativeInt64;
135641
135758
  const value = nonNegative ? input : -input - BigInt(1);
135642
135759
  const n5 = Number(value);
135643
135760
  if (n5 < 24) {
135644
- data[cursor++] = major2 << 5 | n5;
135761
+ data[cursor++] = major3 << 5 | n5;
135645
135762
  } else if (n5 < 256) {
135646
- data[cursor++] = major2 << 5 | 24;
135763
+ data[cursor++] = major3 << 5 | 24;
135647
135764
  data[cursor++] = n5;
135648
135765
  } else if (n5 < 65536) {
135649
- data[cursor++] = major2 << 5 | extendedFloat16;
135766
+ data[cursor++] = major3 << 5 | extendedFloat16;
135650
135767
  data[cursor++] = n5 >> 8;
135651
135768
  data[cursor++] = n5 & 255;
135652
135769
  } else if (n5 < 4294967296) {
135653
- data[cursor++] = major2 << 5 | extendedFloat32;
135770
+ data[cursor++] = major3 << 5 | extendedFloat32;
135654
135771
  dataView2.setUint32(cursor, n5);
135655
135772
  cursor += 4;
135656
135773
  } else if (value < BigInt("18446744073709551616")) {
135657
- data[cursor++] = major2 << 5 | extendedFloat64;
135774
+ data[cursor++] = major3 << 5 | extendedFloat64;
135658
135775
  dataView2.setBigUint64(cursor, value);
135659
135776
  cursor += 8;
135660
135777
  } else {
@@ -159274,8 +159391,8 @@ var require_polyfills = __commonJS({
159274
159391
  if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
159275
159392
  }
159276
159393
  var chdir;
159277
- module2.exports = patch;
159278
- function patch(fs16) {
159394
+ module2.exports = patch2;
159395
+ function patch2(fs16) {
159279
159396
  if (constants4.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
159280
159397
  patchLchmod(fs16);
159281
159398
  }
@@ -159733,14 +159850,14 @@ var require_graceful_fs = __commonJS({
159733
159850
  if (!global[gracefulQueue]) {
159734
159851
  publishQueue(global, fs16[gracefulQueue]);
159735
159852
  }
159736
- module2.exports = patch(clone(fs16));
159853
+ module2.exports = patch2(clone(fs16));
159737
159854
  if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs16.__patched) {
159738
- module2.exports = patch(fs16);
159855
+ module2.exports = patch2(fs16);
159739
159856
  fs16.__patched = true;
159740
159857
  }
159741
- function patch(fs17) {
159858
+ function patch2(fs17) {
159742
159859
  polyfills(fs17);
159743
- fs17.gracefulify = patch;
159860
+ fs17.gracefulify = patch2;
159744
159861
  fs17.createReadStream = createReadStream6;
159745
159862
  fs17.createWriteStream = createWriteStream4;
159746
159863
  var fs$readFile = fs17.readFile;
@@ -165898,14 +166015,14 @@ var require_loader = __commonJS({
165898
166015
  if (match3 === null) {
165899
166016
  throwError(state2, "ill-formed argument of the YAML directive");
165900
166017
  }
165901
- const major2 = parseInt(match3[1], 10);
165902
- const minor = parseInt(match3[2], 10);
165903
- if (major2 !== 1) {
166018
+ const major3 = parseInt(match3[1], 10);
166019
+ const minor2 = parseInt(match3[2], 10);
166020
+ if (major3 !== 1) {
165904
166021
  throwError(state2, "unacceptable YAML version of the document");
165905
166022
  }
165906
166023
  state2.version = args[0];
165907
- state2.checkLineBreaks = minor < 2;
165908
- if (minor !== 1 && minor !== 2) {
166024
+ state2.checkLineBreaks = minor2 < 2;
166025
+ if (minor2 !== 1 && minor2 !== 2) {
165909
166026
  throwWarning(state2, "unsupported YAML version of the document");
165910
166027
  }
165911
166028
  },
@@ -168264,7 +168381,7 @@ ${codeblock}`, options);
168264
168381
  function validateTablePeek(ctx, peek, ptr) {
168265
168382
  if (peek === null || ctx.uk === 2) TomlError.x(peek === null ? "trying to redefine an already defined table or value" : "document contains an unsafe property", ctx, ptr);
168266
168383
  }
168267
- function parse16(toml, options = {}) {
168384
+ function parse17(toml, options = {}) {
168268
168385
  let ctx = {
168269
168386
  s: toml,
168270
168387
  p: 0,
@@ -168449,7 +168566,7 @@ ${tables}` : preamble || tables;
168449
168566
  return str2;
168450
168567
  }
168451
168568
  var src_default = {
168452
- parse: parse16,
168569
+ parse: parse17,
168453
168570
  stringify: stringify4,
168454
168571
  TomlDate,
168455
168572
  TomlError
@@ -168457,7 +168574,7 @@ ${tables}` : preamble || tables;
168457
168574
  exports2.TomlDate = TomlDate;
168458
168575
  exports2.TomlError = TomlError;
168459
168576
  exports2.default = src_default;
168460
- exports2.parse = parse16;
168577
+ exports2.parse = parse17;
168461
168578
  exports2.stringify = stringify4;
168462
168579
  }
168463
168580
  });
@@ -170025,7 +170142,7 @@ var require_version = __commonJS({
170025
170142
  valid: valid2,
170026
170143
  clean,
170027
170144
  explain,
170028
- parse: parse16,
170145
+ parse: parse17,
170029
170146
  stringify: stringify4
170030
170147
  };
170031
170148
  var validRegex = new RegExp("^" + VERSION_PATTERN + "$", "i");
@@ -170034,9 +170151,9 @@ var require_version = __commonJS({
170034
170151
  }
170035
170152
  var cleanRegex = new RegExp("^\\s*" + VERSION_PATTERN + "\\s*$", "i");
170036
170153
  function clean(version2) {
170037
- return stringify4(parse16(version2, cleanRegex));
170154
+ return stringify4(parse17(version2, cleanRegex));
170038
170155
  }
170039
- function parse16(version2, regex3) {
170156
+ function parse17(version2, regex3) {
170040
170157
  const { groups } = (regex3 || validRegex).exec(version2) || {};
170041
170158
  if (!groups) {
170042
170159
  return null;
@@ -170112,7 +170229,7 @@ var require_version = __commonJS({
170112
170229
  return null;
170113
170230
  }
170114
170231
  function explain(version2) {
170115
- const parsed = parse16(version2);
170232
+ const parsed = parse17(version2);
170116
170233
  if (!parsed) {
170117
170234
  return parsed;
170118
170235
  }
@@ -170146,7 +170263,7 @@ var require_version = __commonJS({
170146
170263
  var require_operator = __commonJS({
170147
170264
  "node_modules/.pnpm/@renovatebot+pep440@4.2.1/node_modules/@renovatebot/pep440/lib/operator.js"(exports2, module2) {
170148
170265
  init_import_meta_url();
170149
- var { parse: parse16 } = require_version();
170266
+ var { parse: parse17 } = require_version();
170150
170267
  module2.exports = {
170151
170268
  compare,
170152
170269
  rcompare,
@@ -170186,8 +170303,8 @@ var require_operator = __commonJS({
170186
170303
  return version2.toLowerCase() === other.toLowerCase();
170187
170304
  }
170188
170305
  function compare(version2, other) {
170189
- const parsedVersion = parse16(version2);
170190
- const parsedOther = parse16(other);
170306
+ const parsedVersion = parse17(version2);
170307
+ const parsedOther = parse17(other);
170191
170308
  const keyVersion = calculateKey(parsedVersion);
170192
170309
  const keyOther = calculateKey(parsedOther);
170193
170310
  return pyCompare(keyVersion, keyOther);
@@ -170270,7 +170387,7 @@ var require_specifier = __commonJS({
170270
170387
  ].join("");
170271
170388
  module2.exports = {
170272
170389
  RANGE_PATTERN,
170273
- parse: parse16,
170390
+ parse: parse17,
170274
170391
  satisfies: satisfies2,
170275
170392
  filter: filter2,
170276
170393
  validRange,
@@ -170279,7 +170396,7 @@ var require_specifier = __commonJS({
170279
170396
  };
170280
170397
  var isEqualityOperator = (op3) => ["==", "!=", "==="].includes(op3);
170281
170398
  var rangeRegex = new RegExp("^" + RANGE_PATTERN + "$", "i");
170282
- function parse16(ranges) {
170399
+ function parse17(ranges) {
170283
170400
  if (!ranges.trim()) {
170284
170401
  return [];
170285
170402
  }
@@ -170331,7 +170448,7 @@ var require_specifier = __commonJS({
170331
170448
  return found.length === 0 ? null : found[0];
170332
170449
  }
170333
170450
  function pick(versions, specifier, options) {
170334
- const parsed = parse16(specifier);
170451
+ const parsed = parse17(specifier);
170335
170452
  if (!parsed) {
170336
170453
  return [];
170337
170454
  }
@@ -170400,7 +170517,7 @@ var require_specifier = __commonJS({
170400
170517
  return op3(version2, spec.version || spec.legacy);
170401
170518
  }
170402
170519
  function validRange(specifier) {
170403
- return Boolean(parse16(specifier));
170520
+ return Boolean(parse17(specifier));
170404
170521
  }
170405
170522
  }
170406
170523
  });
@@ -170409,21 +170526,21 @@ var require_specifier = __commonJS({
170409
170526
  var require_semantic = __commonJS({
170410
170527
  "node_modules/.pnpm/@renovatebot+pep440@4.2.1/node_modules/@renovatebot/pep440/lib/semantic.js"(exports2, module2) {
170411
170528
  init_import_meta_url();
170412
- var { explain, parse: parse16, stringify: stringify4 } = require_version();
170529
+ var { explain, parse: parse17, stringify: stringify4 } = require_version();
170413
170530
  module2.exports = {
170414
- major: major2,
170415
- minor,
170416
- patch,
170531
+ major: major3,
170532
+ minor: minor2,
170533
+ patch: patch2,
170417
170534
  inc: inc4
170418
170535
  };
170419
- function major2(input) {
170536
+ function major3(input) {
170420
170537
  const version2 = explain(input);
170421
170538
  if (!version2) {
170422
170539
  throw new TypeError("Invalid Version: " + input);
170423
170540
  }
170424
170541
  return version2.release[0];
170425
170542
  }
170426
- function minor(input) {
170543
+ function minor2(input) {
170427
170544
  const version2 = explain(input);
170428
170545
  if (!version2) {
170429
170546
  throw new TypeError("Invalid Version: " + input);
@@ -170433,7 +170550,7 @@ var require_semantic = __commonJS({
170433
170550
  }
170434
170551
  return version2.release[1];
170435
170552
  }
170436
- function patch(input) {
170553
+ function patch2(input) {
170437
170554
  const version2 = explain(input);
170438
170555
  if (!version2) {
170439
170556
  throw new TypeError("Invalid Version: " + input);
@@ -170445,7 +170562,7 @@ var require_semantic = __commonJS({
170445
170562
  }
170446
170563
  function inc4(input, release3, preReleaseIdentifier) {
170447
170564
  let identifier = preReleaseIdentifier || `a`;
170448
- const version2 = parse16(input);
170565
+ const version2 = parse17(input);
170449
170566
  if (!version2) {
170450
170567
  return null;
170451
170568
  }
@@ -170562,7 +170679,7 @@ var require_semantic = __commonJS({
170562
170679
  var require_pep440 = __commonJS({
170563
170680
  "node_modules/.pnpm/@renovatebot+pep440@4.2.1/node_modules/@renovatebot/pep440/index.js"(exports2, module2) {
170564
170681
  init_import_meta_url();
170565
- var { valid: valid2, clean, explain, parse: parse16 } = require_version();
170682
+ var { valid: valid2, clean, explain, parse: parse17 } = require_version();
170566
170683
  var { lt: lt4, le: le4, eq, ne: ne6, ge: ge4, gt: gt4, compare, rcompare } = require_operator();
170567
170684
  var {
170568
170685
  filter: filter2,
@@ -170572,13 +170689,13 @@ var require_pep440 = __commonJS({
170572
170689
  satisfies: satisfies2,
170573
170690
  validRange
170574
170691
  } = require_specifier();
170575
- var { major: major2, minor, patch, inc: inc4 } = require_semantic();
170692
+ var { major: major3, minor: minor2, patch: patch2, inc: inc4 } = require_semantic();
170576
170693
  module2.exports = {
170577
170694
  // version
170578
170695
  valid: valid2,
170579
170696
  clean,
170580
170697
  explain,
170581
- parse: parse16,
170698
+ parse: parse17,
170582
170699
  // operator
170583
170700
  lt: lt4,
170584
170701
  le: le4,
@@ -170599,9 +170716,9 @@ var require_pep440 = __commonJS({
170599
170716
  satisfies: satisfies2,
170600
170717
  validRange,
170601
170718
  // semantic
170602
- major: major2,
170603
- minor,
170604
- patch,
170719
+ major: major3,
170720
+ minor: minor2,
170721
+ patch: patch2,
170605
170722
  inc: inc4
170606
170723
  };
170607
170724
  }
@@ -175255,7 +175372,7 @@ ${issues}`,
175255
175372
  return parseConfig(content, filename, schema2, filetype);
175256
175373
  }
175257
175374
  var import_node_assert2 = __toESM2(require("assert"), 1);
175258
- var import_version26 = require_version();
175375
+ var import_version27 = require_version();
175259
175376
  var import_pep440 = require_pep440();
175260
175377
  var import_specifier = require_specifier();
175261
175378
  function pep440ConstraintFromVersion(v12) {
@@ -175268,7 +175385,7 @@ ${issues}`,
175268
175385
  ];
175269
175386
  }
175270
175387
  function unparsePep440Version(v12) {
175271
- const verstr = (0, import_version26.stringify)(v12);
175388
+ const verstr = (0, import_version27.stringify)(v12);
175272
175389
  (0, import_node_assert2.default)(verstr != null, "pep440/lib/version:stringify returned null");
175273
175390
  return verstr;
175274
175391
  }
@@ -176101,13 +176218,13 @@ ${issues}`,
176101
176218
  if (version2.length < 2) {
176102
176219
  return null;
176103
176220
  }
176104
- const major2 = version2[0];
176221
+ const major3 = version2[0];
176105
176222
  const minorStr = version2.substring(1);
176106
- const minor = parseInt(minorStr, 10);
176107
- if (isNaN(minor) || minor > 255) {
176223
+ const minor2 = parseInt(minorStr, 10);
176224
+ if (isNaN(minor2) || minor2 > 255) {
176108
176225
  return null;
176109
176226
  }
176110
- return `${major2}.${minor}`;
176227
+ return `${major3}.${minor2}`;
176111
176228
  }
176112
176229
  function rfindNumericChar(s8) {
176113
176230
  for (let i5 = s8.length - 1; i5 >= 0; i5--) {
@@ -176916,7 +177033,7 @@ ${issues}`,
176916
177033
  return c7;
176917
177034
  }
176918
177035
  const majorMinor = parts.slice(0, 2).join(".");
176919
- const patch = parseInt(parts[2], 10);
177036
+ const patch2 = parseInt(parts[2], 10);
176920
177037
  switch (c7.operator) {
176921
177038
  case "==":
176922
177039
  return { operator: "==", version: majorMinor, prefix: ".*" };
@@ -176929,9 +177046,9 @@ ${issues}`,
176929
177046
  case "<=":
176930
177047
  return { operator: "<=", version: majorMinor, prefix: "" };
176931
177048
  case ">":
176932
- return patch === 0 ? { operator: ">", version: majorMinor, prefix: "" } : { operator: ">=", version: majorMinor, prefix: "" };
177049
+ return patch2 === 0 ? { operator: ">", version: majorMinor, prefix: "" } : { operator: ">=", version: majorMinor, prefix: "" };
176933
177050
  case "<":
176934
- return patch === 0 ? { operator: "<", version: majorMinor, prefix: "" } : { operator: "<=", version: majorMinor, prefix: "" };
177051
+ return patch2 === 0 ? { operator: "<", version: majorMinor, prefix: "" } : { operator: "<=", version: majorMinor, prefix: "" };
176935
177052
  default:
176936
177053
  return c7;
176937
177054
  }
@@ -179432,8 +179549,8 @@ var require_dist12 = __commonJS({
179432
179549
  Object.setPrototypeOf(process.chdir, chdir);
179433
179550
  }
179434
179551
  var chdir;
179435
- module22.exports = patch;
179436
- function patch(fs122) {
179552
+ module22.exports = patch2;
179553
+ function patch2(fs122) {
179437
179554
  if (constants4.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
179438
179555
  patchLchmod(fs122);
179439
179556
  }
@@ -179912,14 +180029,14 @@ var require_dist12 = __commonJS({
179912
180029
  if (!global[gracefulQueue]) {
179913
180030
  publishQueue(global, fs122[gracefulQueue]);
179914
180031
  }
179915
- module22.exports = patch(clone(fs122));
180032
+ module22.exports = patch2(clone(fs122));
179916
180033
  if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs122.__patched) {
179917
- module22.exports = patch(fs122);
180034
+ module22.exports = patch2(fs122);
179918
180035
  fs122.__patched = true;
179919
180036
  }
179920
- function patch(fs132) {
180037
+ function patch2(fs132) {
179921
180038
  polyfills(fs132);
179922
- fs132.gracefulify = patch;
180039
+ fs132.gracefulify = patch2;
179923
180040
  fs132.createReadStream = createReadStream6;
179924
180041
  fs132.createWriteStream = createWriteStream4;
179925
180042
  var fs$readFile = fs132.readFile;
@@ -187402,16 +187519,16 @@ var require_dist12 = __commonJS({
187402
187519
  function rcompareIdentifiers(a5, b9) {
187403
187520
  return compareIdentifiers(b9, a5);
187404
187521
  }
187405
- exports3.major = major2;
187406
- function major2(a5, loose) {
187522
+ exports3.major = major3;
187523
+ function major3(a5, loose) {
187407
187524
  return new SemVer22(a5, loose).major;
187408
187525
  }
187409
- exports3.minor = minor;
187410
- function minor(a5, loose) {
187526
+ exports3.minor = minor2;
187527
+ function minor2(a5, loose) {
187411
187528
  return new SemVer22(a5, loose).minor;
187412
187529
  }
187413
- exports3.patch = patch;
187414
- function patch(a5, loose) {
187530
+ exports3.patch = patch2;
187531
+ function patch2(a5, loose) {
187415
187532
  return new SemVer22(a5, loose).patch;
187416
187533
  }
187417
187534
  exports3.compare = compare;
@@ -188074,11 +188191,11 @@ var require_dist12 = __commonJS({
188074
188191
  var resolveCommand = require_resolveCommand();
188075
188192
  var escape2 = require_escape2();
188076
188193
  var readShebang = require_readShebang();
188077
- var semver6 = require_semver3();
188194
+ var semver7 = require_semver3();
188078
188195
  var isWin2 = process.platform === "win32";
188079
188196
  var isExecutableRegExp = /\.(?:com|exe)$/i;
188080
188197
  var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
188081
- var supportsShellOption = niceTry(() => semver6.satisfies(process.version, "^4.8.0 || ^5.7.0 || >= 6.0.0", true)) || false;
188198
+ var supportsShellOption = niceTry(() => semver7.satisfies(process.version, "^4.8.0 || ^5.7.0 || >= 6.0.0", true)) || false;
188082
188199
  function detectShebang(parsed) {
188083
188200
  parsed.file = resolveCommand(parsed);
188084
188201
  const shebang = parsed.file && readShebang(parsed.file);
@@ -188657,16 +188774,16 @@ var require_dist12 = __commonJS({
188657
188774
  function rcompareIdentifiers(a5, b9) {
188658
188775
  return compareIdentifiers(b9, a5);
188659
188776
  }
188660
- exports3.major = major2;
188661
- function major2(a5, loose) {
188777
+ exports3.major = major3;
188778
+ function major3(a5, loose) {
188662
188779
  return new SemVer22(a5, loose).major;
188663
188780
  }
188664
- exports3.minor = minor;
188665
- function minor(a5, loose) {
188781
+ exports3.minor = minor2;
188782
+ function minor2(a5, loose) {
188666
188783
  return new SemVer22(a5, loose).minor;
188667
188784
  }
188668
- exports3.patch = patch;
188669
- function patch(a5, loose) {
188785
+ exports3.patch = patch2;
188786
+ function patch2(a5, loose) {
188670
188787
  return new SemVer22(a5, loose).patch;
188671
188788
  }
188672
188789
  exports3.compare = compare;
@@ -190606,7 +190723,7 @@ var require_dist12 = __commonJS({
190606
190723
  }
190607
190724
  var directiveHandlers = {
190608
190725
  YAML: function handleYamlDirective(state2, name, args) {
190609
- var match3, major2, minor;
190726
+ var match3, major3, minor2;
190610
190727
  if (state2.version !== null) {
190611
190728
  throwError(state2, "duplication of %YAML directive");
190612
190729
  }
@@ -190617,14 +190734,14 @@ var require_dist12 = __commonJS({
190617
190734
  if (match3 === null) {
190618
190735
  throwError(state2, "ill-formed argument of the YAML directive");
190619
190736
  }
190620
- major2 = parseInt(match3[1], 10);
190621
- minor = parseInt(match3[2], 10);
190622
- if (major2 !== 1) {
190737
+ major3 = parseInt(match3[1], 10);
190738
+ minor2 = parseInt(match3[2], 10);
190739
+ if (major3 !== 1) {
190623
190740
  throwError(state2, "unacceptable YAML version of the document");
190624
190741
  }
190625
190742
  state2.version = args[0];
190626
- state2.checkLineBreaks = minor < 2;
190627
- if (minor !== 1 && minor !== 2) {
190743
+ state2.checkLineBreaks = minor2 < 2;
190744
+ if (minor2 !== 1 && minor2 !== 2) {
190628
190745
  throwWarning(state2, "unsupported YAML version of the document");
190629
190746
  }
190630
190747
  },
@@ -209758,15 +209875,15 @@ ${fields}`;
209758
209875
  return getOptions().filter((v12) => v12.major >= 18).filter(isNodeVersionAvailable).map((n5) => n5.major);
209759
209876
  }
209760
209877
  function getHint(isAuto = false, availableVersions) {
209761
- const { major: major2, range: range3 } = getLatestNodeVersion(availableVersions);
209762
- return isAuto ? `Please set Node.js Version to ${range3} in your Project Settings to use Node.js ${major2}.` : `Please set "engines": { "node": "${range3}" } in your \`package.json\` file to use Node.js ${major2}.`;
209878
+ const { major: major3, range: range3 } = getLatestNodeVersion(availableVersions);
209879
+ return isAuto ? `Please set Node.js Version to ${range3} in your Project Settings to use Node.js ${major3}.` : `Please set "engines": { "node": "${range3}" } in your \`package.json\` file to use Node.js ${major3}.`;
209763
209880
  }
209764
209881
  function getLatestNodeVersion(availableVersions) {
209765
209882
  const all = getOptions();
209766
209883
  if (availableVersions) {
209767
209884
  for (const version2 of all) {
209768
- for (const major2 of availableVersions) {
209769
- if (version2.major === major2) {
209885
+ for (const major3 of availableVersions) {
209886
+ if (version2.major === major3) {
209770
209887
  return version2;
209771
209888
  }
209772
209889
  }
@@ -210479,7 +210596,7 @@ ${codeblock}`, options);
210479
210596
  }
210480
210597
  return [k7, t6, state2.c];
210481
210598
  }
210482
- function parse16(toml, { maxDepth = 1e3, integersAsBigInt } = {}) {
210599
+ function parse17(toml, { maxDepth = 1e3, integersAsBigInt } = {}) {
210483
210600
  let res = {};
210484
210601
  let meta = {};
210485
210602
  let tbl = res;
@@ -210570,7 +210687,7 @@ ${codeblock}`, options);
210570
210687
  if (name.endsWith(".json")) {
210571
210688
  return JSON.parse(str2);
210572
210689
  } else if (name.endsWith(".toml")) {
210573
- return parse16(str2);
210690
+ return parse17(str2);
210574
210691
  } else if (name.endsWith(".yaml") || name.endsWith(".yml")) {
210575
210692
  return import_js_yaml9.default.safeLoad(str2, { filename: name });
210576
210693
  }
@@ -217308,7 +217425,7 @@ var require_parse2 = __commonJS({
217308
217425
  CHAR_NO_BREAK_SPACE,
217309
217426
  CHAR_ZERO_WIDTH_NOBREAK_SPACE
217310
217427
  } = require_constants();
217311
- var parse16 = (input, options = {}) => {
217428
+ var parse17 = (input, options = {}) => {
217312
217429
  if (typeof input !== "string") {
217313
217430
  throw new TypeError("Expected a string");
217314
217431
  }
@@ -217511,7 +217628,7 @@ var require_parse2 = __commonJS({
217511
217628
  push({ type: "eos" });
217512
217629
  return ast;
217513
217630
  };
217514
- module2.exports = parse16;
217631
+ module2.exports = parse17;
217515
217632
  }
217516
217633
  });
217517
217634
 
@@ -217523,7 +217640,7 @@ var require_braces = __commonJS({
217523
217640
  var stringify4 = require_stringify2();
217524
217641
  var compile2 = require_compile();
217525
217642
  var expand3 = require_expand();
217526
- var parse16 = require_parse2();
217643
+ var parse17 = require_parse2();
217527
217644
  var braces = (input, options = {}) => {
217528
217645
  let output = [];
217529
217646
  if (Array.isArray(input)) {
@@ -217543,7 +217660,7 @@ var require_braces = __commonJS({
217543
217660
  }
217544
217661
  return output;
217545
217662
  };
217546
- braces.parse = (input, options = {}) => parse16(input, options);
217663
+ braces.parse = (input, options = {}) => parse17(input, options);
217547
217664
  braces.stringify = (input, options = {}) => {
217548
217665
  if (typeof input === "string") {
217549
217666
  return stringify4(braces.parse(input, options), options);
@@ -218411,7 +218528,7 @@ var require_parse3 = __commonJS({
218411
218528
  }
218412
218529
  return { risky: false };
218413
218530
  };
218414
- var parse16 = (input, options) => {
218531
+ var parse17 = (input, options) => {
218415
218532
  if (typeof input !== "string") {
218416
218533
  throw new TypeError("Expected a string");
218417
218534
  }
@@ -218582,7 +218699,7 @@ var require_parse3 = __commonJS({
218582
218699
  output = token.close = `)$))${extglobStar}`;
218583
218700
  }
218584
218701
  if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
218585
- const expression = parse16(rest, { ...options, fastpaths: false }).output;
218702
+ const expression = parse17(rest, { ...options, fastpaths: false }).output;
218586
218703
  output = token.close = `)${expression})${extglobStar})`;
218587
218704
  }
218588
218705
  if (token.prev.type === "bos") {
@@ -219107,7 +219224,7 @@ var require_parse3 = __commonJS({
219107
219224
  }
219108
219225
  return state2;
219109
219226
  };
219110
- parse16.fastpaths = (input, options) => {
219227
+ parse17.fastpaths = (input, options) => {
219111
219228
  const opts = { ...options };
219112
219229
  const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
219113
219230
  const len = input.length;
@@ -219173,7 +219290,7 @@ var require_parse3 = __commonJS({
219173
219290
  }
219174
219291
  return source;
219175
219292
  };
219176
- module2.exports = parse16;
219293
+ module2.exports = parse17;
219177
219294
  }
219178
219295
  });
219179
219296
 
@@ -219184,7 +219301,7 @@ var require_picomatch = __commonJS({
219184
219301
  init_import_meta_url();
219185
219302
  var path21 = require("path");
219186
219303
  var scan2 = require_scan();
219187
- var parse16 = require_parse3();
219304
+ var parse17 = require_parse3();
219188
219305
  var utils = require_utils6();
219189
219306
  var constants4 = require_constants2();
219190
219307
  var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
@@ -219272,7 +219389,7 @@ var require_picomatch = __commonJS({
219272
219389
  picomatch.isMatch = (str2, patterns, options) => picomatch(patterns, options)(str2);
219273
219390
  picomatch.parse = (pattern, options) => {
219274
219391
  if (Array.isArray(pattern)) return pattern.map((p8) => picomatch.parse(p8, options));
219275
- return parse16(pattern, { ...options, fastpaths: false });
219392
+ return parse17(pattern, { ...options, fastpaths: false });
219276
219393
  };
219277
219394
  picomatch.scan = (input, options) => scan2(input, options);
219278
219395
  picomatch.compileRe = (state2, options, returnOutput = false, returnState = false) => {
@@ -219298,10 +219415,10 @@ var require_picomatch = __commonJS({
219298
219415
  }
219299
219416
  let parsed = { negated: false, fastpaths: true };
219300
219417
  if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
219301
- parsed.output = parse16.fastpaths(input, options);
219418
+ parsed.output = parse17.fastpaths(input, options);
219302
219419
  }
219303
219420
  if (!parsed.output) {
219304
- parsed = parse16(input, options);
219421
+ parsed = parse17(input, options);
219305
219422
  }
219306
219423
  return picomatch.compileRe(parsed, options, returnOutput, returnState);
219307
219424
  };
@@ -222687,7 +222804,7 @@ var require_ms2 = __commonJS({
222687
222804
  options = options || {};
222688
222805
  var type2 = typeof val;
222689
222806
  if (type2 === "string" && val.length > 0) {
222690
- return parse16(val);
222807
+ return parse17(val);
222691
222808
  } else if (type2 === "number" && isFinite(val)) {
222692
222809
  return options.long ? fmtLong2(val) : fmtShort2(val);
222693
222810
  }
@@ -222695,7 +222812,7 @@ var require_ms2 = __commonJS({
222695
222812
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
222696
222813
  );
222697
222814
  };
222698
- function parse16(str2) {
222815
+ function parse17(str2) {
222699
222816
  str2 = String(str2);
222700
222817
  if (str2.length > 100) {
222701
222818
  return;
@@ -230711,7 +230828,7 @@ var require_package7 = __commonJS({
230711
230828
  "package.json"(exports2, module2) {
230712
230829
  module2.exports = {
230713
230830
  name: "@sentry/craft",
230714
- version: "3.8.0",
230831
+ version: "3.10.0",
230715
230832
  description: "The universal sentry workflow CLI",
230716
230833
  main: "dist/craft",
230717
230834
  repository: "https://github.com/getsentry/craft",
@@ -230919,7 +231036,7 @@ function getPackage() {
230919
231036
  }
230920
231037
  function getPackageVersion3() {
230921
231038
  const { version: version2 } = getPackage();
230922
- const buildInfo = "78cac764e2316a8eb6ed6cd2736c5195d3db4d51";
231039
+ const buildInfo = "dd3381aa60f029043a6723dcd3df7bebdaba0430";
230923
231040
  return buildInfo ? `${version2} (${buildInfo})` : version2;
230924
231041
  }
230925
231042
  function semVerToString(s8) {
@@ -231436,7 +231553,7 @@ var require_parse4 = __commonJS({
231436
231553
  "use strict";
231437
231554
  init_import_meta_url();
231438
231555
  var SemVer5 = require_semver();
231439
- var parse16 = (version2, options, throwErrors = false) => {
231556
+ var parse17 = (version2, options, throwErrors = false) => {
231440
231557
  if (version2 instanceof SemVer5) {
231441
231558
  return version2;
231442
231559
  }
@@ -231449,7 +231566,7 @@ var require_parse4 = __commonJS({
231449
231566
  throw er3;
231450
231567
  }
231451
231568
  };
231452
- module2.exports = parse16;
231569
+ module2.exports = parse17;
231453
231570
  }
231454
231571
  });
231455
231572
 
@@ -231458,9 +231575,9 @@ var require_valid = __commonJS({
231458
231575
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.js"(exports2, module2) {
231459
231576
  "use strict";
231460
231577
  init_import_meta_url();
231461
- var parse16 = require_parse4();
231578
+ var parse17 = require_parse4();
231462
231579
  var valid2 = (version2, options) => {
231463
- const v12 = parse16(version2, options);
231580
+ const v12 = parse17(version2, options);
231464
231581
  return v12 ? v12.version : null;
231465
231582
  };
231466
231583
  module2.exports = valid2;
@@ -231472,9 +231589,9 @@ var require_clean = __commonJS({
231472
231589
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.js"(exports2, module2) {
231473
231590
  "use strict";
231474
231591
  init_import_meta_url();
231475
- var parse16 = require_parse4();
231592
+ var parse17 = require_parse4();
231476
231593
  var clean = (version2, options) => {
231477
- const s8 = parse16(version2.trim().replace(/^[=v]+/, ""), options);
231594
+ const s8 = parse17(version2.trim().replace(/^[=v]+/, ""), options);
231478
231595
  return s8 ? s8.version : null;
231479
231596
  };
231480
231597
  module2.exports = clean;
@@ -231511,10 +231628,10 @@ var require_diff = __commonJS({
231511
231628
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.js"(exports2, module2) {
231512
231629
  "use strict";
231513
231630
  init_import_meta_url();
231514
- var parse16 = require_parse4();
231631
+ var parse17 = require_parse4();
231515
231632
  var diff = (version1, version2) => {
231516
- const v12 = parse16(version1, null, true);
231517
- const v22 = parse16(version2, null, true);
231633
+ const v12 = parse17(version1, null, true);
231634
+ const v22 = parse17(version2, null, true);
231518
231635
  const comparison = v12.compare(v22);
231519
231636
  if (comparison === 0) {
231520
231637
  return null;
@@ -231557,8 +231674,8 @@ var require_major = __commonJS({
231557
231674
  "use strict";
231558
231675
  init_import_meta_url();
231559
231676
  var SemVer5 = require_semver();
231560
- var major2 = (a5, loose) => new SemVer5(a5, loose).major;
231561
- module2.exports = major2;
231677
+ var major3 = (a5, loose) => new SemVer5(a5, loose).major;
231678
+ module2.exports = major3;
231562
231679
  }
231563
231680
  });
231564
231681
 
@@ -231568,8 +231685,8 @@ var require_minor = __commonJS({
231568
231685
  "use strict";
231569
231686
  init_import_meta_url();
231570
231687
  var SemVer5 = require_semver();
231571
- var minor = (a5, loose) => new SemVer5(a5, loose).minor;
231572
- module2.exports = minor;
231688
+ var minor2 = (a5, loose) => new SemVer5(a5, loose).minor;
231689
+ module2.exports = minor2;
231573
231690
  }
231574
231691
  });
231575
231692
 
@@ -231579,8 +231696,8 @@ var require_patch = __commonJS({
231579
231696
  "use strict";
231580
231697
  init_import_meta_url();
231581
231698
  var SemVer5 = require_semver();
231582
- var patch = (a5, loose) => new SemVer5(a5, loose).patch;
231583
- module2.exports = patch;
231699
+ var patch2 = (a5, loose) => new SemVer5(a5, loose).patch;
231700
+ module2.exports = patch2;
231584
231701
  }
231585
231702
  });
231586
231703
 
@@ -231589,9 +231706,9 @@ var require_prerelease = __commonJS({
231589
231706
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.js"(exports2, module2) {
231590
231707
  "use strict";
231591
231708
  init_import_meta_url();
231592
- var parse16 = require_parse4();
231709
+ var parse17 = require_parse4();
231593
231710
  var prerelease2 = (version2, options) => {
231594
- const parsed = parse16(version2, options);
231711
+ const parsed = parse17(version2, options);
231595
231712
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
231596
231713
  };
231597
231714
  module2.exports = prerelease2;
@@ -231791,7 +231908,7 @@ var require_coerce = __commonJS({
231791
231908
  "use strict";
231792
231909
  init_import_meta_url();
231793
231910
  var SemVer5 = require_semver();
231794
- var parse16 = require_parse4();
231911
+ var parse17 = require_parse4();
231795
231912
  var { safeRe: re6, t: t6 } = require_re();
231796
231913
  var coerce = (version2, options) => {
231797
231914
  if (version2 instanceof SemVer5) {
@@ -231821,12 +231938,12 @@ var require_coerce = __commonJS({
231821
231938
  if (match3 === null) {
231822
231939
  return null;
231823
231940
  }
231824
- const major2 = match3[2];
231825
- const minor = match3[3] || "0";
231826
- const patch = match3[4] || "0";
231941
+ const major3 = match3[2];
231942
+ const minor2 = match3[3] || "0";
231943
+ const patch2 = match3[4] || "0";
231827
231944
  const prerelease2 = options.includePrerelease && match3[5] ? `-${match3[5]}` : "";
231828
231945
  const build = options.includePrerelease && match3[6] ? `+${match3[6]}` : "";
231829
- return parse16(`${major2}.${minor}.${patch}${prerelease2}${build}`, options);
231946
+ return parse17(`${major3}.${minor2}.${patch2}${prerelease2}${build}`, options);
231830
231947
  };
231831
231948
  module2.exports = coerce;
231832
231949
  }
@@ -232859,14 +232976,14 @@ var require_semver2 = __commonJS({
232859
232976
  var constants4 = require_constants4();
232860
232977
  var SemVer5 = require_semver();
232861
232978
  var identifiers = require_identifiers();
232862
- var parse16 = require_parse4();
232979
+ var parse17 = require_parse4();
232863
232980
  var valid2 = require_valid();
232864
232981
  var clean = require_clean();
232865
232982
  var inc4 = require_inc();
232866
232983
  var diff = require_diff();
232867
- var major2 = require_major();
232868
- var minor = require_minor();
232869
- var patch = require_patch();
232984
+ var major3 = require_major();
232985
+ var minor2 = require_minor();
232986
+ var patch2 = require_patch();
232870
232987
  var prerelease2 = require_prerelease();
232871
232988
  var compare = require_compare();
232872
232989
  var rcompare = require_rcompare();
@@ -232897,14 +233014,14 @@ var require_semver2 = __commonJS({
232897
233014
  var simplifyRange = require_simplify();
232898
233015
  var subset = require_subset();
232899
233016
  module2.exports = {
232900
- parse: parse16,
233017
+ parse: parse17,
232901
233018
  valid: valid2,
232902
233019
  clean,
232903
233020
  inc: inc4,
232904
233021
  diff,
232905
- major: major2,
232906
- minor,
232907
- patch,
233022
+ major: major3,
233023
+ minor: minor2,
233024
+ patch: patch2,
232908
233025
  prerelease: prerelease2,
232909
233026
  compare,
232910
233027
  rcompare,
@@ -233381,7 +233498,7 @@ var require_parse5 = __commonJS({
233381
233498
  []
233382
233499
  );
233383
233500
  }
233384
- module2.exports = function parse16(s8, env3, opts) {
233501
+ module2.exports = function parse17(s8, env3, opts) {
233385
233502
  var mapped = parseInternal(s8, env3, opts);
233386
233503
  if (typeof env3 !== "function") {
233387
233504
  return mapped;
@@ -233506,7 +233623,7 @@ var require_path_arg = __commonJS({
233506
233623
  "node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"(exports2, module2) {
233507
233624
  init_import_meta_url();
233508
233625
  var platform4 = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
233509
- var { resolve: resolve11, parse: parse16 } = require("path");
233626
+ var { resolve: resolve11, parse: parse17 } = require("path");
233510
233627
  var pathArg = (path21) => {
233511
233628
  if (/\0/.test(path21)) {
233512
233629
  throw Object.assign(
@@ -233520,7 +233637,7 @@ var require_path_arg = __commonJS({
233520
233637
  path21 = resolve11(path21);
233521
233638
  if (platform4 === "win32") {
233522
233639
  const badWinChars = /[*|"<>?:]/;
233523
- const { root } = parse16(path21);
233640
+ const { root } = parse17(path21);
233524
233641
  if (badWinChars.test(path21.substr(root.length))) {
233525
233642
  throw Object.assign(new Error("Illegal characters in path."), {
233526
233643
  path: path21,
@@ -235491,8 +235608,8 @@ var _c4;
235491
235608
  var minNodeVersion = process && process.env && process.env.YARGS_MIN_NODE_VERSION ? Number(process.env.YARGS_MIN_NODE_VERSION) : 20;
235492
235609
  var nodeVersion = (_b = (_a5 = process === null || process === void 0 ? void 0 : process.versions) === null || _a5 === void 0 ? void 0 : _a5.node) !== null && _b !== void 0 ? _b : (_c4 = process === null || process === void 0 ? void 0 : process.version) === null || _c4 === void 0 ? void 0 : _c4.slice(1);
235493
235610
  if (nodeVersion) {
235494
- const major2 = Number(nodeVersion.match(/^([^.]+)/)[1]);
235495
- if (major2 < minNodeVersion) {
235611
+ const major3 = Number(nodeVersion.match(/^([^.]+)/)[1]);
235612
+ if (major3 < minNodeVersion) {
235496
235613
  throw Error(`yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);
235497
235614
  }
235498
235615
  }
@@ -238127,9 +238244,9 @@ var YargsInstance = class {
238127
238244
  __classPrivateFieldSet5(this, _YargsInstance_hasOutput, true, "f");
238128
238245
  if (!__classPrivateFieldGet6(this, _YargsInstance_usage, "f").hasCachedHelpMessage()) {
238129
238246
  if (!this.parsed) {
238130
- const parse16 = this[kRunYargsParserAndExecuteCommands](__classPrivateFieldGet6(this, _YargsInstance_processArgs, "f"), void 0, void 0, 0, true);
238131
- if (isPromise2(parse16)) {
238132
- return parse16.then(() => {
238247
+ const parse17 = this[kRunYargsParserAndExecuteCommands](__classPrivateFieldGet6(this, _YargsInstance_processArgs, "f"), void 0, void 0, 0, true);
238248
+ if (isPromise2(parse17)) {
238249
+ return parse17.then(() => {
238133
238250
  return __classPrivateFieldGet6(this, _YargsInstance_usage, "f").help();
238134
238251
  });
238135
238252
  }
@@ -238473,9 +238590,9 @@ var YargsInstance = class {
238473
238590
  __classPrivateFieldSet5(this, _YargsInstance_hasOutput, true, "f");
238474
238591
  if (!__classPrivateFieldGet6(this, _YargsInstance_usage, "f").hasCachedHelpMessage()) {
238475
238592
  if (!this.parsed) {
238476
- const parse16 = this[kRunYargsParserAndExecuteCommands](__classPrivateFieldGet6(this, _YargsInstance_processArgs, "f"), void 0, void 0, 0, true);
238477
- if (isPromise2(parse16)) {
238478
- parse16.then(() => {
238593
+ const parse17 = this[kRunYargsParserAndExecuteCommands](__classPrivateFieldGet6(this, _YargsInstance_processArgs, "f"), void 0, void 0, 0, true);
238594
+ if (isPromise2(parse17)) {
238595
+ parse17.then(() => {
238479
238596
  __classPrivateFieldGet6(this, _YargsInstance_usage, "f").showHelp(level);
238480
238597
  });
238481
238598
  return this;
@@ -239162,6 +239279,7 @@ __export(prepare_exports, {
239162
239279
  init_import_meta_url();
239163
239280
  var import_fs33 = require("fs");
239164
239281
  var import_path34 = require("path");
239282
+ var semver5 = __toESM(require_semver2());
239165
239283
  init_dryRun();
239166
239284
  init_config2();
239167
239285
  init_logger2();
@@ -239183,6 +239301,20 @@ function calculateNextVersion(currentVersion, bumpType) {
239183
239301
  }
239184
239302
  return newVersion;
239185
239303
  }
239304
+ var NEW_PRERELEASE_ID = "alpha";
239305
+ function calculatePrerelease(version2, currentVersion) {
239306
+ const current = semver.parse(currentVersion);
239307
+ if (current?.prerelease.length && version2 === `${current.major}.${current.minor}.${current.patch}`) {
239308
+ const newVersion = semver.inc(current, "prerelease");
239309
+ if (!newVersion) {
239310
+ throw new Error(
239311
+ `Failed to increment prerelease version "${currentVersion}"`
239312
+ );
239313
+ }
239314
+ return newVersion;
239315
+ }
239316
+ return `${version2}-${NEW_PRERELEASE_ID}.0`;
239317
+ }
239186
239318
  async function getChangelogWithBumpType(git, rev) {
239187
239319
  logger.info(
239188
239320
  `Analyzing commits since ${rev || "(beginning of history)"} for auto-versioning...`
@@ -239233,17 +239365,17 @@ async function calculateCalVer(git, config) {
239233
239365
  const searchPrefix = `${gitTagPrefix}${datePart}.`;
239234
239366
  logger.debug(`CalVer: searching for tags with prefix: ${searchPrefix}`);
239235
239367
  const tags = await git.tags();
239236
- let patch = 0;
239368
+ let patch2 = 0;
239237
239369
  for (const tag2 of tags.all) {
239238
239370
  if (tag2.startsWith(searchPrefix)) {
239239
239371
  const patchStr = tag2.slice(searchPrefix.length);
239240
239372
  const patchNum = parseInt(patchStr, 10);
239241
- if (!isNaN(patchNum) && patchNum >= patch) {
239242
- patch = patchNum + 1;
239373
+ if (!isNaN(patchNum) && patchNum >= patch2) {
239374
+ patch2 = patchNum + 1;
239243
239375
  }
239244
239376
  }
239245
239377
  }
239246
- const version2 = `${datePart}.${patch}`;
239378
+ const version2 = `${datePart}.${patch2}`;
239247
239379
  logger.info(`CalVer: determined version ${version2}`);
239248
239380
  return version2;
239249
239381
  }
@@ -240508,8 +240640,9 @@ var command4 = ["prepare [NEW-VERSION]"];
240508
240640
  var aliases2 = ["p", "prerelease", "prepublish", "prepare", "release"];
240509
240641
  var description3 = "\u{1F6A2} Prepare a new release branch";
240510
240642
  var AUTO_VERSION_MIN_VERSION2 = "2.14.0";
240643
+ var PRERELEASE_VERSION_MIN_VERSION = "3.9.0";
240511
240644
  var builder2 = (yargs) => yargs.positional("NEW-VERSION", {
240512
- description: 'The new version to release. Can be: a semver string (e.g., "1.2.3"), a bump type ("major", "minor", or "patch"), "auto" to determine automatically from conventional commits, or "calver" for calendar versioning. If omitted, uses the versioning.policy from .craft.yml',
240645
+ description: 'The new version to release. Can be: a semver string (e.g., "1.2.3"), a bump type ("major", "minor", or "patch"), "auto" to determine automatically from conventional commits, "pre" for the next prerelease, or "calver" for calendar versioning. If omitted, uses the versioning.policy from .craft.yml',
240513
240646
  type: "string"
240514
240647
  }).option("rev", {
240515
240648
  alias: "r",
@@ -240551,6 +240684,9 @@ function checkVersionOrPart(argv, _opt) {
240551
240684
  if (version2 === "auto") {
240552
240685
  return true;
240553
240686
  }
240687
+ if (version2 === "pre") {
240688
+ return true;
240689
+ }
240554
240690
  if (version2 === "calver") {
240555
240691
  return true;
240556
240692
  }
@@ -240823,24 +240959,47 @@ async function resolveVersion(git, options) {
240823
240959
  format: calverFormat
240824
240960
  });
240825
240961
  }
240826
- if (version2 === "auto" || isBumpType(version2)) {
240962
+ if (version2 === "auto" || version2 === "pre" || isBumpType(version2)) {
240827
240963
  if (!requiresMinVersion(AUTO_VERSION_MIN_VERSION2)) {
240828
240964
  const featureName = isBumpType(version2) ? "Version bump types" : "Auto-versioning";
240829
240965
  throw new ConfigurationError(
240830
240966
  `${featureName} requires minVersion >= ${AUTO_VERSION_MIN_VERSION2} in .craft.yml. Please update your configuration or specify the version explicitly.`
240831
240967
  );
240832
240968
  }
240969
+ if (version2 === "pre" && !requiresMinVersion(PRERELEASE_VERSION_MIN_VERSION)) {
240970
+ throw new ConfigurationError(
240971
+ `The "pre" version requires minVersion >= ${PRERELEASE_VERSION_MIN_VERSION} in .craft.yml. Please update your configuration or specify the version explicitly.`
240972
+ );
240973
+ }
240833
240974
  const latestTag = await getLatestTag(git, getGitTagPrefix());
240975
+ const currentVersion = latestTag && getVersion(latestTag) || await readProjectVersion(config.targets || [], getReleaseUnitDir()) || "0.0.0";
240834
240976
  let bumpType;
240835
- if (version2 === "auto") {
240836
- const changelogResult = await getChangelogWithBumpType(git, latestTag);
240977
+ if (version2 === "auto" || version2 === "pre") {
240978
+ const changelogResult = await getChangelogWithBumpType(
240979
+ git,
240980
+ await getLatestStableTag(git, getGitTagPrefix())
240981
+ );
240837
240982
  validateBumpType(changelogResult);
240838
240983
  bumpType = changelogResult.bumpType;
240984
+ if (bumpType === "major" && semver5.major(currentVersion) === 0) {
240985
+ logger.info(
240986
+ `${currentVersion} is below 1.0.0, so the breaking changes bump the minor version. Pass "major" to release 1.0.0.`
240987
+ );
240988
+ bumpType = "minor";
240989
+ }
240839
240990
  } else {
240840
240991
  bumpType = version2;
240841
240992
  }
240842
- const currentVersion = latestTag && getVersion(latestTag) || await readProjectVersion(config.targets || [], getReleaseUnitDir()) || "0.0.0";
240843
- const newVersion = calculateNextVersion(currentVersion, bumpType);
240993
+ let newVersion = calculateNextVersion(currentVersion, bumpType);
240994
+ if (version2 === "pre") {
240995
+ newVersion = calculatePrerelease(newVersion, currentVersion);
240996
+ } else if (version2 === "auto" && latestTag && parseVersion(currentVersion)?.pre && semver5.minor(newVersion) === 0 && semver5.patch(newVersion) === 0) {
240997
+ const prerelease2 = calculatePrerelease(newVersion, currentVersion);
240998
+ logger.info(
240999
+ `The latest release ${currentVersion} is a prerelease and ${newVersion} is a major release, so releasing ${prerelease2} instead. Run "craft prepare ${newVersion}" to release ${newVersion}.`
241000
+ );
241001
+ newVersion = prerelease2;
241002
+ }
240844
241003
  logger.info(
240845
241004
  `Version bump: ${currentVersion} -> ${newVersion} (${bumpType} bump)`
240846
241005
  );
@@ -240897,10 +241056,15 @@ async function prepareMain(argv) {
240897
241056
  try {
240898
241057
  await createReleaseBranch(git, rev, branchName);
240899
241058
  const oldVersion = await getLatestTag(git, getGitTagPrefix());
241059
+ const changelogBase = await getChangelogBaseTag(
241060
+ git,
241061
+ newVersion,
241062
+ getGitTagPrefix()
241063
+ );
240900
241064
  const { filePath: changelogPath, policy: changelogPolicy } = getChangelogConfig();
240901
241065
  const changelogBody = await prepareChangelog(
240902
241066
  git,
240903
- oldVersion,
241067
+ changelogBase,
240904
241068
  newVersion,
240905
241069
  argv.noChangelog ? "none" /* None */ : changelogPolicy,
240906
241070
  changelogPath
@@ -240925,7 +241089,7 @@ async function prepareMain(argv) {
240925
241089
  const releaseSha = await git.revparse(["HEAD"]);
240926
241090
  setGitHubActionsOutput("branch", branchName);
240927
241091
  setGitHubActionsOutput("sha", releaseSha);
240928
- setGitHubActionsOutput("previous_tag", oldVersion || "");
241092
+ setGitHubActionsOutput("previous_tag", changelogBase || "");
240929
241093
  setGitHubActionsOutput("targets", JSON.stringify(targetIds));
240930
241094
  if (changelogBody) {
240931
241095
  const isCalVer = argv.newVersion === "calver" || getVersioningPolicy() === "calver" /* CalVer */;
@@ -241416,19 +241580,19 @@ function offtin(buf, offset) {
241416
241580
  }
241417
241581
  return magnitude;
241418
241582
  }
241419
- function parsePatchHeader(patch) {
241420
- if (patch.byteLength < HEADER_SIZE) {
241583
+ function parsePatchHeader(patch2) {
241584
+ if (patch2.byteLength < HEADER_SIZE) {
241421
241585
  throw new Error(
241422
- `Patch too small: ${patch.byteLength} bytes (need at least ${HEADER_SIZE})`
241586
+ `Patch too small: ${patch2.byteLength} bytes (need at least ${HEADER_SIZE})`
241423
241587
  );
241424
241588
  }
241425
- const magic = new TextDecoder().decode(patch.subarray(0, 8));
241589
+ const magic = new TextDecoder().decode(patch2.subarray(0, 8));
241426
241590
  if (magic !== TRDIFF10_MAGIC) {
241427
241591
  throw new Error(`Invalid patch format: expected TRDIFF10, got "${magic}"`);
241428
241592
  }
241429
- const controlLen = offtin(patch, 8);
241430
- const diffLen = offtin(patch, 16);
241431
- const newSize = offtin(patch, 24);
241593
+ const controlLen = offtin(patch2, 8);
241594
+ const diffLen = offtin(patch2, 16);
241595
+ const newSize = offtin(patch2, 24);
241432
241596
  if (controlLen < 0 || diffLen < 0 || newSize < 0) {
241433
241597
  throw new Error("Corrupt patch: negative length in header");
241434
241598
  }
@@ -241438,9 +241602,9 @@ function parsePatchHeader(patch) {
241438
241602
  );
241439
241603
  }
241440
241604
  const totalCompressed = HEADER_SIZE + controlLen + diffLen;
241441
- if (totalCompressed > patch.byteLength) {
241605
+ if (totalCompressed > patch2.byteLength) {
241442
241606
  throw new Error(
241443
- `Corrupt patch: header lengths (${totalCompressed}) exceed file size (${patch.byteLength})`
241607
+ `Corrupt patch: header lengths (${totalCompressed}) exceed file size (${patch2.byteLength})`
241444
241608
  );
241445
241609
  }
241446
241610
  return { controlLen, diffLen, newSize };
@@ -241868,11 +242032,11 @@ async function resolveNativeRelease(version2, platform4 = process.platform, arch
241868
242032
  url: url3
241869
242033
  };
241870
242034
  }
241871
- function validateNativePatch(patch) {
241872
- const { controlLen, diffLen, newSize } = parsePatchHeader(patch);
242035
+ function validateNativePatch(patch2) {
242036
+ const { controlLen, diffLen, newSize } = parsePatchHeader(patch2);
241873
242037
  if (newSize > MAX_EXECUTABLE_BYTES)
241874
242038
  throw new Error("Patch output exceeds executable size limit");
241875
- const control = (0, import_node_zlib2.zstdDecompressSync)(patch.subarray(32, 32 + controlLen), {
242039
+ const control = (0, import_node_zlib2.zstdDecompressSync)(patch2.subarray(32, 32 + controlLen), {
241876
242040
  maxOutputLength: 16 * 1024 * 1024
241877
242041
  });
241878
242042
  if (control.length % 24 !== 0)
@@ -241895,8 +242059,8 @@ function validateNativePatch(patch) {
241895
242059
  if (diffBytes + extraBytes !== newSize)
241896
242060
  throw new Error("Patch output size mismatch");
241897
242061
  for (const [compressed, size2] of [
241898
- [patch.subarray(32 + controlLen, 32 + controlLen + diffLen), diffBytes],
241899
- [patch.subarray(32 + controlLen + diffLen), extraBytes]
242062
+ [patch2.subarray(32 + controlLen, 32 + controlLen + diffLen), diffBytes],
242063
+ [patch2.subarray(32 + controlLen + diffLen), extraBytes]
241900
242064
  ]) {
241901
242065
  if ((0, import_node_zlib2.zstdDecompressSync)(compressed, { maxOutputLength: Math.max(1, size2) }).length !== size2)
241902
242066
  throw new Error("Patch block size mismatch");
@@ -241939,15 +242103,15 @@ async function tryNativePatch(release3, runtime, candidate) {
241939
242103
  const actual = new URL(url3);
241940
242104
  if (actual.origin !== expected.origin || actual.username || actual.password || actual.search || actual.hash || decodeURIComponent(actual.pathname) !== decodeURIComponent(expected.pathname))
241941
242105
  throw new Error("Invalid patch asset URL");
241942
- const patch = await download(url3, budget);
241943
- budget -= patch.length;
241944
- validateNativePatch(patch);
241945
- patches.push(patch);
242106
+ const patch2 = await download(url3, budget);
242107
+ budget -= patch2.length;
242108
+ validateNativePatch(patch2);
242109
+ patches.push(patch2);
241946
242110
  }
241947
242111
  if ((await (0, import_promises8.lstat)(runtime.executable)).size > MAX_EXECUTABLE_BYTES)
241948
242112
  return false;
241949
242113
  let bytes = await (0, import_promises8.readFile)(runtime.executable);
241950
- for (const patch of patches) bytes = await applyPatchToMemory(bytes, patch);
242114
+ for (const patch2 of patches) bytes = await applyPatchToMemory(bytes, patch2);
241951
242115
  if ((0, import_node_crypto5.createHash)("sha256").update(bytes).digest("hex") !== release3.rawDigest)
241952
242116
  throw new Error("Patched executable checksum mismatch");
241953
242117
  await safeFs.writeFile(candidate, bytes, { mode: 448 });