@module-federation/dts-plugin 0.7.0 → 0.7.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/dist/CHANGELOG.md CHANGED
@@ -1,17 +1,37 @@
1
1
  # @module-federation/dts-plugin
2
2
 
3
- ## 1.0.0
3
+ ## 0.7.2
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - 85990e2: fix(dts-plugin): hold the broker server if the remote not start locally
8
+ - @module-federation/sdk@0.7.2
9
+ - @module-federation/managers@0.7.2
10
+ - @module-federation/third-party-dts-extractor@0.7.2
11
+ - @module-federation/error-codes@0.7.2
12
+
13
+ ## 0.7.1
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [6db4c5f]
18
+ - @module-federation/sdk@0.7.1
19
+ - @module-federation/managers@0.7.1
20
+ - @module-federation/third-party-dts-extractor@0.7.1
21
+ - @module-federation/error-codes@0.7.1
22
+
23
+ ## 0.7.0
24
+
25
+ ### Minor Changes
26
+
7
27
  - Updated dependencies [879ad87]
8
28
  - Updated dependencies [4eb09e7]
9
29
  - Updated dependencies [206b56d]
10
30
  - Updated dependencies [849ef9c]
11
- - @module-federation/sdk@1.0.0
12
- - @module-federation/managers@1.0.0
13
- - @module-federation/error-codes@1.0.0
14
- - @module-federation/third-party-dts-extractor@1.0.0
31
+ - @module-federation/sdk@0.7.0
32
+ - @module-federation/managers@0.7.0
33
+ - @module-federation/error-codes@0.7.0
34
+ - @module-federation/third-party-dts-extractor@0.7.0
15
35
 
16
36
  ## 0.6.16
17
37
 
@@ -326,8 +326,19 @@ var _ModuleFederationDevServer = class _ModuleFederationDevServer {
326
326
  }
327
327
  }));
328
328
  this._subscriberWebsocketMap[identifier].on("close", (code) => {
329
+ var _a2;
329
330
  fileLog(`Connection closed with code ${code}.`, MF_SERVER_IDENTIFIER, "warn");
330
- this._subscriberWebsocketMap[identifier] && this._subscriberWebsocketMap[identifier].close();
331
+ (_a2 = this._subscriberWebsocketMap[identifier]) == null ? void 0 : _a2.close();
332
+ delete this._subscriberWebsocketMap[identifier];
333
+ });
334
+ this._subscriberWebsocketMap[identifier].on("error", (err) => {
335
+ var _a2;
336
+ if ("code" in err && err.code === "ETIMEDOUT") {
337
+ fileLog(`Can not connect ${JSON.stringify(remote)}, please make sure this remote is started locally.`, MF_SERVER_IDENTIFIER, "warn");
338
+ } else {
339
+ console.error(err);
340
+ }
341
+ (_a2 = this._subscriberWebsocketMap[identifier]) == null ? void 0 : _a2.close();
331
342
  delete this._subscriberWebsocketMap[identifier];
332
343
  });
333
344
  }
@@ -4,7 +4,7 @@ import {
4
4
  exposeRpc,
5
5
  getDTSManagerConstructor,
6
6
  isDebugMode
7
- } from "./chunk-ZQHSCACR.js";
7
+ } from "./chunk-C44QTXVC.js";
8
8
  import {
9
9
  __async,
10
10
  __export,
package/dist/esm/core.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  consumeTypes,
4
4
  generateTypesInChildProcess,
5
5
  rpc_exports
6
- } from "./chunk-S4ZU4ZRP.js";
6
+ } from "./chunk-NIWRRQ2T.js";
7
7
  import {
8
8
  DTSManager,
9
9
  HOST_API_TYPES_FILE_NAME,
@@ -19,7 +19,7 @@ import {
19
19
  retrieveTypesAssetsInfo,
20
20
  retrieveTypesZipPath,
21
21
  validateOptions
22
- } from "./chunk-ZQHSCACR.js";
22
+ } from "./chunk-C44QTXVC.js";
23
23
  import "./chunk-KCWHOFI6.js";
24
24
  import "./chunk-4CSLH7II.js";
