@sentry/craft 3.8.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/craft +260 -191
- package/package.json +1 -1
package/dist/craft
CHANGED
|
@@ -1077,13 +1077,13 @@ function _parseInt(input) {
|
|
|
1077
1077
|
function parseSemver(input) {
|
|
1078
1078
|
const match3 = input.match(SEMVER_REGEXP) || [];
|
|
1079
1079
|
const major2 = _parseInt(match3[1]);
|
|
1080
|
-
const
|
|
1081
|
-
const
|
|
1080
|
+
const minor2 = _parseInt(match3[2]);
|
|
1081
|
+
const patch2 = _parseInt(match3[3]);
|
|
1082
1082
|
return {
|
|
1083
1083
|
buildmetadata: match3[5],
|
|
1084
1084
|
major: isNaN(major2) ? void 0 : major2,
|
|
1085
|
-
minor: isNaN(
|
|
1086
|
-
patch: isNaN(
|
|
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 &&
|
|
36314
|
+
const { major: major2 = 0, minor: minor2 = 0 } = parseSemver(process.versions.node ?? "0.0.0");
|
|
36315
|
+
return major2 > 25 || major2 === 25 && minor2 >= 1 || major2 === 24 && minor2 >= 13;
|
|
36316
36316
|
}
|
|
36317
36317
|
function getPackageType(dir) {
|
|
36318
36318
|
if (packageTypeByDir.has(dir)) {
|
|
@@ -46333,13 +46333,13 @@ function requireLoader() {
|
|
|
46333
46333
|
throwError(state2, "ill-formed argument of the YAML directive");
|
|
46334
46334
|
}
|
|
46335
46335
|
const major2 = parseInt(match3[1], 10);
|
|
46336
|
-
const
|
|
46336
|
+
const minor2 = parseInt(match3[2], 10);
|
|
46337
46337
|
if (major2 !== 1) {
|
|
46338
46338
|
throwError(state2, "unacceptable YAML version of the document");
|
|
46339
46339
|
}
|
|
46340
46340
|
state2.version = args[0];
|
|
46341
|
-
state2.checkLineBreaks =
|
|
46342
|
-
if (
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
71187
|
-
module2.exports.parse =
|
|
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
|
|
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
|
|
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) {
|
|
@@ -124103,8 +124131,8 @@ var init_npm = __esm({
|
|
|
124103
124131
|
if (!parsedVersion) {
|
|
124104
124132
|
reportError(`Cannot parse NPM version: "${npmVersionStr}"`);
|
|
124105
124133
|
}
|
|
124106
|
-
const { major: major2 = 0, minor = 0 } = parsedVersion ?? {};
|
|
124107
|
-
if (major2 < NPM_MIN_MAJOR || major2 === NPM_MIN_MAJOR &&
|
|
124134
|
+
const { major: major2 = 0, minor: minor2 = 0 } = parsedVersion ?? {};
|
|
124135
|
+
if (major2 < NPM_MIN_MAJOR || major2 === NPM_MIN_MAJOR && minor2 < NPM_MIN_MINOR) {
|
|
124108
124136
|
reportError(
|
|
124109
124137
|
`NPM version is too old: ${npmVersionStr}. Please update your NodeJS`
|
|
124110
124138
|
);
|
|
@@ -124158,7 +124186,7 @@ var init_npm = __esm({
|
|
|
124158
124186
|
"npm target: OIDC trusted publishing requires npm, but only yarn was found. Install npm >= 11.5.1 to use OIDC."
|
|
124159
124187
|
);
|
|
124160
124188
|
}
|
|
124161
|
-
const { major: major2, minor, patch } = this.npmVersion;
|
|
124189
|
+
const { major: major2, minor: minor2, patch: patch2 } = this.npmVersion;
|
|
124162
124190
|
if (!versionGreaterOrEqualThan(this.npmVersion, NPM_OIDC_MIN_VERSION)) {
|
|
124163
124191
|
const {
|
|
124164
124192
|
major: minMaj,
|
|
@@ -124166,7 +124194,7 @@ var init_npm = __esm({
|
|
|
124166
124194
|
patch: minPat
|
|
124167
124195
|
} = NPM_OIDC_MIN_VERSION;
|
|
124168
124196
|
throw new ConfigurationError(
|
|
124169
|
-
`npm target: OIDC trusted publishing requires npm >= ${minMaj}.${minMin}.${minPat}, but found ${major2}.${
|
|
124197
|
+
`npm target: OIDC trusted publishing requires npm >= ${minMaj}.${minMin}.${minPat}, but found ${major2}.${minor2}.${patch2}. Update npm (or Node.js) to use OIDC.`
|
|
124170
124198
|
);
|
|
124171
124199
|
}
|
|
124172
124200
|
useOidc = true;
|
|
@@ -124179,14 +124207,14 @@ var init_npm = __esm({
|
|
|
124179
124207
|
);
|
|
124180
124208
|
useOidc = true;
|
|
124181
124209
|
} else {
|
|
124182
|
-
const { major: major2, minor, patch } = this.npmVersion;
|
|
124210
|
+
const { major: major2, minor: minor2, patch: patch2 } = this.npmVersion;
|
|
124183
124211
|
const {
|
|
124184
124212
|
major: minMaj,
|
|
124185
124213
|
minor: minMin,
|
|
124186
124214
|
patch: minPat
|
|
124187
124215
|
} = NPM_OIDC_MIN_VERSION;
|
|
124188
124216
|
this.logger.warn(
|
|
124189
|
-
`OIDC environment detected but npm ${major2}.${
|
|
124217
|
+
`OIDC environment detected but npm ${major2}.${minor2}.${patch2} is too old for trusted publishing (requires >= ${minMaj}.${minMin}.${minPat}). Falling through to token-based auth.`
|
|
124190
124218
|
);
|
|
124191
124219
|
}
|
|
124192
124220
|
}
|
|
@@ -135139,23 +135167,23 @@ function decode2(at4, to3) {
|
|
|
135139
135167
|
throw new Error("unexpected end of (decode) payload.");
|
|
135140
135168
|
}
|
|
135141
135169
|
const major2 = (payload[at4] & 224) >> 5;
|
|
135142
|
-
const
|
|
135170
|
+
const minor2 = payload[at4] & 31;
|
|
135143
135171
|
switch (major2) {
|
|
135144
135172
|
case majorUint64:
|
|
135145
135173
|
case majorNegativeInt64:
|
|
135146
135174
|
case majorTag:
|
|
135147
135175
|
let unsignedInt;
|
|
135148
135176
|
let offset;
|
|
135149
|
-
if (
|
|
135150
|
-
unsignedInt =
|
|
135177
|
+
if (minor2 < 24) {
|
|
135178
|
+
unsignedInt = minor2;
|
|
135151
135179
|
offset = 1;
|
|
135152
135180
|
} else {
|
|
135153
|
-
switch (
|
|
135181
|
+
switch (minor2) {
|
|
135154
135182
|
case extendedOneByte:
|
|
135155
135183
|
case extendedFloat16:
|
|
135156
135184
|
case extendedFloat32:
|
|
135157
135185
|
case extendedFloat64:
|
|
135158
|
-
const countLength = minorValueToArgumentLength[
|
|
135186
|
+
const countLength = minorValueToArgumentLength[minor2];
|
|
135159
135187
|
const countOffset = countLength + 1;
|
|
135160
135188
|
offset = countOffset;
|
|
135161
135189
|
if (to3 - at4 < countOffset) {
|
|
@@ -135173,7 +135201,7 @@ function decode2(at4, to3) {
|
|
|
135173
135201
|
}
|
|
135174
135202
|
break;
|
|
135175
135203
|
default:
|
|
135176
|
-
throw new Error(`unexpected minor value ${
|
|
135204
|
+
throw new Error(`unexpected minor value ${minor2}.`);
|
|
135177
135205
|
}
|
|
135178
135206
|
}
|
|
135179
135207
|
if (major2 === majorUint64) {
|
|
@@ -135189,7 +135217,7 @@ function decode2(at4, to3) {
|
|
|
135189
135217
|
_offset = offset;
|
|
135190
135218
|
return castBigInt(negativeInt);
|
|
135191
135219
|
} else {
|
|
135192
|
-
if (
|
|
135220
|
+
if (minor2 === 2 || minor2 === 3) {
|
|
135193
135221
|
const length = decodeCount(at4 + offset, to3);
|
|
135194
135222
|
let b9 = BigInt(0);
|
|
135195
135223
|
const start = at4 + offset + _offset;
|
|
@@ -135197,8 +135225,8 @@ function decode2(at4, to3) {
|
|
|
135197
135225
|
b9 = b9 << BigInt(8) | BigInt(payload[i5]);
|
|
135198
135226
|
}
|
|
135199
135227
|
_offset = offset + _offset + length;
|
|
135200
|
-
return
|
|
135201
|
-
} else if (
|
|
135228
|
+
return minor2 === 3 ? -b9 - BigInt(1) : b9;
|
|
135229
|
+
} else if (minor2 === 4) {
|
|
135202
135230
|
const decimalFraction = decode2(at4 + offset, to3);
|
|
135203
135231
|
const [exponent, mantissa] = decimalFraction;
|
|
135204
135232
|
const normalizer = mantissa < 0 ? -1 : 1;
|
|
@@ -135227,7 +135255,7 @@ function decode2(at4, to3) {
|
|
|
135227
135255
|
case majorMap:
|
|
135228
135256
|
case majorList:
|
|
135229
135257
|
case majorUnstructuredByteString:
|
|
135230
|
-
if (
|
|
135258
|
+
if (minor2 === minorIndefinite) {
|
|
135231
135259
|
switch (major2) {
|
|
135232
135260
|
case majorUtf8String:
|
|
135233
135261
|
return decodeUtf8StringIndefinite(at4, to3);
|
|
@@ -135298,13 +135326,13 @@ function bytesToFloat16(a5, b9) {
|
|
|
135298
135326
|
return scalar * (exponentComponent * summation);
|
|
135299
135327
|
}
|
|
135300
135328
|
function decodeCount(at4, to3) {
|
|
135301
|
-
const
|
|
135302
|
-
if (
|
|
135329
|
+
const minor2 = payload[at4] & 31;
|
|
135330
|
+
if (minor2 < 24) {
|
|
135303
135331
|
_offset = 1;
|
|
135304
|
-
return
|
|
135332
|
+
return minor2;
|
|
135305
135333
|
}
|
|
135306
|
-
if (
|
|
135307
|
-
const countLength = minorValueToArgumentLength[
|
|
135334
|
+
if (minor2 === extendedOneByte || minor2 === extendedFloat16 || minor2 === extendedFloat32 || minor2 === extendedFloat64) {
|
|
135335
|
+
const countLength = minorValueToArgumentLength[minor2];
|
|
135308
135336
|
_offset = countLength + 1;
|
|
135309
135337
|
if (to3 - at4 < _offset) {
|
|
135310
135338
|
throw new Error(`countLength ${countLength} greater than remaining buf len.`);
|
|
@@ -135319,7 +135347,7 @@ function decodeCount(at4, to3) {
|
|
|
135319
135347
|
}
|
|
135320
135348
|
return demote(dataView.getBigUint64(countIndex));
|
|
135321
135349
|
}
|
|
135322
|
-
throw new Error(`unexpected minor value ${
|
|
135350
|
+
throw new Error(`unexpected minor value ${minor2}.`);
|
|
135323
135351
|
}
|
|
135324
135352
|
function decodeUtf8String(at4, to3) {
|
|
135325
135353
|
const length = decodeCount(at4, to3);
|
|
@@ -135343,11 +135371,11 @@ function decodeUtf8StringIndefinite(at4, to3) {
|
|
|
135343
135371
|
return bytesToUtf8(data2, 0, data2.length);
|
|
135344
135372
|
}
|
|
135345
135373
|
const major2 = (payload[at4] & 224) >> 5;
|
|
135346
|
-
const
|
|
135374
|
+
const minor2 = payload[at4] & 31;
|
|
135347
135375
|
if (major2 !== majorUtf8String) {
|
|
135348
135376
|
throw new Error(`unexpected major type ${major2} in indefinite string.`);
|
|
135349
135377
|
}
|
|
135350
|
-
if (
|
|
135378
|
+
if (minor2 === minorIndefinite) {
|
|
135351
135379
|
throw new Error("nested indefinite string.");
|
|
135352
135380
|
}
|
|
135353
135381
|
const bytes = decodeUnstructuredByteString(at4, to3);
|
|
@@ -135381,11 +135409,11 @@ function decodeUnstructuredByteStringIndefinite(at4, to3) {
|
|
|
135381
135409
|
return data2;
|
|
135382
135410
|
}
|
|
135383
135411
|
const major2 = (payload[at4] & 224) >> 5;
|
|
135384
|
-
const
|
|
135412
|
+
const minor2 = payload[at4] & 31;
|
|
135385
135413
|
if (major2 !== majorUnstructuredByteString) {
|
|
135386
135414
|
throw new Error(`unexpected major type ${major2} in indefinite string.`);
|
|
135387
135415
|
}
|
|
135388
|
-
if (
|
|
135416
|
+
if (minor2 === minorIndefinite) {
|
|
135389
135417
|
throw new Error("nested indefinite string.");
|
|
135390
135418
|
}
|
|
135391
135419
|
const bytes = decodeUnstructuredByteString(at4, to3);
|
|
@@ -135475,12 +135503,12 @@ function decodeMapIndefinite(at4, to3) {
|
|
|
135475
135503
|
throw new Error("expected break marker.");
|
|
135476
135504
|
}
|
|
135477
135505
|
function decodeSpecial(at4, to3) {
|
|
135478
|
-
const
|
|
135479
|
-
switch (
|
|
135506
|
+
const minor2 = payload[at4] & 31;
|
|
135507
|
+
switch (minor2) {
|
|
135480
135508
|
case specialTrue:
|
|
135481
135509
|
case specialFalse:
|
|
135482
135510
|
_offset = 1;
|
|
135483
|
-
return
|
|
135511
|
+
return minor2 === specialTrue;
|
|
135484
135512
|
case specialNull:
|
|
135485
135513
|
_offset = 1;
|
|
135486
135514
|
return null;
|
|
@@ -135506,7 +135534,7 @@ function decodeSpecial(at4, to3) {
|
|
|
135506
135534
|
_offset = 9;
|
|
135507
135535
|
return dataView.getFloat64(at4 + 1);
|
|
135508
135536
|
default:
|
|
135509
|
-
throw new Error(`unexpected minor value ${
|
|
135537
|
+
throw new Error(`unexpected minor value ${minor2}.`);
|
|
135510
135538
|
}
|
|
135511
135539
|
}
|
|
135512
135540
|
function castBigInt(bigInt) {
|
|
@@ -159274,8 +159302,8 @@ var require_polyfills = __commonJS({
|
|
|
159274
159302
|
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
|
|
159275
159303
|
}
|
|
159276
159304
|
var chdir;
|
|
159277
|
-
module2.exports =
|
|
159278
|
-
function
|
|
159305
|
+
module2.exports = patch2;
|
|
159306
|
+
function patch2(fs16) {
|
|
159279
159307
|
if (constants4.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
159280
159308
|
patchLchmod(fs16);
|
|
159281
159309
|
}
|
|
@@ -159733,14 +159761,14 @@ var require_graceful_fs = __commonJS({
|
|
|
159733
159761
|
if (!global[gracefulQueue]) {
|
|
159734
159762
|
publishQueue(global, fs16[gracefulQueue]);
|
|
159735
159763
|
}
|
|
159736
|
-
module2.exports =
|
|
159764
|
+
module2.exports = patch2(clone(fs16));
|
|
159737
159765
|
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs16.__patched) {
|
|
159738
|
-
module2.exports =
|
|
159766
|
+
module2.exports = patch2(fs16);
|
|
159739
159767
|
fs16.__patched = true;
|
|
159740
159768
|
}
|
|
159741
|
-
function
|
|
159769
|
+
function patch2(fs17) {
|
|
159742
159770
|
polyfills(fs17);
|
|
159743
|
-
fs17.gracefulify =
|
|
159771
|
+
fs17.gracefulify = patch2;
|
|
159744
159772
|
fs17.createReadStream = createReadStream6;
|
|
159745
159773
|
fs17.createWriteStream = createWriteStream4;
|
|
159746
159774
|
var fs$readFile = fs17.readFile;
|
|
@@ -165899,13 +165927,13 @@ var require_loader = __commonJS({
|
|
|
165899
165927
|
throwError(state2, "ill-formed argument of the YAML directive");
|
|
165900
165928
|
}
|
|
165901
165929
|
const major2 = parseInt(match3[1], 10);
|
|
165902
|
-
const
|
|
165930
|
+
const minor2 = parseInt(match3[2], 10);
|
|
165903
165931
|
if (major2 !== 1) {
|
|
165904
165932
|
throwError(state2, "unacceptable YAML version of the document");
|
|
165905
165933
|
}
|
|
165906
165934
|
state2.version = args[0];
|
|
165907
|
-
state2.checkLineBreaks =
|
|
165908
|
-
if (
|
|
165935
|
+
state2.checkLineBreaks = minor2 < 2;
|
|
165936
|
+
if (minor2 !== 1 && minor2 !== 2) {
|
|
165909
165937
|
throwWarning(state2, "unsupported YAML version of the document");
|
|
165910
165938
|
}
|
|
165911
165939
|
},
|
|
@@ -168264,7 +168292,7 @@ ${codeblock}`, options);
|
|
|
168264
168292
|
function validateTablePeek(ctx, peek, ptr) {
|
|
168265
168293
|
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
168294
|
}
|
|
168267
|
-
function
|
|
168295
|
+
function parse17(toml, options = {}) {
|
|
168268
168296
|
let ctx = {
|
|
168269
168297
|
s: toml,
|
|
168270
168298
|
p: 0,
|
|
@@ -168449,7 +168477,7 @@ ${tables}` : preamble || tables;
|
|
|
168449
168477
|
return str2;
|
|
168450
168478
|
}
|
|
168451
168479
|
var src_default = {
|
|
168452
|
-
parse:
|
|
168480
|
+
parse: parse17,
|
|
168453
168481
|
stringify: stringify4,
|
|
168454
168482
|
TomlDate,
|
|
168455
168483
|
TomlError
|
|
@@ -168457,7 +168485,7 @@ ${tables}` : preamble || tables;
|
|
|
168457
168485
|
exports2.TomlDate = TomlDate;
|
|
168458
168486
|
exports2.TomlError = TomlError;
|
|
168459
168487
|
exports2.default = src_default;
|
|
168460
|
-
exports2.parse =
|
|
168488
|
+
exports2.parse = parse17;
|
|
168461
168489
|
exports2.stringify = stringify4;
|
|
168462
168490
|
}
|
|
168463
168491
|
});
|
|
@@ -170025,7 +170053,7 @@ var require_version = __commonJS({
|
|
|
170025
170053
|
valid: valid2,
|
|
170026
170054
|
clean,
|
|
170027
170055
|
explain,
|
|
170028
|
-
parse:
|
|
170056
|
+
parse: parse17,
|
|
170029
170057
|
stringify: stringify4
|
|
170030
170058
|
};
|
|
170031
170059
|
var validRegex = new RegExp("^" + VERSION_PATTERN + "$", "i");
|
|
@@ -170034,9 +170062,9 @@ var require_version = __commonJS({
|
|
|
170034
170062
|
}
|
|
170035
170063
|
var cleanRegex = new RegExp("^\\s*" + VERSION_PATTERN + "\\s*$", "i");
|
|
170036
170064
|
function clean(version2) {
|
|
170037
|
-
return stringify4(
|
|
170065
|
+
return stringify4(parse17(version2, cleanRegex));
|
|
170038
170066
|
}
|
|
170039
|
-
function
|
|
170067
|
+
function parse17(version2, regex3) {
|
|
170040
170068
|
const { groups } = (regex3 || validRegex).exec(version2) || {};
|
|
170041
170069
|
if (!groups) {
|
|
170042
170070
|
return null;
|
|
@@ -170112,7 +170140,7 @@ var require_version = __commonJS({
|
|
|
170112
170140
|
return null;
|
|
170113
170141
|
}
|
|
170114
170142
|
function explain(version2) {
|
|
170115
|
-
const parsed =
|
|
170143
|
+
const parsed = parse17(version2);
|
|
170116
170144
|
if (!parsed) {
|
|
170117
170145
|
return parsed;
|
|
170118
170146
|
}
|
|
@@ -170146,7 +170174,7 @@ var require_version = __commonJS({
|
|
|
170146
170174
|
var require_operator = __commonJS({
|
|
170147
170175
|
"node_modules/.pnpm/@renovatebot+pep440@4.2.1/node_modules/@renovatebot/pep440/lib/operator.js"(exports2, module2) {
|
|
170148
170176
|
init_import_meta_url();
|
|
170149
|
-
var { parse:
|
|
170177
|
+
var { parse: parse17 } = require_version();
|
|
170150
170178
|
module2.exports = {
|
|
170151
170179
|
compare,
|
|
170152
170180
|
rcompare,
|
|
@@ -170186,8 +170214,8 @@ var require_operator = __commonJS({
|
|
|
170186
170214
|
return version2.toLowerCase() === other.toLowerCase();
|
|
170187
170215
|
}
|
|
170188
170216
|
function compare(version2, other) {
|
|
170189
|
-
const parsedVersion =
|
|
170190
|
-
const parsedOther =
|
|
170217
|
+
const parsedVersion = parse17(version2);
|
|
170218
|
+
const parsedOther = parse17(other);
|
|
170191
170219
|
const keyVersion = calculateKey(parsedVersion);
|
|
170192
170220
|
const keyOther = calculateKey(parsedOther);
|
|
170193
170221
|
return pyCompare(keyVersion, keyOther);
|
|
@@ -170270,7 +170298,7 @@ var require_specifier = __commonJS({
|
|
|
170270
170298
|
].join("");
|
|
170271
170299
|
module2.exports = {
|
|
170272
170300
|
RANGE_PATTERN,
|
|
170273
|
-
parse:
|
|
170301
|
+
parse: parse17,
|
|
170274
170302
|
satisfies: satisfies2,
|
|
170275
170303
|
filter: filter2,
|
|
170276
170304
|
validRange,
|
|
@@ -170279,7 +170307,7 @@ var require_specifier = __commonJS({
|
|
|
170279
170307
|
};
|
|
170280
170308
|
var isEqualityOperator = (op3) => ["==", "!=", "==="].includes(op3);
|
|
170281
170309
|
var rangeRegex = new RegExp("^" + RANGE_PATTERN + "$", "i");
|
|
170282
|
-
function
|
|
170310
|
+
function parse17(ranges) {
|
|
170283
170311
|
if (!ranges.trim()) {
|
|
170284
170312
|
return [];
|
|
170285
170313
|
}
|
|
@@ -170331,7 +170359,7 @@ var require_specifier = __commonJS({
|
|
|
170331
170359
|
return found.length === 0 ? null : found[0];
|
|
170332
170360
|
}
|
|
170333
170361
|
function pick(versions, specifier, options) {
|
|
170334
|
-
const parsed =
|
|
170362
|
+
const parsed = parse17(specifier);
|
|
170335
170363
|
if (!parsed) {
|
|
170336
170364
|
return [];
|
|
170337
170365
|
}
|
|
@@ -170400,7 +170428,7 @@ var require_specifier = __commonJS({
|
|
|
170400
170428
|
return op3(version2, spec.version || spec.legacy);
|
|
170401
170429
|
}
|
|
170402
170430
|
function validRange(specifier) {
|
|
170403
|
-
return Boolean(
|
|
170431
|
+
return Boolean(parse17(specifier));
|
|
170404
170432
|
}
|
|
170405
170433
|
}
|
|
170406
170434
|
});
|
|
@@ -170409,11 +170437,11 @@ var require_specifier = __commonJS({
|
|
|
170409
170437
|
var require_semantic = __commonJS({
|
|
170410
170438
|
"node_modules/.pnpm/@renovatebot+pep440@4.2.1/node_modules/@renovatebot/pep440/lib/semantic.js"(exports2, module2) {
|
|
170411
170439
|
init_import_meta_url();
|
|
170412
|
-
var { explain, parse:
|
|
170440
|
+
var { explain, parse: parse17, stringify: stringify4 } = require_version();
|
|
170413
170441
|
module2.exports = {
|
|
170414
170442
|
major: major2,
|
|
170415
|
-
minor,
|
|
170416
|
-
patch,
|
|
170443
|
+
minor: minor2,
|
|
170444
|
+
patch: patch2,
|
|
170417
170445
|
inc: inc4
|
|
170418
170446
|
};
|
|
170419
170447
|
function major2(input) {
|
|
@@ -170423,7 +170451,7 @@ var require_semantic = __commonJS({
|
|
|
170423
170451
|
}
|
|
170424
170452
|
return version2.release[0];
|
|
170425
170453
|
}
|
|
170426
|
-
function
|
|
170454
|
+
function minor2(input) {
|
|
170427
170455
|
const version2 = explain(input);
|
|
170428
170456
|
if (!version2) {
|
|
170429
170457
|
throw new TypeError("Invalid Version: " + input);
|
|
@@ -170433,7 +170461,7 @@ var require_semantic = __commonJS({
|
|
|
170433
170461
|
}
|
|
170434
170462
|
return version2.release[1];
|
|
170435
170463
|
}
|
|
170436
|
-
function
|
|
170464
|
+
function patch2(input) {
|
|
170437
170465
|
const version2 = explain(input);
|
|
170438
170466
|
if (!version2) {
|
|
170439
170467
|
throw new TypeError("Invalid Version: " + input);
|
|
@@ -170445,7 +170473,7 @@ var require_semantic = __commonJS({
|
|
|
170445
170473
|
}
|
|
170446
170474
|
function inc4(input, release3, preReleaseIdentifier) {
|
|
170447
170475
|
let identifier = preReleaseIdentifier || `a`;
|
|
170448
|
-
const version2 =
|
|
170476
|
+
const version2 = parse17(input);
|
|
170449
170477
|
if (!version2) {
|
|
170450
170478
|
return null;
|
|
170451
170479
|
}
|
|
@@ -170562,7 +170590,7 @@ var require_semantic = __commonJS({
|
|
|
170562
170590
|
var require_pep440 = __commonJS({
|
|
170563
170591
|
"node_modules/.pnpm/@renovatebot+pep440@4.2.1/node_modules/@renovatebot/pep440/index.js"(exports2, module2) {
|
|
170564
170592
|
init_import_meta_url();
|
|
170565
|
-
var { valid: valid2, clean, explain, parse:
|
|
170593
|
+
var { valid: valid2, clean, explain, parse: parse17 } = require_version();
|
|
170566
170594
|
var { lt: lt4, le: le4, eq, ne: ne6, ge: ge4, gt: gt4, compare, rcompare } = require_operator();
|
|
170567
170595
|
var {
|
|
170568
170596
|
filter: filter2,
|
|
@@ -170572,13 +170600,13 @@ var require_pep440 = __commonJS({
|
|
|
170572
170600
|
satisfies: satisfies2,
|
|
170573
170601
|
validRange
|
|
170574
170602
|
} = require_specifier();
|
|
170575
|
-
var { major: major2, minor, patch, inc: inc4 } = require_semantic();
|
|
170603
|
+
var { major: major2, minor: minor2, patch: patch2, inc: inc4 } = require_semantic();
|
|
170576
170604
|
module2.exports = {
|
|
170577
170605
|
// version
|
|
170578
170606
|
valid: valid2,
|
|
170579
170607
|
clean,
|
|
170580
170608
|
explain,
|
|
170581
|
-
parse:
|
|
170609
|
+
parse: parse17,
|
|
170582
170610
|
// operator
|
|
170583
170611
|
lt: lt4,
|
|
170584
170612
|
le: le4,
|
|
@@ -170600,8 +170628,8 @@ var require_pep440 = __commonJS({
|
|
|
170600
170628
|
validRange,
|
|
170601
170629
|
// semantic
|
|
170602
170630
|
major: major2,
|
|
170603
|
-
minor,
|
|
170604
|
-
patch,
|
|
170631
|
+
minor: minor2,
|
|
170632
|
+
patch: patch2,
|
|
170605
170633
|
inc: inc4
|
|
170606
170634
|
};
|
|
170607
170635
|
}
|
|
@@ -175255,7 +175283,7 @@ ${issues}`,
|
|
|
175255
175283
|
return parseConfig(content, filename, schema2, filetype);
|
|
175256
175284
|
}
|
|
175257
175285
|
var import_node_assert2 = __toESM2(require("assert"), 1);
|
|
175258
|
-
var
|
|
175286
|
+
var import_version27 = require_version();
|
|
175259
175287
|
var import_pep440 = require_pep440();
|
|
175260
175288
|
var import_specifier = require_specifier();
|
|
175261
175289
|
function pep440ConstraintFromVersion(v12) {
|
|
@@ -175268,7 +175296,7 @@ ${issues}`,
|
|
|
175268
175296
|
];
|
|
175269
175297
|
}
|
|
175270
175298
|
function unparsePep440Version(v12) {
|
|
175271
|
-
const verstr = (0,
|
|
175299
|
+
const verstr = (0, import_version27.stringify)(v12);
|
|
175272
175300
|
(0, import_node_assert2.default)(verstr != null, "pep440/lib/version:stringify returned null");
|
|
175273
175301
|
return verstr;
|
|
175274
175302
|
}
|
|
@@ -176103,11 +176131,11 @@ ${issues}`,
|
|
|
176103
176131
|
}
|
|
176104
176132
|
const major2 = version2[0];
|
|
176105
176133
|
const minorStr = version2.substring(1);
|
|
176106
|
-
const
|
|
176107
|
-
if (isNaN(
|
|
176134
|
+
const minor2 = parseInt(minorStr, 10);
|
|
176135
|
+
if (isNaN(minor2) || minor2 > 255) {
|
|
176108
176136
|
return null;
|
|
176109
176137
|
}
|
|
176110
|
-
return `${major2}.${
|
|
176138
|
+
return `${major2}.${minor2}`;
|
|
176111
176139
|
}
|
|
176112
176140
|
function rfindNumericChar(s8) {
|
|
176113
176141
|
for (let i5 = s8.length - 1; i5 >= 0; i5--) {
|
|
@@ -176916,7 +176944,7 @@ ${issues}`,
|
|
|
176916
176944
|
return c7;
|
|
176917
176945
|
}
|
|
176918
176946
|
const majorMinor = parts.slice(0, 2).join(".");
|
|
176919
|
-
const
|
|
176947
|
+
const patch2 = parseInt(parts[2], 10);
|
|
176920
176948
|
switch (c7.operator) {
|
|
176921
176949
|
case "==":
|
|
176922
176950
|
return { operator: "==", version: majorMinor, prefix: ".*" };
|
|
@@ -176929,9 +176957,9 @@ ${issues}`,
|
|
|
176929
176957
|
case "<=":
|
|
176930
176958
|
return { operator: "<=", version: majorMinor, prefix: "" };
|
|
176931
176959
|
case ">":
|
|
176932
|
-
return
|
|
176960
|
+
return patch2 === 0 ? { operator: ">", version: majorMinor, prefix: "" } : { operator: ">=", version: majorMinor, prefix: "" };
|
|
176933
176961
|
case "<":
|
|
176934
|
-
return
|
|
176962
|
+
return patch2 === 0 ? { operator: "<", version: majorMinor, prefix: "" } : { operator: "<=", version: majorMinor, prefix: "" };
|
|
176935
176963
|
default:
|
|
176936
176964
|
return c7;
|
|
176937
176965
|
}
|
|
@@ -179432,8 +179460,8 @@ var require_dist12 = __commonJS({
|
|
|
179432
179460
|
Object.setPrototypeOf(process.chdir, chdir);
|
|
179433
179461
|
}
|
|
179434
179462
|
var chdir;
|
|
179435
|
-
module22.exports =
|
|
179436
|
-
function
|
|
179463
|
+
module22.exports = patch2;
|
|
179464
|
+
function patch2(fs122) {
|
|
179437
179465
|
if (constants4.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
179438
179466
|
patchLchmod(fs122);
|
|
179439
179467
|
}
|
|
@@ -179912,14 +179940,14 @@ var require_dist12 = __commonJS({
|
|
|
179912
179940
|
if (!global[gracefulQueue]) {
|
|
179913
179941
|
publishQueue(global, fs122[gracefulQueue]);
|
|
179914
179942
|
}
|
|
179915
|
-
module22.exports =
|
|
179943
|
+
module22.exports = patch2(clone(fs122));
|
|
179916
179944
|
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs122.__patched) {
|
|
179917
|
-
module22.exports =
|
|
179945
|
+
module22.exports = patch2(fs122);
|
|
179918
179946
|
fs122.__patched = true;
|
|
179919
179947
|
}
|
|
179920
|
-
function
|
|
179948
|
+
function patch2(fs132) {
|
|
179921
179949
|
polyfills(fs132);
|
|
179922
|
-
fs132.gracefulify =
|
|
179950
|
+
fs132.gracefulify = patch2;
|
|
179923
179951
|
fs132.createReadStream = createReadStream6;
|
|
179924
179952
|
fs132.createWriteStream = createWriteStream4;
|
|
179925
179953
|
var fs$readFile = fs132.readFile;
|
|
@@ -187406,12 +187434,12 @@ var require_dist12 = __commonJS({
|
|
|
187406
187434
|
function major2(a5, loose) {
|
|
187407
187435
|
return new SemVer22(a5, loose).major;
|
|
187408
187436
|
}
|
|
187409
|
-
exports3.minor =
|
|
187410
|
-
function
|
|
187437
|
+
exports3.minor = minor2;
|
|
187438
|
+
function minor2(a5, loose) {
|
|
187411
187439
|
return new SemVer22(a5, loose).minor;
|
|
187412
187440
|
}
|
|
187413
|
-
exports3.patch =
|
|
187414
|
-
function
|
|
187441
|
+
exports3.patch = patch2;
|
|
187442
|
+
function patch2(a5, loose) {
|
|
187415
187443
|
return new SemVer22(a5, loose).patch;
|
|
187416
187444
|
}
|
|
187417
187445
|
exports3.compare = compare;
|
|
@@ -188074,11 +188102,11 @@ var require_dist12 = __commonJS({
|
|
|
188074
188102
|
var resolveCommand = require_resolveCommand();
|
|
188075
188103
|
var escape2 = require_escape2();
|
|
188076
188104
|
var readShebang = require_readShebang();
|
|
188077
|
-
var
|
|
188105
|
+
var semver7 = require_semver3();
|
|
188078
188106
|
var isWin2 = process.platform === "win32";
|
|
188079
188107
|
var isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
188080
188108
|
var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
188081
|
-
var supportsShellOption = niceTry(() =>
|
|
188109
|
+
var supportsShellOption = niceTry(() => semver7.satisfies(process.version, "^4.8.0 || ^5.7.0 || >= 6.0.0", true)) || false;
|
|
188082
188110
|
function detectShebang(parsed) {
|
|
188083
188111
|
parsed.file = resolveCommand(parsed);
|
|
188084
188112
|
const shebang = parsed.file && readShebang(parsed.file);
|
|
@@ -188661,12 +188689,12 @@ var require_dist12 = __commonJS({
|
|
|
188661
188689
|
function major2(a5, loose) {
|
|
188662
188690
|
return new SemVer22(a5, loose).major;
|
|
188663
188691
|
}
|
|
188664
|
-
exports3.minor =
|
|
188665
|
-
function
|
|
188692
|
+
exports3.minor = minor2;
|
|
188693
|
+
function minor2(a5, loose) {
|
|
188666
188694
|
return new SemVer22(a5, loose).minor;
|
|
188667
188695
|
}
|
|
188668
|
-
exports3.patch =
|
|
188669
|
-
function
|
|
188696
|
+
exports3.patch = patch2;
|
|
188697
|
+
function patch2(a5, loose) {
|
|
188670
188698
|
return new SemVer22(a5, loose).patch;
|
|
188671
188699
|
}
|
|
188672
188700
|
exports3.compare = compare;
|
|
@@ -190606,7 +190634,7 @@ var require_dist12 = __commonJS({
|
|
|
190606
190634
|
}
|
|
190607
190635
|
var directiveHandlers = {
|
|
190608
190636
|
YAML: function handleYamlDirective(state2, name, args) {
|
|
190609
|
-
var match3, major2,
|
|
190637
|
+
var match3, major2, minor2;
|
|
190610
190638
|
if (state2.version !== null) {
|
|
190611
190639
|
throwError(state2, "duplication of %YAML directive");
|
|
190612
190640
|
}
|
|
@@ -190618,13 +190646,13 @@ var require_dist12 = __commonJS({
|
|
|
190618
190646
|
throwError(state2, "ill-formed argument of the YAML directive");
|
|
190619
190647
|
}
|
|
190620
190648
|
major2 = parseInt(match3[1], 10);
|
|
190621
|
-
|
|
190649
|
+
minor2 = parseInt(match3[2], 10);
|
|
190622
190650
|
if (major2 !== 1) {
|
|
190623
190651
|
throwError(state2, "unacceptable YAML version of the document");
|
|
190624
190652
|
}
|
|
190625
190653
|
state2.version = args[0];
|
|
190626
|
-
state2.checkLineBreaks =
|
|
190627
|
-
if (
|
|
190654
|
+
state2.checkLineBreaks = minor2 < 2;
|
|
190655
|
+
if (minor2 !== 1 && minor2 !== 2) {
|
|
190628
190656
|
throwWarning(state2, "unsupported YAML version of the document");
|
|
190629
190657
|
}
|
|
190630
190658
|
},
|
|
@@ -210479,7 +210507,7 @@ ${codeblock}`, options);
|
|
|
210479
210507
|
}
|
|
210480
210508
|
return [k7, t6, state2.c];
|
|
210481
210509
|
}
|
|
210482
|
-
function
|
|
210510
|
+
function parse17(toml, { maxDepth = 1e3, integersAsBigInt } = {}) {
|
|
210483
210511
|
let res = {};
|
|
210484
210512
|
let meta = {};
|
|
210485
210513
|
let tbl = res;
|
|
@@ -210570,7 +210598,7 @@ ${codeblock}`, options);
|
|
|
210570
210598
|
if (name.endsWith(".json")) {
|
|
210571
210599
|
return JSON.parse(str2);
|
|
210572
210600
|
} else if (name.endsWith(".toml")) {
|
|
210573
|
-
return
|
|
210601
|
+
return parse17(str2);
|
|
210574
210602
|
} else if (name.endsWith(".yaml") || name.endsWith(".yml")) {
|
|
210575
210603
|
return import_js_yaml9.default.safeLoad(str2, { filename: name });
|
|
210576
210604
|
}
|
|
@@ -217308,7 +217336,7 @@ var require_parse2 = __commonJS({
|
|
|
217308
217336
|
CHAR_NO_BREAK_SPACE,
|
|
217309
217337
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE
|
|
217310
217338
|
} = require_constants();
|
|
217311
|
-
var
|
|
217339
|
+
var parse17 = (input, options = {}) => {
|
|
217312
217340
|
if (typeof input !== "string") {
|
|
217313
217341
|
throw new TypeError("Expected a string");
|
|
217314
217342
|
}
|
|
@@ -217511,7 +217539,7 @@ var require_parse2 = __commonJS({
|
|
|
217511
217539
|
push({ type: "eos" });
|
|
217512
217540
|
return ast;
|
|
217513
217541
|
};
|
|
217514
|
-
module2.exports =
|
|
217542
|
+
module2.exports = parse17;
|
|
217515
217543
|
}
|
|
217516
217544
|
});
|
|
217517
217545
|
|
|
@@ -217523,7 +217551,7 @@ var require_braces = __commonJS({
|
|
|
217523
217551
|
var stringify4 = require_stringify2();
|
|
217524
217552
|
var compile2 = require_compile();
|
|
217525
217553
|
var expand3 = require_expand();
|
|
217526
|
-
var
|
|
217554
|
+
var parse17 = require_parse2();
|
|
217527
217555
|
var braces = (input, options = {}) => {
|
|
217528
217556
|
let output = [];
|
|
217529
217557
|
if (Array.isArray(input)) {
|
|
@@ -217543,7 +217571,7 @@ var require_braces = __commonJS({
|
|
|
217543
217571
|
}
|
|
217544
217572
|
return output;
|
|
217545
217573
|
};
|
|
217546
|
-
braces.parse = (input, options = {}) =>
|
|
217574
|
+
braces.parse = (input, options = {}) => parse17(input, options);
|
|
217547
217575
|
braces.stringify = (input, options = {}) => {
|
|
217548
217576
|
if (typeof input === "string") {
|
|
217549
217577
|
return stringify4(braces.parse(input, options), options);
|
|
@@ -218411,7 +218439,7 @@ var require_parse3 = __commonJS({
|
|
|
218411
218439
|
}
|
|
218412
218440
|
return { risky: false };
|
|
218413
218441
|
};
|
|
218414
|
-
var
|
|
218442
|
+
var parse17 = (input, options) => {
|
|
218415
218443
|
if (typeof input !== "string") {
|
|
218416
218444
|
throw new TypeError("Expected a string");
|
|
218417
218445
|
}
|
|
@@ -218582,7 +218610,7 @@ var require_parse3 = __commonJS({
|
|
|
218582
218610
|
output = token.close = `)$))${extglobStar}`;
|
|
218583
218611
|
}
|
|
218584
218612
|
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
218585
|
-
const expression =
|
|
218613
|
+
const expression = parse17(rest, { ...options, fastpaths: false }).output;
|
|
218586
218614
|
output = token.close = `)${expression})${extglobStar})`;
|
|
218587
218615
|
}
|
|
218588
218616
|
if (token.prev.type === "bos") {
|
|
@@ -219107,7 +219135,7 @@ var require_parse3 = __commonJS({
|
|
|
219107
219135
|
}
|
|
219108
219136
|
return state2;
|
|
219109
219137
|
};
|
|
219110
|
-
|
|
219138
|
+
parse17.fastpaths = (input, options) => {
|
|
219111
219139
|
const opts = { ...options };
|
|
219112
219140
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
219113
219141
|
const len = input.length;
|
|
@@ -219173,7 +219201,7 @@ var require_parse3 = __commonJS({
|
|
|
219173
219201
|
}
|
|
219174
219202
|
return source;
|
|
219175
219203
|
};
|
|
219176
|
-
module2.exports =
|
|
219204
|
+
module2.exports = parse17;
|
|
219177
219205
|
}
|
|
219178
219206
|
});
|
|
219179
219207
|
|
|
@@ -219184,7 +219212,7 @@ var require_picomatch = __commonJS({
|
|
|
219184
219212
|
init_import_meta_url();
|
|
219185
219213
|
var path21 = require("path");
|
|
219186
219214
|
var scan2 = require_scan();
|
|
219187
|
-
var
|
|
219215
|
+
var parse17 = require_parse3();
|
|
219188
219216
|
var utils = require_utils6();
|
|
219189
219217
|
var constants4 = require_constants2();
|
|
219190
219218
|
var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
@@ -219272,7 +219300,7 @@ var require_picomatch = __commonJS({
|
|
|
219272
219300
|
picomatch.isMatch = (str2, patterns, options) => picomatch(patterns, options)(str2);
|
|
219273
219301
|
picomatch.parse = (pattern, options) => {
|
|
219274
219302
|
if (Array.isArray(pattern)) return pattern.map((p8) => picomatch.parse(p8, options));
|
|
219275
|
-
return
|
|
219303
|
+
return parse17(pattern, { ...options, fastpaths: false });
|
|
219276
219304
|
};
|
|
219277
219305
|
picomatch.scan = (input, options) => scan2(input, options);
|
|
219278
219306
|
picomatch.compileRe = (state2, options, returnOutput = false, returnState = false) => {
|
|
@@ -219298,10 +219326,10 @@ var require_picomatch = __commonJS({
|
|
|
219298
219326
|
}
|
|
219299
219327
|
let parsed = { negated: false, fastpaths: true };
|
|
219300
219328
|
if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
|
|
219301
|
-
parsed.output =
|
|
219329
|
+
parsed.output = parse17.fastpaths(input, options);
|
|
219302
219330
|
}
|
|
219303
219331
|
if (!parsed.output) {
|
|
219304
|
-
parsed =
|
|
219332
|
+
parsed = parse17(input, options);
|
|
219305
219333
|
}
|
|
219306
219334
|
return picomatch.compileRe(parsed, options, returnOutput, returnState);
|
|
219307
219335
|
};
|
|
@@ -222687,7 +222715,7 @@ var require_ms2 = __commonJS({
|
|
|
222687
222715
|
options = options || {};
|
|
222688
222716
|
var type2 = typeof val;
|
|
222689
222717
|
if (type2 === "string" && val.length > 0) {
|
|
222690
|
-
return
|
|
222718
|
+
return parse17(val);
|
|
222691
222719
|
} else if (type2 === "number" && isFinite(val)) {
|
|
222692
222720
|
return options.long ? fmtLong2(val) : fmtShort2(val);
|
|
222693
222721
|
}
|
|
@@ -222695,7 +222723,7 @@ var require_ms2 = __commonJS({
|
|
|
222695
222723
|
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
222696
222724
|
);
|
|
222697
222725
|
};
|
|
222698
|
-
function
|
|
222726
|
+
function parse17(str2) {
|
|
222699
222727
|
str2 = String(str2);
|
|
222700
222728
|
if (str2.length > 100) {
|
|
222701
222729
|
return;
|
|
@@ -230711,7 +230739,7 @@ var require_package7 = __commonJS({
|
|
|
230711
230739
|
"package.json"(exports2, module2) {
|
|
230712
230740
|
module2.exports = {
|
|
230713
230741
|
name: "@sentry/craft",
|
|
230714
|
-
version: "3.
|
|
230742
|
+
version: "3.9.0",
|
|
230715
230743
|
description: "The universal sentry workflow CLI",
|
|
230716
230744
|
main: "dist/craft",
|
|
230717
230745
|
repository: "https://github.com/getsentry/craft",
|
|
@@ -230919,7 +230947,7 @@ function getPackage() {
|
|
|
230919
230947
|
}
|
|
230920
230948
|
function getPackageVersion3() {
|
|
230921
230949
|
const { version: version2 } = getPackage();
|
|
230922
|
-
const buildInfo = "
|
|
230950
|
+
const buildInfo = "2e29b0819113d334c15da3d8cac2138cb9dc111a";
|
|
230923
230951
|
return buildInfo ? `${version2} (${buildInfo})` : version2;
|
|
230924
230952
|
}
|
|
230925
230953
|
function semVerToString(s8) {
|
|
@@ -231436,7 +231464,7 @@ var require_parse4 = __commonJS({
|
|
|
231436
231464
|
"use strict";
|
|
231437
231465
|
init_import_meta_url();
|
|
231438
231466
|
var SemVer5 = require_semver();
|
|
231439
|
-
var
|
|
231467
|
+
var parse17 = (version2, options, throwErrors = false) => {
|
|
231440
231468
|
if (version2 instanceof SemVer5) {
|
|
231441
231469
|
return version2;
|
|
231442
231470
|
}
|
|
@@ -231449,7 +231477,7 @@ var require_parse4 = __commonJS({
|
|
|
231449
231477
|
throw er3;
|
|
231450
231478
|
}
|
|
231451
231479
|
};
|
|
231452
|
-
module2.exports =
|
|
231480
|
+
module2.exports = parse17;
|
|
231453
231481
|
}
|
|
231454
231482
|
});
|
|
231455
231483
|
|
|
@@ -231458,9 +231486,9 @@ var require_valid = __commonJS({
|
|
|
231458
231486
|
"node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/valid.js"(exports2, module2) {
|
|
231459
231487
|
"use strict";
|
|
231460
231488
|
init_import_meta_url();
|
|
231461
|
-
var
|
|
231489
|
+
var parse17 = require_parse4();
|
|
231462
231490
|
var valid2 = (version2, options) => {
|
|
231463
|
-
const v12 =
|
|
231491
|
+
const v12 = parse17(version2, options);
|
|
231464
231492
|
return v12 ? v12.version : null;
|
|
231465
231493
|
};
|
|
231466
231494
|
module2.exports = valid2;
|
|
@@ -231472,9 +231500,9 @@ var require_clean = __commonJS({
|
|
|
231472
231500
|
"node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/clean.js"(exports2, module2) {
|
|
231473
231501
|
"use strict";
|
|
231474
231502
|
init_import_meta_url();
|
|
231475
|
-
var
|
|
231503
|
+
var parse17 = require_parse4();
|
|
231476
231504
|
var clean = (version2, options) => {
|
|
231477
|
-
const s8 =
|
|
231505
|
+
const s8 = parse17(version2.trim().replace(/^[=v]+/, ""), options);
|
|
231478
231506
|
return s8 ? s8.version : null;
|
|
231479
231507
|
};
|
|
231480
231508
|
module2.exports = clean;
|
|
@@ -231511,10 +231539,10 @@ var require_diff = __commonJS({
|
|
|
231511
231539
|
"node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.js"(exports2, module2) {
|
|
231512
231540
|
"use strict";
|
|
231513
231541
|
init_import_meta_url();
|
|
231514
|
-
var
|
|
231542
|
+
var parse17 = require_parse4();
|
|
231515
231543
|
var diff = (version1, version2) => {
|
|
231516
|
-
const v12 =
|
|
231517
|
-
const v22 =
|
|
231544
|
+
const v12 = parse17(version1, null, true);
|
|
231545
|
+
const v22 = parse17(version2, null, true);
|
|
231518
231546
|
const comparison = v12.compare(v22);
|
|
231519
231547
|
if (comparison === 0) {
|
|
231520
231548
|
return null;
|
|
@@ -231568,8 +231596,8 @@ var require_minor = __commonJS({
|
|
|
231568
231596
|
"use strict";
|
|
231569
231597
|
init_import_meta_url();
|
|
231570
231598
|
var SemVer5 = require_semver();
|
|
231571
|
-
var
|
|
231572
|
-
module2.exports =
|
|
231599
|
+
var minor2 = (a5, loose) => new SemVer5(a5, loose).minor;
|
|
231600
|
+
module2.exports = minor2;
|
|
231573
231601
|
}
|
|
231574
231602
|
});
|
|
231575
231603
|
|
|
@@ -231579,8 +231607,8 @@ var require_patch = __commonJS({
|
|
|
231579
231607
|
"use strict";
|
|
231580
231608
|
init_import_meta_url();
|
|
231581
231609
|
var SemVer5 = require_semver();
|
|
231582
|
-
var
|
|
231583
|
-
module2.exports =
|
|
231610
|
+
var patch2 = (a5, loose) => new SemVer5(a5, loose).patch;
|
|
231611
|
+
module2.exports = patch2;
|
|
231584
231612
|
}
|
|
231585
231613
|
});
|
|
231586
231614
|
|
|
@@ -231589,9 +231617,9 @@ var require_prerelease = __commonJS({
|
|
|
231589
231617
|
"node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/prerelease.js"(exports2, module2) {
|
|
231590
231618
|
"use strict";
|
|
231591
231619
|
init_import_meta_url();
|
|
231592
|
-
var
|
|
231620
|
+
var parse17 = require_parse4();
|
|
231593
231621
|
var prerelease2 = (version2, options) => {
|
|
231594
|
-
const parsed =
|
|
231622
|
+
const parsed = parse17(version2, options);
|
|
231595
231623
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
231596
231624
|
};
|
|
231597
231625
|
module2.exports = prerelease2;
|
|
@@ -231791,7 +231819,7 @@ var require_coerce = __commonJS({
|
|
|
231791
231819
|
"use strict";
|
|
231792
231820
|
init_import_meta_url();
|
|
231793
231821
|
var SemVer5 = require_semver();
|
|
231794
|
-
var
|
|
231822
|
+
var parse17 = require_parse4();
|
|
231795
231823
|
var { safeRe: re6, t: t6 } = require_re();
|
|
231796
231824
|
var coerce = (version2, options) => {
|
|
231797
231825
|
if (version2 instanceof SemVer5) {
|
|
@@ -231822,11 +231850,11 @@ var require_coerce = __commonJS({
|
|
|
231822
231850
|
return null;
|
|
231823
231851
|
}
|
|
231824
231852
|
const major2 = match3[2];
|
|
231825
|
-
const
|
|
231826
|
-
const
|
|
231853
|
+
const minor2 = match3[3] || "0";
|
|
231854
|
+
const patch2 = match3[4] || "0";
|
|
231827
231855
|
const prerelease2 = options.includePrerelease && match3[5] ? `-${match3[5]}` : "";
|
|
231828
231856
|
const build = options.includePrerelease && match3[6] ? `+${match3[6]}` : "";
|
|
231829
|
-
return
|
|
231857
|
+
return parse17(`${major2}.${minor2}.${patch2}${prerelease2}${build}`, options);
|
|
231830
231858
|
};
|
|
231831
231859
|
module2.exports = coerce;
|
|
231832
231860
|
}
|
|
@@ -232859,14 +232887,14 @@ var require_semver2 = __commonJS({
|
|
|
232859
232887
|
var constants4 = require_constants4();
|
|
232860
232888
|
var SemVer5 = require_semver();
|
|
232861
232889
|
var identifiers = require_identifiers();
|
|
232862
|
-
var
|
|
232890
|
+
var parse17 = require_parse4();
|
|
232863
232891
|
var valid2 = require_valid();
|
|
232864
232892
|
var clean = require_clean();
|
|
232865
232893
|
var inc4 = require_inc();
|
|
232866
232894
|
var diff = require_diff();
|
|
232867
232895
|
var major2 = require_major();
|
|
232868
|
-
var
|
|
232869
|
-
var
|
|
232896
|
+
var minor2 = require_minor();
|
|
232897
|
+
var patch2 = require_patch();
|
|
232870
232898
|
var prerelease2 = require_prerelease();
|
|
232871
232899
|
var compare = require_compare();
|
|
232872
232900
|
var rcompare = require_rcompare();
|
|
@@ -232897,14 +232925,14 @@ var require_semver2 = __commonJS({
|
|
|
232897
232925
|
var simplifyRange = require_simplify();
|
|
232898
232926
|
var subset = require_subset();
|
|
232899
232927
|
module2.exports = {
|
|
232900
|
-
parse:
|
|
232928
|
+
parse: parse17,
|
|
232901
232929
|
valid: valid2,
|
|
232902
232930
|
clean,
|
|
232903
232931
|
inc: inc4,
|
|
232904
232932
|
diff,
|
|
232905
232933
|
major: major2,
|
|
232906
|
-
minor,
|
|
232907
|
-
patch,
|
|
232934
|
+
minor: minor2,
|
|
232935
|
+
patch: patch2,
|
|
232908
232936
|
prerelease: prerelease2,
|
|
232909
232937
|
compare,
|
|
232910
232938
|
rcompare,
|
|
@@ -233381,7 +233409,7 @@ var require_parse5 = __commonJS({
|
|
|
233381
233409
|
[]
|
|
233382
233410
|
);
|
|
233383
233411
|
}
|
|
233384
|
-
module2.exports = function
|
|
233412
|
+
module2.exports = function parse17(s8, env3, opts) {
|
|
233385
233413
|
var mapped = parseInternal(s8, env3, opts);
|
|
233386
233414
|
if (typeof env3 !== "function") {
|
|
233387
233415
|
return mapped;
|
|
@@ -233506,7 +233534,7 @@ var require_path_arg = __commonJS({
|
|
|
233506
233534
|
"node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"(exports2, module2) {
|
|
233507
233535
|
init_import_meta_url();
|
|
233508
233536
|
var platform4 = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
233509
|
-
var { resolve: resolve11, parse:
|
|
233537
|
+
var { resolve: resolve11, parse: parse17 } = require("path");
|
|
233510
233538
|
var pathArg = (path21) => {
|
|
233511
233539
|
if (/\0/.test(path21)) {
|
|
233512
233540
|
throw Object.assign(
|
|
@@ -233520,7 +233548,7 @@ var require_path_arg = __commonJS({
|
|
|
233520
233548
|
path21 = resolve11(path21);
|
|
233521
233549
|
if (platform4 === "win32") {
|
|
233522
233550
|
const badWinChars = /[*|"<>?:]/;
|
|
233523
|
-
const { root } =
|
|
233551
|
+
const { root } = parse17(path21);
|
|
233524
233552
|
if (badWinChars.test(path21.substr(root.length))) {
|
|
233525
233553
|
throw Object.assign(new Error("Illegal characters in path."), {
|
|
233526
233554
|
path: path21,
|
|
@@ -238127,9 +238155,9 @@ var YargsInstance = class {
|
|
|
238127
238155
|
__classPrivateFieldSet5(this, _YargsInstance_hasOutput, true, "f");
|
|
238128
238156
|
if (!__classPrivateFieldGet6(this, _YargsInstance_usage, "f").hasCachedHelpMessage()) {
|
|
238129
238157
|
if (!this.parsed) {
|
|
238130
|
-
const
|
|
238131
|
-
if (isPromise2(
|
|
238132
|
-
return
|
|
238158
|
+
const parse17 = this[kRunYargsParserAndExecuteCommands](__classPrivateFieldGet6(this, _YargsInstance_processArgs, "f"), void 0, void 0, 0, true);
|
|
238159
|
+
if (isPromise2(parse17)) {
|
|
238160
|
+
return parse17.then(() => {
|
|
238133
238161
|
return __classPrivateFieldGet6(this, _YargsInstance_usage, "f").help();
|
|
238134
238162
|
});
|
|
238135
238163
|
}
|
|
@@ -238473,9 +238501,9 @@ var YargsInstance = class {
|
|
|
238473
238501
|
__classPrivateFieldSet5(this, _YargsInstance_hasOutput, true, "f");
|
|
238474
238502
|
if (!__classPrivateFieldGet6(this, _YargsInstance_usage, "f").hasCachedHelpMessage()) {
|
|
238475
238503
|
if (!this.parsed) {
|
|
238476
|
-
const
|
|
238477
|
-
if (isPromise2(
|
|
238478
|
-
|
|
238504
|
+
const parse17 = this[kRunYargsParserAndExecuteCommands](__classPrivateFieldGet6(this, _YargsInstance_processArgs, "f"), void 0, void 0, 0, true);
|
|
238505
|
+
if (isPromise2(parse17)) {
|
|
238506
|
+
parse17.then(() => {
|
|
238479
238507
|
__classPrivateFieldGet6(this, _YargsInstance_usage, "f").showHelp(level);
|
|
238480
238508
|
});
|
|
238481
238509
|
return this;
|
|
@@ -239162,6 +239190,7 @@ __export(prepare_exports, {
|
|
|
239162
239190
|
init_import_meta_url();
|
|
239163
239191
|
var import_fs33 = require("fs");
|
|
239164
239192
|
var import_path34 = require("path");
|
|
239193
|
+
var semver5 = __toESM(require_semver2());
|
|
239165
239194
|
init_dryRun();
|
|
239166
239195
|
init_config2();
|
|
239167
239196
|
init_logger2();
|
|
@@ -239183,6 +239212,20 @@ function calculateNextVersion(currentVersion, bumpType) {
|
|
|
239183
239212
|
}
|
|
239184
239213
|
return newVersion;
|
|
239185
239214
|
}
|
|
239215
|
+
var NEW_PRERELEASE_ID = "alpha";
|
|
239216
|
+
function calculatePrerelease(version2, currentVersion) {
|
|
239217
|
+
const current = semver.parse(currentVersion);
|
|
239218
|
+
if (current?.prerelease.length && version2 === `${current.major}.${current.minor}.${current.patch}`) {
|
|
239219
|
+
const newVersion = semver.inc(current, "prerelease");
|
|
239220
|
+
if (!newVersion) {
|
|
239221
|
+
throw new Error(
|
|
239222
|
+
`Failed to increment prerelease version "${currentVersion}"`
|
|
239223
|
+
);
|
|
239224
|
+
}
|
|
239225
|
+
return newVersion;
|
|
239226
|
+
}
|
|
239227
|
+
return `${version2}-${NEW_PRERELEASE_ID}.0`;
|
|
239228
|
+
}
|
|
239186
239229
|
async function getChangelogWithBumpType(git, rev) {
|
|
239187
239230
|
logger.info(
|
|
239188
239231
|
`Analyzing commits since ${rev || "(beginning of history)"} for auto-versioning...`
|
|
@@ -239233,17 +239276,17 @@ async function calculateCalVer(git, config) {
|
|
|
239233
239276
|
const searchPrefix = `${gitTagPrefix}${datePart}.`;
|
|
239234
239277
|
logger.debug(`CalVer: searching for tags with prefix: ${searchPrefix}`);
|
|
239235
239278
|
const tags = await git.tags();
|
|
239236
|
-
let
|
|
239279
|
+
let patch2 = 0;
|
|
239237
239280
|
for (const tag2 of tags.all) {
|
|
239238
239281
|
if (tag2.startsWith(searchPrefix)) {
|
|
239239
239282
|
const patchStr = tag2.slice(searchPrefix.length);
|
|
239240
239283
|
const patchNum = parseInt(patchStr, 10);
|
|
239241
|
-
if (!isNaN(patchNum) && patchNum >=
|
|
239242
|
-
|
|
239284
|
+
if (!isNaN(patchNum) && patchNum >= patch2) {
|
|
239285
|
+
patch2 = patchNum + 1;
|
|
239243
239286
|
}
|
|
239244
239287
|
}
|
|
239245
239288
|
}
|
|
239246
|
-
const version2 = `${datePart}.${
|
|
239289
|
+
const version2 = `${datePart}.${patch2}`;
|
|
239247
239290
|
logger.info(`CalVer: determined version ${version2}`);
|
|
239248
239291
|
return version2;
|
|
239249
239292
|
}
|
|
@@ -240508,8 +240551,9 @@ var command4 = ["prepare [NEW-VERSION]"];
|
|
|
240508
240551
|
var aliases2 = ["p", "prerelease", "prepublish", "prepare", "release"];
|
|
240509
240552
|
var description3 = "\u{1F6A2} Prepare a new release branch";
|
|
240510
240553
|
var AUTO_VERSION_MIN_VERSION2 = "2.14.0";
|
|
240554
|
+
var PRERELEASE_VERSION_MIN_VERSION = "3.9.0";
|
|
240511
240555
|
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',
|
|
240556
|
+
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
240557
|
type: "string"
|
|
240514
240558
|
}).option("rev", {
|
|
240515
240559
|
alias: "r",
|
|
@@ -240551,6 +240595,9 @@ function checkVersionOrPart(argv, _opt) {
|
|
|
240551
240595
|
if (version2 === "auto") {
|
|
240552
240596
|
return true;
|
|
240553
240597
|
}
|
|
240598
|
+
if (version2 === "pre") {
|
|
240599
|
+
return true;
|
|
240600
|
+
}
|
|
240554
240601
|
if (version2 === "calver") {
|
|
240555
240602
|
return true;
|
|
240556
240603
|
}
|
|
@@ -240823,24 +240870,41 @@ async function resolveVersion(git, options) {
|
|
|
240823
240870
|
format: calverFormat
|
|
240824
240871
|
});
|
|
240825
240872
|
}
|
|
240826
|
-
if (version2 === "auto" || isBumpType(version2)) {
|
|
240873
|
+
if (version2 === "auto" || version2 === "pre" || isBumpType(version2)) {
|
|
240827
240874
|
if (!requiresMinVersion(AUTO_VERSION_MIN_VERSION2)) {
|
|
240828
240875
|
const featureName = isBumpType(version2) ? "Version bump types" : "Auto-versioning";
|
|
240829
240876
|
throw new ConfigurationError(
|
|
240830
240877
|
`${featureName} requires minVersion >= ${AUTO_VERSION_MIN_VERSION2} in .craft.yml. Please update your configuration or specify the version explicitly.`
|
|
240831
240878
|
);
|
|
240832
240879
|
}
|
|
240880
|
+
if (version2 === "pre" && !requiresMinVersion(PRERELEASE_VERSION_MIN_VERSION)) {
|
|
240881
|
+
throw new ConfigurationError(
|
|
240882
|
+
`The "pre" version requires minVersion >= ${PRERELEASE_VERSION_MIN_VERSION} in .craft.yml. Please update your configuration or specify the version explicitly.`
|
|
240883
|
+
);
|
|
240884
|
+
}
|
|
240833
240885
|
const latestTag = await getLatestTag(git, getGitTagPrefix());
|
|
240834
240886
|
let bumpType;
|
|
240835
|
-
if (version2 === "auto") {
|
|
240836
|
-
const changelogResult = await getChangelogWithBumpType(
|
|
240887
|
+
if (version2 === "auto" || version2 === "pre") {
|
|
240888
|
+
const changelogResult = await getChangelogWithBumpType(
|
|
240889
|
+
git,
|
|
240890
|
+
await getLatestStableTag(git, getGitTagPrefix())
|
|
240891
|
+
);
|
|
240837
240892
|
validateBumpType(changelogResult);
|
|
240838
240893
|
bumpType = changelogResult.bumpType;
|
|
240839
240894
|
} else {
|
|
240840
240895
|
bumpType = version2;
|
|
240841
240896
|
}
|
|
240842
240897
|
const currentVersion = latestTag && getVersion(latestTag) || await readProjectVersion(config.targets || [], getReleaseUnitDir()) || "0.0.0";
|
|
240843
|
-
|
|
240898
|
+
let newVersion = calculateNextVersion(currentVersion, bumpType);
|
|
240899
|
+
if (version2 === "pre") {
|
|
240900
|
+
newVersion = calculatePrerelease(newVersion, currentVersion);
|
|
240901
|
+
} else if (version2 === "auto" && latestTag && parseVersion(currentVersion)?.pre && semver5.minor(newVersion) === 0 && semver5.patch(newVersion) === 0) {
|
|
240902
|
+
const prerelease2 = calculatePrerelease(newVersion, currentVersion);
|
|
240903
|
+
logger.info(
|
|
240904
|
+
`The latest release ${currentVersion} is a prerelease and ${newVersion} is a major release, so releasing ${prerelease2} instead. Run "craft prepare ${newVersion}" to release ${newVersion}.`
|
|
240905
|
+
);
|
|
240906
|
+
newVersion = prerelease2;
|
|
240907
|
+
}
|
|
240844
240908
|
logger.info(
|
|
240845
240909
|
`Version bump: ${currentVersion} -> ${newVersion} (${bumpType} bump)`
|
|
240846
240910
|
);
|
|
@@ -240897,10 +240961,15 @@ async function prepareMain(argv) {
|
|
|
240897
240961
|
try {
|
|
240898
240962
|
await createReleaseBranch(git, rev, branchName);
|
|
240899
240963
|
const oldVersion = await getLatestTag(git, getGitTagPrefix());
|
|
240964
|
+
const changelogBase = await getChangelogBaseTag(
|
|
240965
|
+
git,
|
|
240966
|
+
newVersion,
|
|
240967
|
+
getGitTagPrefix()
|
|
240968
|
+
);
|
|
240900
240969
|
const { filePath: changelogPath, policy: changelogPolicy } = getChangelogConfig();
|
|
240901
240970
|
const changelogBody = await prepareChangelog(
|
|
240902
240971
|
git,
|
|
240903
|
-
|
|
240972
|
+
changelogBase,
|
|
240904
240973
|
newVersion,
|
|
240905
240974
|
argv.noChangelog ? "none" /* None */ : changelogPolicy,
|
|
240906
240975
|
changelogPath
|
|
@@ -240925,7 +240994,7 @@ async function prepareMain(argv) {
|
|
|
240925
240994
|
const releaseSha = await git.revparse(["HEAD"]);
|
|
240926
240995
|
setGitHubActionsOutput("branch", branchName);
|
|
240927
240996
|
setGitHubActionsOutput("sha", releaseSha);
|
|
240928
|
-
setGitHubActionsOutput("previous_tag",
|
|
240997
|
+
setGitHubActionsOutput("previous_tag", changelogBase || "");
|
|
240929
240998
|
setGitHubActionsOutput("targets", JSON.stringify(targetIds));
|
|
240930
240999
|
if (changelogBody) {
|
|
240931
241000
|
const isCalVer = argv.newVersion === "calver" || getVersioningPolicy() === "calver" /* CalVer */;
|
|
@@ -241416,19 +241485,19 @@ function offtin(buf, offset) {
|
|
|
241416
241485
|
}
|
|
241417
241486
|
return magnitude;
|
|
241418
241487
|
}
|
|
241419
|
-
function parsePatchHeader(
|
|
241420
|
-
if (
|
|
241488
|
+
function parsePatchHeader(patch2) {
|
|
241489
|
+
if (patch2.byteLength < HEADER_SIZE) {
|
|
241421
241490
|
throw new Error(
|
|
241422
|
-
`Patch too small: ${
|
|
241491
|
+
`Patch too small: ${patch2.byteLength} bytes (need at least ${HEADER_SIZE})`
|
|
241423
241492
|
);
|
|
241424
241493
|
}
|
|
241425
|
-
const magic = new TextDecoder().decode(
|
|
241494
|
+
const magic = new TextDecoder().decode(patch2.subarray(0, 8));
|
|
241426
241495
|
if (magic !== TRDIFF10_MAGIC) {
|
|
241427
241496
|
throw new Error(`Invalid patch format: expected TRDIFF10, got "${magic}"`);
|
|
241428
241497
|
}
|
|
241429
|
-
const controlLen = offtin(
|
|
241430
|
-
const diffLen = offtin(
|
|
241431
|
-
const newSize = offtin(
|
|
241498
|
+
const controlLen = offtin(patch2, 8);
|
|
241499
|
+
const diffLen = offtin(patch2, 16);
|
|
241500
|
+
const newSize = offtin(patch2, 24);
|
|
241432
241501
|
if (controlLen < 0 || diffLen < 0 || newSize < 0) {
|
|
241433
241502
|
throw new Error("Corrupt patch: negative length in header");
|
|
241434
241503
|
}
|
|
@@ -241438,9 +241507,9 @@ function parsePatchHeader(patch) {
|
|
|
241438
241507
|
);
|
|
241439
241508
|
}
|
|
241440
241509
|
const totalCompressed = HEADER_SIZE + controlLen + diffLen;
|
|
241441
|
-
if (totalCompressed >
|
|
241510
|
+
if (totalCompressed > patch2.byteLength) {
|
|
241442
241511
|
throw new Error(
|
|
241443
|
-
`Corrupt patch: header lengths (${totalCompressed}) exceed file size (${
|
|
241512
|
+
`Corrupt patch: header lengths (${totalCompressed}) exceed file size (${patch2.byteLength})`
|
|
241444
241513
|
);
|
|
241445
241514
|
}
|
|
241446
241515
|
return { controlLen, diffLen, newSize };
|
|
@@ -241868,11 +241937,11 @@ async function resolveNativeRelease(version2, platform4 = process.platform, arch
|
|
|
241868
241937
|
url: url3
|
|
241869
241938
|
};
|
|
241870
241939
|
}
|
|
241871
|
-
function validateNativePatch(
|
|
241872
|
-
const { controlLen, diffLen, newSize } = parsePatchHeader(
|
|
241940
|
+
function validateNativePatch(patch2) {
|
|
241941
|
+
const { controlLen, diffLen, newSize } = parsePatchHeader(patch2);
|
|
241873
241942
|
if (newSize > MAX_EXECUTABLE_BYTES)
|
|
241874
241943
|
throw new Error("Patch output exceeds executable size limit");
|
|
241875
|
-
const control = (0, import_node_zlib2.zstdDecompressSync)(
|
|
241944
|
+
const control = (0, import_node_zlib2.zstdDecompressSync)(patch2.subarray(32, 32 + controlLen), {
|
|
241876
241945
|
maxOutputLength: 16 * 1024 * 1024
|
|
241877
241946
|
});
|
|
241878
241947
|
if (control.length % 24 !== 0)
|
|
@@ -241895,8 +241964,8 @@ function validateNativePatch(patch) {
|
|
|
241895
241964
|
if (diffBytes + extraBytes !== newSize)
|
|
241896
241965
|
throw new Error("Patch output size mismatch");
|
|
241897
241966
|
for (const [compressed, size2] of [
|
|
241898
|
-
[
|
|
241899
|
-
[
|
|
241967
|
+
[patch2.subarray(32 + controlLen, 32 + controlLen + diffLen), diffBytes],
|
|
241968
|
+
[patch2.subarray(32 + controlLen + diffLen), extraBytes]
|
|
241900
241969
|
]) {
|
|
241901
241970
|
if ((0, import_node_zlib2.zstdDecompressSync)(compressed, { maxOutputLength: Math.max(1, size2) }).length !== size2)
|
|
241902
241971
|
throw new Error("Patch block size mismatch");
|
|
@@ -241939,15 +242008,15 @@ async function tryNativePatch(release3, runtime, candidate) {
|
|
|
241939
242008
|
const actual = new URL(url3);
|
|
241940
242009
|
if (actual.origin !== expected.origin || actual.username || actual.password || actual.search || actual.hash || decodeURIComponent(actual.pathname) !== decodeURIComponent(expected.pathname))
|
|
241941
242010
|
throw new Error("Invalid patch asset URL");
|
|
241942
|
-
const
|
|
241943
|
-
budget -=
|
|
241944
|
-
validateNativePatch(
|
|
241945
|
-
patches.push(
|
|
242011
|
+
const patch2 = await download(url3, budget);
|
|
242012
|
+
budget -= patch2.length;
|
|
242013
|
+
validateNativePatch(patch2);
|
|
242014
|
+
patches.push(patch2);
|
|
241946
242015
|
}
|
|
241947
242016
|
if ((await (0, import_promises8.lstat)(runtime.executable)).size > MAX_EXECUTABLE_BYTES)
|
|
241948
242017
|
return false;
|
|
241949
242018
|
let bytes = await (0, import_promises8.readFile)(runtime.executable);
|
|
241950
|
-
for (const
|
|
242019
|
+
for (const patch2 of patches) bytes = await applyPatchToMemory(bytes, patch2);
|
|
241951
242020
|
if ((0, import_node_crypto5.createHash)("sha256").update(bytes).digest("hex") !== release3.rawDigest)
|
|
241952
242021
|
throw new Error("Patched executable checksum mismatch");
|
|
241953
242022
|
await safeFs.writeFile(candidate, bytes, { mode: 448 });
|