nx 19.4.0-canary.20240622-963f753 → 19.4.0-canary.20240626-3a2e8d4
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +12 -12
- package/release/changelog-renderer/index.d.ts +6 -0
- package/release/changelog-renderer/index.js +1 -1
- package/src/command-line/init/implementation/dot-nx/add-nx-scripts.js +5 -6
- package/src/command-line/release/changelog.js +6 -1
- package/src/command-line/release/config/config.js +3 -0
- package/src/core/graph/main.js +1 -1
- package/src/daemon/client/client.d.ts +5 -0
- package/src/daemon/client/client.js +14 -0
- package/src/daemon/message-types/task-history.d.ts +13 -0
- package/src/daemon/message-types/task-history.js +19 -0
- package/src/daemon/server/handle-get-task-history.d.ts +4 -0
- package/src/daemon/server/handle-get-task-history.js +12 -0
- package/src/daemon/server/handle-write-task-runs-to-history.d.ts +5 -0
- package/src/daemon/server/handle-write-task-runs-to-history.js +12 -0
- package/src/daemon/server/plugins.js +12 -2
- package/src/daemon/server/server.js +9 -0
- package/src/project-graph/plugins/isolation/index.d.ts +1 -1
- package/src/project-graph/plugins/isolation/index.js +11 -4
- package/src/project-graph/plugins/isolation/plugin-pool.d.ts +1 -1
- package/src/project-graph/plugins/isolation/plugin-pool.js +10 -4
- package/src/project-graph/project-graph.js +7 -1
- package/src/project-graph/utils/project-configuration-utils.js +1 -1
- package/src/tasks-runner/default-tasks-runner.js +2 -2
- package/src/tasks-runner/life-cycle.d.ts +10 -10
- package/src/tasks-runner/life-cycle.js +10 -10
- package/src/tasks-runner/life-cycles/task-history-life-cycle.d.ts +9 -0
- package/src/tasks-runner/life-cycles/task-history-life-cycle.js +54 -0
- package/src/tasks-runner/run-command.js +6 -0
- package/src/tasks-runner/task-orchestrator.js +4 -4
- package/src/utils/serialize-target.d.ts +1 -0
- package/src/utils/serialize-target.js +7 -0
- package/src/utils/task-history.d.ts +8 -0
- package/src/utils/task-history.js +97 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "19.4.0-canary.
|
3
|
+
"version": "19.4.0-canary.20240626-3a2e8d4",
|
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": {
|
@@ -70,7 +70,7 @@
|
|
70
70
|
"yargs-parser": "21.1.1",
|
71
71
|
"node-machine-id": "1.1.12",
|
72
72
|
"ora": "5.3.0",
|
73
|
-
"@nrwl/tao": "19.4.0-canary.
|
73
|
+
"@nrwl/tao": "19.4.0-canary.20240626-3a2e8d4"
|
74
74
|
},
|
75
75
|
"peerDependencies": {
|
76
76
|
"@swc-node/register": "^1.8.0",
|
@@ -85,16 +85,16 @@
|
|
85
85
|
}
|
86
86
|
},
|
87
87
|
"optionalDependencies": {
|
88
|
-
"@nx/nx-darwin-x64": "19.4.0-canary.
|
89
|
-
"@nx/nx-darwin-arm64": "19.4.0-canary.
|
90
|
-
"@nx/nx-linux-x64-gnu": "19.4.0-canary.
|
91
|
-
"@nx/nx-linux-x64-musl": "19.4.0-canary.
|
92
|
-
"@nx/nx-win32-x64-msvc": "19.4.0-canary.
|
93
|
-
"@nx/nx-linux-arm64-gnu": "19.4.0-canary.
|
94
|
-
"@nx/nx-linux-arm64-musl": "19.4.0-canary.
|
95
|
-
"@nx/nx-linux-arm-gnueabihf": "19.4.0-canary.
|
96
|
-
"@nx/nx-win32-arm64-msvc": "19.4.0-canary.
|
97
|
-
"@nx/nx-freebsd-x64": "19.4.0-canary.
|
88
|
+
"@nx/nx-darwin-x64": "19.4.0-canary.20240626-3a2e8d4",
|
89
|
+
"@nx/nx-darwin-arm64": "19.4.0-canary.20240626-3a2e8d4",
|
90
|
+
"@nx/nx-linux-x64-gnu": "19.4.0-canary.20240626-3a2e8d4",
|
91
|
+
"@nx/nx-linux-x64-musl": "19.4.0-canary.20240626-3a2e8d4",
|
92
|
+
"@nx/nx-win32-x64-msvc": "19.4.0-canary.20240626-3a2e8d4",
|
93
|
+
"@nx/nx-linux-arm64-gnu": "19.4.0-canary.20240626-3a2e8d4",
|
94
|
+
"@nx/nx-linux-arm64-musl": "19.4.0-canary.20240626-3a2e8d4",
|
95
|
+
"@nx/nx-linux-arm-gnueabihf": "19.4.0-canary.20240626-3a2e8d4",
|
96
|
+
"@nx/nx-win32-arm64-msvc": "19.4.0-canary.20240626-3a2e8d4",
|
97
|
+
"@nx/nx-freebsd-x64": "19.4.0-canary.20240626-3a2e8d4"
|
98
98
|
},
|
99
99
|
"nx-migrations": {
|
100
100
|
"migrations": "./migrations.json",
|
@@ -53,6 +53,12 @@ export interface DefaultChangelogRenderOptions extends ChangelogRenderOptions {
|
|
53
53
|
* section. Defaults to true.
|
54
54
|
*/
|
55
55
|
authors?: boolean;
|
56
|
+
/**
|
57
|
+
* If authors is enabled, controls whether or not to try to map the authors to their GitHub usernames
|
58
|
+
* using https://ungh.cc (from https://github.com/unjs/ungh) and the email addresses found in the commits.
|
59
|
+
* Defaults to true.
|
60
|
+
*/
|
61
|
+
mapAuthorsToGitHubUsernames?: boolean;
|
56
62
|
/**
|
57
63
|
* Whether or not the commit references (such as commit and/or PR links) should be included in the changelog.
|
58
64
|
* Defaults to true.
|
@@ -145,7 +145,7 @@ const defaultChangelogRenderer = async ({ projectGraph, changes, releaseVersion,
|
|
145
145
|
}
|
146
146
|
}
|
147
147
|
// Try to map authors to github usernames
|
148
|
-
if (repoSlug) {
|
148
|
+
if (repoSlug && changelogRenderOptions.mapAuthorsToGitHubUsernames) {
|
149
149
|
await Promise.all([..._authors.keys()].map(async (authorName) => {
|
150
150
|
const meta = _authors.get(authorName);
|
151
151
|
for (const email of meta.email) {
|
@@ -74,12 +74,11 @@ function writeMinimalNxJson(host, version) {
|
|
74
74
|
exports.writeMinimalNxJson = writeMinimalNxJson;
|
75
75
|
function updateGitIgnore(host) {
|
76
76
|
let contents = host.read('.gitignore', 'utf-8') ?? '';
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
}
|
77
|
+
['.nx/installation', '.nx/cache', '.nx/workspace-data'].forEach((file) => {
|
78
|
+
if (!contents.includes(file)) {
|
79
|
+
contents = [contents, file].join('\n');
|
80
|
+
}
|
81
|
+
});
|
83
82
|
host.write('.gitignore', contents);
|
84
83
|
}
|
85
84
|
exports.updateGitIgnore = updateGitIgnore;
|
@@ -222,7 +222,12 @@ async function releaseChangelog(args) {
|
|
222
222
|
continue;
|
223
223
|
}
|
224
224
|
for (const project of releaseGroup.projects) {
|
225
|
-
|
225
|
+
// If the project does not have any changes, do not process its dependents
|
226
|
+
if (!projectsVersionData[project] ||
|
227
|
+
projectsVersionData[project].newVersion === null) {
|
228
|
+
continue;
|
229
|
+
}
|
230
|
+
const dependentProjects = (projectsVersionData[project].dependentProjects || [])
|
226
231
|
.map((dep) => {
|
227
232
|
return {
|
228
233
|
dependencyName: dep.source,
|
@@ -110,6 +110,7 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
|
|
110
110
|
renderer: defaultRendererPath,
|
111
111
|
renderOptions: {
|
112
112
|
authors: true,
|
113
|
+
mapAuthorsToGitHubUsernames: true,
|
113
114
|
commitReferences: true,
|
114
115
|
versionTitleDate: true,
|
115
116
|
},
|
@@ -123,6 +124,7 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
|
|
123
124
|
renderer: defaultRendererPath,
|
124
125
|
renderOptions: {
|
125
126
|
authors: true,
|
127
|
+
mapAuthorsToGitHubUsernames: true,
|
126
128
|
commitReferences: true,
|
127
129
|
versionTitleDate: true,
|
128
130
|
},
|
@@ -153,6 +155,7 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
|
|
153
155
|
renderer: defaultRendererPath,
|
154
156
|
renderOptions: {
|
155
157
|
authors: true,
|
158
|
+
mapAuthorsToGitHubUsernames: true,
|
156
159
|
commitReferences: true,
|
157
160
|
versionTitleDate: true,
|
158
161
|
},
|