@sequencemedia/react-router-redux-render 2.3.175 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +5 -6
- package/src/react-dom-server.jsx +6 -2
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Render isomorphic _React_ apps and components in Node.
|
|
|
5
5
|
- Using _React Router_
|
|
6
6
|
- With Redux
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
_For React Router 7._
|
|
9
9
|
|
|
10
10
|
An example implementation can be found in [react-router-pagination-io](http://github.com/sequencemedia/react-router-pagination-io.git).
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequencemedia/react-router-redux-render",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Sync/async isomorphic render of React apps with React Router + Redux",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"React",
|
|
@@ -51,12 +51,11 @@
|
|
|
51
51
|
"eslint-plugin-react": "^7.37.2",
|
|
52
52
|
"husky": "^9.1.7",
|
|
53
53
|
"mocha": "^10.8.2",
|
|
54
|
-
"prop-types": "15.8.1",
|
|
55
|
-
"react": "18.3.1",
|
|
56
|
-
"react-dom": "18.3.1",
|
|
54
|
+
"prop-types": "^15.8.1",
|
|
55
|
+
"react": "^18.3.1",
|
|
56
|
+
"react-dom": "^18.3.1",
|
|
57
57
|
"react-redux": "^9.1.2",
|
|
58
|
-
"react-router": "
|
|
59
|
-
"react-router-dom": "6.28.0",
|
|
58
|
+
"react-router": "^7.0.1",
|
|
60
59
|
"redux": "^5.0.1",
|
|
61
60
|
"sinon": "^19.0.2"
|
|
62
61
|
},
|
package/src/react-dom-server.jsx
CHANGED
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
import debug from 'debug'
|
|
6
6
|
import React from 'react'
|
|
7
7
|
import ReactDOMServer from 'react-dom/server'
|
|
8
|
-
import {
|
|
9
|
-
|
|
8
|
+
import {
|
|
9
|
+
Provider
|
|
10
|
+
} from 'react-redux'
|
|
11
|
+
import {
|
|
12
|
+
StaticRouter as Router
|
|
13
|
+
} from 'react-router'
|
|
10
14
|
import Boom from '@hapi/boom'
|
|
11
15
|
|
|
12
16
|
const log = debug('@sequencemedia/react-redux-render')
|