nx 21.5.0-canary.20250819-2307a8d → 21.5.0-canary.20250822-2e39402
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 +11 -11
- package/src/command-line/affected/affected.d.ts.map +1 -1
- package/src/command-line/affected/affected.js +1 -0
- package/src/command-line/graph/graph.d.ts +2 -2
- package/src/command-line/graph/graph.d.ts.map +1 -1
- package/src/command-line/graph/graph.js +103 -170
- package/src/command-line/migrate/migrate.d.ts.map +1 -1
- package/src/command-line/migrate/migrate.js +3 -1
- package/src/command-line/run-many/run-many.js +1 -1
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.css +1 -1
- package/src/core/graph/styles.js +1 -1
- package/src/daemon/client/client.d.ts +1 -0
- package/src/daemon/client/client.d.ts.map +1 -1
- package/src/daemon/client/client.js +34 -4
- package/src/daemon/server/shutdown-utils.d.ts.map +1 -1
- package/src/daemon/server/shutdown-utils.js +1 -0
- package/src/executors/run-commands/running-tasks.d.ts +1 -0
- package/src/executors/run-commands/running-tasks.d.ts.map +1 -1
- package/src/executors/run-commands/running-tasks.js +40 -14
- package/src/generators/utils/project-configuration.js +7 -2
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/tasks-runner/create-task-graph.d.ts.map +1 -1
- package/src/tasks-runner/create-task-graph.js +1 -0
- package/src/tasks-runner/task-graph-utils.d.ts.map +1 -1
- package/src/tasks-runner/task-graph-utils.js +27 -4
- package/src/utils/nx-console-prompt.js +1 -1
- package/src/utils/promised-based-queue.d.ts +7 -0
- package/src/utils/promised-based-queue.d.ts.map +1 -1
- package/src/utils/promised-based-queue.js +9 -0
@@ -3,5 +3,12 @@ export declare class PromisedBasedQueue {
|
|
3
3
|
private promise;
|
4
4
|
sendToQueue(fn: () => Promise<any>): Promise<any>;
|
5
5
|
isEmpty(): boolean;
|
6
|
+
/**
|
7
|
+
* Used to decrement the internal counter representing the number of active promises in the queue.
|
8
|
+
* This is useful for retrying a failed daemon message, as we want to be able to shut the daemon down
|
9
|
+
* without marking the promise that represents the failed message as settled. To do so, we store
|
10
|
+
* the promise in a separate variable and only resolve or reject it later.
|
11
|
+
*/
|
12
|
+
decrementQueueCounter(): void;
|
6
13
|
}
|
7
14
|
//# sourceMappingURL=promised-based-queue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"promised-based-queue.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/utils/promised-based-queue.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,OAAO,CAAyB;IAExC,WAAW,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC;IA8BjD,OAAO;
|
1
|
+
{"version":3,"file":"promised-based-queue.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/utils/promised-based-queue.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,OAAO,CAAyB;IAExC,WAAW,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC;IA8BjD,OAAO;IAIP;;;;;OAKG;IACH,qBAAqB;CAGtB"}
|
@@ -39,5 +39,14 @@ class PromisedBasedQueue {
|
|
39
39
|
isEmpty() {
|
40
40
|
return this.counter === 0;
|
41
41
|
}
|
42
|
+
/**
|
43
|
+
* Used to decrement the internal counter representing the number of active promises in the queue.
|
44
|
+
* This is useful for retrying a failed daemon message, as we want to be able to shut the daemon down
|
45
|
+
* without marking the promise that represents the failed message as settled. To do so, we store
|
46
|
+
* the promise in a separate variable and only resolve or reject it later.
|
47
|
+
*/
|
48
|
+
decrementQueueCounter() {
|
49
|
+
this.counter--;
|
50
|
+
}
|
42
51
|
}
|
43
52
|
exports.PromisedBasedQueue = PromisedBasedQueue;
|