minecraft-freecodecamp
minecraft-freecodecamp copied to clipboard
Update packages
List of changes
- Updated all packages versions, now it has less warnings and fewer packages installed when running
npm install
Before:
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN react@"^17.0.2" from the root project
npm WARN 11 more (@react-three/cannon, @react-three/drei, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^15.0.0 || ^16.0.0" from [email protected]
npm WARN node_modules/@react-three/drei/node_modules/react-composer
npm WARN react-composer@"^5.0.1" from @react-three/[email protected]
npm WARN node_modules/@react-three/drei
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN peer react@"^15.0.0 || ^16.0.0" from [email protected]
npm WARN node_modules/@react-three/drei/node_modules/react-composer
npm WARN react-composer@"^5.0.1" from @react-three/[email protected]
npm WARN node_modules/@react-three/drei
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated [email protected]: flatten is deprecated in favor of utility frameworks such as lodash.
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated [email protected]: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
added 1881 packages, and audited 1882 packages in 1m
155 packages are looking for funding
run `npm fund` for details
36 vulnerabilities (1 low, 2 moderate, 22 high, 11 critical)
After:
npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
added 1460 packages, and audited 1461 packages in 1m
212 packages are looking for funding
run `npm fund` for details
6 high severity vulnerabilities
- Fixed
index.js
to support React version 18 - Changed
boxBufferGeometry
andplaneBufferGeometry
toboxBufferGeometry
andplaneBufferGeometry
because it was renamed in recent package versions - Fixed TypeError reading undefined property when clicking the Save button, the properties that were causing errors are now fixed with the nullish conditional operator.
Breaking changes
- With the previous fix, when saving the world all functions would return null/undefined unless a page reload was made. To fix this now when clicking the SAVE button the page will automatically reload, the RESET button still works as usual.
Known bugs
- Pressing
ESC
to click in the Reset or Save button may trigger errors in the console, the app will still run fine. This happens on the current main branch aswell.
PointerLockControls.js:65 THREE.PointerLockControls: Unable to use Pointer Lock API
(anonymous) @ PointerLockControls.js:65
localhost/:1 Uncaught (in promise) DOMException: The user has exited the lock before this request was completed.
The app is still 100% operational with these changes, all functions have been tested and I've not encountered any more errors except for the one in "Known bugs"
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
minecraft-freecodecamp | ✅ Ready (Inspect) | Visit Preview | Sep 25, 2022 at 3:52PM (UTC) |