Skip to content

Commit 3a2ab20

Browse files
lucygramleyCopilot
andcommitted
Use overrides instead of direct dependency for lodash fix
Move lodash ^4.18.1 from dependencies to overrides in all package.json files. This forces the transitive dependency to resolve to the patched version without adding lodash as a direct dependency. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 759fe8d commit 3a2ab20

8 files changed

Lines changed: 9 additions & 13 deletions

File tree

Nodejs/Tests/MockProjects/NodeAppWithAngularTests/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Nodejs/Tests/MockProjects/NodeAppWithAngularTests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"@angular/platform-browser": "^21.0.7",
2020
"@angular/platform-browser-dynamic": "^21.0.7",
2121
"@angular/router": "^21.0.7",
22-
"lodash": "^4.18.1",
2322
"rxjs": "~7.8.1",
2423
"tslib": "^2.6.3",
2524
"zone.js": "~0.14.10"
@@ -43,6 +42,7 @@
4342
},
4443
"overrides": {
4544
"brace-expansion": "1.1.13",
46-
"js-yaml": "3.14.2"
45+
"js-yaml": "3.14.2",
46+
"lodash": "^4.18.1"
4747
}
4848
}

Nodejs/Tests/MockProjects/reactappwithjesttestsjavascript/package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Nodejs/Tests/MockProjects/reactappwithjesttestsjavascript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"@testing-library/react": "^16.0.0",
88
"@testing-library/user-event": "^14.5.2",
99
"jest-editor-support": "^31.1.2",
10-
"lodash": "^4.18.1",
1110
"react": "^18.3.1",
1211
"react-dom": "^18.3.1",
1312
"web-vitals": "^4.2.3"
@@ -40,6 +39,7 @@
4039
"@babel/core": "7.26.10",
4140
"@babel/helpers": "7.26.10",
4241
"@babel/runtime": "7.26.10",
43-
"brace-expansion": "1.1.13"
42+
"brace-expansion": "1.1.13",
43+
"lodash": "^4.18.1"
4444
}
4545
}

Nodejs/Tests/MockProjects/reactappwithjestteststypescript/package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Nodejs/Tests/MockProjects/reactappwithjestteststypescript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"@types/react": "^17.0.30",
1212
"@types/react-dom": "^17.0.9",
1313
"jest-editor-support": "^30.0.2",
14-
"lodash": "^4.18.1",
1514
"react": "^17.0.2",
1615
"react-dom": "^17.0.2",
1716
"typescript": "^4.4.4",
@@ -46,6 +45,7 @@
4645
"@babel/helpers": "7.26.10",
4746
"@babel/runtime": "7.26.10",
4847
"js-yaml": "4.1.1",
49-
"brace-expansion": "1.1.13"
48+
"brace-expansion": "1.1.13",
49+
"lodash": "^4.18.1"
5050
}
5151
}

package-lock.json

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"react": "^16.12.0",
1818
"typescript": "3.6.4"
1919
},
20-
"dependencies": {
20+
"overrides": {
2121
"lodash": "^4.18.1"
2222
}
2323
}

0 commit comments

Comments
 (0)