Redux First History Versions Save

Redux history binding support react-router - @reach/router - wouter - react-location

v5.2.0

5 months ago
  • support redux 5.0 (peer dep and types)

v5.1.0

1 year ago
  • Added support for basename
import { createReduxHistoryContext } from "redux-first-history";
import { createBrowserHistory } from 'history'; //v5

const { createReduxHistory, routerMiddleware, routerReducer } = createReduxHistoryContext({ 
  history: createBrowserHistory(),
  basename: '/app',
  //other options if needed 
});

v5.0.12

1 year ago

fix: remove deprecated oldLocationChangePayload from interface

v5.0.11

1 year ago

fix: type for Location in locationChangeAction and history 5.x

v5.0.10

1 year ago
  • fix: remove reach/router dep if not needed

v5.0.9

2 years ago

(#64): Add RouterActions type

v5.0.8

2 years ago

fix (#60): Support history 5.1 types on push/replace

v5.0.7

2 years ago
  • restored internal rr6 support (react-router v6.1.1)

rr6 support :

import { HistoryRouter as Router } from "redux-first-history/rr6";
import { Route, Routes, Navigate } from "react-router-dom";
//...
import { store, history } from "./store";
//...

     <Router history={history}>
                 <Routes>
                   <Route path="/dashboard" element={<Dashboard />} />
                   <Route path="/" element={<Home />} />
                   <Route path="*" element={<Navigate to="/" />} />
                 </Routes>
     </Router>

demo rr6 here: https://codesandbox.io/s/redux-first-history-demo-rr6-uccuw

v5.0.6

2 years ago

rr6 support :

import { Route, Routes, Navigate, HistoryRouter as Router } from "react-router-dom";
import { store, history } from "./store";
//...
     <Router history={history}>
                 <Routes>
                   <Route path="/dashboard" element={<Dashboard />} />
                   <Route path="/" element={<Home />} />
                   <Route path="*" element={<Navigate to="/" />} />
                 </Routes>
     </Router>