Package to replace
tmp-promise
Suggested replacement(s)
After seeing https://bsky.app/profile/43081j.com/post/3mmvqatbfr22r, I tried to migrate away from tmp-promise used in our unit tests.
Turns out Explicit Resource Management + Node native API mkdtempDisposable() is a good alternative and could even simplify unit tests (no manual cleanup needed), although the syntax might feel a bit awkward (no void operator, no await using {destructured}.
See lib removal PR PR facebook/docusaurus#12106
Manifest type
native (replaceable by a built-in platform feature)
Rationale
Unneeded lib, similar to tmp, temp, and others
Availability
Node v24.4.0
Code example (optional)
Many here: facebook/docusaurus#12106
Package to replace
tmp-promise
Suggested replacement(s)
After seeing https://bsky.app/profile/43081j.com/post/3mmvqatbfr22r, I tried to migrate away from tmp-promise used in our unit tests.
Turns out Explicit Resource Management + Node native API
mkdtempDisposable()is a good alternative and could even simplify unit tests (no manual cleanup needed), although the syntax might feel a bit awkward (no void operator, noawait using {destructured}.See lib removal PR PR facebook/docusaurus#12106
Manifest type
native (replaceable by a built-in platform feature)
Rationale
Unneeded lib, similar to tmp, temp, and others
Availability
Node v24.4.0
Code example (optional)
Many here: facebook/docusaurus#12106