nx 24.0.0-beta.3 → 24.0.0-beta.4
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/src/command-line/migrate/execute-migration.d.ts +4 -4
- package/dist/src/command-line/migrate/execute-migration.js +7 -5
- package/dist/src/command-line/migrate/migrate.d.ts +3 -0
- package/dist/src/command-line/migrate/migrate.js +61 -17
- package/dist/src/config/misc-interfaces.d.ts +6 -0
- package/dist/src/config/workspace-json-project-json.d.ts +12 -4
- package/dist/src/core/graph/main.js +1 -1
- package/dist/src/core/graph/runtime.js +1 -1
- package/dist/src/core/graph/styles.css +1 -1
- package/dist/src/core/graph/styles.js +1 -1
- package/dist/src/devkit-exports.d.ts +4 -0
- package/dist/src/devkit-exports.js +7 -1
- package/dist/src/devkit-internals.d.ts +1 -0
- package/dist/src/devkit-internals.js +3 -0
- package/dist/src/native/index.d.ts +8 -2
- package/dist/src/native/nx.wasm32-wasi.debug.wasm +0 -0
- package/dist/src/native/nx.wasm32-wasi.wasm +0 -0
- package/dist/src/project-graph/plugins/loaded-nx-plugin.js +49 -6
- package/dist/src/tasks-runner/pseudo-ipc.d.ts +1 -0
- package/dist/src/tasks-runner/pseudo-ipc.js +4 -0
- package/dist/src/tasks-runner/readiness/probes.d.ts +6 -1
- package/dist/src/tasks-runner/readiness/probes.js +40 -30
- package/dist/src/tasks-runner/readiness/ready-signal-server.d.ts +18 -0
- package/dist/src/tasks-runner/readiness/ready-signal-server.js +71 -0
- package/dist/src/tasks-runner/readiness/ready-signal.d.ts +25 -0
- package/dist/src/tasks-runner/readiness/ready-signal.js +70 -0
- package/dist/src/tasks-runner/readiness/ready-when.d.ts +4 -0
- package/dist/src/tasks-runner/readiness/ready-when.js +37 -19
- package/dist/src/tasks-runner/readiness/startup-host.d.ts +1 -0
- package/dist/src/tasks-runner/readiness/startup-host.js +32 -0
- package/dist/src/tasks-runner/task-env.js +11 -0
- package/dist/src/tasks-runner/task-orchestrator.d.ts +4 -0
- package/dist/src/tasks-runner/task-orchestrator.js +41 -6
- package/dist/src/ultracache/config.d.ts +3 -3
- package/dist/src/ultracache/config.js +4 -4
- package/package.json +11 -11
- package/schemas/migrations-schema.json +11 -0
- package/schemas/nx-schema.json +8 -3
- package/schemas/project-schema.json +8 -3
|
@@ -5,15 +5,15 @@ exports.ultracacheEnv = ultracacheEnv;
|
|
|
5
5
|
const is_ci_1 = require("../utils/is-ci");
|
|
6
6
|
const nx_cloud_utils_1 = require("../utils/nx-cloud-utils");
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* `env` defaults to this process's.
|
|
8
|
+
* On for CI runs in a workspace that uses Nx Cloud, since there is nothing to
|
|
9
|
+
* fetch from otherwise. Nx Cloud's workspace setting decides whether the fetch
|
|
10
|
+
* returns any; `NX_CLOUD_USE_ULTRACACHE=false` skips it. `env` defaults to this process's.
|
|
11
11
|
*/
|
|
12
12
|
function isUltracacheConfigurationFetchEnabled(nxJson, runnerOptions = {}, env = ultracacheEnv()) {
|
|
13
13
|
if (env.NX_NO_CLOUD === 'true' ||
|
|
14
14
|
nxJson.neverConnectToCloud ||
|
|
15
15
|
runnerOptions.cloud === false ||
|
|
16
|
-
env.NX_CLOUD_USE_ULTRACACHE
|
|
16
|
+
env.NX_CLOUD_USE_ULTRACACHE === 'false' ||
|
|
17
17
|
!(0, is_ci_1.isCI)()) {
|
|
18
18
|
return false;
|
|
19
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "24.0.0-beta.
|
|
3
|
+
"version": "24.0.0-beta.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
|
|
@@ -150,16 +150,16 @@
|
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
"optionalDependencies": {
|
|
153
|
-
"@nx/nx-darwin-arm64": "24.0.0-beta.
|
|
154
|
-
"@nx/nx-darwin-x64": "24.0.0-beta.
|
|
155
|
-
"@nx/nx-freebsd-x64": "24.0.0-beta.
|
|
156
|
-
"@nx/nx-linux-arm-gnueabihf": "24.0.0-beta.
|
|
157
|
-
"@nx/nx-linux-arm64-gnu": "24.0.0-beta.
|
|
158
|
-
"@nx/nx-linux-arm64-musl": "24.0.0-beta.
|
|
159
|
-
"@nx/nx-linux-x64-gnu": "24.0.0-beta.
|
|
160
|
-
"@nx/nx-linux-x64-musl": "24.0.0-beta.
|
|
161
|
-
"@nx/nx-win32-arm64-msvc": "24.0.0-beta.
|
|
162
|
-
"@nx/nx-win32-x64-msvc": "24.0.0-beta.
|
|
153
|
+
"@nx/nx-darwin-arm64": "24.0.0-beta.4",
|
|
154
|
+
"@nx/nx-darwin-x64": "24.0.0-beta.4",
|
|
155
|
+
"@nx/nx-freebsd-x64": "24.0.0-beta.4",
|
|
156
|
+
"@nx/nx-linux-arm-gnueabihf": "24.0.0-beta.4",
|
|
157
|
+
"@nx/nx-linux-arm64-gnu": "24.0.0-beta.4",
|
|
158
|
+
"@nx/nx-linux-arm64-musl": "24.0.0-beta.4",
|
|
159
|
+
"@nx/nx-linux-x64-gnu": "24.0.0-beta.4",
|
|
160
|
+
"@nx/nx-linux-x64-musl": "24.0.0-beta.4",
|
|
161
|
+
"@nx/nx-win32-arm64-msvc": "24.0.0-beta.4",
|
|
162
|
+
"@nx/nx-win32-x64-msvc": "24.0.0-beta.4"
|
|
163
163
|
},
|
|
164
164
|
"nx-migrations": {
|
|
165
165
|
"migrations": "./migrations.json",
|
|
@@ -85,9 +85,20 @@
|
|
|
85
85
|
"x-repair-skip": {
|
|
86
86
|
"type": "boolean",
|
|
87
87
|
"description": "Exclude this migration when users run `nx repair`."
|
|
88
|
+
},
|
|
89
|
+
"optionalUpdate": {
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"description": "Marks a migration that applies an optional dependency update, such as a major version bump that also rewrites code. `nx migrate --include=required` skips it, and `nx migrate --include=optional` runs it whenever `requires` is met. Requires `requires`, set to the versions the migration updates from."
|
|
88
92
|
}
|
|
89
93
|
},
|
|
90
94
|
"required": ["version"],
|
|
95
|
+
"if": {
|
|
96
|
+
"properties": { "optionalUpdate": { "const": true } },
|
|
97
|
+
"required": ["optionalUpdate"]
|
|
98
|
+
},
|
|
99
|
+
"then": {
|
|
100
|
+
"required": ["requires"]
|
|
101
|
+
},
|
|
91
102
|
"anyOf": [
|
|
92
103
|
{
|
|
93
104
|
"required": ["implementation"]
|
package/schemas/nx-schema.json
CHANGED
|
@@ -644,7 +644,7 @@
|
|
|
644
644
|
},
|
|
645
645
|
"command": {
|
|
646
646
|
"type": "string",
|
|
647
|
-
"description": "Ready when this command, run through the shell at the workspace root, exits with code 0"
|
|
647
|
+
"description": "Ready when this command, run through the shell at the workspace root, exits with code 0. It runs with the environment the task runs with, and the task's options as JSON in NX_TASK_OPTIONS"
|
|
648
648
|
},
|
|
649
649
|
"logMatches": {
|
|
650
650
|
"description": "Ready when every one of these substrings has appeared in the task's output",
|
|
@@ -667,14 +667,19 @@
|
|
|
667
667
|
"type": "integer",
|
|
668
668
|
"minimum": 1,
|
|
669
669
|
"default": 250,
|
|
670
|
-
"description": "Milliseconds between probe attempts. Unused by logMatches"
|
|
670
|
+
"description": "Milliseconds between probe attempts. Unused by logMatches and signal"
|
|
671
|
+
},
|
|
672
|
+
"signal": {
|
|
673
|
+
"const": true,
|
|
674
|
+
"description": "Ready when the task reports it, through signalTaskReady from @nx/devkit. The webpack, Rspack, Vite and Rsbuild plugins of Nx report it once their dev server listens"
|
|
671
675
|
}
|
|
672
676
|
},
|
|
673
677
|
"oneOf": [
|
|
674
678
|
{ "required": ["url"] },
|
|
675
679
|
{ "required": ["port"] },
|
|
676
680
|
{ "required": ["command"] },
|
|
677
|
-
{ "required": ["logMatches"] }
|
|
681
|
+
{ "required": ["logMatches"] },
|
|
682
|
+
{ "required": ["signal"] }
|
|
678
683
|
],
|
|
679
684
|
"additionalProperties": false
|
|
680
685
|
},
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
},
|
|
274
274
|
"command": {
|
|
275
275
|
"type": "string",
|
|
276
|
-
"description": "Ready when this command, run through the shell at the workspace root, exits with code 0"
|
|
276
|
+
"description": "Ready when this command, run through the shell at the workspace root, exits with code 0. It runs with the environment the task runs with, and the task's options as JSON in NX_TASK_OPTIONS"
|
|
277
277
|
},
|
|
278
278
|
"logMatches": {
|
|
279
279
|
"description": "Ready when every one of these substrings has appeared in the task's output",
|
|
@@ -296,14 +296,19 @@
|
|
|
296
296
|
"type": "integer",
|
|
297
297
|
"minimum": 1,
|
|
298
298
|
"default": 250,
|
|
299
|
-
"description": "Milliseconds between probe attempts. Unused by logMatches"
|
|
299
|
+
"description": "Milliseconds between probe attempts. Unused by logMatches and signal"
|
|
300
|
+
},
|
|
301
|
+
"signal": {
|
|
302
|
+
"const": true,
|
|
303
|
+
"description": "Ready when the task reports it, through signalTaskReady from @nx/devkit. The webpack, Rspack, Vite and Rsbuild plugins of Nx report it once their dev server listens"
|
|
300
304
|
}
|
|
301
305
|
},
|
|
302
306
|
"oneOf": [
|
|
303
307
|
{ "required": ["url"] },
|
|
304
308
|
{ "required": ["port"] },
|
|
305
309
|
{ "required": ["command"] },
|
|
306
|
-
{ "required": ["logMatches"] }
|
|
310
|
+
{ "required": ["logMatches"] },
|
|
311
|
+
{ "required": ["signal"] }
|
|
307
312
|
],
|
|
308
313
|
"additionalProperties": false
|
|
309
314
|
},
|