ts-proto 1.121.4 → 1.121.5

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,11 @@
1
+ ## [1.121.5](https://github.com/stephenh/ts-proto/compare/v1.121.4...v1.121.5) (2022-08-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove Record word conflict ([#638](https://github.com/stephenh/ts-proto/issues/638)) ([5664d09](https://github.com/stephenh/ts-proto/commit/5664d097ac33da423b0f4e79f962fd71912358a0))
7
+ * resolve import collisions for services ([#651](https://github.com/stephenh/ts-proto/issues/651)) ([ee0296f](https://github.com/stephenh/ts-proto/commit/ee0296ffe087665b54bac714e964e7243010fb22))
8
+
1
9
  ## [1.121.4](https://github.com/stephenh/ts-proto/compare/v1.121.3...v1.121.4) (2022-08-07)
2
10
 
3
11
 
@@ -24,7 +24,7 @@ function generateService(ctx, fileDesc, sourceInfo, serviceDesc) {
24
24
  const chunks = [];
25
25
  (0, utils_1.maybeAddComment)(sourceInfo, chunks, (_a = serviceDesc.options) === null || _a === void 0 ? void 0 : _a.deprecated);
26
26
  const maybeTypeVar = options.context ? `<${main_1.contextTypeVar}>` : '';
27
- chunks.push((0, ts_poet_1.code) `export interface ${serviceDesc.name}${maybeTypeVar} {`);
27
+ chunks.push((0, ts_poet_1.code) `export interface ${(0, ts_poet_1.def)(serviceDesc.name)}${maybeTypeVar} {`);
28
28
  serviceDesc.method.forEach((methodDesc, index) => {
29
29
  var _a;
30
30
  (0, utils_1.assertInstanceOf)(methodDesc, utils_1.FormattedMethodDescriptor);
@@ -144,7 +144,7 @@ function generateServiceClientImpl(ctx, fileDesc, serviceDesc) {
144
144
  const { name } = serviceDesc;
145
145
  const i = options.context ? `${name}<Context>` : name;
146
146
  const t = options.context ? `<${main_1.contextTypeVar}>` : '';
147
- chunks.push((0, ts_poet_1.code) `export class ${name}ClientImpl${t} implements ${i} {`);
147
+ chunks.push((0, ts_poet_1.code) `export class ${name}ClientImpl${t} implements ${(0, ts_poet_1.def)(i)} {`);
148
148
  // Create the constructor(rpc: Rpc)
149
149
  const rpcType = options.context ? 'Rpc<Context>' : 'Rpc';
150
150
  chunks.push((0, ts_poet_1.code) `private readonly rpc: ${rpcType};`);
package/build/main.js CHANGED
@@ -337,7 +337,7 @@ function makeDeepPartial(options, longs) {
337
337
  ${maybeExport} type Exact<P, I extends P> = P extends ${Builtin}
338
338
  ? P
339
339
  : P &
340
- { [K in keyof P]: Exact<P[K], I[K]> } & Record<Exclude<keyof I, KeysOfUnion<P> ${maybeExcludeType}>, never>;
340
+ { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P> ${maybeExcludeType}>]: never };
341
341
  `);
342
342
  // Based on the type from ts-essentials
343
343
  const keys = options.outputTypeRegistry ? (0, ts_poet_1.code) `Exclude<keyof T, '$type'>` : (0, ts_poet_1.code) `keyof T`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-proto",
3
- "version": "1.121.4",
3
+ "version": "1.121.5",
4
4
  "description": "",
5
5
  "main": "build/plugin.js",
6
6
  "repository": "github:stephenh/ts-proto",