ts-proto 1.133.0 → 1.135.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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [1.135.0](https://github.com/stephenh/ts-proto/compare/v1.134.0...v1.135.0) (2022-11-26)
2
+
3
+
4
+ ### Features
5
+
6
+ * Bump ts poet for perf increase ([#714](https://github.com/stephenh/ts-proto/issues/714)) ([0068dc8](https://github.com/stephenh/ts-proto/commit/0068dc8c8c34263ac4a7bc5866408453fc2c8b11))
7
+
8
+ # [1.134.0](https://github.com/stephenh/ts-proto/compare/v1.133.0...v1.134.0) (2022-11-25)
9
+
10
+
11
+ ### Features
12
+
13
+ * conditionally add "Service" to nice-grpc's generated service interface name ([#710](https://github.com/stephenh/ts-proto/issues/710)) ([7c39cc0](https://github.com/stephenh/ts-proto/commit/7c39cc0729403dcb63ef353357fae3548b5a6667))
14
+
1
15
  # [1.133.0](https://github.com/stephenh/ts-proto/compare/v1.132.1...v1.133.0) (2022-11-20)
2
16
 
3
17
 
@@ -21,7 +21,8 @@ exports.generateNiceGrpcService = generateNiceGrpcService;
21
21
  function generateServerStub(ctx, sourceInfo, serviceDesc) {
22
22
  var _a;
23
23
  const chunks = [];
24
- chunks.push((0, ts_poet_1.code) `export interface ${(0, ts_poet_1.def)(`${serviceDesc.name}ServiceImplementation`)}<CallContextExt = {}> {`);
24
+ const maybeSuffix = serviceDesc.name.endsWith("Service") ? "" : "Service";
25
+ chunks.push((0, ts_poet_1.code) `export interface ${(0, ts_poet_1.def)(`${serviceDesc.name}${maybeSuffix}Implementation`)}<CallContextExt = {}> {`);
25
26
  for (const [index, methodDesc] of serviceDesc.method.entries()) {
26
27
  (0, utils_1.assertInstanceOf)(methodDesc, utils_1.FormattedMethodDescriptor);
27
28
  const inputType = (0, types_1.messageToTypeName)(ctx, methodDesc.inputType, { keepValueType: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-proto",
3
- "version": "1.133.0",
3
+ "version": "1.135.0",
4
4
  "description": "",
5
5
  "main": "build/plugin.js",
6
6
  "repository": "github:stephenh/ts-proto",
@@ -63,7 +63,7 @@
63
63
  "dataloader": "^1.4.0",
64
64
  "object-hash": "^1.3.1",
65
65
  "protobufjs": "^6.11.3",
66
- "ts-poet": "^6.1.0",
66
+ "ts-poet": "^6.2.0",
67
67
  "ts-proto-descriptors": "1.7.1"
68
68
  }
69
69
  }