Skip to content

Upgrading del 4 to 5

Breaking4.1.1 → 5.1.0Breaking2Platform1New3Fixed2

BreakingUpgrade verdict

2 breaking changes and a platform requirement change.

  • You can no longer pass in paths with backward-slashes.
  • Update globby from version 6 to version 10 Important: If you used any of the globby options, please note that globby switched from using the glob package to fast-glob, so almost all the option names…
  • Require Node.js 8.
3 items need code or config changes

del publishes an official migration guide for version 5. It covers more than the release notes do.

Here's how to migrate the options. ↗

Node.js requirement changed in 5.0.0: >=6 → >=8.

Adds graceful-fs ^4.2.2, is-glob ^4.0.1, is-path-inside ^3.0.1, slash ^3.0.0.

Drops @types/glob, is-path-in-cwd, pify.

Installs 50 packages in all (was 32).

Breaking2
You can no longer pass in paths with backward-slashes.
path.posix.join()path.join()slash
Update globby from version 6 to version 10 Important: If you used any of the globby options, please note that globby switched from using the glob package to fast-glob, so almost all the option names…
globbyglobfast-glob
Platform1
Require Node.js 8.

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • changed: const del: { (patterns: string | ReadonlyArray<string>, options?: del.Options): Promise<string[]>; sync(patterns: string | ReadonlyArray<string>, options?: del.Options):… → const del: { (patterns: string | readonly string[], options?: del.Options): Promise<string[]>; sync(patterns: string | readonly string[], options?: del.Options): string[]…
  • changed: interface del.Options extends Readonly<GlobOptions> → interface del.Options extends GlobbyOptions