react icon indicating copy to clipboard operation
react copied to clipboard

Remove Node.js 16 from package.json engines field

Open nakjun12 opened this issue 1 year ago • 2 comments

Summary

Remove Node.js 16 from package.json engines field

Motivation:

This PR removes support for Node.js 16 to align with the React project's recent decision to drop Node.js 16 support (#28774). This change also prevents the following error from occurring when installing project dependencies with Yarn using Node.js 16:

error [email protected]: The engine "node" is incompatible with this module. Expected version "^18.18.0 || ^20.9.0 || >=21.1.0". Got "16.20.2"

Changes:

  • package.json update: Removed the Node.js 16 version from the engines field in package.json, specifying only the supported Node.js versions (18.x, 20.x, 21.x):
"engines": {
  "node": "18.x || 20.x || 21.x"
},

How did you test this change?

  • Dependency re-installation: Ran yarn install with Node.js versions 18.x, 20.x, and 21.x to re-install project dependencies and confirm that the previously mentioned error does not occur with these supported Node.js versions.

nakjun12 avatar May 27 '24 14:05 nakjun12

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 3:01pm

vercel[bot] avatar May 27 '24 14:05 vercel[bot]

Comparing: ea6e05912aa43a0bbfbee381752caa1817a41a86...6832a3c6c285d67a4631ad05b945e1f3b0548970

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.66 kB 6.66 kB +0.11% 1.82 kB 1.82 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 496.04 kB 496.04 kB = 88.77 kB 88.77 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.67 kB 6.67 kB +0.11% 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 500.84 kB 500.84 kB = 89.45 kB 89.46 kB
facebook-www/ReactDOM-prod.classic.js = 593.48 kB 593.48 kB = 104.38 kB 104.38 kB
facebook-www/ReactDOM-prod.modern.js = 569.87 kB 569.87 kB = 100.77 kB 100.77 kB
test_utils/ReactAllWarnings.js Deleted 63.82 kB 0.00 kB Deleted 15.95 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
test_utils/ReactAllWarnings.js Deleted 63.82 kB 0.00 kB Deleted 15.95 kB 0.00 kB

Generated by :no_entry_sign: dangerJS against 6832a3c6c285d67a4631ad05b945e1f3b0548970

react-sizebot avatar May 27 '24 15:05 react-sizebot