@rsdk/grpc.clients 2.6.0-next.3 → 2.6.0-next.6

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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.6.0-next.6](https://github.com/R-Vision/rsdk/compare/v2.6.0-next.5...v2.6.0-next.6) (2023-07-22)
7
+
8
+ **Note:** Version bump only for package @rsdk/grpc.clients
9
+
10
+ # [2.6.0-next.5](https://github.com/R-Vision/rsdk/compare/v2.6.0-next.4...v2.6.0-next.5) (2023-07-22)
11
+
12
+ ### Bug Fixes
13
+
14
+ * remove unused properties ([ccbeba0](https://github.com/R-Vision/rsdk/commit/ccbeba0751bc35a47101723661bc94688c35ed57))
15
+
6
16
  # [2.6.0-next.3](https://github.com/R-Vision/rsdk/compare/v2.6.0-next.2...v2.6.0-next.3) (2023-07-07)
7
17
 
8
18
  ### Features
@@ -6,9 +6,6 @@ import type { CompatServiceDefinition } from 'nice-grpc/lib/service-definitions'
6
6
  */
7
7
  export declare class GrpcClientRepository {
8
8
  private static factory;
9
- readonly logger: import("@rsdk/logging").ILogger;
10
- readonly servers: Set<string>;
11
- readonly definitions: Set<CompatServiceDefinition>;
12
9
  readonly channels: Map<string, ChannelImplementation>;
13
10
  readonly clients: Map<string, Client<CompatServiceDefinition>>;
14
11
  resolveChannel(address: string, channelToken: string): ChannelImplementation;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GrpcClientRepository = void 0;
4
- const logging_1 = require("@rsdk/logging");
5
4
  const nice_grpc_1 = require("nice-grpc");
6
5
  const nice_grpc_opentelemetry_1 = require("nice-grpc-opentelemetry");
7
6
  const exception_mapper_middleware_1 = require("../middleware/exception-mapper.middleware");
@@ -12,10 +11,6 @@ class GrpcClientRepository {
12
11
  static factory = (0, nice_grpc_1.createClientFactory)()
13
12
  .use((0, nice_grpc_opentelemetry_1.openTelemetryClientMiddleware)())
14
13
  .use((0, exception_mapper_middleware_1.exceptionMapperMiddleware)());
15
- logger = logging_1.LoggerFactory.create(GrpcClientRepository);
16
- // Registration
17
- servers = new Set();
18
- definitions = new Set();
19
14
  // Caches
20
15
  channels = new Map();
21
16
  clients = new Map();
@@ -1 +1 @@
1
- {"version":3,"file":"grpc-client.repository.js","sourceRoot":"","sources":["../../src/repository/grpc-client.repository.ts"],"names":[],"mappings":";;;AACA,2CAA8C;AAE9C,yCAA+D;AAE/D,qEAAwE;AAExE,2FAAsF;AAEtF;;GAEG;AACH,MAAa,oBAAoB;IACvB,MAAM,CAAC,OAAO,GAAG,IAAA,+BAAmB,GAAE;SAC3C,GAAG,CAAC,IAAA,uDAA6B,GAAE,CAAC;SACpC,GAAG,CAAC,IAAA,uDAAyB,GAAE,CAAC,CAAC;IAE3B,MAAM,GAAG,uBAAa,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAE7D,eAAe;IACN,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAC5B,WAAW,GAAG,IAAI,GAAG,EAA2B,CAAC;IAE1D,SAAS;IACA,QAAQ,GAAG,IAAI,GAAG,EAAmB,CAAC;IACtC,OAAO,GAAG,IAAI,GAAG,EAA2C,CAAC;IAEtE,cAAc,CAAC,OAAe,EAAE,YAAoB;QAClD,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,IAAA,yBAAa,EAAC,OAAO,CAAC,CAAC;QAE1E,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAEzC,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,aAAa,CACX,UAAmC,EACnC,OAA8B,EAC9B,WAAmB;QAEnB,MAAM,OAAO,GACX,IAAI,CAAC,OAAO,CAAC,GAAG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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdk/grpc.clients",
3
- "version": "2.6.0-next.3",
3
+ "version": "2.6.0-next.6",
4
4
  "description": "Grpc clients infrastructure",
5
5
  "license": "Apache License 2.0",
6
6
  "publishConfig": {
@@ -19,13 +19,13 @@
19
19
  "@nestjs/microservices": "^9.0.0",
20
20
  "@rsdk/autodoc.protocol": "^2.6.0-next.3",
21
21
  "@rsdk/common": "^2.4.2",
22
- "@rsdk/core": "^2.6.0-next.3",
23
- "@rsdk/grpc.common": "^2.6.0-next.3",
22
+ "@rsdk/core": "^2.6.0-next.6",
23
+ "@rsdk/grpc.common": "^2.6.0-next.6",
24
24
  "@rsdk/logging": "^2.4.2",
25
25
  "@rsdk/metadata": "^2.6.0-next.3",
26
26
  "nice-grpc": "^2.1.4",
27
27
  "nice-grpc-opentelemetry": "^0.1.2",
28
28
  "rxjs": "^7.0.0"
29
29
  },
30
- "gitHead": "db498c874d3d6179b00e9e7f80c739cf3f76646c"
30
+ "gitHead": "d885a65c7178a67ff9f98d43639382486689cc4f"
31
31
  }
@@ -1,5 +1,4 @@
1
1
  import type { ChannelImplementation } from '@grpc/grpc-js/build/src/channel';
2
- import { LoggerFactory } from '@rsdk/logging';
3
2
  import type { Channel, Client } from 'nice-grpc';
4
3
  import { createChannel, createClientFactory } from 'nice-grpc';
5
4
  import type { CompatServiceDefinition } from 'nice-grpc/lib/service-definitions';
@@ -15,12 +14,6 @@ export class GrpcClientRepository {
15
14
  .use(openTelemetryClientMiddleware())
16
15
  .use(exceptionMapperMiddleware());
17
16
 
18
- readonly logger = LoggerFactory.create(GrpcClientRepository);
19
-
20
- // Registration
21
- readonly servers = new Set<string>();
22
- readonly definitions = new Set<CompatServiceDefinition>();
23
-
24
17
  // Caches
25
18
  readonly channels = new Map<string, Channel>();
26
19
  readonly clients = new Map<string, Client<CompatServiceDefinition>>();