ssr-plugin-react 6.2.4 → 6.2.7

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/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.2.7](https://github.com/zhangyuang/ssr/compare/v6.2.6...v6.2.7) (2022-04-07)
7
+
8
+ **Note:** Version bump only for package ssr-plugin-react
9
+
10
+
11
+
12
+
13
+
14
+ ## [6.2.6](https://github.com/zhangyuang/ssr/compare/v6.2.4...v6.2.6) (2022-04-05)
15
+
16
+ **Note:** Version bump only for package ssr-plugin-react
17
+
18
+
19
+
20
+
21
+
22
+ ## [6.2.5](https://github.com/zhangyuang/ssr/compare/v6.2.4...v6.2.5) (2022-04-05)
23
+
24
+ **Note:** Version bump only for package ssr-plugin-react
25
+
26
+
27
+
28
+
29
+
6
30
  ## [6.2.4](https://github.com/zhangyuang/ssr/compare/v6.2.3...v6.2.4) (2022-04-01)
7
31
 
8
32
  **Note:** Version bump only for package ssr-plugin-react
@@ -23,7 +23,7 @@ const clientRender = async () => {
23
23
  React.createElement(IApp, null,
24
24
  React.createElement(react_router_dom_1.Switch, null,
25
25
  // 使用高阶组件wrapComponent使得csr首次进入页面以及csr/ssr切换路由时调用getInitialProps
26
- routes.map((item) => {
26
+ routes.map(item => {
27
27
  const { fetch, component, path } = item;
28
28
  component.fetch = fetch;
29
29
  component.layoutFetch = layoutFetch;
@@ -20,7 +20,7 @@ const clientRender = async () => {
20
20
  React.createElement(IApp, null,
21
21
  React.createElement(Switch, null,
22
22
  // 使用高阶组件wrapComponent使得csr首次进入页面以及csr/ssr切换路由时调用getInitialProps
23
- routes.map((item) => {
23
+ routes.map(item => {
24
24
  const { fetch, component, path } = item;
25
25
  component.fetch = fetch;
26
26
  component.layoutFetch = layoutFetch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssr-plugin-react",
3
- "version": "6.2.4",
3
+ "version": "6.2.7",
4
4
  "description": "plugin-react for ssr",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -55,10 +55,10 @@
55
55
  "postcss-safe-parser": "^6.0.0",
56
56
  "react-dev-utils": "^11.0.4",
57
57
  "serialize-javascript": "^6.0.0",
58
- "ssr-client-utils": "^6.2.3",
59
- "ssr-hoc-react": "^6.2.3",
60
- "ssr-server-utils": "^6.2.4",
61
- "ssr-webpack": "^6.2.4",
58
+ "ssr-client-utils": "^6.2.7",
59
+ "ssr-hoc-react": "^6.2.7",
60
+ "ssr-server-utils": "^6.2.7",
61
+ "ssr-webpack": "^6.2.7",
62
62
  "terser-webpack-plugin": "^2.3.5",
63
63
  "url-loader": "^4.1.1",
64
64
  "vite": "^2.7.0",
@@ -74,7 +74,7 @@
74
74
  "@types/react-router-dom": "^5.1.3",
75
75
  "@types/webpack": "^4.41.10",
76
76
  "concurrently": "^5.1.0",
77
- "ssr-types-react": "^6.2.3"
77
+ "ssr-types-react": "^6.2.7"
78
78
  },
79
- "gitHead": "d7d13b088b03b20be02206b2ef4b879081b25f07"
79
+ "gitHead": "82fa40d097f74c3bfae928bbf6744188aafaf8ee"
80
80
  }
@@ -3,7 +3,7 @@ import * as ReactDOM from 'react-dom'
3
3
  import { BrowserRouter, Route, Switch } from 'react-router-dom'
4
4
  import { preloadComponent } from 'ssr-client-utils'
5
5
  import { wrapComponent } from 'ssr-hoc-react'
6
- import { IWindow, LayoutProps, ReactESMFeRouteItem, ReactRoutesType } from 'ssr-types-react'
6
+ import { IWindow, LayoutProps, ReactRoutesType } from 'ssr-types-react'
7
7
  import { Routes } from './create-router'
8
8
  import { AppContext } from './context'
9
9
 
@@ -27,7 +27,7 @@ const clientRender = async (): Promise<void> => {
27
27
  <Switch>
28
28
  {
29
29
  // 使用高阶组件wrapComponent使得csr首次进入页面以及csr/ssr切换路由时调用getInitialProps
30
- routes.map((item: ReactESMFeRouteItem) => {
30
+ routes.map(item => {
31
31
  const { fetch, component, path } = item
32
32
  component.fetch = fetch
33
33
  component.layoutFetch = layoutFetch