@carbon/upgrade 11.40.0 → 11.41.0-rc.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/cli.js +49 -16
- package/package.json +3 -3
package/cli.js
CHANGED
|
@@ -3275,7 +3275,7 @@ var require_string_width = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3275
3275
|
module.exports.default = stringWidth;
|
|
3276
3276
|
}));
|
|
3277
3277
|
//#endregion
|
|
3278
|
-
//#region ../../node_modules/color-name/index.js
|
|
3278
|
+
//#region ../../node_modules/color-convert/node_modules/color-name/index.js
|
|
3279
3279
|
var require_color_name = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3280
3280
|
module.exports = {
|
|
3281
3281
|
"aliceblue": [
|
|
@@ -5563,11 +5563,10 @@ const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new Signa
|
|
|
5563
5563
|
var import_is_git_clean = /* @__PURE__ */ __toESM(require_is_git_clean());
|
|
5564
5564
|
var import_lib$3 = /* @__PURE__ */ __toESM(require_lib$3(), 1);
|
|
5565
5565
|
const ESC = "\x1B[";
|
|
5566
|
-
ESC + "";
|
|
5567
5566
|
/** Hide the cursor */
|
|
5568
|
-
const cursorHide =
|
|
5567
|
+
const cursorHide = "\x1B[?25l";
|
|
5569
5568
|
/** Show the cursor */
|
|
5570
|
-
const cursorShow =
|
|
5569
|
+
const cursorShow = "\x1B[?25h";
|
|
5571
5570
|
/** Move cursor up by count rows */
|
|
5572
5571
|
const cursorUp = (rows = 1) => rows > 0 ? `${ESC}${rows}A` : "";
|
|
5573
5572
|
/** Move cursor down by count rows */
|
|
@@ -5577,9 +5576,9 @@ const cursorTo = (x, y) => {
|
|
|
5577
5576
|
if (typeof y === "number" && !Number.isNaN(y)) return `${ESC}${y + 1};${x + 1}H`;
|
|
5578
5577
|
return `${ESC}${x + 1}G`;
|
|
5579
5578
|
};
|
|
5580
|
-
const eraseLine =
|
|
5579
|
+
const eraseLine = "\x1B[2K";
|
|
5581
5580
|
/** Erase the specified number of lines above the cursor */
|
|
5582
|
-
const eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) +
|
|
5581
|
+
const eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + "\x1B[2K\x1B[G" : "";
|
|
5583
5582
|
//#endregion
|
|
5584
5583
|
//#region ../../node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
5585
5584
|
const height = (content) => content.split("\n").length;
|
|
@@ -30070,6 +30069,7 @@ var PromptsRunner = class {
|
|
|
30070
30069
|
const builtInPrompts = {
|
|
30071
30070
|
input: esm_default$6,
|
|
30072
30071
|
select: esm_default,
|
|
30072
|
+
/** @deprecated `list` is now named `select` */
|
|
30073
30073
|
list: esm_default,
|
|
30074
30074
|
number: esm_default$5,
|
|
30075
30075
|
confirm: esm_default$7,
|
|
@@ -30272,6 +30272,12 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
30272
30272
|
const { safeRe: re, t } = require_re();
|
|
30273
30273
|
const parseOptions = require_parse_options();
|
|
30274
30274
|
const { compareIdentifiers } = require_identifiers();
|
|
30275
|
+
const isPrereleaseIdentifier = (prerelease, identifier) => {
|
|
30276
|
+
const identifiers = identifier.split(".");
|
|
30277
|
+
if (identifiers.length > prerelease.length) return false;
|
|
30278
|
+
for (let i = 0; i < identifiers.length; i++) if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) return false;
|
|
30279
|
+
return true;
|
|
30280
|
+
};
|
|
30275
30281
|
module.exports = class SemVer {
|
|
30276
30282
|
constructor(version, options) {
|
|
30277
30283
|
options = parseOptions(options);
|
|
@@ -30428,8 +30434,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
30428
30434
|
if (identifier) {
|
|
30429
30435
|
let prerelease = [identifier, base];
|
|
30430
30436
|
if (identifierBase === false) prerelease = [identifier];
|
|
30431
|
-
if (
|
|
30432
|
-
|
|
30437
|
+
if (isPrereleaseIdentifier(this.prerelease, identifier)) {
|
|
30438
|
+
const prereleaseBase = this.prerelease[identifier.split(".").length];
|
|
30439
|
+
if (isNaN(prereleaseBase)) this.prerelease = prerelease;
|
|
30433
30440
|
} else this.prerelease = prerelease;
|
|
30434
30441
|
}
|
|
30435
30442
|
break;
|
|
@@ -30823,6 +30830,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
30823
30830
|
return this.range;
|
|
30824
30831
|
}
|
|
30825
30832
|
parseRange(range) {
|
|
30833
|
+
range = range.replace(BUILDSTRIPRE, "");
|
|
30826
30834
|
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
30827
30835
|
const cached = cache.get(memoKey);
|
|
30828
30836
|
if (cached) return cached;
|
|
@@ -30881,8 +30889,9 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
30881
30889
|
const Comparator = require_comparator();
|
|
30882
30890
|
const debug = require_debug();
|
|
30883
30891
|
const SemVer = require_semver$1();
|
|
30884
|
-
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
30892
|
+
const { safeRe: re, src, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
|
|
30885
30893
|
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants$3();
|
|
30894
|
+
const BUILDSTRIPRE = new RegExp(src[t.BUILD], "g");
|
|
30886
30895
|
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
30887
30896
|
const isAny = (c) => c.value === "";
|
|
30888
30897
|
const isSatisfiable = (comparators, options) => {
|
|
@@ -30911,6 +30920,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
30911
30920
|
return comp;
|
|
30912
30921
|
};
|
|
30913
30922
|
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
30923
|
+
const invalidXRangeOrder = (M, m, p) => isX(M) && !isX(m) || isX(m) && p && !isX(p);
|
|
30914
30924
|
const replaceTildes = (comp, options) => {
|
|
30915
30925
|
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
30916
30926
|
};
|
|
@@ -30951,8 +30961,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
30951
30961
|
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
30952
30962
|
} else {
|
|
30953
30963
|
debug("no pr");
|
|
30954
|
-
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}
|
|
30955
|
-
else ret = `>=${M}.${m}.${p}
|
|
30964
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
|
|
30965
|
+
else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
30956
30966
|
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
30957
30967
|
}
|
|
30958
30968
|
debug("caret return", ret);
|
|
@@ -30968,6 +30978,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
30968
30978
|
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
30969
30979
|
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
30970
30980
|
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
30981
|
+
if (invalidXRangeOrder(M, m, p)) return comp;
|
|
30971
30982
|
const xM = isX(M);
|
|
30972
30983
|
const xm = xM || isX(m);
|
|
30973
30984
|
const xp = xm || isX(p);
|
|
@@ -31409,7 +31420,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
31409
31420
|
if (c.operator === ">" || c.operator === ">=") {
|
|
31410
31421
|
higher = higherGT(gt, c, options);
|
|
31411
31422
|
if (higher === c && higher !== gt) return false;
|
|
31412
|
-
} else if (gt.operator === ">=" && !
|
|
31423
|
+
} else if (gt.operator === ">=" && !c.test(gt.semver)) return false;
|
|
31413
31424
|
}
|
|
31414
31425
|
if (lt) {
|
|
31415
31426
|
if (needDomLTPre) {
|
|
@@ -31418,7 +31429,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
31418
31429
|
if (c.operator === "<" || c.operator === "<=") {
|
|
31419
31430
|
lower = lowerLT(lt, c, options);
|
|
31420
31431
|
if (lower === c && lower !== lt) return false;
|
|
31421
|
-
} else if (lt.operator === "<=" && !
|
|
31432
|
+
} else if (lt.operator === "<=" && !c.test(lt.semver)) return false;
|
|
31422
31433
|
}
|
|
31423
31434
|
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
|
31424
31435
|
}
|
|
@@ -31540,7 +31551,12 @@ function getColor(level) {
|
|
|
31540
31551
|
}
|
|
31541
31552
|
}
|
|
31542
31553
|
const defaultLevel = process.env.NODE_ENV === "test" ? "warn" : "info";
|
|
31543
|
-
const logger = {
|
|
31554
|
+
const logger = {
|
|
31555
|
+
/**
|
|
31556
|
+
* @param {string} level
|
|
31557
|
+
* @returns {LoggerInstance}
|
|
31558
|
+
*/
|
|
31559
|
+
create(level = defaultLevel) {
|
|
31544
31560
|
let max = levels[level];
|
|
31545
31561
|
const logger = {
|
|
31546
31562
|
setLevel(level) {
|
|
@@ -34917,6 +34933,9 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34917
34933
|
CHAR_VERTICAL_LINE: 124,
|
|
34918
34934
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
34919
34935
|
SEP: path$12.sep,
|
|
34936
|
+
/**
|
|
34937
|
+
* Create EXTGLOB_CHARS
|
|
34938
|
+
*/
|
|
34920
34939
|
extglobChars(chars) {
|
|
34921
34940
|
return {
|
|
34922
34941
|
"!": {
|
|
@@ -34946,6 +34965,9 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34946
34965
|
}
|
|
34947
34966
|
};
|
|
34948
34967
|
},
|
|
34968
|
+
/**
|
|
34969
|
+
* Create GLOB_CHARS
|
|
34970
|
+
*/
|
|
34949
34971
|
globChars(win32) {
|
|
34950
34972
|
return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
|
|
34951
34973
|
}
|
|
@@ -37142,7 +37164,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
37142
37164
|
}
|
|
37143
37165
|
exports.hasGlobStar = hasGlobStar;
|
|
37144
37166
|
function endsWithSlashGlobStar(pattern) {
|
|
37145
|
-
return pattern.endsWith("
|
|
37167
|
+
return pattern.endsWith("/**");
|
|
37146
37168
|
}
|
|
37147
37169
|
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
37148
37170
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
@@ -44010,6 +44032,12 @@ async function runCodemod(options, config) {
|
|
|
44010
44032
|
* package
|
|
44011
44033
|
*/
|
|
44012
44034
|
const Change = {
|
|
44035
|
+
/**
|
|
44036
|
+
* @param {object} options
|
|
44037
|
+
* @param {string} options.name
|
|
44038
|
+
* @param {string} options.version
|
|
44039
|
+
* @returns {object}
|
|
44040
|
+
*/
|
|
44013
44041
|
install({ name, version }) {
|
|
44014
44042
|
return {
|
|
44015
44043
|
type: "install",
|
|
@@ -44020,6 +44048,11 @@ const Change = {
|
|
|
44020
44048
|
};
|
|
44021
44049
|
},
|
|
44022
44050
|
uninstall: { type: "uninstall" },
|
|
44051
|
+
/**
|
|
44052
|
+
* @param {object} options
|
|
44053
|
+
* @param {string} options.version
|
|
44054
|
+
* @returns {object}
|
|
44055
|
+
*/
|
|
44023
44056
|
update({ version }) {
|
|
44024
44057
|
return {
|
|
44025
44058
|
type: "update",
|
|
@@ -44793,7 +44826,7 @@ const upgrades = [
|
|
|
44793
44826
|
//#endregion
|
|
44794
44827
|
//#region package.json
|
|
44795
44828
|
var name = "@carbon/upgrade";
|
|
44796
|
-
var version = "11.
|
|
44829
|
+
var version = "11.41.0-rc.0";
|
|
44797
44830
|
//#endregion
|
|
44798
44831
|
//#region ../../node_modules/y18n/build/index.cjs
|
|
44799
44832
|
var require_build$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/upgrade",
|
|
3
3
|
"description": "A tool for upgrading Carbon versions",
|
|
4
|
-
"version": "11.
|
|
4
|
+
"version": "11.41.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
7
7
|
"carbon-upgrade": "./bin/carbon-upgrade.js"
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"npm-which": "^3.0.1",
|
|
54
54
|
"rimraf": "^6.0.1",
|
|
55
55
|
"semver": "^7.7.2",
|
|
56
|
-
"tsdown": "^0.
|
|
56
|
+
"tsdown": "^0.22.0",
|
|
57
57
|
"yargs": "^17.0.1"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@ibm/telemetry-js": "^1.5.0",
|
|
61
61
|
"jscodeshift": "^17.0.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "415bf87b56763dc172a38f310ee5536e70dd792b"
|
|
64
64
|
}
|