Release notes
*Sourced from [jscodeshift's releases](https://github.com/facebook/jscodeshift/releases).*
> ## v0.6.0
> A bunch of changes to get jscodeshift in a better shape. This is minor version update because important dependencies and parser configurations have changed.
>
> ---
>
> ## New
>
> - New CLI option `--parser-config`: This option accepts a path to a JSON file and overrides the default options for flow or babylon. This allows you to tweak parser settings (e.g. legacy decorators). (46d250f)
> - New CLI option `--stdin`: If provided, the list of files/directories is read from stdin. This makes it easier to pass large lists of files. (b6eaa0a)
> - New API in transforms: `api.report` lets you print arbitrary text to stdout. Useful if another tools consumes jscodeshift's stdout. (c902a00) Example:
>
> ```
> // In the transform
> api.report('some data');
>
> // in stdout
> REP path/to/file.js some data
> ```
>
> - Support for Typescript source code, via babylon ( [#286](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/286) ; [**brieb**](https://github.com/brieb)). Use `--parser=ts` or `--parser=tsx`.
>
>
> ## Improvements
>
> - Updated babylon to v7 adding support for newer flow features ([#282](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/282) , [**wanderley**](https://github.com/wanderley) )
> - Updated recast to v0.16, which includes a bunch of printing improvments ([#289](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/289) , [**majapw**](https://github.com/majapw) )
> - Enable more features in babylon and flow ([#278](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/278) , [**mjesun**](https://github.com/mjesun) ; [#281](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/281) , [**jbrown215**](https://github.com/jbrown215) )
> - Improve handling of large lists of files (62b12ad, 9c83c39)
>
> ## Fixes
>
> - JSXElements's `hasAttributes` method understands value-less Boolean attributes ([#277](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/277) , [**artemruts**](https://github.com/artemruts) )
> - More reliable printing to stdout (62b12ad)
>
>
> ## Internal
> - Replaces deprecated nomnom with own implementation (a2becc5)
> - Remove direct dependency on lodash (4701096)
>
> ## v0.5.0
> ## New
> - Bump recast and babylon to support JSX fragments ([#239](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/239))
> - Add `dynamicImport` plugin to `babylon` parser. ([#208](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/208))
> - Allow specifying a testName for inline tests ([#218](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/218))
> - Add `some()` and `every()` methods for Collection ([#216](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/216))
>
> ## Fixed/Improved
> - Fix error handling for http ([#242](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/242))
> - Perf: replace async with neo-async ([#241](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/241))
> - Fix `renameTo` renaming React component prop name unexpectedly ([#220](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/220))
> ... (truncated)
Commits
- [`4fecbb5`](https://github.com/facebook/jscodeshift/commit/4fecbb5c9414d1831651e94fcdc2722be7d419df) Bump version to 0.6.0 for publishing
- [`2fd2429`](https://github.com/facebook/jscodeshift/commit/2fd242978a623671f473bacca7d07318e0e69a5e) Fix flow options
- [`1cbe93d`](https://github.com/facebook/jscodeshift/commit/1cbe93de131689cac310a1e87556af9471d85947) Set tokens: true to all babylon configs
- [`b5ca352`](https://github.com/facebook/jscodeshift/commit/b5ca352b7ad316dda63518ad4b0d4df33772af92) Update lock file
- [`f70bbd6`](https://github.com/facebook/jscodeshift/commit/f70bbd6524d14a023b0de2595f3f871e1ff42c18) Minor change to trigger travis ci build
- [`46d250f`](https://github.com/facebook/jscodeshift/commit/46d250f81524b60208db98c6eb8d6598573d1a1b) Allow passing custom options to babylon or flow via CLI option
- [`ee6242d`](https://github.com/facebook/jscodeshift/commit/ee6242df15d572e569b1659e05c7b67a426e6706) Drop support for Node v4
- [`75a7070`](https://github.com/facebook/jscodeshift/commit/75a7070b2a54194fdd5d8e131ecdfad4fd37950a) Enable ES6 feature in eslint
- [`4701096`](https://github.com/facebook/jscodeshift/commit/4701096a8a169b55674fd15a10dca99236a393f5) Remove direct dependency on lodash
- [`143e375`](https://github.com/facebook/jscodeshift/commit/143e37574b3e3611ad5a389f093ce080e9063910) Update dependencies
- Additional commits viewable in [compare view](https://github.com/facebook/jscodeshift/compare/v0.3.32...v0.6.0)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot will not automatically merge this PR because this dependency is pre-1.0.0.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps jscodeshift from 0.3.32 to 0.6.0.
Release notes
*Sourced from [jscodeshift's releases](https://github.com/facebook/jscodeshift/releases).* > ## v0.6.0 > A bunch of changes to get jscodeshift in a better shape. This is minor version update because important dependencies and parser configurations have changed. > > --- > > ## New > > - New CLI option `--parser-config`: This option accepts a path to a JSON file and overrides the default options for flow or babylon. This allows you to tweak parser settings (e.g. legacy decorators). (46d250f) > - New CLI option `--stdin`: If provided, the list of files/directories is read from stdin. This makes it easier to pass large lists of files. (b6eaa0a) > - New API in transforms: `api.report` lets you print arbitrary text to stdout. Useful if another tools consumes jscodeshift's stdout. (c902a00) Example: > > ``` > // In the transform > api.report('some data'); > > // in stdout > REP path/to/file.js some data > ``` > > - Support for Typescript source code, via babylon ( [#286](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/286) ; [**brieb**](https://github.com/brieb)). Use `--parser=ts` or `--parser=tsx`. > > > ## Improvements > > - Updated babylon to v7 adding support for newer flow features ([#282](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/282) , [**wanderley**](https://github.com/wanderley) ) > - Updated recast to v0.16, which includes a bunch of printing improvments ([#289](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/289) , [**majapw**](https://github.com/majapw) ) > - Enable more features in babylon and flow ([#278](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/278) , [**mjesun**](https://github.com/mjesun) ; [#281](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/281) , [**jbrown215**](https://github.com/jbrown215) ) > - Improve handling of large lists of files (62b12ad, 9c83c39) > > ## Fixes > > - JSXElements's `hasAttributes` method understands value-less Boolean attributes ([#277](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/277) , [**artemruts**](https://github.com/artemruts) ) > - More reliable printing to stdout (62b12ad) > > > ## Internal > - Replaces deprecated nomnom with own implementation (a2becc5) > - Remove direct dependency on lodash (4701096) > > ## v0.5.0 > ## New > - Bump recast and babylon to support JSX fragments ([#239](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/239)) > - Add `dynamicImport` plugin to `babylon` parser. ([#208](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/208)) > - Allow specifying a testName for inline tests ([#218](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/218)) > - Add `some()` and `every()` methods for Collection ([#216](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/216)) > > ## Fixed/Improved > - Fix error handling for http ([#242](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/242)) > - Perf: replace async with neo-async ([#241](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/241)) > - Fix `renameTo` renaming React component prop name unexpectedly ([#220](https://github-redirect.dependabot.com/facebook/jscodeshift/issues/220)) > ... (truncated)Commits
- [`4fecbb5`](https://github.com/facebook/jscodeshift/commit/4fecbb5c9414d1831651e94fcdc2722be7d419df) Bump version to 0.6.0 for publishing - [`2fd2429`](https://github.com/facebook/jscodeshift/commit/2fd242978a623671f473bacca7d07318e0e69a5e) Fix flow options - [`1cbe93d`](https://github.com/facebook/jscodeshift/commit/1cbe93de131689cac310a1e87556af9471d85947) Set tokens: true to all babylon configs - [`b5ca352`](https://github.com/facebook/jscodeshift/commit/b5ca352b7ad316dda63518ad4b0d4df33772af92) Update lock file - [`f70bbd6`](https://github.com/facebook/jscodeshift/commit/f70bbd6524d14a023b0de2595f3f871e1ff42c18) Minor change to trigger travis ci build - [`46d250f`](https://github.com/facebook/jscodeshift/commit/46d250f81524b60208db98c6eb8d6598573d1a1b) Allow passing custom options to babylon or flow via CLI option - [`ee6242d`](https://github.com/facebook/jscodeshift/commit/ee6242df15d572e569b1659e05c7b67a426e6706) Drop support for Node v4 - [`75a7070`](https://github.com/facebook/jscodeshift/commit/75a7070b2a54194fdd5d8e131ecdfad4fd37950a) Enable ES6 feature in eslint - [`4701096`](https://github.com/facebook/jscodeshift/commit/4701096a8a169b55674fd15a10dca99236a393f5) Remove direct dependency on lodash - [`143e375`](https://github.com/facebook/jscodeshift/commit/143e37574b3e3611ad5a389f093ce080e9063910) Update dependencies - Additional commits viewable in [compare view](https://github.com/facebook/jscodeshift/compare/v0.3.32...v0.6.0)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot will not automatically merge this PR because this dependency is pre-1.0.0.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.