Skip to content

Releases: salvoravida/redux-first-history

v5.2.0

14 Dec 18:06
Compare
Choose a tag to compare
  • support redux 5.0 (peer dep and types)

v5.1.1

10 Sep 01:25
Compare
Choose a tag to compare

fix: #79

v5.1.0

10 Sep 01:03
Compare
Choose a tag to compare
  • 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

24 Jun 09:37
Compare
Choose a tag to compare

fix: remove deprecated oldLocationChangePayload from interface

v5.0.11

20 Jun 17:46
Compare
Choose a tag to compare

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

v5.0.10

17 Jun 17:50
Compare
Choose a tag to compare
  • fix: remove reach/router dep if not needed

v5.0.9

09 Apr 07:00
Compare
Choose a tag to compare

(#64): Add RouterActions type

v5.0.8

13 Dec 14:08
Compare
Choose a tag to compare

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

v5.0.7

11 Dec 23:54
Compare
Choose a tag to compare
  • 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

10 Dec 22:15
Compare
Choose a tag to compare

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>