ts-proto 1.95.0 → 1.95.1

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,10 @@
1
+ ## [1.95.1](https://github.com/stephenh/ts-proto/compare/v1.95.0...v1.95.1) (2021-12-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Add service to the client constructor. ([#455](https://github.com/stephenh/ts-proto/issues/455)) ([8c32104](https://github.com/stephenh/ts-proto/commit/8c32104a8522cfe2febcf2338d51710021d837ff))
7
+
1
8
  # [1.95.0](https://github.com/stephenh/ts-proto/compare/v1.94.0...v1.95.0) (2021-12-14)
2
9
 
3
10
 
package/README.markdown CHANGED
@@ -159,7 +159,7 @@ creating a class and calling the right getters/setters.
159
159
 
160
160
  (Configurable with the `useDate` parameter.)
161
161
 
162
- - `fromJSON`/`toJSON` support the [canonical Protobuf JS](https://developers.google.com/protocol-buffers/docs/proto3#json) format (i.e. timestamps are ISO strings)
162
+ - `fromJSON`/`toJSON` use the [proto3 canonical JSON encoding format](https://developers.google.com/protocol-buffers/docs/proto3#json) (e.g. timestamps are ISO strings), unlike [`protobufjs`](https://github.com/protobufjs/protobuf.js/issues/1304).
163
163
 
164
164
  # Auto-Batching / N+1 Prevention
165
165
 
@@ -192,6 +192,7 @@ function generateClientConstructor(fileDesc, serviceDesc) {
192
192
  credentials: ${ChannelCredentials},
193
193
  options?: Partial<${ChannelOptions}>,
194
194
  ): ${serviceDesc.name}Client;
195
+ service: typeof ${serviceDesc.name}Service;
195
196
  }
196
197
  `;
197
198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-proto",
3
- "version": "1.95.0",
3
+ "version": "1.95.1",
4
4
  "description": "",
5
5
  "main": "build/plugin.js",
6
6
  "repository": "github:stephenh/ts-proto",