Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Migrating from v0.8 to v0.9

Nate Fischer edited this page Mar 19, 2025 · 2 revisions

Did we miss any features you like? Did we skip over any breaking changes you found? Feel free to document them below.

Breaking changes

  • We've dropped v16 support. Some features may still work on node versions as old as v10, however official support is only for v18 and above.
  • shell.sed('-i') will now return an empty .stdout value. This is consistent with how unix sed -i is silent when running in -i mode.

Awesome features

  • shell.cmd() has arrived! This is the more secure alternative to shell.exec(). This only supports synchronous use cases for now, but we recommend you switch if possible.
  • We've switched to fast-glob as the wildcard expansion implementation! This should mean a modest performance boost for all ShellJS commands.
  • Better compatibility with node bundlers.
  • Lots of fixes for unix compatibility.

See the full changelog

https://github.com/shelljs/shelljs/releases/tag/v0.9.0

Clone this wiki locally