Skip to content

v0.3.0

Compare
Choose a tag to compare
@fkling fkling released this 28 Jul 17:49
· 436 commits to main since this release

New

  • ES7 support for transform files: Transform files (and its dependencies) are now passed through Babel (using Babel's require hook). That means you can use ES7 syntax in your transform files. If you already transpiled the transformer or don't use any ES6 features that need to be transpiled, you can pass the --no-babel option.
  • Directory traversal: Until now jscodeshift only worked on files. Now, if a path to a directory is passed, it will recursively find over all files matching the file extension provided through --extension (defaults to js).
  • Remove nodes: Node collections now have a .remove method which removes all selected nodes from the AST.