Skip to content
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

Replace temp package with vendored code to avoid deprecated rimraf transitive dependency #618

Closed
wants to merge 8 commits into from

Conversation

kitten
Copy link

@kitten kitten commented Aug 6, 2024

This is simply to avoid the dependency chain on rimraf via [email protected] -> [email protected], which has been deprecated. The temp package hasn't seen a release in a while, and minimal functionality is used from it. The temp.track functionality also doesn't seem to be used, which would make it pretty trivial to vendor the code.

Switching to alternatives like tempy likely isn't attractive either since it's ESM-only while jscodeshift is not. Older versions of tempy also depend transitively on deprecated versions of rimraf.

Tests pass and cover changes as-is.

Note: The vendored code has an added copyright notice line for node-temp.

Copy link

vercel bot commented Aug 6, 2024

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

Name Status Preview Comments Updated (UTC)
jscodeshift ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 6, 2024 7:05pm

@kitten kitten changed the title Replace temp package with vendored code Replace temp package with vendored code to avoid deprecated rimraf transitive dependency Aug 6, 2024
src/utils/temp.js Outdated Show resolved Hide resolved
kitten added 2 commits August 6, 2024 19:32
This wasn't actually used as `temp.track()` wasn't called
@kitten
Copy link
Author

kitten commented Aug 6, 2024

@Daniel15: Sorry about that! ❤️ There's a test in the latest commit now that checks that the remote transformer files actually work.

@kitten kitten requested a review from Daniel15 August 14, 2024 01:19
@trivikr
Copy link
Contributor

trivikr commented Oct 31, 2024

The temp was replaced by tmp in #633

@kitten kitten closed this Oct 31, 2024
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.

4 participants