nx 22.0.0-canary.20251021-6934445 → 22.0.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 +12 -11
- package/release/changelog-renderer/index.d.ts +3 -3
- package/release/changelog-renderer/index.d.ts.map +1 -1
- package/release/changelog-renderer/index.js +19 -17
- package/src/command-line/release/changelog.js +2 -4
- package/src/core/graph/main.js +1 -1
- package/src/daemon/tmp-dir.d.ts +1 -1
- package/src/daemon/tmp-dir.d.ts.map +1 -1
- package/src/daemon/tmp-dir.js +2 -2
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/project-graph/project-graph.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "22.0.0
|
|
3
|
+
"version": "22.0.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.0.0
|
|
87
|
-
"@nx/nx-darwin-x64": "22.0.0
|
|
88
|
-
"@nx/nx-freebsd-x64": "22.0.0
|
|
89
|
-
"@nx/nx-linux-arm-gnueabihf": "22.0.0
|
|
90
|
-
"@nx/nx-linux-arm64-gnu": "22.0.0
|
|
91
|
-
"@nx/nx-linux-arm64-musl": "22.0.0
|
|
92
|
-
"@nx/nx-linux-x64-gnu": "22.0.0
|
|
93
|
-
"@nx/nx-linux-x64-musl": "22.0.0
|
|
94
|
-
"@nx/nx-win32-arm64-msvc": "22.0.0
|
|
95
|
-
"@nx/nx-win32-x64-msvc": "22.0.0
|
|
86
|
+
"@nx/nx-darwin-arm64": "22.0.0",
|
|
87
|
+
"@nx/nx-darwin-x64": "22.0.0",
|
|
88
|
+
"@nx/nx-freebsd-x64": "22.0.0",
|
|
89
|
+
"@nx/nx-linux-arm-gnueabihf": "22.0.0",
|
|
90
|
+
"@nx/nx-linux-arm64-gnu": "22.0.0",
|
|
91
|
+
"@nx/nx-linux-arm64-musl": "22.0.0",
|
|
92
|
+
"@nx/nx-linux-x64-gnu": "22.0.0",
|
|
93
|
+
"@nx/nx-linux-x64-musl": "22.0.0",
|
|
94
|
+
"@nx/nx-win32-arm64-msvc": "22.0.0",
|
|
95
|
+
"@nx/nx-win32-x64-msvc": "22.0.0"
|
|
96
96
|
},
|
|
97
97
|
"nx-migrations": {
|
|
98
98
|
"migrations": "./migrations.json",
|
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
"@nx/cypress",
|
|
107
107
|
"@nx/detox",
|
|
108
108
|
"@nx/devkit",
|
|
109
|
+
"@nx/dotnet",
|
|
109
110
|
"@nx/esbuild",
|
|
110
111
|
"@nx/eslint-plugin",
|
|
111
112
|
"@nx/expo",
|
|
@@ -54,7 +54,7 @@ export default class DefaultChangelogRenderer {
|
|
|
54
54
|
protected changelogRenderOptions: DefaultChangelogRenderOptions;
|
|
55
55
|
protected isVersionPlans: boolean;
|
|
56
56
|
protected dependencyBumps?: DependencyBump[];
|
|
57
|
-
protected conventionalCommitsConfig: NxReleaseConfig['conventionalCommits']
|
|
57
|
+
protected conventionalCommitsConfig: NxReleaseConfig['conventionalCommits'];
|
|
58
58
|
protected relevantChanges: ChangelogChange[];
|
|
59
59
|
protected breakingChanges: string[];
|
|
60
60
|
protected additionalChangesForAuthorsSection: ChangelogChange[];
|
|
@@ -71,7 +71,7 @@ export default class DefaultChangelogRenderer {
|
|
|
71
71
|
* @param {boolean} config.isVersionPlans Whether or not Nx release version plans are the source of truth for the changelog entry
|
|
72
72
|
* @param {ChangelogRenderOptions} config.changelogRenderOptions The options specific to the ChangelogRenderer implementation
|
|
73
73
|
* @param {DependencyBump[]} config.dependencyBumps Optional list of additional dependency bumps that occurred as part of the release, outside of the change data
|
|
74
|
-
* @param {NxReleaseConfig['conventionalCommits']
|
|
74
|
+
* @param {NxReleaseConfig['conventionalCommits']} config.conventionalCommitsConfig The configuration for conventional commits
|
|
75
75
|
* @param {RemoteReleaseClient} config.remoteReleaseClient The remote release client to use for formatting references
|
|
76
76
|
*/
|
|
77
77
|
constructor(config: {
|
|
@@ -82,7 +82,7 @@ export default class DefaultChangelogRenderer {
|
|
|
82
82
|
isVersionPlans: boolean;
|
|
83
83
|
changelogRenderOptions: DefaultChangelogRenderOptions;
|
|
84
84
|
dependencyBumps?: DependencyBump[];
|
|
85
|
-
conventionalCommitsConfig: NxReleaseConfig['conventionalCommits']
|
|
85
|
+
conventionalCommitsConfig: NxReleaseConfig['conventionalCommits'];
|
|
86
86
|
remoteReleaseClient: RemoteReleaseClient<unknown>;
|
|
87
87
|
});
|
|
88
88
|
protected filterChanges(changes: ChangelogChange[], project: string | null): ChangelogChange[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/release/changelog-renderer/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/release/changelog-renderer/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mFAAmF,CAAC;AAE7H;;GAEG;AACH,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE7D;;;;GAIG;AACH,MAAM,M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B1E,SAAS,CAAC,UAAU,CAAC,IAAI,SAAK,GAAG,MAAM;CAMxC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const semver_1 = require("semver");
|
|
4
|
-
const conventional_commits_1 = require("../../src/command-line/release/config/conventional-commits");
|
|
5
4
|
class DefaultChangelogRenderer {
|
|
6
5
|
/**
|
|
7
6
|
* A ChangelogRenderer class takes in the determined changes and other relevant metadata
|
|
@@ -15,7 +14,7 @@ class DefaultChangelogRenderer {
|
|
|
15
14
|
* @param {boolean} config.isVersionPlans Whether or not Nx release version plans are the source of truth for the changelog entry
|
|
16
15
|
* @param {ChangelogRenderOptions} config.changelogRenderOptions The options specific to the ChangelogRenderer implementation
|
|
17
16
|
* @param {DependencyBump[]} config.dependencyBumps Optional list of additional dependency bumps that occurred as part of the release, outside of the change data
|
|
18
|
-
* @param {NxReleaseConfig['conventionalCommits']
|
|
17
|
+
* @param {NxReleaseConfig['conventionalCommits']} config.conventionalCommitsConfig The configuration for conventional commits
|
|
19
18
|
* @param {RemoteReleaseClient} config.remoteReleaseClient The remote release client to use for formatting references
|
|
20
19
|
*/
|
|
21
20
|
constructor(config) {
|
|
@@ -86,12 +85,6 @@ class DefaultChangelogRenderer {
|
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
87
|
if (this.isVersionPlans) {
|
|
89
|
-
this.conventionalCommitsConfig = {
|
|
90
|
-
types: {
|
|
91
|
-
feat: conventional_commits_1.DEFAULT_CONVENTIONAL_COMMITS_CONFIG.types.feat,
|
|
92
|
-
fix: conventional_commits_1.DEFAULT_CONVENTIONAL_COMMITS_CONFIG.types.fix,
|
|
93
|
-
},
|
|
94
|
-
};
|
|
95
88
|
for (let i = this.relevantChanges.length - 1; i >= 0; i--) {
|
|
96
89
|
if (this.relevantChanges[i].isBreaking) {
|
|
97
90
|
const change = this.relevantChanges[i];
|
|
@@ -256,9 +249,12 @@ class DefaultChangelogRenderer {
|
|
|
256
249
|
if (description.includes('\n')) {
|
|
257
250
|
[description, ...extraLines] = description.split('\n');
|
|
258
251
|
const indentation = ' ';
|
|
259
|
-
extraLinesStr =
|
|
260
|
-
|
|
261
|
-
|
|
252
|
+
extraLinesStr = (this.isVersionPlans
|
|
253
|
+
? // Preserve newlines for version plan sources to allow author to maintain maximum control over final contents
|
|
254
|
+
extraLines
|
|
255
|
+
: extraLines.filter((l) => l.trim().length > 0))
|
|
256
|
+
// Only add indentation to lines with content
|
|
257
|
+
.map((l) => (l.trim().length > 0 ? `${indentation}${l}` : ''))
|
|
262
258
|
.join('\n');
|
|
263
259
|
}
|
|
264
260
|
let changeLine = '- ' +
|
|
@@ -273,7 +269,7 @@ class DefaultChangelogRenderer {
|
|
|
273
269
|
changeLine += this.remoteReleaseClient.formatReferences(change.githubReferences);
|
|
274
270
|
}
|
|
275
271
|
if (extraLinesStr) {
|
|
276
|
-
changeLine += '\n\n' + extraLinesStr;
|
|
272
|
+
changeLine += (this.isVersionPlans ? '\n' : '\n\n') + extraLinesStr;
|
|
277
273
|
}
|
|
278
274
|
return changeLine;
|
|
279
275
|
}
|
|
@@ -341,12 +337,18 @@ class DefaultChangelogRenderer {
|
|
|
341
337
|
return null;
|
|
342
338
|
}
|
|
343
339
|
const startOfBreakingChange = startIndex + breakingChangeIdentifier.length;
|
|
344
|
-
// Extract all text after BREAKING CHANGE: until we hit git metadata
|
|
340
|
+
// Extract all text after BREAKING CHANGE: until we hit a Co-authored-by section or git metadata
|
|
345
341
|
let endOfBreakingChange = message.length;
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
342
|
+
const coAuthoredBySection = message.indexOf('---------\n\nCo-authored-by:');
|
|
343
|
+
if (coAuthoredBySection !== -1) {
|
|
344
|
+
endOfBreakingChange = coAuthoredBySection;
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
// Look for the git metadata delimiter (a line with just ")
|
|
348
|
+
const gitMetadataMarker = message.indexOf('"\n', startOfBreakingChange);
|
|
349
|
+
if (gitMetadataMarker !== -1) {
|
|
350
|
+
endOfBreakingChange = gitMetadataMarker;
|
|
351
|
+
}
|
|
350
352
|
}
|
|
351
353
|
return message.substring(startOfBreakingChange, endOfBreakingChange).trim();
|
|
352
354
|
}
|
|
@@ -760,7 +760,7 @@ async function generateChangelogForWorkspace({ tree, args, nxReleaseConfig, work
|
|
|
760
760
|
changes,
|
|
761
761
|
changelogEntryVersion: releaseVersion.rawVersion,
|
|
762
762
|
project: null,
|
|
763
|
-
isVersionPlans:
|
|
763
|
+
isVersionPlans: !!nxReleaseConfig.versionPlans,
|
|
764
764
|
entryWhenNoChanges: config.entryWhenNoChanges,
|
|
765
765
|
changelogRenderOptions: config.renderOptions,
|
|
766
766
|
conventionalCommitsConfig: nxReleaseConfig.conventionalCommits,
|
|
@@ -873,9 +873,7 @@ async function generateChangelogForProjects({ tree, args, changes, projectsVersi
|
|
|
873
873
|
: false,
|
|
874
874
|
changelogRenderOptions: config.renderOptions,
|
|
875
875
|
isVersionPlans: !!releaseGroup.versionPlans,
|
|
876
|
-
conventionalCommitsConfig:
|
|
877
|
-
? null
|
|
878
|
-
: nxReleaseConfig.conventionalCommits,
|
|
876
|
+
conventionalCommitsConfig: nxReleaseConfig.conventionalCommits,
|
|
879
877
|
dependencyBumps: projectToAdditionalDependencyBumps.get(project.name),
|
|
880
878
|
remoteReleaseClient,
|
|
881
879
|
});
|