Upgrading rimraf 5 to 6
Unknown5.0.10 → 6.1.3New1Changed2
DepDelta hasn't looked for the notes of 4 of 6 releases yet, so breaking changes can't be ruled out.
- DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
- Their commits are listed with this comparison.
Releases without notes may still need changes. Check their commits before upgrading.
Requires Node.js 20 || >=22 from 6.0.0 (none stated before).
Adds package-json-from-dist ^1.0.1.
Installs 8 packages in all (was 41).
No longer installs @isaacs/cliui, @pkgjs/parseargs, ansi-regex, ansi-styles, color-convert, color-name, cross-spawn, eastasianwidth, emoji-regex, foreground-child, is-fullwidth-code-point, isexe, jackspeak, path-key, shebang-command and 6 more.
Moves balanced-match 1.0.2 → 4.0.4, brace-expansion 2.1.7 → 5.0.12, glob 10.5.0 → 13.0.6, lru-cache 10.4.3 → 11.5.3, minimatch 9.0.9 → 10.2.6, path-scurry 1.11.1 → 2.0.2. Your build may pick other versions.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- added:
const errorCode: (er: unknown) => unknown - added:
const isFsError: (o: unknown) => o is NodeJS.ErrnoException & { code: string; path: string }
- changed:
const fixEPERM: (fn: (path: string) => Promise<any>) => (path: string) => Promise<any> → const fixEPERM: (fn: (path: string) => Promise<unknown>) => (path: string) => Promise<void> - changed:
const fixEPERMSync: (fn: (path: string) => any) => (path: string) => any → const fixEPERMSync: (fn: (path: string) => unknown) => (path: string) => void
- changed:
const promises: { chmod: (path: fs.PathLike, mode: fs.Mode) => Promise<void>; mkdir: (path: fs.PathLike, options?: fs.Mode | (fs.MakeDirectoryOptions & { recursive?: boolean |… → const promises: { chmod: typeof fsPromises.chmod; mkdir: typeof fsPromises.mkdir; readdir: (path: fs.PathLike) => Promise<fs.Dirent<string>[]>; rename: typeof fsPromises.renam…
- changed:
const ignoreENOENT: (p: Promise<any>) => Promise<any> → const ignoreENOENT: <T>(p: Promise<T>, rethrow?: unknown) => Promise<void | T> - changed:
const ignoreENOENTSync: (fn: () => any) => any → const ignoreENOENTSync: <T>(fn: () => T, rethrow?: unknown) => T | undefined
- removed:
const _default: string - removed:
default _default
- changed:
const readdirOrError: (path: string) => Promise<import('fs').Dirent[] | NodeJS.ErrnoException> → const readdirOrError: (path: string) => Promise<import('node:fs').Dirent<string>[] | Error> - changed:
const readdirOrErrorSync: (path: string) => import('fs').Dirent[] | NodeJS.ErrnoException → const readdirOrErrorSync: (path: string) => import('node:fs').Dirent<string>[] | Error
- changed:
const retryBusy: (fn: (path: string) => Promise<any>) => (path: string, opt: RimrafAsyncOptions, backoff?: number, total?: number) => Promise<any> → const retryBusy: <T>(fn: (path: string) => Promise<T>) => (path: string, opt: RimrafAsyncOptions, backoff?: number, total?: number) => Promise<T> - changed:
const retryBusySync: (fn: (path: string) => any) => (path: string, opt: RimrafOptions) => any → const retryBusySync: <T>(fn: (path: string) => T) => (path: string, opt: RimrafOptions) => T
- removed:
const help: string - removed:
const main: { (...args: string[]): Promise<1 | 0>; help: string } - removed:
default main
- added:
const errorCode: (er: unknown) => unknown - added:
const isFsError: (o: unknown) => o is NodeJS.ErrnoException & { code: string; path: string }
- changed:
const fixEPERM: (fn: (path: string) => Promise<any>) => (path: string) => Promise<any> → const fixEPERM: (fn: (path: string) => Promise<unknown>) => (path: string) => Promise<void> - changed:
const fixEPERMSync: (fn: (path: string) => any) => (path: string) => any → const fixEPERMSync: (fn: (path: string) => unknown) => (path: string) => void
- changed:
const promises: { chmod: (path: fs.PathLike, mode: fs.Mode) => Promise<void>; mkdir: (path: fs.PathLike, options?: fs.Mode | (fs.MakeDirectoryOptions & { recursive?: boolean |… → const promises: { chmod: typeof fsPromises.chmod; mkdir: typeof fsPromises.mkdir; readdir: (path: fs.PathLike) => Promise<fs.Dirent<string>[]>; rename: typeof fsPromises.renam…
- changed:
const ignoreENOENT: (p: Promise<any>) => Promise<any> → const ignoreENOENT: <T>(p: Promise<T>, rethrow?: unknown) => Promise<void | T> - changed:
const ignoreENOENTSync: (fn: () => any) => any → const ignoreENOENTSync: <T>(fn: () => T, rethrow?: unknown) => T | undefined
- removed:
const _default: string - removed:
default _default
- changed:
const readdirOrError: (path: string) => Promise<import('fs').Dirent[] | NodeJS.ErrnoException> → const readdirOrError: (path: string) => Promise<import('node:fs').Dirent<string>[] | Error> - changed:
const readdirOrErrorSync: (path: string) => import('fs').Dirent[] | NodeJS.ErrnoException → const readdirOrErrorSync: (path: string) => import('node:fs').Dirent<string>[] | Error
- changed:
const retryBusy: (fn: (path: string) => Promise<any>) => (path: string, opt: RimrafAsyncOptions, backoff?: number, total?: number) => Promise<any> → const retryBusy: <T>(fn: (path: string) => Promise<T>) => (path: string, opt: RimrafAsyncOptions, backoff?: number, total?: number) => Promise<T> - changed:
const retryBusySync: (fn: (path: string) => any) => (path: string, opt: RimrafOptions) => any → const retryBusySync: <T>(fn: (path: string) => T) => (path: string, opt: RimrafOptions) => T