Skip to content

add npm overrides for three-mesh-bvh and meshoptimiz#183

Closed
goyaljiiiiii wants to merge 2 commits into
rdodiya:gssoc_developfrom
goyaljiiiiii:fix/deps/three-mesh-bvh-upgrade
Closed

add npm overrides for three-mesh-bvh and meshoptimiz#183
goyaljiiiiii wants to merge 2 commits into
rdodiya:gssoc_developfrom
goyaljiiiiii:fix/deps/three-mesh-bvh-upgrade

Conversation

@goyaljiiiiii
Copy link
Copy Markdown

This PR adds npm overrides to the frontend to force newer, non-deprecated versions of 3D-related transitive deps and refreshes the lockfile.

What I changed

Files: package.json:1-200, package-lock.json:1-20
Change: Added an overrides section to force:
three-mesh-bvh -> ^0.9.10
meshoptimizer -> ^1.1.1
Ran npm install to regenerate the lockfile.

Testing checklist for reviewers

npm install completes without the previous three.js deprecation warnings.
npm audit shows the three/mesh deprecation issue resolved (and fewer related advisories).
npm run dev loads the app at http://localhost:3000, and pages using three/drei render without errors in the browser console.
Smoke-test login, menu, and admin dashboard flows.

Author: @goyaljiiiiii
Reference issue #182

Copilot AI review requested due to automatic review settings May 21, 2026 01:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the frontend’s npm dependency resolution to address deprecated three.js ecosystem transitive dependencies (Issue #182) by introducing overrides and regenerating the lockfile.

Changes:

  • Added npm overrides to force newer versions of three-mesh-bvh and meshoptimizer.
  • Regenerated package-lock.json, updating resolved versions for multiple dependencies.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.

File Description
RestroHub-FrontEnd/package.json Adds overrides to force newer 3D-related transitive dependency versions.
RestroHub-FrontEnd/package-lock.json Refreshes lockfile to reflect overrides and updated dependency resolution.
Files not reviewed (1)
  • RestroHub-FrontEnd/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread RestroHub-FrontEnd/package.json Outdated
Comment on lines 23 to 27
"react-hot-toast": "^2.6.0",
"react-icons": "^5.5.0",
"react-qr-code": "^2.0.18",
"react-router-dom": "^7.13.0",
"react-router-dom": "^6.30.1",
"recharts": "^3.7.0",
Comment on lines 2135 to 2151
"node_modules/@vitejs/plugin-react": {
"version": "4.7.0",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",
"integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.2.0.tgz",
"integrity": "sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@babel/core": "^7.28.0",
"@babel/core": "^7.29.0",
"@babel/plugin-transform-react-jsx-self": "^7.27.1",
"@babel/plugin-transform-react-jsx-source": "^7.27.1",
"@rolldown/pluginutils": "1.0.0-beta.27",
"@rolldown/pluginutils": "1.0.0-rc.3",
"@types/babel__core": "^7.20.5",
"react-refresh": "^0.17.0"
"react-refresh": "^0.18.0"
},
"engines": {
"node": "^14.18.0 || >=16.0.0"
"node": "^20.19.0 || >=22.12.0"
},
@rdodiya
Copy link
Copy Markdown
Owner

rdodiya commented May 21, 2026

Hi @goyaljiiiiii ,
Please review the copilot suggestiona

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@goyaljiiiiii
Copy link
Copy Markdown
Author

Hey @rdodiya fixed

@rdodiya
Copy link
Copy Markdown
Owner

rdodiya commented May 22, 2026

Hi @goyaljiiiiii ,
Please resolve the conflict.
In PR i can only see the changes in package-lock.json file is there any changes in package.json?

@rdodiya
Copy link
Copy Markdown
Owner

rdodiya commented May 22, 2026

Closing this , please update this changes under #185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants