@module-federation/runtime-core 0.0.0-next-20250208084948 → 0.0.0-next-20250214035103

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/index.cjs.js CHANGED
@@ -2,11 +2,12 @@
2
2
 
3
3
  var polyfills = require('./polyfills.cjs.js');
4
4
  var sdk = require('@module-federation/sdk');
5
+ var logger$1 = require('@module-federation/sdk/logger');
5
6
  var errorCodes = require('@module-federation/error-codes');
6
7
 
7
8
  const LOG_CATEGORY = '[ Federation Runtime ]';
8
9
  // FIXME: pre-bundle ?
9
- const logger = sdk.createLogger(LOG_CATEGORY);
10
+ const logger = logger$1.createLogger(LOG_CATEGORY);
10
11
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
11
12
  function assert(condition, msg) {
12
13
  if (!condition) {
@@ -196,7 +197,7 @@ function getGlobalFederationConstructor() {
196
197
  function setGlobalFederationConstructor(FederationConstructor, isDebug = sdk.isDebugMode()) {
197
198
  if (isDebug) {
198
199
  CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
199
- CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.18";
200
+ CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.19";
200
201
  }
201
202
  }
202
203
  // eslint-disable-next-line @typescript-eslint/ban-types
@@ -2961,7 +2962,7 @@ class FederationHost {
2961
2962
  // maybe will change, temporarily for internal use only
2962
2963
  initContainer: new AsyncWaterfallHook('initContainer')
2963
2964
  });
2964
- this.version = "0.6.18";
2965
+ this.version = "0.6.19";
2965
2966
  this.moduleCache = new Map();
2966
2967
  this.loaderHook = new PluginSystem({
2967
2968
  // FIXME: may not be suitable , not open to the public yet
@@ -1,6 +1,7 @@
1
1
  import { _ as _extends, a as _object_without_properties_loose } from './polyfills.esm.mjs';
2
- import { createLogger, isBrowserEnv, isDebugMode, loadScriptNode, composeKeyWithSeparator, loadScript, safeToString, createLink, createScript, getResourceUrl, isManifestProvider, generateSnapshotFromManifest, warn as warn$1 } from '@module-federation/sdk';
2
+ import { isBrowserEnv, isDebugMode, loadScriptNode, composeKeyWithSeparator, loadScript, safeToString, createLink, createScript, getResourceUrl, isManifestProvider, generateSnapshotFromManifest, warn as warn$1 } from '@module-federation/sdk';
3
3
  export { loadScript, loadScriptNode } from '@module-federation/sdk';
4
+ import { createLogger } from '@module-federation/sdk/logger';
4
5
  import { getShortErrorMsg, RUNTIME_001, runtimeDescMap, RUNTIME_008, RUNTIME_002, RUNTIME_007, RUNTIME_003, RUNTIME_005, RUNTIME_006, RUNTIME_004 } from '@module-federation/error-codes';
5
6
 
6
7
  const LOG_CATEGORY = '[ Federation Runtime ]';
@@ -195,7 +196,7 @@ function getGlobalFederationConstructor() {
195
196
  function setGlobalFederationConstructor(FederationConstructor, isDebug = isDebugMode()) {
196
197
  if (isDebug) {
197
198
  CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
198
- CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.18";
199
+ CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.6.19";
199
200
  }
200
201
  }
201
202
  // eslint-disable-next-line @typescript-eslint/ban-types
@@ -2960,7 +2961,7 @@ class FederationHost {
2960
2961
  // maybe will change, temporarily for internal use only
2961
2962
  initContainer: new AsyncWaterfallHook('initContainer')
2962
2963
  });
2963
- this.version = "0.6.18";
2964
+ this.version = "0.6.19";
2964
2965
  this.moduleCache = new Map();
2965
2966
  this.loaderHook = new PluginSystem({
2966
2967
  // FIXME: may not be suitable , not open to the public yet
@@ -1,4 +1,4 @@
1
- declare const logger: import("@module-federation/sdk").Logger;
1
+ declare const logger: import("@module-federation/sdk/logger").Logger;
2
2
  export declare function assert(condition: any, msg: string): asserts condition;
3
3
  export declare function error(msg: string | Error | unknown): never;
4
4
  export declare function warn(msg: Parameters<typeof console.warn>[0]): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime-core",
3
- "version": "0.0.0-next-20250208084948",
3
+ "version": "0.0.0-next-20250214035103",
4
4
  "author": "zhouxiao <codingzx@gmail.com>",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.mjs",
@@ -36,7 +36,7 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "@module-federation/sdk": "0.0.0-next-20250208084948",
40
- "@module-federation/error-codes": "0.0.0-next-20250208084948"
39
+ "@module-federation/sdk": "0.0.0-next-20250214035103",
40
+ "@module-federation/error-codes": "0.0.0-next-20250214035103"
41
41
  }
42
42
  }