@module-federation/utilities 3.0.6 → 3.0.8

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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # utils
2
2
 
3
+ For warning: [`@module-federation/runtime`](https://module-federation.io/guide/basic/runtime.html) is recommended as a replacement
4
+
3
5
  This library was generated with [Nx](https://nx.dev).
4
6
 
5
7
  ## Building
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/utilities",
3
- "version": "3.0.6",
3
+ "version": "3.0.8",
4
4
  "type": "commonjs",
5
5
  "main": "./index.cjs.js",
6
6
  "types": "./dist/index.cjs.d.ts",
@@ -16,6 +16,9 @@
16
16
  "devDependencies": {
17
17
  "react": "18.2.0"
18
18
  },
19
+ "dependencies": {
20
+ "@module-federation/sdk": "workspace:*"
21
+ },
19
22
  "peerDependencies": {
20
23
  "webpack": "^5.40.0",
21
24
  "react-dom": "^16 || ^17 || ^18",
@@ -1,6 +1,7 @@
1
1
  /// <reference types="webpack/module" />
2
- import type { container, WebpackOptionsNormalized } from 'webpack';
3
- export type ModuleFederationPluginOptions = ConstructorParameters<typeof container.ModuleFederationPlugin>['0'];
2
+ import type { moduleFederationPlugin } from '@module-federation/sdk';
3
+ import type { WebpackOptionsNormalized } from 'webpack';
4
+ export type ModuleFederationPluginOptions = moduleFederationPlugin.ModuleFederationPluginOptions;
4
5
  export type WebpackRequire = {
5
6
  l: (url: string | undefined, cb: (event: any) => void, id: string | number) => Record<string, unknown>;
6
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/utilities",
3
- "version": "3.0.6",
3
+ "version": "3.0.8",
4
4
  "type": "commonjs",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "types": "./dist/index.cjs.d.ts",
@@ -16,6 +16,9 @@
16
16
  "devDependencies": {
17
17
  "react": "18.2.0"
18
18
  },
19
+ "dependencies": {
20
+ "@module-federation/sdk": "0.1.3"
21
+ },
19
22
  "peerDependencies": {
20
23
  "webpack": "^5.40.0",
21
24
  "react-dom": "^16 || ^17 || ^18",