nx 21.2.0-canary.20250527-4a94841 → 21.2.0-canary.20250528-2572455
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "21.2.0-canary.
|
3
|
+
"version": "21.2.0-canary.20250528-2572455",
|
4
4
|
"private": false,
|
5
5
|
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
|
6
6
|
"repository": {
|
@@ -83,16 +83,16 @@
|
|
83
83
|
}
|
84
84
|
},
|
85
85
|
"optionalDependencies": {
|
86
|
-
"@nx/nx-darwin-arm64": "21.2.0-canary.
|
87
|
-
"@nx/nx-darwin-x64": "21.2.0-canary.
|
88
|
-
"@nx/nx-freebsd-x64": "21.2.0-canary.
|
89
|
-
"@nx/nx-linux-arm-gnueabihf": "21.2.0-canary.
|
90
|
-
"@nx/nx-linux-arm64-gnu": "21.2.0-canary.
|
91
|
-
"@nx/nx-linux-arm64-musl": "21.2.0-canary.
|
92
|
-
"@nx/nx-linux-x64-gnu": "21.2.0-canary.
|
93
|
-
"@nx/nx-linux-x64-musl": "21.2.0-canary.
|
94
|
-
"@nx/nx-win32-arm64-msvc": "21.2.0-canary.
|
95
|
-
"@nx/nx-win32-x64-msvc": "21.2.0-canary.
|
86
|
+
"@nx/nx-darwin-arm64": "21.2.0-canary.20250528-2572455",
|
87
|
+
"@nx/nx-darwin-x64": "21.2.0-canary.20250528-2572455",
|
88
|
+
"@nx/nx-freebsd-x64": "21.2.0-canary.20250528-2572455",
|
89
|
+
"@nx/nx-linux-arm-gnueabihf": "21.2.0-canary.20250528-2572455",
|
90
|
+
"@nx/nx-linux-arm64-gnu": "21.2.0-canary.20250528-2572455",
|
91
|
+
"@nx/nx-linux-arm64-musl": "21.2.0-canary.20250528-2572455",
|
92
|
+
"@nx/nx-linux-x64-gnu": "21.2.0-canary.20250528-2572455",
|
93
|
+
"@nx/nx-linux-x64-musl": "21.2.0-canary.20250528-2572455",
|
94
|
+
"@nx/nx-win32-arm64-msvc": "21.2.0-canary.20250528-2572455",
|
95
|
+
"@nx/nx-win32-x64-msvc": "21.2.0-canary.20250528-2572455"
|
96
96
|
},
|
97
97
|
"nx-migrations": {
|
98
98
|
"migrations": "./migrations.json",
|
Binary file
|
@@ -7,4 +7,4 @@ export declare function getURLifShortenFailed(usesGithub: boolean, githubSlug: s
|
|
7
7
|
export declare function getNxCloudVersion(apiUrl: string): Promise<string | null>;
|
8
8
|
export declare function removeVersionModifier(versionString: string): string;
|
9
9
|
export declare function versionIsValid(version: string): boolean;
|
10
|
-
export declare function
|
10
|
+
export declare function isOldNxCloudVersion(version: string): boolean;
|
@@ -6,7 +6,7 @@ exports.getURLifShortenFailed = getURLifShortenFailed;
|
|
6
6
|
exports.getNxCloudVersion = getNxCloudVersion;
|
7
7
|
exports.removeVersionModifier = removeVersionModifier;
|
8
8
|
exports.versionIsValid = versionIsValid;
|
9
|
-
exports.
|
9
|
+
exports.isOldNxCloudVersion = isOldNxCloudVersion;
|
10
10
|
const logger_1 = require("../../utils/logger");
|
11
11
|
const git_utils_1 = require("../../utils/git-utils");
|
12
12
|
const get_cloud_options_1 = require("./get-cloud-options");
|
@@ -21,8 +21,7 @@ async function createNxCloudOnboardingURL(onboardingSource, accessToken, usesGit
|
|
21
21
|
}
|
22
22
|
try {
|
23
23
|
const version = await getNxCloudVersion(apiUrl);
|
24
|
-
if (
|
25
|
-
!version) {
|
24
|
+
if (!version || isOldNxCloudVersion(version)) {
|
26
25
|
return apiUrl;
|
27
26
|
}
|
28
27
|
}
|
@@ -96,7 +95,7 @@ async function getInstallationSupportsGitHub(apiUrl) {
|
|
96
95
|
}
|
97
96
|
catch (e) {
|
98
97
|
if (process.env.NX_VERBOSE_LOGGING === 'true') {
|
99
|
-
logger_1.logger.warn(`Failed to access system features. GitHub integration assumed to be disabled.
|
98
|
+
logger_1.logger.warn(`Failed to access system features. GitHub integration assumed to be disabled.
|
100
99
|
${e}`);
|
101
100
|
}
|
102
101
|
return false;
|
@@ -131,26 +130,28 @@ function versionIsValid(version) {
|
|
131
130
|
const pattern = /^\d{4}\.\d{2}\.\d+$/;
|
132
131
|
return pattern.test(version);
|
133
132
|
}
|
134
|
-
function
|
135
|
-
const
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
const
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
133
|
+
function isOldNxCloudVersion(version) {
|
134
|
+
const [major, minor, buildNumber] = version
|
135
|
+
.split('.')
|
136
|
+
.map((part) => parseInt(part, 10));
|
137
|
+
// for on-prem images we are using YYYY.MM.BuildNumber format
|
138
|
+
// the first year is 2025
|
139
|
+
if (major >= 2025 && major < 2300) {
|
140
|
+
return false;
|
141
|
+
}
|
142
|
+
// Previously we used YYMM.DD.BuildNumber
|
143
|
+
// All versions before '2406.11.5' had different URL shortening logic
|
144
|
+
const newVersionMajor = 2406;
|
145
|
+
const newVersionMinor = 11;
|
146
|
+
const newVersionBuildNumber = 5;
|
147
|
+
if (major !== newVersionMajor) {
|
148
|
+
return major < newVersionMajor;
|
149
|
+
}
|
150
|
+
if (minor !== newVersionMinor) {
|
151
|
+
return minor < newVersionMinor;
|
152
|
+
}
|
153
|
+
if (buildNumber !== newVersionBuildNumber) {
|
154
|
+
return buildNumber < newVersionBuildNumber;
|
155
|
+
}
|
156
|
+
return false;
|
156
157
|
}
|