@umijs/server 4.0.0-canary.20240517.1 → 4.0.0-canary.20240605.1

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/dist/ssr.d.ts CHANGED
@@ -26,8 +26,10 @@ interface CreateRequestHandlerOptions extends CreateRequestServerlessOptions {
26
26
  helmetContext?: any;
27
27
  ServerInsertedHTMLContext: React.Context<ServerInsertedHTMLHook | null>;
28
28
  htmlPageOpts: IhtmlPageOpts;
29
- renderFromRoot: boolean;
30
- __SPECIAL_HTML_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: boolean;
29
+ __INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
30
+ pureApp: boolean;
31
+ pureHtml: boolean;
32
+ };
31
33
  mountElementId: string;
32
34
  }
33
35
  export declare function createMarkupGenerator(opts: CreateRequestHandlerOptions): (url: string) => Promise<unknown>;
package/dist/ssr.js CHANGED
@@ -124,8 +124,7 @@ function createJSXGenerator(opts) {
124
124
  manifest,
125
125
  loaderData,
126
126
  htmlPageOpts: opts.htmlPageOpts,
127
- renderFromRoot: opts.renderFromRoot,
128
- __SPECIAL_HTML_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: opts.__SPECIAL_HTML_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
127
+ __INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: opts.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
129
128
  mountElementId: opts.mountElementId
130
129
  };
131
130
  const element = await opts.getClientRootComponent(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/server",
3
- "version": "4.0.0-canary.20240517.1",
3
+ "version": "4.0.0-canary.20240605.1",
4
4
  "description": "@umijs/server",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/server#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -16,10 +16,10 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "history": "5.3.0",
19
- "react": "18.3.1",
20
- "react-dom": "18.3.1",
19
+ "react": "18.1.0",
20
+ "react-dom": "18.1.0",
21
21
  "react-router-dom": "6.3.0",
22
- "@umijs/bundler-utils": "4.0.0-canary.20240517.1"
22
+ "@umijs/bundler-utils": "4.0.0-canary.20240605.1"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"