@bleedingdev/modern-js-runtime 3.5.0-ultramodern.27 → 3.5.0-ultramodern.29
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.
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RouteObject, StaticHandlerContext } from '@modern-js/runtime-utils/router';
|
|
2
|
+
import type { BaseSSRServerContext } from '@modern-js/types';
|
|
3
|
+
import type { RouteManifest } from '../../router/runtime/types';
|
|
4
|
+
import { type TRuntimeContext } from './public';
|
|
2
5
|
export type InternalSSRContext = {
|
|
3
|
-
request:
|
|
6
|
+
request: BaseSSRServerContext['request'] & {
|
|
4
7
|
raw?: Request;
|
|
5
8
|
};
|
|
6
|
-
response:
|
|
9
|
+
response: BaseSSRServerContext['response'];
|
|
7
10
|
[key: string]: any;
|
|
8
11
|
};
|
|
9
12
|
export { ReactRuntimeContext, RuntimeContext, type TRuntimeContext, useRuntimeContext, } from './public';
|
|
@@ -11,12 +14,13 @@ export { ReactRuntimeContext, RuntimeContext, type TRuntimeContext, useRuntimeCo
|
|
|
11
14
|
* InternalRuntimeContext used internally and by plugins
|
|
12
15
|
*/
|
|
13
16
|
export interface TInternalRuntimeContext extends TRuntimeContext {
|
|
14
|
-
routeManifest?:
|
|
15
|
-
|
|
17
|
+
routeManifest?: RouteManifest;
|
|
18
|
+
routes?: RouteObject[];
|
|
19
|
+
routerContext?: StaticHandlerContext;
|
|
16
20
|
unstable_getBlockNavState?: () => boolean;
|
|
17
21
|
ssrContext?: InternalSSRContext;
|
|
18
22
|
_internalContext?: any;
|
|
19
23
|
_internalRouterBaseName?: any;
|
|
20
24
|
}
|
|
21
25
|
export declare const InternalRuntimeContext: import("react").Context<TInternalRuntimeContext>;
|
|
22
|
-
export declare const getInitialContext: (isBrowser?: boolean, routeManifest?:
|
|
26
|
+
export declare const getInitialContext: (isBrowser?: boolean, routeManifest?: RouteManifest) => TInternalRuntimeContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OnError } from '@modern-js/app-tools';
|
|
2
2
|
import type { ClientManifest as RscClientManifest, ServerManifest as RscServerManifest, SSRManifest as RscSSRManifest } from '@modern-js/types/server';
|
|
3
3
|
import type React from 'react';
|
|
4
|
-
import type {
|
|
4
|
+
import type { TInternalRuntimeContext } from '../../context';
|
|
5
5
|
import type { HandleRequestConfig } from '../requestHandler';
|
|
6
6
|
import type { RenderStreaming, SSRConfig } from '../shared';
|
|
7
7
|
export type RscManifest = {
|
|
@@ -11,7 +11,7 @@ export type RscManifest = {
|
|
|
11
11
|
entryCssFiles?: Record<string, string[]>;
|
|
12
12
|
};
|
|
13
13
|
export type CreateReadableStreamFromElementOptions = {
|
|
14
|
-
runtimeContext:
|
|
14
|
+
runtimeContext: TInternalRuntimeContext;
|
|
15
15
|
config: HandleRequestConfig;
|
|
16
16
|
ssrConfig: SSRConfig;
|
|
17
17
|
htmlTemplate: string;
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.5.0-ultramodern.
|
|
20
|
+
"version": "3.5.0-ultramodern.29",
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20"
|
|
23
23
|
},
|
|
@@ -240,12 +240,12 @@
|
|
|
240
240
|
"react-helmet": "^6.1.0",
|
|
241
241
|
"react-helmet-async": "3.0.0",
|
|
242
242
|
"react-is": "^19.2.7",
|
|
243
|
-
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.5.0-ultramodern.
|
|
244
|
-
"@modern-js/
|
|
245
|
-
"@modern-js/render": "npm:@bleedingdev/modern-js-render@3.5.0-ultramodern.
|
|
246
|
-
"@modern-js/
|
|
247
|
-
"@modern-js/
|
|
248
|
-
"@modern-js/
|
|
243
|
+
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.5.0-ultramodern.29",
|
|
244
|
+
"@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.5.0-ultramodern.29",
|
|
245
|
+
"@modern-js/render": "npm:@bleedingdev/modern-js-render@3.5.0-ultramodern.29",
|
|
246
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.5.0-ultramodern.29",
|
|
247
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.5.0-ultramodern.29",
|
|
248
|
+
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.5.0-ultramodern.29"
|
|
249
249
|
},
|
|
250
250
|
"peerDependencies": {
|
|
251
251
|
"react": "^19.2.7",
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
"react-dom": "^19.2.7",
|
|
266
266
|
"ts-node": "^10.9.2",
|
|
267
267
|
"typescript": "^6.0.3",
|
|
268
|
-
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.5.0-ultramodern.
|
|
268
|
+
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.5.0-ultramodern.29",
|
|
269
269
|
"@scripts/rstest-config": "2.66.0"
|
|
270
270
|
},
|
|
271
271
|
"sideEffects": false,
|