25
25
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rpc_exports
3
- } from "./chunk-S4ZU4ZRP.js";
3
+ } from "./chunk-NIWRRQ2T.js";
4
4
  import {
5
5
  ModuleFederationDevServer,
6
6
  createKoaServer,
@@ -9,7 +9,7 @@ import {
9
9
  retrieveMfTypesPath,
10
10
  retrieveRemoteConfig,
11
11
  retrieveTypesZipPath
12
- } from "./chunk-ZQHSCACR.js";
12
+ } from "./chunk-C44QTXVC.js";
13
13
  import {
14
14
  fileLog,
15
15
  getIPV4
@@ -2,7 +2,7 @@ import {
2
2
  RpcGMCallTypes,
3
3
  exposeRpc,
4
4
  generateTypes
5
- } from "./chunk-ZQHSCACR.js";
5
+ } from "./chunk-C44QTXVC.js";
6
6
  import "./chunk-KCWHOFI6.js";
7
7
  import {
8
8
  __async,
package/dist/esm/index.js CHANGED
@@ -2,14 +2,14 @@ import {
2
2
  consumeTypes,
3
3
  generateTypesInChildProcess,
4
4
  rpc_exports
5
- } from "./chunk-S4ZU4ZRP.js";
5
+ } from "./chunk-NIWRRQ2T.js";
6
6
  import {
7
7
  cloneDeepOptions,
8
8
  generateTypes,
9
9
  isTSProject,
10
10
  retrieveTypesAssetsInfo,
11
11
  validateOptions
12
- } from "./chunk-ZQHSCACR.js";
12
+ } from "./chunk-C44QTXVC.js";
13
13
  import {
14
14
  getIPV4,
15
15
  logger
@@ -1411,8 +1411,19 @@ var _ModuleFederationDevServer = class _ModuleFederationDevServer {
1411
1411
  }
1412
1412
  }));
1413
1413
  this._subscriberWebsocketMap[identifier].on("close", (code) => {
1414
+ var _a3;
1414
1415
  fileLog(`Connection closed with code ${code}.`, MF_SERVER_IDENTIFIER, "warn");
1415
- this._subscriberWebsocketMap[identifier] && this._subscriberWebsocketMap[identifier].close();
1416
+ (_a3 = this._subscriberWebsocketMap[identifier]) == null ? void 0 : _a3.close();
1417
+ delete this._subscriberWebsocketMap[identifier];
1418
+ });
1419
+ this._subscriberWebsocketMap[identifier].on("error", (err) => {
1420
+ var _a3;
1421
+ if ("code" in err && err.code === "ETIMEDOUT") {
1422
+ fileLog(`Can not connect ${JSON.stringify(remote)}, please make sure this remote is started locally.`, MF_SERVER_IDENTIFIER, "warn");
1423
+ } else {
1424
+ console.error(err);
1425
+ }
1426
+ (_a3 = this._subscriberWebsocketMap[identifier]) == null ? void 0 : _a3.close();
1416
1427
  delete this._subscriberWebsocketMap[identifier];
1417
1428
  });
1418
1429
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/dts-plugin",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "author": "hanric <hanric.zhang@gmail.com>",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/dts-plugin",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "author": "hanric <hanric.zhang@gmail.com>",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -55,10 +55,10 @@
55
55
  "log4js": "6.9.1",
56
56
  "node-schedule": "2.1.1",
57
57
  "ws": "8.18.0",
58
- "@module-federation/sdk": "0.7.0",
59
- "@module-federation/managers": "0.7.0",
60
- "@module-federation/third-party-dts-extractor": "0.7.0",
61
- "@module-federation/error-codes": "0.7.0"
58
+ "@module-federation/sdk": "0.7.2",
59
+ "@module-federation/managers": "0.7.2",
60
+ "@module-federation/third-party-dts-extractor": "0.7.2",
61
+ "@module-federation/error-codes": "0.7.2"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@types/ws": "8.5.12",
@@ -67,7 +67,7 @@
67
67
  "vue": "^3.4.29",
68
68
  "@vue/tsconfig": "^0.5.1",
69
69
  "vue-tsc": "^2.0.26",
70
- "@module-federation/runtime": "0.7.0"
70
+ "@module-federation/runtime": "0.7.2"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "typescript": "^4.9.0 || ^5.0.0",