nx 22.1.0-rc.5 → 22.1.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 +11 -11
- package/src/command-line/release/utils/shared.d.ts.map +1 -1
- package/src/command-line/release/utils/shared.js +5 -5
- package/src/core/graph/main.js +1 -1
- package/src/daemon/server/server.js +9 -9
- package/src/hasher/task-hasher.js +1 -1
- package/src/native/nx.wasi-browser.js +45 -53
- package/src/native/nx.wasm32-wasi.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "22.1.0
|
|
3
|
+
"version": "22.1.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": {
|
|
@@ -83,16 +83,16 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"optionalDependencies": {
|
|
86
|
-
"@nx/nx-darwin-arm64": "22.1.0
|
|
87
|
-
"@nx/nx-darwin-x64": "22.1.0
|
|
88
|
-
"@nx/nx-freebsd-x64": "22.1.0
|
|
89
|
-
"@nx/nx-linux-arm-gnueabihf": "22.1.0
|
|
90
|
-
"@nx/nx-linux-arm64-gnu": "22.1.0
|
|
91
|
-
"@nx/nx-linux-arm64-musl": "22.1.0
|
|
92
|
-
"@nx/nx-linux-x64-gnu": "22.1.0
|
|
93
|
-
"@nx/nx-linux-x64-musl": "22.1.0
|
|
94
|
-
"@nx/nx-win32-arm64-msvc": "22.1.0
|
|
95
|
-
"@nx/nx-win32-x64-msvc": "22.1.0
|
|
86
|
+
"@nx/nx-darwin-arm64": "22.1.0",
|
|
87
|
+
"@nx/nx-darwin-x64": "22.1.0",
|
|
88
|
+
"@nx/nx-freebsd-x64": "22.1.0",
|
|
89
|
+
"@nx/nx-linux-arm-gnueabihf": "22.1.0",
|
|
90
|
+
"@nx/nx-linux-arm64-gnu": "22.1.0",
|
|
91
|
+
"@nx/nx-linux-arm64-musl": "22.1.0",
|
|
92
|
+
"@nx/nx-linux-x64-gnu": "22.1.0",
|
|
93
|
+
"@nx/nx-linux-x64-musl": "22.1.0",
|
|
94
|
+
"@nx/nx-win32-arm64-msvc": "22.1.0",
|
|
95
|
+
"@nx/nx-win32-x64-msvc": "22.1.0"
|
|
96
96
|
},
|
|
97
97
|
"nx-migrations": {
|
|
98
98
|
"migrations": "./migrations.json",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/utils/shared.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/utils/shared.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAW7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAC;AAErD,eAAO,MAAM,wBAAwB,QAEpC,CAAC;AAGF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAE3D,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,iBAAiB,EAAE;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,oBAAoB,EAAE,MAAM,CAAC;QAC7B,cAAc,EAAE,MAAM,CAAC;KACxB,EAAE,CAAC;CACL;A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rC,8BAA8B,EAAE,GAAG,CAAC,oBAAoB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,EACtE,WAAW,EAAE,WAAW,GACvB,MAAM,EAAE,CA6FV;AAeD,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,IAAI,CAcnE;AAED,wBAAsB,4BAA4B,CAChD,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,SAAS,EAAE,EACpB,QAAQ,EAAE,MAAM,EAAE,GAEpB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,qBAAqB,EAAE,OAAO,CAAA;CAAE,EAAE,CAAC,CAAC,CAwC5E"}
|
|
@@ -272,11 +272,11 @@ async function getCommitsRelevantToProjects(projectGraph, commits, projects) {
|
|
|
272
272
|
const projectSet = new Set(projects);
|
|
273
273
|
const relevantCommits = new Map();
|
|
274
274
|
for (const commit of commits) {
|
|
275
|
-
// Convert affectedFiles to FileChange[] format
|
|
276
|
-
const touchedFiles = commit.affectedFiles
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
})
|
|
275
|
+
// Convert affectedFiles to FileChange[] format with proper diff computation
|
|
276
|
+
const touchedFiles = (0, file_utils_1.calculateFileChanges)(commit.affectedFiles, {
|
|
277
|
+
base: `${commit.shortHash}^`,
|
|
278
|
+
head: commit.shortHash,
|
|
279
|
+
});
|
|
280
280
|
// Use the same affected detection logic as `nx affected`
|
|
281
281
|
const affectedGraph = await (0, affected_project_graph_1.filterAffected)(projectGraph, touchedFiles);
|
|
282
282
|
for (const projectName of Object.keys(affectedGraph.nodes)) {
|