@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.
@@ -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
- (0, external_context_index_js_namespaceObject.setGlobalInternalRuntimeContext)(runtimeContext);
49
- return runtimeContext;
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);
@@ -1,3 +1,3 @@
1
- const getServerPayload = ()=>{};
1
+ const getServerPayload = ()=>void 0;
2
2
  const setServerPayload = (payload)=>{};
3
3
  export { getServerPayload, setServerPayload };
@@ -16,8 +16,9 @@ function registerPlugin(internalPlugins, runtimeConfig) {
16
16
  config: runtimeConfig || {},
17
17
  handleSetupResult: handleSetupResult
18
18
  });
19
- setGlobalInternalRuntimeContext(runtimeContext);
20
- return runtimeContext;
19
+ const internalRuntimeContext = runtimeContext;
20
+ setGlobalInternalRuntimeContext(internalRuntimeContext);
21
+ return internalRuntimeContext;
21
22
  }
22
23
  function mergeConfig(config, ...otherConfig) {
23
24
  return merge({}, config, ...otherConfig);
@@ -1,4 +1,4 @@
1
1
  import "node:module";
2
- const getServerPayload = ()=>{};
2
+ const getServerPayload = ()=>void 0;
3
3
  const setServerPayload = (payload)=>{};
4
4
  export { getServerPayload, setServerPayload };
@@ -17,8 +17,9 @@ function registerPlugin(internalPlugins, runtimeConfig) {
17
17
  config: runtimeConfig || {},
18
18
  handleSetupResult: handleSetupResult
19
19
  });
20
- setGlobalInternalRuntimeContext(runtimeContext);
21
- return runtimeContext;
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) => string | false;
2
- export declare const isRuntimeEntry: (dir: string) => string | false;
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 { RuntimeConfig, RuntimePlugin } from './types';
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): any;
4
- export declare function mergeConfig(config: Record<string, any>, ...otherConfig: Record<string, any>[]): 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']): true | {
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,4 +1,4 @@
1
- declare const debug: any;
1
+ declare const debug: (...args: unknown[]) => void;
2
2
  export { debug };
3
3
  export declare const getRouteWeight: (route: string) => number;
4
4
  export declare const shouldSkip: (file: string) => boolean;
@@ -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) => 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) => boolean;
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.0",
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/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.0",
231
- "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.0",
232
- "@modern-js/render": "npm:@bleedingdev/modern-js-render@3.2.0-ultramodern.0",
233
- "@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.2.0-ultramodern.0",
234
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.0",
235
- "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.2.0-ultramodern.0"
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
- "@scripts/rstest-config": "2.66.0",
255
- "@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.2.0-ultramodern.0"
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": {