@module-federation/sdk 0.9.1 → 0.11.0

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
@@ -521,8 +521,8 @@ function createLink(info) {
521
521
  for(let i = 0; i < links.length; i++){
522
522
  const l = links[i];
523
523
  const linkHref = l.getAttribute('href');
524
- const linkRef = l.getAttribute('ref');
525
- if (linkHref && isStaticResourcesEqual(linkHref, info.url) && linkRef === info.attrs['ref']) {
524
+ const linkRel = l.getAttribute('rel');
525
+ if (linkHref && isStaticResourcesEqual(linkHref, info.url) && linkRel === info.attrs['rel']) {
526
526
  link = l;
527
527
  needAttach = false;
528
528
  break;
@@ -519,8 +519,8 @@ function createLink(info) {
519
519
  for(let i = 0; i < links.length; i++){
520
520
  const l = links[i];
521
521
  const linkHref = l.getAttribute('href');
522
- const linkRef = l.getAttribute('ref');
523
- if (linkHref && isStaticResourcesEqual(linkHref, info.url) && linkRef === info.attrs['ref']) {
522
+ const linkRel = l.getAttribute('rel');
523
+ if (linkHref && isStaticResourcesEqual(linkHref, info.url) && linkRel === info.attrs['rel']) {
524
524
  link = l;
525
525
  needAttach = false;
526
526
  break;
package/dist/src/dom.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CreateScriptHookDom } from './types';
1
+ import type { CreateScriptHookDom } from './types';
2
2
  export declare function safeWrapper<T extends (...args: Array<any>) => any>(callback: T, disableWarn?: boolean): Promise<ReturnType<T> | undefined>;
3
3
  export declare function isStaticResourcesEqual(url1: string, url2: string): boolean;
4
4
  export declare function createScript(info: {
@@ -71,9 +71,6 @@ export interface ContainerPluginOptions {
71
71
  * Runtime plugin file paths or package name.
72
72
  */
73
73
  runtimePlugins?: string[];
74
- experiments?: {
75
- federationRuntime?: false | 'hoisted';
76
- };
77
74
  dataPrefetch?: DataPrefetch;
78
75
  }
79
76
  /**
@@ -104,6 +104,7 @@ export interface DtsHostOptions {
104
104
  consumeAPITypes?: boolean;
105
105
  runtimePkgs?: string[];
106
106
  remoteTypeUrls?: (() => Promise<RemoteTypeUrls>) | RemoteTypeUrls;
107
+ timeout?: number;
107
108
  }
108
109
  export interface DtsRemoteOptions {
109
110
  tsConfigPath?: string;
@@ -190,9 +191,9 @@ export interface ModuleFederationPluginOptions {
190
191
  dataPrefetch?: DataPrefetch;
191
192
  virtualRuntimeEntry?: boolean;
192
193
  experiments?: {
193
- federationRuntime?: false | 'hoisted';
194
194
  externalRuntime?: boolean;
195
195
  provideExternalRuntime?: boolean;
196
+ asyncStartup?: boolean;
196
197
  };
197
198
  bridge?: {
198
199
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/sdk",
3
- "version": "0.9.1",
3
+ "version": "0.11.0",
4
4
  "license": "MIT",
5
5
  "description": "A sdk for support module federation",
6
6
  "keywords": [