nx 20.2.0-canary.20241123-128778e → 20.2.0-canary.20241127-b018b94
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/.eslintrc.json +3 -1
- package/package.json +11 -11
- package/src/command-line/report/report.js +3 -1
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +2 -1
- package/src/tasks-runner/cache.js +32 -4
- package/src/utils/powerpack.js +2 -2
package/.eslintrc.json
CHANGED
@@ -130,7 +130,9 @@
|
|
130
130
|
"@nx/nx-linux-arm-gnueabihf",
|
131
131
|
"@nx/nx-win32-arm64-msvc",
|
132
132
|
"@nx/nx-freebsd-x64",
|
133
|
-
"@nx/powerpack-license"
|
133
|
+
"@nx/powerpack-license",
|
134
|
+
// Powerpack plugin conditionally available dynamically at runtime
|
135
|
+
"@nx/powerpack-conformance"
|
134
136
|
]
|
135
137
|
}
|
136
138
|
]
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "20.2.0-canary.
|
3
|
+
"version": "20.2.0-canary.20241127-b018b94",
|
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": {
|
@@ -80,16 +80,16 @@
|
|
80
80
|
}
|
81
81
|
},
|
82
82
|
"optionalDependencies": {
|
83
|
-
"@nx/nx-darwin-x64": "20.2.0-canary.
|
84
|
-
"@nx/nx-darwin-arm64": "20.2.0-canary.
|
85
|
-
"@nx/nx-linux-x64-gnu": "20.2.0-canary.
|
86
|
-
"@nx/nx-linux-x64-musl": "20.2.0-canary.
|
87
|
-
"@nx/nx-win32-x64-msvc": "20.2.0-canary.
|
88
|
-
"@nx/nx-linux-arm64-gnu": "20.2.0-canary.
|
89
|
-
"@nx/nx-linux-arm64-musl": "20.2.0-canary.
|
90
|
-
"@nx/nx-linux-arm-gnueabihf": "20.2.0-canary.
|
91
|
-
"@nx/nx-win32-arm64-msvc": "20.2.0-canary.
|
92
|
-
"@nx/nx-freebsd-x64": "20.2.0-canary.
|
83
|
+
"@nx/nx-darwin-x64": "20.2.0-canary.20241127-b018b94",
|
84
|
+
"@nx/nx-darwin-arm64": "20.2.0-canary.20241127-b018b94",
|
85
|
+
"@nx/nx-linux-x64-gnu": "20.2.0-canary.20241127-b018b94",
|
86
|
+
"@nx/nx-linux-x64-musl": "20.2.0-canary.20241127-b018b94",
|
87
|
+
"@nx/nx-win32-x64-msvc": "20.2.0-canary.20241127-b018b94",
|
88
|
+
"@nx/nx-linux-arm64-gnu": "20.2.0-canary.20241127-b018b94",
|
89
|
+
"@nx/nx-linux-arm64-musl": "20.2.0-canary.20241127-b018b94",
|
90
|
+
"@nx/nx-linux-arm-gnueabihf": "20.2.0-canary.20241127-b018b94",
|
91
|
+
"@nx/nx-win32-arm64-msvc": "20.2.0-canary.20241127-b018b94",
|
92
|
+
"@nx/nx-freebsd-x64": "20.2.0-canary.20241127-b018b94"
|
93
93
|
},
|
94
94
|
"nx-migrations": {
|
95
95
|
"migrations": "./migrations.json",
|
@@ -65,7 +65,9 @@ async function reportHandler() {
|
|
65
65
|
bodyLines.push('');
|
66
66
|
bodyLines.push(LINE_SEPARATOR);
|
67
67
|
bodyLines.push(chalk.green('Nx Powerpack'));
|
68
|
-
bodyLines.push(`Licensed to ${powerpackLicense.organizationName} for ${powerpackLicense.seatCount} user${powerpackLicense.seatCount > 1 ? 's' : ''} in ${powerpackLicense.workspaceCount
|
68
|
+
bodyLines.push(`Licensed to ${powerpackLicense.organizationName} for ${powerpackLicense.seatCount} user${powerpackLicense.seatCount > 1 ? 's' : ''} in ${powerpackLicense.workspaceCount === 9999
|
69
|
+
? 'an unlimited number of'
|
70
|
+
: powerpackLicense.workspaceCount} workspace${powerpackLicense.workspaceCount > 1 ? 's' : ''} until ${new Date((powerpackLicense.realExpiresAt ?? powerpackLicense.expiresAt) * 1000).toLocaleDateString()}`);
|
69
71
|
bodyLines.push('');
|
70
72
|
padding =
|
71
73
|
Math.max(...powerpackPlugins.map((powerpackPlugin) => powerpackPlugin.name.length)) + 1;
|
Binary file
|
@@ -122,7 +122,8 @@ async function connectToNxCloud(tree, schema, nxJson = (0, nx_json_1.readNxJson)
|
|
122
122
|
*/
|
123
123
|
if (!schema.generateToken &&
|
124
124
|
isGitHubDetected &&
|
125
|
-
schema.installationSource === 'nx-connect'
|
125
|
+
(schema.installationSource === 'nx-connect' ||
|
126
|
+
schema.installationSource === 'nx-console'))
|
126
127
|
return null;
|
127
128
|
try {
|
128
129
|
responseFromCreateNxCloudWorkspaceV2 = await createNxCloudWorkspaceV2(getRootPackageName(tree), schema.installationSource, getNxInitDate());
|
@@ -20,11 +20,39 @@ const update_manager_1 = require("../nx-cloud/update-manager");
|
|
20
20
|
const get_cloud_options_1 = require("../nx-cloud/utilities/get-cloud-options");
|
21
21
|
const is_ci_1 = require("../utils/is-ci");
|
22
22
|
const output_1 = require("../utils/output");
|
23
|
+
const logger_1 = require("../utils/logger");
|
24
|
+
// This function is called once during tasks runner initialization. It checks if the db cache is enabled and logs a warning if it is not.
|
23
25
|
function dbCacheEnabled(nxJson = (0, nx_json_1.readNxJson)()) {
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
process.env.NX_DB_CACHE
|
26
|
+
// If the user has explicitly disabled the db cache, we can warn...
|
27
|
+
if (nxJson.useLegacyCache ||
|
28
|
+
process.env.NX_DISABLE_DB === 'true' ||
|
29
|
+
process.env.NX_DB_CACHE === 'false') {
|
30
|
+
let readMoreLink = 'https://nx.dev/deprecated/legacy-cache';
|
31
|
+
if (nxJson.tasksRunnerOptions?.default?.runner &&
|
32
|
+
!['nx-cloud', 'nx/tasks-runners/default', '@nrwl/nx-cloud'].includes(nxJson.tasksRunnerOptions.default.runner)) {
|
33
|
+
readMoreLink += '#tasksrunneroptions';
|
34
|
+
}
|
35
|
+
else if (process.env.NX_REJECT_UNKNOWN_LOCAL_CACHE === '0' ||
|
36
|
+
process.env.NX_REJECT_UNKNOWN_LOCAL_CACHE === 'false') {
|
37
|
+
readMoreLink += '#nxrejectunknownlocalcache';
|
38
|
+
}
|
39
|
+
logger_1.logger.warn(`Nx is configured to use the legacy cache. This cache will be removed in Nx 21. Read more at ${readMoreLink}.`);
|
40
|
+
return false;
|
41
|
+
}
|
42
|
+
// ...but if on wasm and the the db cache isnt supported we shouldn't warn
|
43
|
+
if (native_1.IS_WASM) {
|
44
|
+
return false;
|
45
|
+
}
|
46
|
+
// Below this point we are using the db cache.
|
47
|
+
if (
|
48
|
+
// The NX_REJECT_UNKNOWN_LOCAL_CACHE env var is not supported with the db cache.
|
49
|
+
// If the user has tried to use it, we can point them to powerpack as it
|
50
|
+
// provides a similar featureset.
|
51
|
+
process.env.NX_REJECT_UNKNOWN_LOCAL_CACHE === '0' ||
|
52
|
+
process.env.NX_REJECT_UNKNOWN_LOCAL_CACHE === 'false') {
|
53
|
+
logger_1.logger.warn('NX_REJECT_UNKNOWN_LOCAL_CACHE=0 is not supported with the new database cache. Read more at https://nx.dev/deprecated/legacy-cache#nxrejectunknownlocalcache.');
|
54
|
+
}
|
55
|
+
return true;
|
28
56
|
}
|
29
57
|
// Do not change the order of these arguments as this function is used by nx cloud
|
30
58
|
function getCache(options) {
|
package/src/utils/powerpack.js
CHANGED
@@ -15,8 +15,8 @@ async function printPowerpackLicense() {
|
|
15
15
|
}
|
16
16
|
async function getPowerpackLicenseInformation() {
|
17
17
|
try {
|
18
|
-
const { getPowerpackLicenseInformation } = (await Promise.resolve().then(() => require('@nx/powerpack-license')));
|
19
|
-
return getPowerpackLicenseInformation(workspace_root_1.workspaceRoot);
|
18
|
+
const { getPowerpackLicenseInformation, getPowerpackLicenseInformationAsync, } = (await Promise.resolve().then(() => require('@nx/powerpack-license')));
|
19
|
+
return (getPowerpackLicenseInformationAsync ?? getPowerpackLicenseInformation)(workspace_root_1.workspaceRoot);
|
20
20
|
}
|
21
21
|
catch (e) {
|
22
22
|
if ('code' in e && e.code === 'MODULE_NOT_FOUND') {
|