@bleedingdev/modern-js-server-runtime-extensions 3.9.0-ultramodern.9 → 3.9.3-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.
Files changed (91) hide show
  1. package/README.md +3 -1
  2. package/dist/cjs/backend-federation-security/index.js +73 -152
  3. package/dist/cjs/bff-policy/index.js +7 -0
  4. package/dist/cjs/bff-policy/node.js +20 -4
  5. package/dist/cjs/bff-policy/operationContracts.js +150 -135
  6. package/dist/cjs/bff-policy/operationIdentity.js +81 -0
  7. package/dist/cjs/bff-policy/producer.js +79 -0
  8. package/dist/cjs/localisedLoader.js +65 -0
  9. package/dist/cjs/localisedLoaderPlugin.js +2 -2
  10. package/dist/cjs/module-federation-css/remote.js +2 -1
  11. package/dist/cjs/static-serving/staticModuleFederation.js +49 -12
  12. package/dist/esm/backend-federation-security/index.mjs +73 -152
  13. package/dist/esm/bff-policy/index.mjs +1 -0
  14. package/dist/esm/bff-policy/operationIdentity.mjs +30 -0
  15. package/dist/esm/bff-policy/producer.mjs +31 -0
  16. package/dist/esm/localisedLoader.mjs +24 -0
  17. package/dist/esm/localisedLoaderPlugin.mjs +2 -2
  18. package/dist/esm/module-federation-css/remote.mjs +2 -1
  19. package/dist/esm-node/backend-federation-security/index.mjs +73 -152
  20. package/dist/esm-node/bff-policy/index.mjs +1 -0
  21. package/dist/esm-node/bff-policy/node.mjs +1 -0
  22. package/dist/esm-node/bff-policy/operationContracts.mjs +5 -27
  23. package/dist/esm-node/bff-policy/operationIdentity.mjs +31 -0
  24. package/dist/esm-node/bff-policy/producer.mjs +32 -0
  25. package/dist/esm-node/localisedLoader.mjs +25 -0
  26. package/dist/esm-node/localisedLoaderPlugin.mjs +2 -2
  27. package/dist/esm-node/module-federation-css/remote.mjs +2 -1
  28. package/dist/esm-node/static-serving/staticModuleFederation.mjs +49 -12
  29. package/dist/types/backend-federation-security/node.d.ts +1 -1
  30. package/dist/types/bff-policy/index.d.ts +1 -0
  31. package/dist/types/bff-policy/node.d.ts +1 -0
  32. package/dist/types/bff-policy/operationContracts.d.ts +2 -41
  33. package/dist/types/bff-policy/operationIdentity.d.ts +34 -0
  34. package/dist/types/bff-policy/producer.d.ts +10 -0
  35. package/dist/types/localisedLoader.d.ts +15 -0
  36. package/dist/types/module-federation-css/remote.d.ts +2 -0
  37. package/dist/types/serverConfig.d.ts +4 -2
  38. package/dist/types/telemetry/runtimeEndpoints.d.ts +2 -13
  39. package/dist/types-esm/backend-federation-security/node.d.mts +1 -1
  40. package/dist/types-esm/bff-policy/index.d.mts +1 -0
  41. package/dist/types-esm/bff-policy/node.d.mts +1 -0
  42. package/dist/types-esm/bff-policy/operationContracts.d.mts +2 -41
  43. package/dist/types-esm/bff-policy/operationIdentity.d.mts +34 -0
  44. package/dist/types-esm/bff-policy/producer.d.mts +10 -0
  45. package/dist/types-esm/localisedLoader.d.mts +15 -0
  46. package/dist/types-esm/module-federation-css/remote.d.mts +2 -0
  47. package/dist/types-esm/serverConfig.d.mts +4 -2
  48. package/dist/types-esm/telemetry/runtimeEndpoints.d.mts +2 -13
  49. package/package.json +48 -20
  50. package/src/backend-federation-security/index.ts +151 -318
  51. package/src/backend-federation-security/node.ts +24 -22
  52. package/src/bff-policy/index.ts +1 -0
  53. package/src/bff-policy/node.ts +1 -0
  54. package/src/bff-policy/operationContracts.ts +13 -86
  55. package/src/bff-policy/operationIdentity.ts +90 -0
  56. package/src/bff-policy/producer.ts +40 -0
  57. package/src/contract-gate-snapshot-store/resolve.ts +0 -1
  58. package/src/localisedLoader.ts +50 -0
  59. package/src/localisedLoaderPlugin.ts +6 -7
  60. package/src/module-federation-css/remote.ts +3 -1
  61. package/src/serverConfig.ts +7 -0
  62. package/src/static-serving/staticModuleFederation.ts +127 -22
  63. package/src/telemetry/runtimeEndpoints.ts +2 -2
  64. package/rslib.config.mts +0 -38
  65. package/rstest.config.mts +0 -18
  66. package/tests/backendFederationSecurity.test.ts +0 -416
  67. package/tests/bff-policy/crossProjectPolicy.matrix.test.ts +0 -450
  68. package/tests/bff-policy/crossProjectPolicy.test.ts +0 -197
  69. package/tests/bff-policy/operationContracts.test.ts +0 -221
  70. package/tests/bff-policy/optionalZodPeer.test.ts +0 -30
  71. package/tests/bff-policy/resolveCrossProjectPolicy.test.ts +0 -76
  72. package/tests/contractGateSnapshotObserver.test.ts +0 -347
  73. package/tests/contractGateSnapshotStore.test.ts +0 -225
  74. package/tests/env.test.ts +0 -54
  75. package/tests/helpers.ts +0 -20
  76. package/tests/localisedLoader.test.ts +0 -120
  77. package/tests/mfCache.test.ts +0 -63
  78. package/tests/moduleFederationCss.test.ts +0 -348
  79. package/tests/nativeErrorResponse.test.ts +0 -118
  80. package/tests/nativeServerAssembly.test.ts +0 -385
  81. package/tests/runtimeLifecycle.test.ts +0 -159
  82. package/tests/static-serving/ordering.test.ts +0 -214
  83. package/tests/static-serving/static.test.ts +0 -411
  84. package/tests/telemetry.test.ts +0 -248
  85. package/tests/telemetryHealthMonitor.test.ts +0 -183
  86. package/tests/telemetryHealthObservation.test.ts +0 -302
  87. package/tests/telemetryLifecycle.test.ts +0 -123
  88. package/tests/telemetryRegistryQueueMatrix.test.ts +0 -130
  89. package/tests/telemetryTraceparent.test.ts +0 -167
  90. package/tests/tsconfig.json +0 -11
  91. 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,5 +1,6 @@
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
+ export type { BffEffectDataPlatformUserConfig, BffEffectOpenApiUserConfig, } from '@modern-js/runtime-extensions/server-config';
3
4
  type BffConfigExtension = Omit<BffRuntimeUserConfig, 'runtimeFramework'>;
