Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Releases: reactjs/rackt-codemod

v0.1.2

20 Dec 16:53
Compare
Choose a tag to compare

This release adds two more codemods for migrating to the new React Router API.

  • react-router/deprecate-context-history: replace context.history with context.router
  • react-router/deprecate-isActive-query: drop the query argument to router.isActive and use a location descriptor instead

v0.1.1

20 Dec 16:50
Compare
Choose a tag to compare

This release adds the react-router/deprecate-Link-location-props codemod, for moving to the new <Link> API in React Router.

v0.1.0

06 Dec 18:36
Compare
Choose a tag to compare

This is the initial packaged release. It includes the following two codemods:

  • history/deprecate-pushState-replaceState: replace history.pushState and history.replaceState with history.push and history.replace, respectively
  • history/deprecate-createPath-createHref-query: drop the query argument to history.createPath and history.createHref and use a location descriptor instead

These are both ahead of breaking API changes for history v2.x.