fs.rmdir deprecated
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- javascript, node.js
- Domain
- backend
Research direction
Open index.js around line 49 and inspect the doZip path shown in the warning. Replace the deprecated recursive removal usage with the supported equivalent, then run the package tests or a zip-creation example and confirm the deprecation warning no longer appears.
Written by the indexing model from the issue text.
Description
I got this warning from your package. It looks easy to fix. Just to let you know:
(node:18676) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
at emitRecursiveRmdirWarning (node:internal/fs/utils:869:13)
at Object.rmdir (node:fs:1164:5)
at doZip (C:\...\node_modules\cross-zip\index.js:49:10)
at C:\...\node_modules\cross-zip\index.js:22:9
at FSReqCallback.oncomplete (node:fs:198:5)
- Dominant language
- JavaScript
- Stars
- 129
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from feross/cross-zip
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
All issues in feross/cross-zip
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·