GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — Use fs.rm() instead of rimraf by kevinoid · Pull Request #296 · raszi/node-tmp Conversation
Contributor
A regression occurred in 0.2.2 which can be reproduced using: const assert = require('assert'); const tmp = require('tmp'); tmp.dir({ unsafeCleanup: true }, (err, path, cleanup) => { assert.ifError(err); cleanup(assert.ifError); }); This works with 0.2.1. With 0.2.2 it fails with: This occurs because 00bb5b2 upgraded the rimraf dependency from ^3.0.0 to ^5.0.5 without handling the change to a This commit fixes the issue by dropping the Thanks for considering, Fixes: #295
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
raszi
previously approved these changes
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks good! Thank you very much!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Owner
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
kevinoid
force-pushed
the
drop-rimraf
branch
from
4e89567 to
2e62837
Compare
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Owner
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
kevinoid
force-pushed
the
drop-rimraf
branch
from
2e62837 to
b8fa02c
Compare
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
kevinoid
force-pushed
the
drop-rimraf
branch
from
b8fa02c to
b7a13ee
Compare
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
raszi
reviewed
Uh oh!
There was an error while loading. Please reload this page. A regression occurred in 0.2.2 which can be reproduced using:
```js
const assert = require('assert');
const tmp = require('tmp');
tmp.dir({ unsafeCleanup: true }, (err, path, cleanup) => {
assert.ifError(err);
cleanup(assert.ifError);
});
```
This works with 0.2.1. With 0.2.2 it fails with:
/path/to/tmp/node-tmp/lib/tmp.js:358
return removeFunction(fileOrDirName, next || function() {});
^
TypeError: removeFunction is not a function
at _cleanupCallback (/path/to/tmp/node-tmp/lib/tmp.js:358:16)
at /path/to/tmp/node-tmp/repro.js:5:3
at _dirCreated (/path/to/tmp/node-tmp/lib/tmp.js:207:7)
at FSReqCallback.oncomplete (node:fs:192:23)
This occurs because 00bb5b2 upgraded
the rimraf dependency from ^3.0.0 to ^5.0.5 without handling the change
to a `Promise`-based API in 4.0.0
(isaacs/rimraf@a71e7f9)
or the removal of the default export in 5.0.0
(isaacs/rimraf@c7a3fd4).
This commit fixes the issue by dropping the `rimraf` dependency in favor
of `fs.rm({recursive: true})`.
It also updates the nodejs engine version to 14.14, when `fs.rm()` was
added.
Fixes: 00bb5b2 ("Update rimraf and drop old Node compatibility")
Fixes: raszi#295
Signed-off-by: Kevin Locke <[email protected]>
kevinoid
force-pushed
the
drop-rimraf
branch
from
b7a13ee to
eafb034
Compare
raszi
approved these changes
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice work! Thank you very much!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Upgrade of rimraf causes issueUh oh!
There was an error while loading. Please reload this page. 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. | |||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |