@bleedingdev/modern-js-runtime 3.2.0-ultramodern.0 → 3.2.0-ultramodern.10
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/cjs/core/context/serverPayload/index.js +1 -1
- package/dist/cjs/core/plugin/index.js +3 -2
- package/dist/esm/core/context/serverPayload/index.mjs +1 -1
- package/dist/esm/core/plugin/index.mjs +3 -2
- package/dist/esm-node/core/context/serverPayload/index.mjs +1 -1
- package/dist/esm-node/core/plugin/index.mjs +3 -2
- package/dist/types/cli/entry.d.ts +2 -2
- package/dist/types/core/context/response/index.server.d.ts +1 -4
- package/dist/types/core/plugin/index.d.ts +4 -3
- package/dist/types/core/server/utils.d.ts +1 -11
- package/dist/types/router/cli/code/getClientRoutes/utils.d.ts +1 -1
- package/dist/types/router/cli/code/utils.d.ts +1 -1
- package/dist/types/router/cli/entry.d.ts +1 -1
- package/package.json +9 -9
|
@@ -27,7 +27,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
getServerPayload: ()=>getServerPayload,
|
|
28
28
|
setServerPayload: ()=>setServerPayload
|
|
29
29
|
});
|
|
30
|
-
const getServerPayload = ()=>
|
|
30
|
+
const getServerPayload = ()=>void 0;
|
|
31
31
|
const setServerPayload = (payload)=>{};
|
|
32
32
|
exports.getServerPayload = __webpack_exports__.getServerPayload;
|
|
33
33
|
exports.setServerPayload = __webpack_exports__.setServerPayload;
|
|
@@ -45,8 +45,9 @@ function registerPlugin(internalPlugins, runtimeConfig) {
|
|
|
45
45
|
config: runtimeConfig || {},
|
|
46
46
|
handleSetupResult: hooks_js_namespaceObject.handleSetupResult
|
|
47
47
|
});
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
const internalRuntimeContext = runtimeContext;
|
|
49
|
+
(0, external_context_index_js_namespaceObject.setGlobalInternalRuntimeContext)(internalRuntimeContext);
|
|
50
|
+
return internalRuntimeContext;
|
|
50
51
|
}
|
|
51
52
|
function mergeConfig(config, ...otherConfig) {
|
|
52
53
|
return (0, merge_namespaceObject.merge)({}, config, ...otherConfig);
|
|
@@ -16,8 +16,9 @@ function registerPlugin(internalPlugins, runtimeConfig) {
|
|
|
16
16
|
config: runtimeConfig || {},
|
|
17
17
|
handleSetupResult: handleSetupResult
|
|
18
18
|
});
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
const internalRuntimeContext = runtimeContext;
|
|
20
|
+
setGlobalInternalRuntimeContext(internalRuntimeContext);
|
|
21
|
+
return internalRuntimeContext;
|
|
21
22
|
}
|
|
22
23
|
function mergeConfig(config, ...otherConfig) {
|
|
23
24
|
return merge({}, config, ...otherConfig);
|
|
@@ -17,8 +17,9 @@ function registerPlugin(internalPlugins, runtimeConfig) {
|
|
|
17
17
|
config: runtimeConfig || {},
|
|
18
18
|
handleSetupResult: handleSetupResult
|
|
19
19
|
});
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
const internalRuntimeContext = runtimeContext;
|
|
21
|
+
setGlobalInternalRuntimeContext(internalRuntimeContext);
|
|
22
|
+
return internalRuntimeContext;
|
|
22
23
|
}
|
|
23
24
|
function mergeConfig(config, ...otherConfig) {
|
|
24
25
|
return merge({}, config, ...otherConfig);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const hasApp: (dir: string) =>
|
|
2
|
-
export declare const isRuntimeEntry: (dir: string) =>
|
|
1
|
+
export declare const hasApp: (dir: string) => any;
|
|
2
|
+
export declare const isRuntimeEntry: (dir: string) => any;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export declare const getResponseProxy: () =>
|
|
2
|
-
headers: Record<string, string>;
|
|
3
|
-
status: number;
|
|
4
|
-
} | undefined;
|
|
1
|
+
export declare const getResponseProxy: () => any;
|
|
5
2
|
export declare const setHeaders: (headers: Record<string, string>) => void;
|
|
6
3
|
export declare const setStatus: (status: number) => void;
|
|
7
4
|
export declare const redirect: (url: string, init?: number | ResponseInit) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InternalRuntimeContext } from '@modern-js/plugin/runtime';
|
|
2
|
+
import type { RuntimeConfig, RuntimeExtends, RuntimePlugin } from './types';
|
|
2
3
|
export type { RuntimePlugin };
|
|
3
|
-
export declare function registerPlugin(internalPlugins: RuntimePlugin[], runtimeConfig?: RuntimeConfig):
|
|
4
|
-
export declare function mergeConfig(config: Record<string, any>, ...otherConfig: Record<string, any>[]):
|
|
4
|
+
export declare function registerPlugin(internalPlugins: RuntimePlugin[], runtimeConfig?: RuntimeConfig): InternalRuntimeContext<RuntimeExtends>;
|
|
5
|
+
export declare function mergeConfig(config: Record<string, any>, ...otherConfig: Record<string, any>[]): any;
|
|
@@ -15,15 +15,5 @@ export declare function checkIsNode(): boolean;
|
|
|
15
15
|
* license at https://github.com/remix-run/remix/blob/main/LICENSE.md
|
|
16
16
|
*/
|
|
17
17
|
export declare function serializeErrors(errors: StaticHandlerContext['errors']): StaticHandlerContext['errors'];
|
|
18
|
-
export declare function getSSRConfigByEntry(entryName: string, ssr?: ServerUserConfig['ssr'], ssrByEntries?: ServerUserConfig['ssrByEntries']):
|
|
19
|
-
forceCSR?: boolean;
|
|
20
|
-
mode?: import("@modern-js/types").SSRMode;
|
|
21
|
-
preload?: boolean | {
|
|
22
|
-
[x: string]: unknown;
|
|
23
|
-
};
|
|
24
|
-
inlineScript?: boolean;
|
|
25
|
-
disablePrerender?: boolean;
|
|
26
|
-
unsafeHeaders?: string[];
|
|
27
|
-
moduleFederationAppSSR?: boolean;
|
|
28
|
-
};
|
|
18
|
+
export declare function getSSRConfigByEntry(entryName: string, ssr?: ServerUserConfig['ssr'], ssrByEntries?: ServerUserConfig['ssrByEntries']): any;
|
|
29
19
|
export declare function getSSRMode(ssrConfig?: SSRConfig): 'string' | 'stream' | false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const walkDirectory: (dir: string) => string[];
|
|
2
2
|
export declare const isPageComponentFile: (filePath: string) => boolean;
|
|
3
|
-
export declare const replaceWithAlias: (base: string, filePath: string, alias: string) =>
|
|
3
|
+
export declare const replaceWithAlias: (base: string, filePath: string, alias: string) => any;
|
|
4
4
|
export declare const parseModule: ({ source, filename, }: {
|
|
5
5
|
source: string;
|
|
6
6
|
filename: string;
|
|
@@ -13,6 +13,6 @@ export declare const getEntrypointRoutesDir: (entrypoint: {
|
|
|
13
13
|
export declare const getEntrypointRoutesOwner: (entrypoint: {
|
|
14
14
|
[ROUTES_OWNER_META_KEY]?: string;
|
|
15
15
|
}) => string | null;
|
|
16
|
-
export declare const hasNestedRoutes: (dir: string, routesDir?: string) =>
|
|
16
|
+
export declare const hasNestedRoutes: (dir: string, routesDir?: string) => any;
|
|
17
17
|
export declare const isRouteEntry: (dir: string, routesDir?: string) => string | false;
|
|
18
18
|
export declare const modifyEntrypoints: (entrypoints: Entrypoint[], routesDir?: string, routesOwner?: string) => EntrypointWithRoutesMeta[];
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.2.0-ultramodern.
|
|
20
|
+
"version": "3.2.0-ultramodern.10",
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20"
|
|
23
23
|
},
|
|
@@ -227,12 +227,12 @@
|
|
|
227
227
|
"isbot": "5.1.40",
|
|
228
228
|
"react-helmet": "^6.1.0",
|
|
229
229
|
"react-is": "^19.2.6",
|
|
230
|
-
"@modern-js/
|
|
231
|
-
"@modern-js/
|
|
232
|
-
"@modern-js/
|
|
233
|
-
"@modern-js/
|
|
234
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.
|
|
235
|
-
"@modern-js/
|
|
230
|
+
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.10",
|
|
231
|
+
"@modern-js/render": "npm:@bleedingdev/modern-js-render@3.2.0-ultramodern.10",
|
|
232
|
+
"@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.2.0-ultramodern.10",
|
|
233
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.10",
|
|
234
|
+
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.2.0-ultramodern.10",
|
|
235
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.10"
|
|
236
236
|
},
|
|
237
237
|
"peerDependencies": {
|
|
238
238
|
"react": "^19.2.6",
|
|
@@ -251,8 +251,8 @@
|
|
|
251
251
|
"@typescript/native-preview": "7.0.0-dev.20260516.1",
|
|
252
252
|
"react": "^19.2.6",
|
|
253
253
|
"react-dom": "^19.2.6",
|
|
254
|
-
"@
|
|
255
|
-
"@
|
|
254
|
+
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.2.0-ultramodern.10",
|
|
255
|
+
"@scripts/rstest-config": "2.66.0"
|
|
256
256
|
},
|
|
257
257
|
"sideEffects": false,
|
|
258
258
|
"publishConfig": {
|