Skip to content

Releases: remix-run/react-router

v4.4.0-beta.0

29 Sep 07:39
Compare
Choose a tag to compare
v4.4.0-beta.0 Pre-release
Pre-release

This is primarily a maintenance release that is fully backwards compatible with 4.3.1 while also improving compatibility with React 16 and preparing for the future.

The main features of this release are:

  • Removed the single-child restriction in <Router> so you can have multiple children, provided you're using React 16
  • Migrated our underlying infrastructure to use React's new context API. A HUGE thank-you to @timdorr who provided the initial work required to migrate the codebase to React's new context API (see #5908)
  • Removed all traces of the deprecated componentWillMount and componentWillReceiveProps

🚨 If you were accessing our private context API your code will break. If you need stuff on context, use a <Route> or withRouter instead. It's all the same stuff, and that's our public API 🚨

Other housekeeping that was done:

  • Migrated to use babel-preset-env + a custom list of proposal plugins we use instead of the deprecated babel-preset-es2015 + babel-preset-stage-1
  • Improved testing infrastructure. Now, instead of running a build when you're working on e.g. react-router-dom and you need some changes in react-router, you don't have to go and rebuild it to test things out. This should make the repo easier to work with
  • Added some more warnings in dev mode

As always, you can try everything out using the next tag:

yarn add react-router@next
yarn add react-router-dom@next
yarn add react-router-config@next

We will be paying close attention to the feedback on this release and hope to release 4.4.0 final soon!

Enjoy 😅

v4.3.1

06 Jun 19:30
3d233bf
Compare
Choose a tag to compare

Just a patch to fix an accidental move of warning from a normal dependency to a devDependency, which was causing issues with installation.

v4.3.0

06 Jun 15:36
7222316
Compare
Choose a tag to compare

The major new things of this release are Redirect with params (see #5209) and the new generatePath API. We also cleaned up the code with Prettier, so browsing through it should be more enjoyable.

One other thing to mention, while I have your attention, is the deprecation of react-router-redux. It's no longer maintained and has a number of fundamental problems (particularly around time travel). Integrating Redux and the DOM History API is challenging because they don't maintain the same semantics and the resulting integration is error prone. Getting to the router context will be easier in future versions of React Router, so the main motivations for needing it will be going away. So, while I would advise against trying to integrate the two, for those that still want this functionality can turn to libraries like @supasate's connected-react-router.

Changes

v4.3.0-rc.3

26 Apr 20:44
Compare
Choose a tag to compare
v4.3.0-rc.3 Pre-release
Pre-release

Changes

  • Fix broken UMD builds.
  • Add sideEffects: false for webpack tree shaking (#6082 by @taylorc93)

v4.3.0-rc.2

02 Apr 17:33
Compare
Choose a tag to compare
v4.3.0-rc.2 Pre-release
Pre-release

Changes

  • Bump hoist-non-react-statics for React 16.3.
  • Missing generatePath in react-router-dom package.

v4.3.0-rc.1

26 Mar 20:43
Compare
Choose a tag to compare
v4.3.0-rc.1 Pre-release
Pre-release

Changes

Mar 26, 2018

v3.2.1

07 Mar 18:27
Compare
Choose a tag to compare

Changes

  • React 16.3 support

v3.2.0

26 Sep 17:24
Compare
Choose a tag to compare

Changes

  • React 16 support

react-router-dom v4.2.2

25 Aug 00:11
Compare
Choose a tag to compare

Apologies for the quick rebuild. There was a bad UMD config, which would have required you to include both the react-router and react-router-dom UMD files. You should only have to include react-router-dom now, which is the same behavior as the npm package.

OK, I'm done for a bit... 😬

react-router-dom v4.2.1

25 Aug 00:02
Compare
Choose a tag to compare

This fixes a missing warning dependency if you were installing just react-router-dom. No other changes to the actual code.