Skip to content

v0.3.29

Compare
Choose a tag to compare
@fkling fkling released this 25 Oct 17:46
· 275 commits to main since this release

New

  • Collections now have a .length property which is equivalent to .size() (#151, @DrewML)

  • You can now reference jscodeshift as j directly from the transform's API options. I.e. you can write

    export default function transformer(file, { j }) {
      return j(file.source).toSource();
    }

    instead of

    export default function transformer(file, api) {
      const j = api.jscodeshift;
    
      return j(file.source).toSource();
    }

    or

    export default function transformer(file, {jscodeshift: j}) {
      return j(file.source).toSource();
    }

    (#153, @vjeux)

Improved

  • Experimental settings have been enabled for the flow parser, so it is now be able to process files that use e.g. public class fields (a2e4a3a)