v0.3.29
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 writeexport 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(); }
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)