rimraf 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -3
- package/dist/cjs/package.json +13 -3
- package/dist/cjs/src/bin.d.ts +1 -1
- package/dist/cjs/src/readdir-or-error.d.ts +2 -2
- package/dist/mjs/package.json +1 -1
- package/package.json +13 -3
package/README.md
CHANGED
|
@@ -2,11 +2,18 @@ The [UNIX command](<http://en.wikipedia.org/wiki/Rm_(Unix)>) `rm -rf` for node.
|
|
|
2
2
|
|
|
3
3
|
Install with `npm install rimraf`.
|
|
4
4
|
|
|
5
|
-
## Major Changes
|
|
5
|
+
## Major Changes
|
|
6
|
+
|
|
7
|
+
### v4 to v5
|
|
8
|
+
|
|
9
|
+
- There is no default export anymore. Import the functions directly
|
|
10
|
+
using, e.g., `import { rimrafSync } from 'rimraf`.
|
|
11
|
+
|
|
12
|
+
### v3 to v4
|
|
6
13
|
|
|
7
14
|
- The function returns a `Promise` instead of taking a callback.
|
|
8
|
-
- Globbing requires the `--glob` option
|
|
9
|
-
4.0 and 4.1, opt-in support added in 4.2.)
|
|
15
|
+
- Globbing requires the `--glob` CLI option or `glob` option property
|
|
16
|
+
to be set. (Removed in 4.0 and 4.1, opt-in support added in 4.2.)
|
|
10
17
|
- Functions take arrays of paths, as well as a single path.
|
|
11
18
|
- Native implementation used by default when available, except on
|
|
12
19
|
Windows, where this implementation is faster and more reliable.
|
|
@@ -73,6 +80,8 @@ Options:
|
|
|
73
80
|
`fs.rm` because that implementation does not support abort
|
|
74
81
|
signals.
|
|
75
82
|
|
|
83
|
+
- `glob` Boolean flag to treat path as glob pattern, or an object
|
|
84
|
+
specifying [`glob` options](https://github.com/isaacs/node-glob).
|
|
76
85
|
- `filter` Method that returns a boolean indicating whether that
|
|
77
86
|
path should be deleted. With async rimraf methods, this may
|
|
78
87
|
return a Promise that resolves to a boolean. (Since Promises
|
package/dist/cjs/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rimraf",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"main": "./dist/cjs/src/index.js",
|
|
5
5
|
"module": "./dist/mjs/index.js",
|
|
6
6
|
"types": "./dist/mjs/index.d.ts",
|
|
@@ -79,6 +79,16 @@
|
|
|
79
79
|
"node": ">=14"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"glob": "^10.
|
|
83
|
-
}
|
|
82
|
+
"glob": "^10.2.5"
|
|
83
|
+
},
|
|
84
|
+
"keywords": [
|
|
85
|
+
"rm",
|
|
86
|
+
"rm -rf",
|
|
87
|
+
"rm -fr",
|
|
88
|
+
"remove",
|
|
89
|
+
"directory",
|
|
90
|
+
"cli",
|
|
91
|
+
"rmdir",
|
|
92
|
+
"recursive"
|
|
93
|
+
]
|
|
84
94
|
}
|
package/dist/cjs/src/bin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
-
export declare const readdirOrError: (path: string) => Promise<import("fs").Dirent[]
|
|
4
|
-
export declare const readdirOrErrorSync: (path: string) => import("fs").Dirent[]
|
|
3
|
+
export declare const readdirOrError: (path: string) => Promise<NodeJS.ErrnoException | import("fs").Dirent[]>;
|
|
4
|
+
export declare const readdirOrErrorSync: (path: string) => NodeJS.ErrnoException | import("fs").Dirent[];
|
|
5
5
|
//# sourceMappingURL=readdir-or-error.d.ts.map
|
package/dist/mjs/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rimraf",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"main": "./dist/cjs/src/index.js",
|
|
5
5
|
"module": "./dist/mjs/index.js",
|
|
6
6
|
"types": "./dist/mjs/index.d.ts",
|
|
@@ -79,6 +79,16 @@
|
|
|
79
79
|
"node": ">=14"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"glob": "^10.
|
|
83
|
-
}
|
|
82
|
+
"glob": "^10.2.5"
|
|
83
|
+
},
|
|
84
|
+
"keywords": [
|
|
85
|
+
"rm",
|
|
86
|
+
"rm -rf",
|
|
87
|
+
"rm -fr",
|
|
88
|
+
"remove",
|
|
89
|
+
"directory",
|
|
90
|
+
"cli",
|
|
91
|
+
"rmdir",
|
|
92
|
+
"recursive"
|
|
93
|
+
]
|
|
84
94
|
}
|