-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update node engine version #9645
Conversation
I hope nobody is still using it, but technically this is a breaking change. The only case where I've seen that caching problem is when running Parcel in a project that doesn't have node_modules. Then the Babel cache is stored in (That import specifier transformation is done by https://github.com/parcel-bundler/parcel/blob/v2/packages/dev/babel-register/babel-plugin-module-translate.js, BTW). |
@mischnic Yeah, I do realise it could be considered a breaking change. How have you handled node upgrades in the past? Some libraries consider it a minor version change if it's a particularly old version, others do major. I didn't know that the config gets stored in the root directory, since deleting the Anyways, let me know how you would want an upgrade like this handled. I'm happy to reject this change, but figured it could drive some discussion as well. |
I have a feeling we had a recent discussion somewhere that we're already doing something that only works on Node 16? Oh.. it was |
That is a very good point... |
I think supporting LTS (a moving target) is reasonable. |
FWIW 16 isn't even a Maintenance LTS release anymore, 18 is in Maintenance until May 2025, 20 is the "Active" LTS. |
↪️ Pull Request
This change upgrades the minimum node version from
12.0.0
to16.0.0
as it is outdated, and to resolve an issue that has been affecting my development loop quite significantly. It's potentially from a corrupted cache from somewhere (not from cleannode_modules
/rust
) as I can no longer reproduce it since applying this fix. Essentially, node would always try to resolve a missing file:It stemmed from the
pirates
register hook calling babel and transforming the@parcel/rust
specifier to@parcel/rust/src/index.js
. When using node 16 inpackages/dev/babel-preset/index.js
, this no longer occurred.💻 Examples
N/A
🚨 Test instructions
yarn test:integration
and select tests that makes use ofpackages/transformers/html/src/inline.js
such aswebextension