4
5
  type ForkBffRuntimeRegistry = Record<Exclude<CanonicalBffRuntimeFramework, 'hono'>, true>;
5
6
  declare module '@modern-js/plugin/server' {
@@ -11,7 +12,8 @@ declare module '@modern-js/server-core' {
11
12
  }
12
13
  interface ServerUserConfig extends ServerTelemetryConfigExtension {
13
14
  }
15
+ interface SourceUserConfig extends ServerSourceConfigExtension {
16
+ }
14
17
  }
15
18
  export type UltramodernBffUserConfig = Omit<BffUserConfig, keyof BffRuntimeUserConfig> & BffRuntimeUserConfig;
16
19
  export type UltramodernServerUserConfig = ServerUserConfig & ServerTelemetryConfigExtension;
17
- export {};
@@ -12,24 +12,13 @@ export declare const createRuntimeFallbackSignalMiddleware: (signalConfig: Runti
12
12
  path: string;
13
13
  method: 'post';
14
14
  order: 'pre';
15
- handler: (c: Context<ServerEnv>) => Promise<(Response & import("hono").TypedResponse<{
16
- ok: true;
17
- }, 202, "json">) | (Response & import("hono").TypedResponse<{
18
- ok: false;
19
- error: string;
20
- }, 400 | 401 | 403 | 413 | 429 | 500, "json">)>;
15
+ handler: (c: Context<ServerEnv>) => Promise<Response>;
21
16
  };
22
17
  export declare const createRuntimeStatusMiddleware: ({ registry, healthMonitor, runtimeFallbackSignalConfig, runtimeStatusAuthConfig, }: RuntimeStatusMiddlewareOptions) => {
23
18
  name: string;
24
19
  path: string;
25
20
  method: 'get';
26
21
  order: 'pre';
27
- handler: (c: Context<ServerEnv>) => Promise<(Response & import("hono").TypedResponse<{
28
- ok: true;
29
- timestamp: number;
30
- }, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
31
- ok: false;
32
- error: string;
33
- }, 400 | 401 | 403 | 413 | 429 | 500, "json">)>;
22
+ handler: (c: Context<ServerEnv>) => Promise<Response>;
34
23
  };
35
24
  export {};
@@ -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 +1,2 @@
1
1
  export * from './crossProjectPolicy.mjs';
2
+ export * from './operationIdentity.mjs';
@@ -1,2 +1,3 @@
1
1
  export * from './operationContracts.mjs';
2
+ export { resolveOperationProducer } from './producer.mjs';
2
3
  export * from './resolveCrossProjectPolicy.mjs';
@@ -1,32 +1,7 @@
1
1
  import 'reflect-metadata';
2
2
  type ApiHandler = (...args: any) => any | Promise<any>;
