nx 16.6.0-beta.8 → 16.7.0-beta.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/package.json +13 -13
- package/src/command-line/affected/print-affected.js +2 -2
- package/src/command-line/graph/graph.js +3 -3
- package/src/command-line/migrate/migrate.js +2 -2
- package/src/command-line/show/command-object.js +2 -2
- package/src/core/graph/3rdpartylicenses.txt +0 -25
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/polyfills.js +1 -1
- package/src/daemon/server/handle-hash-tasks.js +2 -4
- package/src/hasher/hash-task.js +2 -2
- package/src/hasher/task-hasher.d.ts +16 -8
- package/src/hasher/task-hasher.js +30 -31
- package/src/plugins/js/project-graph/build-dependencies/build-dependencies.js +1 -2
- package/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.js +6 -5
- package/src/tasks-runner/run-command.js +28 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.7.0-beta.0",
|
|
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": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://nx.dev",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nrwl/tao": "16.
|
|
35
|
+
"@nrwl/tao": "16.7.0-beta.0",
|
|
36
36
|
"@parcel/watcher": "2.0.4",
|
|
37
37
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
38
38
|
"@yarnpkg/parsers": "3.0.0-rc.46",
|
|
@@ -81,16 +81,16 @@
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"optionalDependencies": {
|
|
84
|
-
"@nx/nx-darwin-arm64": "16.
|
|
85
|
-
"@nx/nx-darwin-x64": "16.
|
|
86
|
-
"@nx/nx-freebsd-x64": "16.
|
|
87
|
-
"@nx/nx-linux-arm-gnueabihf": "16.
|
|
88
|
-
"@nx/nx-linux-arm64-gnu": "16.
|
|
89
|
-
"@nx/nx-linux-arm64-musl": "16.
|
|
90
|
-
"@nx/nx-linux-x64-gnu": "16.
|
|
91
|
-
"@nx/nx-linux-x64-musl": "16.
|
|
92
|
-
"@nx/nx-win32-arm64-msvc": "16.
|
|
93
|
-
"@nx/nx-win32-x64-msvc": "16.
|
|
84
|
+
"@nx/nx-darwin-arm64": "16.7.0-beta.0",
|
|
85
|
+
"@nx/nx-darwin-x64": "16.7.0-beta.0",
|
|
86
|
+
"@nx/nx-freebsd-x64": "16.7.0-beta.0",
|
|
87
|
+
"@nx/nx-linux-arm-gnueabihf": "16.7.0-beta.0",
|
|
88
|
+
"@nx/nx-linux-arm64-gnu": "16.7.0-beta.0",
|
|
89
|
+
"@nx/nx-linux-arm64-musl": "16.7.0-beta.0",
|
|
90
|
+
"@nx/nx-linux-x64-gnu": "16.7.0-beta.0",
|
|
91
|
+
"@nx/nx-linux-x64-musl": "16.7.0-beta.0",
|
|
92
|
+
"@nx/nx-win32-arm64-msvc": "16.7.0-beta.0",
|
|
93
|
+
"@nx/nx-win32-x64-msvc": "16.7.0-beta.0"
|
|
94
94
|
},
|
|
95
95
|
"nx-migrations": {
|
|
96
96
|
"migrations": "./migrations.json",
|
|
@@ -177,5 +177,5 @@
|
|
|
177
177
|
},
|
|
178
178
|
"main": "./bin/nx.js",
|
|
179
179
|
"types": "./bin/nx.d.ts",
|
|
180
|
-
"gitHead": "
|
|
180
|
+
"gitHead": "bda51652665181d38894e7ed910151e60176a9be"
|
|
181
181
|
}
|
|
@@ -39,10 +39,10 @@ function createTasks(affectedProjectsWithTargetAndConfig, projectGraph, nxArgs,
|
|
|
39
39
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
const defaultDependencyConfigs = (0, create_task_graph_1.mapTargetDefaultsToDependencies)(nxJson.targetDefaults);
|
|
41
41
|
const taskGraph = (0, create_task_graph_1.createTaskGraph)(projectGraph, defaultDependencyConfigs, affectedProjectsWithTargetAndConfig.map((p) => p.name), nxArgs.targets, nxArgs.configuration, overrides);
|
|
42
|
-
const hasher = new task_hasher_1.InProcessTaskHasher({}, [], projectGraph,
|
|
42
|
+
const hasher = new task_hasher_1.InProcessTaskHasher({}, [], projectGraph, nxJson, {}, file_hasher_1.fileHasher);
|
|
43
43
|
const execCommand = (0, package_manager_1.getPackageManagerCommand)().exec;
|
|
44
44
|
const tasks = Object.values(taskGraph.tasks);
|
|
45
|
-
yield Promise.all(tasks.map((t) => (0, hash_task_1.hashTask)(hasher, projectGraph,
|
|
45
|
+
yield Promise.all(tasks.map((t) => (0, hash_task_1.hashTask)(hasher, projectGraph, taskGraph, t)));
|
|
46
46
|
return tasks.map((task) => ({
|
|
47
47
|
id: task.id,
|
|
48
48
|
overrides,
|
|
@@ -10,7 +10,7 @@ const http = require("http");
|
|
|
10
10
|
const open = require("open");
|
|
11
11
|
const path_1 = require("path");
|
|
12
12
|
const perf_hooks_1 = require("perf_hooks");
|
|
13
|
-
const
|
|
13
|
+
const node_url_1 = require("node:url");
|
|
14
14
|
const configuration_1 = require("../../config/configuration");
|
|
15
15
|
const output_1 = require("../../utils/output");
|
|
16
16
|
const fileutils_1 = require("../../utils/fileutils");
|
|
@@ -280,7 +280,7 @@ function startServer(html, environmentJs, host, port = 4211, watchForchanges = f
|
|
|
280
280
|
currentDepGraphClientResponse.exclude = exclude;
|
|
281
281
|
const app = http.createServer((req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
282
282
|
// parse URL
|
|
283
|
-
const parsedUrl = new
|
|
283
|
+
const parsedUrl = new node_url_1.URL(req.url, `http://${host}:${port}`);
|
|
284
284
|
// extract URL path
|
|
285
285
|
// Avoid https://en.wikipedia.org/wiki/Directory_traversal_attack
|
|
286
286
|
// e.g curl --path-as-is http://localhost:9000/../fileInDanger.txt
|
|
@@ -334,7 +334,7 @@ function startServer(html, environmentJs, host, port = 4211, watchForchanges = f
|
|
|
334
334
|
process.on('SIGTERM', () => handleTermination(128 + 15));
|
|
335
335
|
return new Promise((res) => {
|
|
336
336
|
app.listen(port, host, () => {
|
|
337
|
-
res({ app, url: new
|
|
337
|
+
res({ app, url: new node_url_1.URL(`http://${host}:${port}`) });
|
|
338
338
|
});
|
|
339
339
|
});
|
|
340
340
|
});
|
|
@@ -7,7 +7,7 @@ const child_process_1 = require("child_process");
|
|
|
7
7
|
const enquirer_1 = require("enquirer");
|
|
8
8
|
const path_1 = require("path");
|
|
9
9
|
const semver_1 = require("semver");
|
|
10
|
-
const
|
|
10
|
+
const node_url_1 = require("node:url");
|
|
11
11
|
const util_1 = require("util");
|
|
12
12
|
const tree_1 = require("../../generators/tree");
|
|
13
13
|
const fileutils_1 = require("../../utils/fileutils");
|
|
@@ -612,7 +612,7 @@ function getPackageMigrationsConfigFromRegistry(packageName, packageVersion) {
|
|
|
612
612
|
}
|
|
613
613
|
const json = JSON.parse(result);
|
|
614
614
|
if (!json['nx-migrations'] && !json['ng-update']) {
|
|
615
|
-
const registry = new
|
|
615
|
+
const registry = new node_url_1.URL('dist' in json ? json.dist.tarball : json.tarball)
|
|
616
616
|
.hostname;
|
|
617
617
|
// Registries other than npmjs and the local registry may not support full metadata via npm view
|
|
618
618
|
// so throw error so that fetcher falls back to getting config via install
|
|
@@ -47,8 +47,8 @@ const showProjectsCommand = {
|
|
|
47
47
|
.implies('files', 'affected')
|
|
48
48
|
.implies('base', 'affected')
|
|
49
49
|
.implies('head', 'affected')
|
|
50
|
-
.example('$0 show projects --
|
|
51
|
-
.example('$0 show projects --
|
|
50
|
+
.example('$0 show projects --projects "apps/*"', 'Show all projects in the apps directory')
|
|
51
|
+
.example('$0 show projects --projects "shared-*"', 'Show all projects that start with "shared-"')
|
|
52
52
|
.example('$0 show projects --affected', 'Show affected projects in the workspace')
|
|
53
53
|
.example('$0 show projects --affected --exclude *-e2e', 'Show affected projects in the workspace, excluding end-to-end projects'),
|
|
54
54
|
handler: (args) => Promise.resolve().then(() => require('./show')).then((m) => m.showProjectsHandler(args)),
|
|
@@ -590,31 +590,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
590
590
|
SOFTWARE.
|
|
591
591
|
|
|
592
592
|
|
|
593
|
-
regenerator-runtime
|
|
594
|
-
MIT
|
|
595
|
-
MIT License
|
|
596
|
-
|
|
597
|
-
Copyright (c) 2014-present, Facebook, Inc.
|
|
598
|
-
|
|
599
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
600
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
601
|
-
in the Software without restriction, including without limitation the rights
|
|
602
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
603
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
604
|
-
furnished to do so, subject to the following conditions:
|
|
605
|
-
|
|
606
|
-
The above copyright notice and this permission notice shall be included in all
|
|
607
|
-
copies or substantial portions of the Software.
|
|
608
|
-
|
|
609
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
610
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
611
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
612
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
613
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
614
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
615
|
-
SOFTWARE.
|
|
616
|
-
|
|
617
|
-
|
|
618
593
|
use-isomorphic-layout-effect
|
|
619
594
|
MIT
|
|
620
595
|
MIT License
|