Connected React Router Versions Save

A Redux binding for React Router v4

v6.5.0

4 years ago

Enhancement

  • Support react-redux v7 (@quarties in #321)

Documentation

  • Add note about using StaticRouter for SSR (@ValentinH in #322)

v6.4.0

5 years ago

Enhancement

Fixes

  • Upgrade jest to fix travis error (@supasate)
  • [TypeScript] add isFirstRendering property to RouterState interface (@TetsuyaNegishi in #276)
  • Fix code format (@siosio34 in #289)
  • Move prop-types from peerDependencies into dependencies (@cmfcmf in #281)

Documentation

  • Note on removing BrowserRouter and NativeRouter (@AJamesPhillips in #277)

v6.3.2

5 years ago

Fixes

  • Declare prop-types as a peer dependency (@avindra in #265)
  • Fix passing isFirstRendering to onLocationChange action (@AlexeyAbretov in #264)
  • Replace uglify option with new minimize options (@gugu in #263)

v6.3.1

5 years ago

Fix

  • Fix an invalid type definition (@cometkim in #253)

v6.3.0

5 years ago

Enhancements

  • Add onLocationChanged method typtings (@goszczynskip in #248)
  • Add optinoal context prop type definition (@Autarc in #245)
  • Improve return types of action creators by adding generic args type (@salguerooo in #243)

Fix

  • Use immutable routerMiddleware for immutable example (@Armour in #249)

v6.2.2

5 years ago

Fixes

  • Add missing typedef's for getRouter and createMatchSelector (@metsavaht in #235)
  • Fix missing store in TypeScript example (@supasate in #240)

v6.2.1

5 years ago

Fix

  • Fix tslint warning for LocationState (@Razzwan in #233)

v6.2.0

5 years ago

Fixes

  • Move store and history subscription back to constructor (@supasate in #227)
  • Return immutable location object in reducer (@foodforarabbit in #226)

Enhancements

  • Create selectors to retrieve search and hash (@antgonzales in #203)
  • Add getter Typescript type support for getAction, getSearch, and getHash (@antgonzales in #203)
  • Export onLocationChanged action (@supasate in #222)

Doc

  • Refactor examples to use configureStore to align with README (@supasate in #228)

v6.1.0

5 years ago

Fixes

  • Move onLocationChanged to componentDidMount to avoid side-effect in constructor (#217)·
  • Prevent double-rendering on initilization (#218)
  • Prevent ConnectedRouter from re-rendering on every redux store update (#208, #216)

These fixes are significantly contributed by @Annatsu, @SergeyPoluektov, @jakewies, @firec0der, @madsmadsen, and @supasate.

Feature

  • Output ESM build, and make module tree-shakeable (@unindented in #202)

v6.0.0

5 years ago

This is a major version upgrade to support React Redux v6 that uses the new Context API. So, it requires React v16.4 and React Redux v6.0 or later. No need to change anything in your codebase besides upgrading these packages.

Breaking Change

  • Require React v16.4 and React Redux v6.0 or later.

Enhancement

  • Support React Router v6 with the new Context API (@supasate in #191)
  • Support a custom context for <Provider> by providing it as a context props for both <Provider> and <ConnectedRouter> (@supasate in #191)
  • Throw helpful error when router reducer not mounted under "router" key (@mattvague in #175)
  • TypeScript: Remove a duplicate LocationChangeAction interface (@lazarljubenovic in #180)
  • TypeScript: Be more specific on action creators' return type (@lazarljubenovic in #181)
  • TypeScript: Create and export types for routerActions so they can be imported and used in definitions (@afholderman in #189)

Docs

  • Add example for push state using react-redux with connect (@wgao19 in #179)

Misc

  • Add Code of Conduct (@supasate in #182)
  • Remove unused variables from the examples folder (@Rhuansantos in #190)