Downgrade write-file-atomic to v4 #13853
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Hello! When trying to install the latest version of Jest (v29.4.1) I'm getting the following error when using yarn:
write-file-atomic@5.0.0: The engine "node" is incompatible with this module. Expected version "^14.17.0 || ^16.13.0 || >=18.0.0". Got "16.10.0"
. Unfortunately, upgrading my project's node version is a large undertaking that will take a lot of time and involve a couple different teams. So I wanted to pass by you the idea of downgrading write-file-atomic for the time being so I can take advantage of the latest Jest features before upgrading my Node version (and perhaps make upgrading easier for anyone else in a similar situation using Node < 16.13 + yarn). Though I understand if you'd rather not. Just thought I'd ask 😊Some additional context:
In v29.4.0 in PR #13703, the
write-file-atomic
was upgraded from v4.0.1 to v5.0.0. Glancing at the changes from v4.0.2...v5.0.0 in write-file-atomic (changelog, commits), I don't see any code changes besides the engines bump. So I believe it is safe to downgrade.Test plan
Tests pass locally for me.