nx 22.0.0-canary.20251014-82acc84 → 22.0.0-canary.20251015-f37c13b
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "22.0.0-canary.
|
|
3
|
+
"version": "22.0.0-canary.20251015-f37c13b",
|
|
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-canary.
|
|
87
|
-
"@nx/nx-darwin-x64": "22.0.0-canary.
|
|
88
|
-
"@nx/nx-freebsd-x64": "22.0.0-canary.
|
|
89
|
-
"@nx/nx-linux-arm-gnueabihf": "22.0.0-canary.
|
|
90
|
-
"@nx/nx-linux-arm64-gnu": "22.0.0-canary.
|
|
91
|
-
"@nx/nx-linux-arm64-musl": "22.0.0-canary.
|
|
92
|
-
"@nx/nx-linux-x64-gnu": "22.0.0-canary.
|
|
93
|
-
"@nx/nx-linux-x64-musl": "22.0.0-canary.
|
|
94
|
-
"@nx/nx-win32-arm64-msvc": "22.0.0-canary.
|
|
95
|
-
"@nx/nx-win32-x64-msvc": "22.0.0-canary.
|
|
86
|
+
"@nx/nx-darwin-arm64": "22.0.0-canary.20251015-f37c13b",
|
|
87
|
+
"@nx/nx-darwin-x64": "22.0.0-canary.20251015-f37c13b",
|
|
88
|
+
"@nx/nx-freebsd-x64": "22.0.0-canary.20251015-f37c13b",
|
|
89
|
+
"@nx/nx-linux-arm-gnueabihf": "22.0.0-canary.20251015-f37c13b",
|
|
90
|
+
"@nx/nx-linux-arm64-gnu": "22.0.0-canary.20251015-f37c13b",
|
|
91
|
+
"@nx/nx-linux-arm64-musl": "22.0.0-canary.20251015-f37c13b",
|
|
92
|
+
"@nx/nx-linux-x64-gnu": "22.0.0-canary.20251015-f37c13b",
|
|
93
|
+
"@nx/nx-linux-x64-musl": "22.0.0-canary.20251015-f37c13b",
|
|
94
|
+
"@nx/nx-win32-arm64-msvc": "22.0.0-canary.20251015-f37c13b",
|
|
95
|
+
"@nx/nx-win32-x64-msvc": "22.0.0-canary.20251015-f37c13b"
|
|
96
96
|
},
|
|
97
97
|
"nx-migrations": {
|
|
98
98
|
"migrations": "./migrations.json",
|
|
@@ -95,6 +95,7 @@ export default class DefaultChangelogRenderer {
|
|
|
95
95
|
protected shouldRenderAuthors(): boolean;
|
|
96
96
|
protected renderAuthors(): Promise<string[]>;
|
|
97
97
|
protected formatChange(change: ChangelogChange): string;
|
|
98
|
+
protected formatBreakingChange(change: ChangelogChange): string;
|
|
98
99
|
protected groupChangesByType(): Record<string, ChangelogChange[]>;
|
|
99
100
|
protected groupChangesByScope(changes: ChangelogChange[]): Record<string, ChangelogChange[]>;
|
|
100
101
|
protected extractBreakingChangeExplanation(message: string): string | null;
|
|
@@ -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;AAEpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mFAAmF,CAAC;AAE7H;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE7D;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,6BAA8B,SAAQ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I,MAAM;IAoBtC,SAAS,CAAC,mBAAmB,IAAI,MAAM,EAAE;IA4CzC,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAIvC,SAAS,CAAC,qBAAqB,IAAI,MAAM,EAAE;IAK3C,SAAS,CAAC,kBAAkB,IAAI,OAAO;IAIvC,SAAS,CAAC,qBAAqB,IAAI,MAAM,EAAE;IAQ3C,SAAS,CAAC,mBAAmB,IAAI,OAAO;cAIxB,aAAa,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IA2DlD,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM;IAkCvD,SAAS,CAAC,oBAAoB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM;IAkD/D,SAAS,CAAC,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,eAAe,EAAE,CAAC;IASjE,SAAS,CAAC,mBAAmB,CAC3B,OAAO,EAAE,eAAe,EAAE,GACzB,MAAM,CAAC,MAAM,EAAE,eAAe,EAAE,CAAC;IAUpC,SAAS,CAAC,gCAAgC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IA0B1E,SAAS,CAAC,UAAU,CAAC,IAAI,SAAK,GAAG,MAAM;CAMxC"}
|
|
@@ -105,10 +105,7 @@ class DefaultChangelogRenderer {
|
|
|
105
105
|
else {
|
|
106
106
|
for (const change of this.relevantChanges) {
|
|
107
107
|
if (change.isBreaking) {
|
|
108
|
-
|
|
109
|
-
this.breakingChanges.push(breakingChangeExplanation
|
|
110
|
-
? `- ${change.scope ? `**${change.scope.trim()}:** ` : ''}${breakingChangeExplanation}`
|
|
111
|
-
: this.formatChange(change));
|
|
108
|
+
this.breakingChanges.push(this.formatBreakingChange(change));
|
|
112
109
|
}
|
|
113
110
|
}
|
|
114
111
|
}
|
|
@@ -170,10 +167,7 @@ class DefaultChangelogRenderer {
|
|
|
170
167
|
const line = this.formatChange(change);
|
|
171
168
|
markdownLines.push(line);
|
|
172
169
|
if (change.isBreaking && !this.isVersionPlans) {
|
|
173
|
-
|
|
174
|
-
this.breakingChanges.push(breakingChangeExplanation
|
|
175
|
-
? `- ${change.scope ? `**${change.scope.trim()}:** ` : ''}${breakingChangeExplanation}`
|
|
176
|
-
: line);
|
|
170
|
+
this.breakingChanges.push(this.formatBreakingChange(change));
|
|
177
171
|
}
|
|
178
172
|
}
|
|
179
173
|
}
|
|
@@ -184,10 +178,7 @@ class DefaultChangelogRenderer {
|
|
|
184
178
|
const line = this.formatChange(change);
|
|
185
179
|
markdownLines.push(line);
|
|
186
180
|
if (change.isBreaking && !this.isVersionPlans) {
|
|
187
|
-
|
|
188
|
-
this.breakingChanges.push(breakingChangeExplanation
|
|
189
|
-
? `- ${change.scope ? `**${change.scope.trim()}:** ` : ''}${breakingChangeExplanation}`
|
|
190
|
-
: line);
|
|
181
|
+
this.breakingChanges.push(this.formatBreakingChange(change));
|
|
191
182
|
}
|
|
192
183
|
}
|
|
193
184
|
}
|
|
@@ -285,6 +276,43 @@ class DefaultChangelogRenderer {
|
|
|
285
276
|
}
|
|
286
277
|
return changeLine;
|
|
287
278
|
}
|
|
279
|
+
formatBreakingChange(change) {
|
|
280
|
+
const explanation = this.extractBreakingChangeExplanation(change.body);
|
|
281
|
+
if (!explanation) {
|
|
282
|
+
// No explanation found, use the regular formatChange which includes references
|
|
283
|
+
return this.formatChange(change);
|
|
284
|
+
}
|
|
285
|
+
// Build the breaking change line with scope, explanation, and references
|
|
286
|
+
let breakingLine = '- ';
|
|
287
|
+
if (change.scope) {
|
|
288
|
+
breakingLine += `**${change.scope.trim()}:** `;
|
|
289
|
+
}
|
|
290
|
+
// Handle multi-line explanations
|
|
291
|
+
let explanationText = explanation;
|
|
292
|
+
let extraLines = [];
|
|
293
|
+
if (explanation.includes('\n')) {
|
|
294
|
+
[explanationText, ...extraLines] = explanation.split('\n');
|
|
295
|
+
}
|
|
296
|
+
breakingLine += explanationText;
|
|
297
|
+
// Add PR/commit references
|
|
298
|
+
if (this.remoteReleaseClient.getRemoteRepoData() &&
|
|
299
|
+
this.changelogRenderOptions.commitReferences &&
|
|
300
|
+
change.githubReferences) {
|
|
301
|
+
breakingLine += this.remoteReleaseClient.formatReferences(change.githubReferences);
|
|
302
|
+
}
|
|
303
|
+
// Add extra lines with indentation (matching formatChange behavior)
|
|
304
|
+
if (extraLines.length > 0) {
|
|
305
|
+
const indentation = ' ';
|
|
306
|
+
const extraLinesStr = extraLines
|
|
307
|
+
.filter((l) => l.trim().length > 0)
|
|
308
|
+
.map((l) => `${indentation}${l}`)
|
|
309
|
+
.join('\n');
|
|
310
|
+
if (extraLinesStr) {
|
|
311
|
+
breakingLine += '\n\n' + extraLinesStr;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
return breakingLine;
|
|
315
|
+
}
|
|
288
316
|
groupChangesByType() {
|
|
289
317
|
const typeGroups = {};
|
|
290
318
|
for (const change of this.relevantChanges) {
|
|
@@ -312,9 +340,12 @@ class DefaultChangelogRenderer {
|
|
|
312
340
|
return null;
|
|
313
341
|
}
|
|
314
342
|
const startOfBreakingChange = startIndex + breakingChangeIdentifier.length;
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
343
|
+
// Extract all text after BREAKING CHANGE: until we hit git metadata
|
|
344
|
+
let endOfBreakingChange = message.length;
|
|
345
|
+
// Look for the git metadata delimiter (a line with just ")
|
|
346
|
+
const gitMetadataMarker = message.indexOf('\n"', startOfBreakingChange);
|
|
347
|
+
if (gitMetadataMarker !== -1) {
|
|
348
|
+
endOfBreakingChange = gitMetadataMarker;
|
|
318
349
|
}
|
|
319
350
|
return message.substring(startOfBreakingChange, endOfBreakingChange).trim();
|
|
320
351
|
}
|