Skip to content
Branch: master
Find file History
ghengeveld Fix ambiguous import on standalone helper components (fixes #72) (#73)
* Fix ambiguous import issue by renaming the standalone helper components. Improved the TS type definitions.

* Update example to use standalone helpers.

* Add codemods for breaking API changes.

* ES modules don't work from a codemod URL.

* Ignore node_modules in cwd.

* Improve types for promiseFn/deferFn props.

* Bump and align all package versions.
Latest commit 5bed28d Aug 9, 2019

README.md

React Async codemods

These codemods enable you to automatically upgrade your codebase to handle breaking changes in React Async's API.

Warning

Be aware: codemods transform your source code in place. Make sure that your files are in version control before running a codemod.

These codemods come without warranty. They will work fine most of the time, but you should always verify their output. Also, do not run a codemod more than once.

Running a codemod

These codemods are based on jscodeshift. Refer to their docs for specifics.

npx jscodeshift <target_dir> -t <transform_script>

Where <target_dir> should be replaced with the path to your project's source directory and <transform_script> should be replaced by the URL of the codemod.

For example:

npx jscodeshift . -t https://raw.githubusercontent.com/ghengeveld/react-async/master/codemods/v6.js

This will apply the codemod for v6 to the current working directory (.).

You can’t perform that action at this time.