3
- export type OperationContractEntry = {
4
- name: string;
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,5 +1,6 @@
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
+ export type { BffEffectDataPlatformUserConfig, BffEffectOpenApiUserConfig, } from '@modern-js/runtime-extensions/server-config';
3
4
  type BffConfigExtension = Omit<BffRuntimeUserConfig, 'runtimeFramework'>;
4
5
  type ForkBffRuntimeRegistry = Record<Exclude<CanonicalBffRuntimeFramework, 'hono'>, true>;
5
6
  declare module '@modern-js/plugin/server' {
@@ -11,7 +12,8 @@ declare module '@modern-js/server-core' {
11
12
  }
12
13
  interface ServerUserConfig extends ServerTelemetryConfigExtension {
13
14
  }
15
+ interface SourceUserConfig extends ServerSourceConfigExtension {
16
+ }
14
17
  }
15
18
  export type UltramodernBffUserConfig = Omit<BffUserConfig, keyof BffRuntimeUserConfig> & BffRuntimeUserConfig;
16
19
  export type UltramodernServerUserConfig = ServerUserConfig & ServerTelemetryConfigExtension;
17
- export {};
@@ -12,24 +12,13 @@ export declare const createRuntimeFallbackSignalMiddleware: (signalConfig: Runti
12
12
  path: string;
13
13
  method: 'post';
14
14
  order: 'pre';
15
- handler: (c: Context<ServerEnv>) => Promise<(Response & import("hono").TypedResponse<{
16
- ok: true;
17
- }, 202, "json">) | (Response & import("hono").TypedResponse<{
18
- ok: false;
19
- error: string;
20
- }, 400 | 401 | 403 | 413 | 429 | 500, "json">)>;
15
+ handler: (c: Context<ServerEnv>) => Promise<Response>;
21
16
  };
22
17
  export declare const createRuntimeStatusMiddleware: ({ registry, healthMonitor, runtimeFallbackSignalConfig, runtimeStatusAuthConfig, }: RuntimeStatusMiddlewareOptions) => {
23
18
  name: string;
24
19
  path: string;
25
20
  method: 'get';
26
21
  order: 'pre';
27
- handler: (c: Context<ServerEnv>) => Promise<(Response & import("hono").TypedResponse<{
28
- ok: true;
29
- timestamp: number;
30
- }, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
31
- ok: false;
32
- error: string;
33
- }, 400 | 401 | 403 | 413 | 429 | 500, "json">)>;
22
+ handler: (c: Context<ServerEnv>) => Promise<Response>;
34
23
  };
35
24
  export {};
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/BleedingDev/ultramodern.js#readme",
4
+ "homepage": "https://github.com/ultramodernjs/ultramodern.js#readme",
5
5
  "bugs": {
6
- "url": "https://github.com/BleedingDev/ultramodern.js/issues"
6
+ "url": "https://github.com/ultramodernjs/ultramodern.js/issues"
7
7
  },
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+https://github.com/BleedingDev/ultramodern.js.git",
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.0-ultramodern.9",
20
+ "version": "3.9.3-ultramodern.10",
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,44 +216,50 @@
194
216
  }
195
217
  },
196
218
  "engines": {
197
- "node": ">=26.7.0"
219
+ "node": ">=26.12.0"
198
220
  },
199
221
  "dependencies": {
200
- "@modern-js/create-request": "npm:@bleedingdev/modern-js-create-request@3.9.0-ultramodern.9",
201
- "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.9.0-ultramodern.9",
202
- "@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.9.0-ultramodern.9",
203
- "@modern-js/runtime-extensions": "npm:@bleedingdev/modern-js-runtime-extensions@3.9.0-ultramodern.9",
204
- "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.9.0-ultramodern.9",
205
- "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.9.0-ultramodern.9",
206
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.0-ultramodern.9",
222
+ "@modern-js/create-request": "npm:@bleedingdev/modern-js-create-request@3.9.3-ultramodern.10",
223
+ "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.9.3-ultramodern.10",
224
+ "@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.9.3-ultramodern.10",
225
+ "@modern-js/runtime-extensions": "npm:@bleedingdev/modern-js-runtime-extensions@3.9.3-ultramodern.10",
226
+ "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.9.3-ultramodern.10",
227
+ "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.9.3-ultramodern.10",
228
+ "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.3-ultramodern.10",
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.0-ultramodern.9",
212
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.0-ultramodern.9",
213
- "@rslib/core": "1.0.0",
233
+ "@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.9.3-ultramodern.10",
234
+ "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.3-ultramodern.10",
235
+ "@rslib/core": "1.0.3",
214
236
  "@scripts/rstest-config": "2.66.0",
215
- "@types/node": "^26.4.1",
216
- "@typescript/native-preview": "7.0.0-dev.20260707.2",
237
+ "@types/node": "^26.6.5",
217
238
  "esbuild": "^0.28.2",
218
- "zod": "^4.5.4"
239
+ "zod": "^4.6.7"
219
240
  },
220
241
  "sideEffects": false,
221
242
  "publishConfig": {
222
243
  "access": "public"
223
244
  },
224
245
  "peerDependencies": {
225
- "zod": "^4.5.4"
246
+ "zod": "^4.6.7"
226
247
  },
227
248
  "peerDependenciesMeta": {
228
249
  "zod": {
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 --passWithNoTests"
260
+ "test": "rstest"
261
+ },
262
+ "ultramodern": {
263
+ "sourceName": "@modern-js/server-runtime-extensions"
236
264
  }
237
265
  }