@bleedingdev/modern-js-server-runtime-extensions 3.9.0-ultramodern.9 → 3.9.3-ultramodern.2
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/README.md +3 -1
- package/dist/cjs/backend-federation-security/index.js +73 -152
- package/dist/cjs/bff-policy/index.js +7 -0
- package/dist/cjs/bff-policy/node.js +20 -4
- package/dist/cjs/bff-policy/operationContracts.js +150 -135
- package/dist/cjs/bff-policy/operationIdentity.js +81 -0
- package/dist/cjs/bff-policy/producer.js +79 -0
- package/dist/cjs/localisedLoader.js +65 -0
- package/dist/cjs/localisedLoaderPlugin.js +2 -2
- package/dist/cjs/module-federation-css/remote.js +2 -1
- package/dist/cjs/static-serving/staticModuleFederation.js +49 -12
- package/dist/esm/backend-federation-security/index.mjs +73 -152
- package/dist/esm/bff-policy/index.mjs +1 -0
- package/dist/esm/bff-policy/operationIdentity.mjs +30 -0
- package/dist/esm/bff-policy/producer.mjs +31 -0
- package/dist/esm/localisedLoader.mjs +24 -0
- package/dist/esm/localisedLoaderPlugin.mjs +2 -2
- package/dist/esm/module-federation-css/remote.mjs +2 -1
- package/dist/esm-node/backend-federation-security/index.mjs +73 -152
- package/dist/esm-node/bff-policy/index.mjs +1 -0
- package/dist/esm-node/bff-policy/node.mjs +1 -0
- package/dist/esm-node/bff-policy/operationContracts.mjs +5 -27
- package/dist/esm-node/bff-policy/operationIdentity.mjs +31 -0
- package/dist/esm-node/bff-policy/producer.mjs +32 -0
- package/dist/esm-node/localisedLoader.mjs +25 -0
- package/dist/esm-node/localisedLoaderPlugin.mjs +2 -2
- package/dist/esm-node/module-federation-css/remote.mjs +2 -1
- package/dist/esm-node/static-serving/staticModuleFederation.mjs +49 -12
- package/dist/types/backend-federation-security/node.d.ts +1 -1
- package/dist/types/bff-policy/index.d.ts +1 -0
- package/dist/types/bff-policy/node.d.ts +1 -0
- package/dist/types/bff-policy/operationContracts.d.ts +2 -41
- package/dist/types/bff-policy/operationIdentity.d.ts +34 -0
- package/dist/types/bff-policy/producer.d.ts +10 -0
- package/dist/types/localisedLoader.d.ts +15 -0
- package/dist/types/module-federation-css/remote.d.ts +2 -0
- package/dist/types/serverConfig.d.ts +3 -1
- package/dist/types-esm/backend-federation-security/node.d.mts +1 -1
- package/dist/types-esm/bff-policy/index.d.mts +1 -0
- package/dist/types-esm/bff-policy/node.d.mts +1 -0
- package/dist/types-esm/bff-policy/operationContracts.d.mts +2 -41
- package/dist/types-esm/bff-policy/operationIdentity.d.mts +34 -0
- package/dist/types-esm/bff-policy/producer.d.mts +10 -0
- package/dist/types-esm/localisedLoader.d.mts +15 -0
- package/dist/types-esm/module-federation-css/remote.d.mts +2 -0
- package/dist/types-esm/serverConfig.d.mts +3 -1
- package/package.json +47 -19
- package/src/backend-federation-security/index.ts +151 -318
- package/src/backend-federation-security/node.ts +24 -22
- package/src/bff-policy/index.ts +1 -0
- package/src/bff-policy/node.ts +1 -0
- package/src/bff-policy/operationContracts.ts +13 -86
- package/src/bff-policy/operationIdentity.ts +90 -0
- package/src/bff-policy/producer.ts +40 -0
- package/src/contract-gate-snapshot-store/resolve.ts +0 -1
- package/src/localisedLoader.ts +50 -0
- package/src/localisedLoaderPlugin.ts +6 -7
- package/src/module-federation-css/remote.ts +3 -1
- package/src/serverConfig.ts +2 -0
- package/src/static-serving/staticModuleFederation.ts +127 -22
- package/rslib.config.mts +0 -38
- package/rstest.config.mts +0 -18
- package/tests/backendFederationSecurity.test.ts +0 -416
- package/tests/bff-policy/crossProjectPolicy.matrix.test.ts +0 -450
- package/tests/bff-policy/crossProjectPolicy.test.ts +0 -197
- package/tests/bff-policy/operationContracts.test.ts +0 -221
- package/tests/bff-policy/optionalZodPeer.test.ts +0 -30
- package/tests/bff-policy/resolveCrossProjectPolicy.test.ts +0 -76
- package/tests/contractGateSnapshotObserver.test.ts +0 -347
- package/tests/contractGateSnapshotStore.test.ts +0 -225
- package/tests/env.test.ts +0 -54
- package/tests/helpers.ts +0 -20
- package/tests/localisedLoader.test.ts +0 -120
- package/tests/mfCache.test.ts +0 -63
- package/tests/moduleFederationCss.test.ts +0 -348
- package/tests/nativeErrorResponse.test.ts +0 -118
- package/tests/nativeServerAssembly.test.ts +0 -385
- package/tests/runtimeLifecycle.test.ts +0 -159
- package/tests/static-serving/ordering.test.ts +0 -214
- package/tests/static-serving/static.test.ts +0 -411
- package/tests/telemetry.test.ts +0 -248
- package/tests/telemetryHealthMonitor.test.ts +0 -183
- package/tests/telemetryHealthObservation.test.ts +0 -302
- package/tests/telemetryLifecycle.test.ts +0 -123
- package/tests/telemetryRegistryQueueMatrix.test.ts +0 -130
- package/tests/telemetryTraceparent.test.ts +0 -167
- package/tests/tsconfig.json +0 -11
- package/tsconfig.json +0 -10
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type OperationContractEntry = {
|
|
2
|
+
name: string;
|
|
3
|
+
httpMethod: string;
|
|
4
|
+
routePath: string;
|
|
5
|
+
};
|
|
6
|
+
export type OperationContractDefinition = {
|
|
7
|
+
requestId: string;
|
|
8
|
+
operationVersion: number;
|
|
9
|
+
schemaHash: string;
|
|
10
|
+
method: string;
|
|
11
|
+
routePath: string;
|
|
12
|
+
operationId: string;
|
|
13
|
+
handlerName: string;
|
|
14
|
+
filename?: string;
|
|
15
|
+
};
|
|
16
|
+
export type OperationContractMap = Record<string, OperationContractDefinition>;
|
|
17
|
+
export declare const DEFAULT_OPERATION_VERSION = 1;
|
|
18
|
+
/**
|
|
19
|
+
* Derives the operation version from a producer package version: the semver
|
|
20
|
+
* major is the contract version, so consumers regenerated against an older
|
|
21
|
+
* producer major fail the `operation_version_mismatch` gate instead of
|
|
22
|
+
* silently calling an incompatible API.
|
|
23
|
+
*
|
|
24
|
+
* Falls back to {@link DEFAULT_OPERATION_VERSION} when no parseable version
|
|
25
|
+
* is available.
|
|
26
|
+
*/
|
|
27
|
+
export declare const deriveOperationVersion: (packageVersion?: unknown) => number;
|
|
28
|
+
/** JSON.stringify with recursively sorted object keys for stable hashing. */
|
|
29
|
+
export declare const stableOperationStringify: (value: unknown) => string;
|
|
30
|
+
export type OperationContractHashInput = OperationContractEntry & {
|
|
31
|
+
schemas?: Record<string, unknown>;
|
|
32
|
+
};
|
|
33
|
+
export declare const serializeOperationContract: (operation: OperationContractHashInput, requestId: string) => string;
|
|
34
|
+
export declare function digestOperationContract(operation: OperationContractHashInput, requestId: string): Promise<string>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Resolve the owning package once. Never borrow an ancestor's version when
|
|
2
|
+
* the producer has an absent or invalid version of its own. */
|
|
3
|
+
export declare function resolveOperationProducer(options: {
|
|
4
|
+
directories: Array<string | undefined>;
|
|
5
|
+
requestId?: string;
|
|
6
|
+
onDependency?: (filename: string) => void;
|
|
7
|
+
}): {
|
|
8
|
+
requestId: string;
|
|
9
|
+
operationVersion: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { LoaderRouteIdResolver } from '@modern-js/plugin-data-loader/runtime';
|
|
2
|
+
import type { ServerLoaderBundle } from '@modern-js/server-core';
|
|
3
|
+
type LoaderRoutes = ServerLoaderBundle['routes'];
|
|
4
|
+
/**
|
|
5
|
+
* Project canonical-only localized routes so loader matching sees every
|
|
6
|
+
* localized URL. Routes already emitted as physical localized aliases are
|
|
7
|
+
* returned unchanged.
|
|
8
|
+
*
|
|
9
|
+
* Runtime-neutral: shared by the Node server plugin and the Cloudflare worker
|
|
10
|
+
* route data handler.
|
|
11
|
+
*/
|
|
12
|
+
export declare function expandLocalisedLoaderRoutes(routes: LoaderRoutes): LoaderRoutes;
|
|
13
|
+
/** Resolve a canonical loader route ID to the localized alias matched by the URL. */
|
|
14
|
+
export declare const resolveLocalisedLoaderRoute: LoaderRouteIdResolver;
|
|
15
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Monitors } from '@modern-js/types';
|
|
2
2
|
type FetchLike = (input: string, init?: {
|
|
3
3
|
signal?: AbortSignal;
|
|
4
|
+
/** Trusted fetchers must honor this: reject instead of following a redirect. */
|
|
5
|
+
redirect?: 'error';
|
|
4
6
|
}) => Promise<Response>;
|
|
5
7
|
export type CollectDirectRemoteModuleFederationCssOptions = {
|
|
6
8
|
fetcher?: FetchLike;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BffRuntimeUserConfig, BffRuntimeFramework as CanonicalBffRuntimeFramework, ServerTelemetryConfigExtension } from '@modern-js/runtime-extensions/server-config';
|
|
1
|
+
import type { BffRuntimeUserConfig, BffRuntimeFramework as CanonicalBffRuntimeFramework, ServerSourceConfigExtension, ServerTelemetryConfigExtension } from '@modern-js/runtime-extensions/server-config';
|
|
2
2
|
import type { BffUserConfig, ServerUserConfig } from '@modern-js/server-core';
|
|
3
3
|
type BffConfigExtension = Omit<BffRuntimeUserConfig, 'runtimeFramework'>;
|
|
4
4
|
type ForkBffRuntimeRegistry = Record<Exclude<CanonicalBffRuntimeFramework, 'hono'>, true>;
|
|
@@ -11,6 +11,8 @@ declare module '@modern-js/server-core' {
|
|
|
11
11
|
}
|
|
12
12
|
interface ServerUserConfig extends ServerTelemetryConfigExtension {
|
|
13
13
|
}
|
|
14
|
+
interface SourceUserConfig extends ServerSourceConfigExtension {
|
|
15
|
+
}
|
|
14
16
|
}
|
|
15
17
|
export type UltramodernBffUserConfig = Omit<BffUserConfig, keyof BffRuntimeUserConfig> & BffRuntimeUserConfig;
|
|
16
18
|
export type UltramodernServerUserConfig = ServerUserConfig & ServerTelemetryConfigExtension;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type BackendFederationCommonJsEvaluator, type BackendFederationEntryIntegrity } from './index.mjs';
|
|
2
2
|
export declare function createBackendFederationEntryIntegrity(value: string | Uint8Array): BackendFederationEntryIntegrity;
|
|
3
|
-
export declare const evaluateNodeBackendFederationCommonJs: BackendFederationCommonJsEvaluator
|
|
3
|
+
export declare const evaluateNodeBackendFederationCommonJs: (source: Parameters<BackendFederationCommonJsEvaluator>[0], { remote }: Parameters<BackendFederationCommonJsEvaluator>[1]) => Record<string, unknown>;
|
|
@@ -1,32 +1,7 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
2
|
type ApiHandler = (...args: any) => any | Promise<any>;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
httpMethod: string;
|
|
6
|
-
routePath: string;
|
|
7
|
-
};
|
|
8
|
-
export type OperationContractDefinition = {
|
|
9
|
-
requestId: string;
|
|
10
|
-
operationVersion: number;
|
|
11
|
-
schemaHash: string;
|
|
12
|
-
method: string;
|
|
13
|
-
routePath: string;
|
|
14
|
-
operationId: string;
|
|
15
|
-
handlerName: string;
|
|
16
|
-
filename?: string;
|
|
17
|
-
};
|
|
18
|
-
export type OperationContractMap = Record<string, OperationContractDefinition>;
|
|
19
|
-
export declare const DEFAULT_OPERATION_VERSION = 1;
|
|
20
|
-
/**
|
|
21
|
-
* Derives the operation version from a producer package version: the semver
|
|
22
|
-
* major is the contract version, so consumers regenerated against an older
|
|
23
|
-
* producer major fail the `operation_version_mismatch` gate instead of
|
|
24
|
-
* silently calling an incompatible API.
|
|
25
|
-
*
|
|
26
|
-
* Falls back to {@link DEFAULT_OPERATION_VERSION} when no parseable version
|
|
27
|
-
* is available.
|
|
28
|
-
*/
|
|
29
|
-
export declare const deriveOperationVersion: (packageVersion?: unknown) => number;
|
|
3
|
+
import { type OperationContractEntry, type OperationContractHashInput, type OperationContractMap } from './operationIdentity.mjs';
|
|
4
|
+
export * from './operationIdentity.mjs';
|
|
30
5
|
/**
|
|
31
6
|
* Serializes the zod input schemas attached to an operator-decorated handler
|
|
32
7
|
* (`Data`/`Query`/`Params`/`Headers`/`Upload` metadata) into JSON-schema
|
|
@@ -34,19 +9,6 @@ export declare const deriveOperationVersion: (packageVersion?: unknown) => numbe
|
|
|
34
9
|
* (plain handlers, farrow schema-mode handlers).
|
|
35
10
|
*/
|
|
36
11
|
export declare const serializeOperationSchemas: (handler: ApiHandler | undefined) => Record<string, unknown> | undefined;
|
|
37
|
-
export type OperationContractHashInput = OperationContractEntry & {
|
|
38
|
-
/** Serialized schema documents; omit for schema-less operations. */
|
|
39
|
-
schemas?: Record<string, unknown> | undefined;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Per-operation contract hash. The hash covers the operation identity
|
|
43
|
-
* (name, method, route, producer requestId) plus the serialized input
|
|
44
|
-
* schemas, so:
|
|
45
|
-
*
|
|
46
|
-
* - changing an input schema changes the hash of exactly that operation;
|
|
47
|
-
* - reordering routes or adding unrelated operations never rotates the hash
|
|
48
|
-
* of other operations (each operation is hashed independently).
|
|
49
|
-
*/
|
|
50
12
|
export declare const createOperationContractHash: (operation: OperationContractHashInput, requestId: string) => string;
|
|
51
13
|
export declare const createOperationEntries: (handlers: Array<{
|
|
52
14
|
name: string;
|
|
@@ -82,4 +44,3 @@ export declare const buildOperationContractMap: ({ handlers, requestId, operatio
|
|
|
82
44
|
*/
|
|
83
45
|
operationVersion?: number;
|
|
84
46
|
}) => OperationContractMap;
|
|
85
|
-
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type OperationContractEntry = {
|
|
2
|
+
name: string;
|
|
3
|
+
httpMethod: string;
|
|
4
|
+
routePath: string;
|
|
5
|
+
};
|
|
6
|
+
export type OperationContractDefinition = {
|
|
7
|
+
requestId: string;
|
|
8
|
+
operationVersion: number;
|
|
9
|
+
schemaHash: string;
|
|
10
|
+
method: string;
|
|
11
|
+
routePath: string;
|
|
12
|
+
operationId: string;
|
|
13
|
+
handlerName: string;
|
|
14
|
+
filename?: string;
|
|
15
|
+
};
|
|
16
|
+
export type OperationContractMap = Record<string, OperationContractDefinition>;
|
|
17
|
+
export declare const DEFAULT_OPERATION_VERSION = 1;
|
|
18
|
+
/**
|
|
19
|
+
* Derives the operation version from a producer package version: the semver
|
|
20
|
+
* major is the contract version, so consumers regenerated against an older
|
|
21
|
+
* producer major fail the `operation_version_mismatch` gate instead of
|
|
22
|
+
* silently calling an incompatible API.
|
|
23
|
+
*
|
|
24
|
+
* Falls back to {@link DEFAULT_OPERATION_VERSION} when no parseable version
|
|
25
|
+
* is available.
|
|
26
|
+
*/
|
|
27
|
+
export declare const deriveOperationVersion: (packageVersion?: unknown) => number;
|
|
28
|
+
/** JSON.stringify with recursively sorted object keys for stable hashing. */
|
|
29
|
+
export declare const stableOperationStringify: (value: unknown) => string;
|
|
30
|
+
export type OperationContractHashInput = OperationContractEntry & {
|
|
31
|
+
schemas?: Record<string, unknown>;
|
|
32
|
+
};
|
|
33
|
+
export declare const serializeOperationContract: (operation: OperationContractHashInput, requestId: string) => string;
|
|
34
|
+
export declare function digestOperationContract(operation: OperationContractHashInput, requestId: string): Promise<string>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Resolve the owning package once. Never borrow an ancestor's version when
|
|
2
|
+
* the producer has an absent or invalid version of its own. */
|
|
3
|
+
export declare function resolveOperationProducer(options: {
|
|
4
|
+
directories: Array<string | undefined>;
|
|
5
|
+
requestId?: string;
|
|
6
|
+
onDependency?: (filename: string) => void;
|
|
7
|
+
}): {
|
|
8
|
+
requestId: string;
|
|
9
|
+
operationVersion: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { LoaderRouteIdResolver } from '@modern-js/plugin-data-loader/runtime';
|
|
2
|
+
import type { ServerLoaderBundle } from '@modern-js/server-core';
|
|
3
|
+
type LoaderRoutes = ServerLoaderBundle['routes'];
|
|
4
|
+
/**
|
|
5
|
+
* Project canonical-only localized routes so loader matching sees every
|
|
6
|
+
* localized URL. Routes already emitted as physical localized aliases are
|
|
7
|
+
* returned unchanged.
|
|
8
|
+
*
|
|
9
|
+
* Runtime-neutral: shared by the Node server plugin and the Cloudflare worker
|
|
10
|
+
* route data handler.
|
|
11
|
+
*/
|
|
12
|
+
export declare function expandLocalisedLoaderRoutes(routes: LoaderRoutes): LoaderRoutes;
|
|
13
|
+
/** Resolve a canonical loader route ID to the localized alias matched by the URL. */
|
|
14
|
+
export declare const resolveLocalisedLoaderRoute: LoaderRouteIdResolver;
|
|
15
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Monitors } from '@modern-js/types';
|
|
2
2
|
type FetchLike = (input: string, init?: {
|
|
3
3
|
signal?: AbortSignal;
|
|
4
|
+
/** Trusted fetchers must honor this: reject instead of following a redirect. */
|
|
5
|
+
redirect?: 'error';
|
|
4
6
|
}) => Promise<Response>;
|
|
5
7
|
export type CollectDirectRemoteModuleFederationCssOptions = {
|
|
6
8
|
fetcher?: FetchLike;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BffRuntimeUserConfig, BffRuntimeFramework as CanonicalBffRuntimeFramework, ServerTelemetryConfigExtension } from '@modern-js/runtime-extensions/server-config';
|
|
1
|
+
import type { BffRuntimeUserConfig, BffRuntimeFramework as CanonicalBffRuntimeFramework, ServerSourceConfigExtension, ServerTelemetryConfigExtension } from '@modern-js/runtime-extensions/server-config';
|
|
2
2
|
import type { BffUserConfig, ServerUserConfig } from '@modern-js/server-core';
|
|
3
3
|
type BffConfigExtension = Omit<BffRuntimeUserConfig, 'runtimeFramework'>;
|
|
4
4
|
type ForkBffRuntimeRegistry = Record<Exclude<CanonicalBffRuntimeFramework, 'hono'>, true>;
|
|
@@ -11,6 +11,8 @@ declare module '@modern-js/server-core' {
|
|
|
11
11
|
}
|
|
12
12
|
interface ServerUserConfig extends ServerTelemetryConfigExtension {
|
|
13
13
|
}
|
|
14
|
+
interface SourceUserConfig extends ServerSourceConfigExtension {
|
|
15
|
+
}
|
|
14
16
|
}
|
|
15
17
|
export type UltramodernBffUserConfig = Omit<BffUserConfig, keyof BffRuntimeUserConfig> & BffRuntimeUserConfig;
|
|
16
18
|
export type UltramodernServerUserConfig = ServerUserConfig & ServerTelemetryConfigExtension;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bleedingdev/modern-js-server-runtime-extensions",
|
|
3
3
|
"description": "Fork-owned ultramodern.js server runtime extensions: telemetry pipeline, contract-gate canary autopilot and module federation runtime helpers.",
|
|
4
|
-
"homepage": "https://github.com/
|
|
4
|
+
"homepage": "https://github.com/ultramodernjs/ultramodern.js#readme",
|
|
5
5
|
"bugs": {
|
|
6
|
-
"url": "https://github.com/
|
|
6
|
+
"url": "https://github.com/ultramodernjs/ultramodern.js/issues"
|
|
7
7
|
},
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/
|
|
10
|
+
"url": "git+https://github.com/ultramodernjs/ultramodern.js.git",
|
|
11
11
|
"directory": "packages/server/runtime-extensions"
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.9.
|
|
20
|
+
"version": "3.9.3-ultramodern.2",
|
|
21
21
|
"types": "./dist/types/index.d.ts",
|
|
22
22
|
"main": "./dist/cjs/index.js",
|
|
23
23
|
"exports": {
|
|
@@ -85,6 +85,24 @@
|
|
|
85
85
|
"default": "./dist/esm/runtimeLifecycle.mjs",
|
|
86
86
|
"types": "./dist/types-esm/runtimeLifecycle.d.mts"
|
|
87
87
|
},
|
|
88
|
+
"./localised-loader": {
|
|
89
|
+
"node": {
|
|
90
|
+
"import": {
|
|
91
|
+
"types": "./dist/types-esm/localisedLoader.d.mts",
|
|
92
|
+
"default": "./dist/esm-node/localisedLoader.mjs"
|
|
93
|
+
},
|
|
94
|
+
"require": {
|
|
95
|
+
"types": "./dist/types/localisedLoader.d.ts",
|
|
96
|
+
"default": "./dist/cjs/localisedLoader.js"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"import": {
|
|
100
|
+
"types": "./dist/types-esm/localisedLoader.d.mts",
|
|
101
|
+
"default": "./dist/esm/localisedLoader.mjs"
|
|
102
|
+
},
|
|
103
|
+
"default": "./dist/esm/localisedLoader.mjs",
|
|
104
|
+
"types": "./dist/types-esm/localisedLoader.d.mts"
|
|
105
|
+
},
|
|
88
106
|
"./static-serving/node": {
|
|
89
107
|
"node": {
|
|
90
108
|
"import": {
|
|
@@ -171,6 +189,10 @@
|
|
|
171
189
|
"./dist/types/runtimeLifecycle.d.ts",
|
|
172
190
|
"./src/runtimeLifecycle.ts"
|
|
173
191
|
],
|
|
192
|
+
"localised-loader": [
|
|
193
|
+
"./dist/types/localisedLoader.d.ts",
|
|
194
|
+
"./src/localisedLoader.ts"
|
|
195
|
+
],
|
|
174
196
|
"static-serving/node": [
|
|
175
197
|
"./dist/types/static-serving/plugin.d.ts",
|
|
176
198
|
"./src/static-serving/plugin.ts"
|
|
@@ -194,28 +216,27 @@
|
|
|
194
216
|
}
|
|
195
217
|
},
|
|
196
218
|
"engines": {
|
|
197
|
-
"node": ">=26.
|
|
219
|
+
"node": ">=26.10.0"
|
|
198
220
|
},
|
|
199
221
|
"dependencies": {
|
|
200
|
-
"@modern-js/create-request": "npm:@bleedingdev/modern-js-create-request@3.9.
|
|
201
|
-
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.9.
|
|
202
|
-
"@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.9.
|
|
203
|
-
"@modern-js/runtime-extensions": "npm:@bleedingdev/modern-js-runtime-extensions@3.9.
|
|
204
|
-
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.9.
|
|
205
|
-
"@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.9.
|
|
206
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.
|
|
222
|
+
"@modern-js/create-request": "npm:@bleedingdev/modern-js-create-request@3.9.3-ultramodern.2",
|
|
223
|
+
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.9.3-ultramodern.2",
|
|
224
|
+
"@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.9.3-ultramodern.2",
|
|
225
|
+
"@modern-js/runtime-extensions": "npm:@bleedingdev/modern-js-runtime-extensions@3.9.3-ultramodern.2",
|
|
226
|
+
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.9.3-ultramodern.2",
|
|
227
|
+
"@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.9.3-ultramodern.2",
|
|
228
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.3-ultramodern.2",
|
|
207
229
|
"@swc/helpers": "^0.5.23",
|
|
208
230
|
"reflect-metadata": "^0.2.2"
|
|
209
231
|
},
|
|
210
232
|
"devDependencies": {
|
|
211
|
-
"@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.9.
|
|
212
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.
|
|
213
|
-
"@rslib/core": "1.0.
|
|
233
|
+
"@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.9.3-ultramodern.2",
|
|
234
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.3-ultramodern.2",
|
|
235
|
+
"@rslib/core": "1.0.3",
|
|
214
236
|
"@scripts/rstest-config": "2.66.0",
|
|
215
|
-
"@types/node": "^26.
|
|
216
|
-
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
237
|
+
"@types/node": "^26.6.3",
|
|
217
238
|
"esbuild": "^0.28.2",
|
|
218
|
-
"zod": "^4.5
|
|
239
|
+
"zod": "^4.6.5"
|
|
219
240
|
},
|
|
220
241
|
"sideEffects": false,
|
|
221
242
|
"publishConfig": {
|
|
@@ -229,9 +250,16 @@
|
|
|
229
250
|
"optional": true
|
|
230
251
|
}
|
|
231
252
|
},
|
|
253
|
+
"files": [
|
|
254
|
+
"dist",
|
|
255
|
+
"src"
|
|
256
|
+
],
|
|
232
257
|
"scripts": {
|
|
233
258
|
"dev": "rslib build --watch",
|
|
234
259
|
"build": "rslib build",
|
|
235
|
-
"test": "rstest
|
|
260
|
+
"test": "rstest"
|
|
261
|
+
},
|
|
262
|
+
"ultramodern": {
|
|
263
|
+
"sourceName": "@modern-js/server-runtime-extensions"
|
|
236
264
|
}
|
|
237
265
|
}
|