@shuvi/platform-web 1.0.8 → 1.0.9

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.
@@ -83,7 +83,9 @@ export const createApp = ({ routes, appData, appComponent }) => {
83
83
  reject(err);
84
84
  });
85
85
  runLoaders(matches, pageLoaders, {
86
+ pathname: to.pathname,
86
87
  query: to.query,
88
+ params: to.params,
87
89
  getAppContext: () => app.context
88
90
  })
89
91
  .then(_value => {
@@ -32,7 +32,9 @@ export const createApp = options => {
32
32
  try {
33
33
  const loaderResult = yield runLoaders(matches, pageLoaders, {
34
34
  req,
35
+ pathname: to.pathname,
35
36
  query: to.query,
37
+ params: to.params,
36
38
  getAppContext: () => app.context
37
39
  });
38
40
  app.setLoadersData(loaderResult);
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const Provider: (props: import("react").PropsWithChildren<{
3
3
  store?: import("doura").Doura | undefined;
4
- }>) => JSX.Element, useSharedModel: import("react-doura").UseNamedModel, useStaticModel: import("react-doura").UseNamedStaticModel;
4
+ }>) => JSX.Element, useSharedModel: import("react-doura").UseNamedModel, useStaticModel: import("react-doura").UseStaticModel;
5
5
  export { Provider, useSharedModel, useStaticModel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/platform-web",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -72,17 +72,17 @@
72
72
  },
73
73
  "dependencies": {
74
74
  "@next/react-refresh-utils": "12.1.6",
75
- "@shuvi/error-overlay": "1.0.8",
76
- "@shuvi/hook": "1.0.8",
77
- "@shuvi/platform-shared": "1.0.8",
78
- "doura": "0.0.4",
79
- "react-doura": "0.0.4",
80
- "@shuvi/router": "1.0.8",
81
- "@shuvi/router-react": "1.0.8",
82
- "@shuvi/runtime": "1.0.8",
83
- "@shuvi/shared": "1.0.8",
84
- "@shuvi/toolpack": "1.0.8",
85
- "@shuvi/utils": "1.0.8",
75
+ "@shuvi/error-overlay": "1.0.9",
76
+ "@shuvi/hook": "1.0.9",
77
+ "@shuvi/platform-shared": "1.0.9",
78
+ "doura": "0.0.7",
79
+ "react-doura": "0.0.7",
80
+ "@shuvi/router": "1.0.9",
81
+ "@shuvi/router-react": "1.0.9",
82
+ "@shuvi/runtime": "1.0.9",
83
+ "@shuvi/shared": "1.0.9",
84
+ "@shuvi/toolpack": "1.0.9",
85
+ "@shuvi/utils": "1.0.9",
86
86
  "content-type": "1.0.4",
87
87
  "core-js": "3.6.5",
88
88
  "ejs": "3.1.5",
@@ -90,15 +90,15 @@
90
90
  "node-mocks-http": "1.11.0",
91
91
  "object-assign": "4.1.1",
92
92
  "raw-body": "2.4.1",
93
- "react": "18.1.0",
94
- "react-dom": "18.1.0",
93
+ "react": "18.2.0",
94
+ "react-dom": "18.2.0",
95
95
  "react-refresh": "0.12.0",
96
96
  "strip-ansi": "6.0.0",
97
97
  "use-sync-external-store": "1.1.0",
98
98
  "whatwg-fetch": "3.0.0"
99
99
  },
100
100
  "peerDependencies": {
101
- "@shuvi/service": "1.0.8"
101
+ "@shuvi/service": "1.0.9"
102
102
  },
103
103
  "devDependencies": {
104
104
  "@shuvi/service": "workspace:*",