Releases: supasate/connected-react-router
Releases · supasate/connected-react-router
v6.5.0
v6.4.0
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
v6.3.1
v6.3.0
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
v6.2.2
v6.2.1
v6.2.0
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
v6.1.0
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
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 by providing it as a context props for both and (@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
Misc
- Add Code of Conduct (@supasate in #182)
- Remove unused variables from the examples folder (@Rhuansantos in #190)