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 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 from v3 to v4
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 to be set. (Removed in
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimraf",
3
- "version": "5.0.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.0.0"
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
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  export declare const help: string;
3
3
  declare const main: {
4
- (...args: string[]): Promise<1 | 0>;
4
+ (...args: string[]): Promise<0 | 1>;
5
5
  help: string;
6
6
  };
7
7
  export default main;
@@ -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[] | NodeJS.ErrnoException>;
4
- export declare const readdirOrErrorSync: (path: string) => import("fs").Dirent[] | NodeJS.ErrnoException;
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
@@ -1,4 +1,4 @@
1
1
  {
2
- "version": "4.4.1",
2
+ "version": "5.0.0",
3
3
  "type": "module"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimraf",
3
- "version": "5.0.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.0.0"
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
  }