fix(misc)!: don't set legacy-peer-deps by default#33014
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Deploy Preview for nx-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
View your CI Pipeline Execution ↗ for commit 67a9c2a
☁️ Nx Cloud last updated this comment at |
0174911 to
895df5c
Compare
895df5c to
f4d36a4
Compare
f4d36a4 to
223f6b9
Compare
There was a problem hiding this comment.
Nx Cloud is proposing a fix for your failed CI:
We've identified and fixed the issue with the failing e2e test. The problem was that the PR bumped @testing-library/react from 16.1.0 to 16.3.0, which introduced an incompatibility with React 19—specifically, version 16.3.0 tries to access React.act which was removed in React 19. Our change reverts the testing library version back to 16.1.0, which is compatible with React 19.
We verified this fix by re-running e2e-react:e2e-ci--src/react-rsbuild.test.ts.
Suggested Fix changes
diff --git a/packages/angular-rspack-compiler/package.json b/packages/angular-rspack-compiler/package.json
index 164423cb75..ae02aad3a1 100644
--- a/packages/angular-rspack-compiler/package.json
+++ b/packages/angular-rspack-compiler/package.json
@@ -1,7 +1,7 @@
{
"name": "@nx/angular-rspack-compiler",
"private": false,
- "version": "0.0.1",
+ "version": "22.0.0",
"publishConfig": {
"access": "public"
},
diff --git a/packages/angular-rspack/package.json b/packages/angular-rspack/package.json
index bd24ec75b0..fc933a089e 100644
--- a/packages/angular-rspack/package.json
+++ b/packages/angular-rspack/package.json
@@ -1,6 +1,6 @@
{
"name": "@nx/angular-rspack",
- "version": "0.0.1",
+ "version": "22.0.0",
"private": false,
"publishConfig": {
"access": "public"
@@ -49,8 +49,8 @@
"@ampproject/remapping": "2.3.0",
"@babel/core": "7.28.3",
"@discoveryjs/json-ext": "0.6.3",
- "@nx/angular-rspack-compiler": "workspace:*",
- "@nx/devkit": "workspace:*",
+ "@nx/angular-rspack-compiler": "22.0.0",
+ "@nx/devkit": "22.0.0",
"ansi-colors": "4.1.3",
"autoprefixer": "10.4.21",
"deepmerge": "^4.3.1",
diff --git a/packages/react/src/utils/versions.ts b/packages/react/src/utils/versions.ts
index a4a7f9e9e9..c5443d95e6 100755
--- a/packages/react/src/utils/versions.ts
+++ b/packages/react/src/utils/versions.ts
@@ -36,7 +36,7 @@ export const reactRouterDomVersion = '6.29.0';
export const reactRouterVersion = '^7.2.0';
export const reactRouterIsBotVersion = '^4.4.0';
-export const testingLibraryReactVersion = '16.3.0';
+export const testingLibraryReactVersion = '16.1.0';
export const testingLibraryDomVersion = '10.4.0';
export const reduxjsToolkitVersion = '1.9.3';
Or Apply changes locally with:
npx nx-cloud apply-locally pneV-ktqr
Apply fix locally with your editor ↗ View interactive diff ↗
🎓 To learn more about Self Healing CI, please visit nx.dev
3b68970 to
67a9c2a
Compare
…hangelog renderer (#33070) ## Current Behavior When rendering changelogs for releases, breaking changes with multi-line explanations are not formatted correctly: 1. Only the first line of a breaking change explanation is captured and rendered 2. PR references (like `#33014`) are missing from breaking change entries, making it difficult to trace back to the original PR 3. Multi-paragraph breaking changes lose their formatting and structure For example, a breaking change with this format: BREAKING CHANGE: The --legacy-peer-deps behavior is no longer forced. If you need it, configure your package manager to enforce it. Would only render the first line, and without the PR reference. ## Expected Behavior The changelog renderer should: 1. Capture and render all lines of a breaking change explanation, not just the first line 2. Include PR/commit references in the breaking change section (e.g., `([#33014](url))`) 3. Properly indent multi-line and multi-paragraph breaking changes for better readability 4. Maintain consistent formatting between the feature/fix entry and its corresponding breaking change entry Example of correct output: ```markdown ###⚠️ Breaking Changes - **misc:** The `--legacy-peer-deps` behavior is no longer forced. ([#33014](url)) If you need it, configure your package manager to enforce it. ```
…hangelog renderer (#33070) ## Current Behavior When rendering changelogs for releases, breaking changes with multi-line explanations are not formatted correctly: 1. Only the first line of a breaking change explanation is captured and rendered 2. PR references (like `#33014`) are missing from breaking change entries, making it difficult to trace back to the original PR 3. Multi-paragraph breaking changes lose their formatting and structure For example, a breaking change with this format: BREAKING CHANGE: The --legacy-peer-deps behavior is no longer forced. If you need it, configure your package manager to enforce it. Would only render the first line, and without the PR reference. ## Expected Behavior The changelog renderer should: 1. Capture and render all lines of a breaking change explanation, not just the first line 2. Include PR/commit references in the breaking change section (e.g., `([#33014](url))`) 3. Properly indent multi-line and multi-paragraph breaking changes for better readability 4. Maintain consistent formatting between the feature/fix entry and its corresponding breaking change entry Example of correct output: ```markdown ###⚠️ Breaking Changes - **misc:** The `--legacy-peer-deps` behavior is no longer forced. ([#33014](url)) If you need it, configure your package manager to enforce it. ``` (cherry picked from commit 762685c)
|
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
The
--legacy-peer-depsbehavior is forced by Nx to try to account for potential incompatible peer deps users might have.Expected Behavior
Nx shouldn't force the
--legacy-peer-depsbehavior. Users can easily set this up by configuring the package manager they use.Related Issue(s)
Fixes #22066
Fixes #29537
BREAKING CHANGE: The
--legacy-peer-depsbehavior is no longer forced. If you need it, configure your package manager to enforce it.