Packages

react-router

8.5.1 · 27 Oct 2026MIT80.2M / weekRepositorynpmAtom feed

Your version

0.12.0

10 Feb 2015Where it was published

0.13.6 is the newest release of 0.12.x.

In short

1 new2 fixed12 changed

Release note

transition.wait was removed, you now use a callback instead:

// 0.11.x
var SomeHandler = React.createClass({
  statics: {
    willTransitionTo (transition) {
      transition.wait(somePromise());
    }
  }
});

// 0.12.0
var SomeHandler = React.createClass({
  statics: {
    willTransitionTo (transition, params, query, callback) {
      somePromise().then(callback);
    }
  }
});

Changes

  • Default handler to routes

  • Clean up mounted route component on unmount so we don't leak references

  • Double slash in href when parent route has optional trailing slash

  • Don't restore scroll position on Forward

  • Do not decode + in pathname

  • Double-encoding of query strings

  • Allow comments in JSX config

  • Ignore falsy routes

  • Using TestLocation without DOM

  • Router.replaceRoutes(children)

  • Ignore stale transitions

  • Transition.wait, use callbacks instead

  • Router.stop()

  • Preserve original query with HashLocation

  • Bump qs dependency version

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.