starpc 0.4.9 → 0.5.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.
Files changed (64) hide show
  1. package/Makefile +1 -0
  2. package/README.md +20 -10
  3. package/dist/echo/client-test.d.ts +1 -0
  4. package/dist/echo/client-test.js +20 -18
  5. package/dist/echo/echo.pb.d.ts +165 -12
  6. package/dist/echo/echo.pb.js +61 -17
  7. package/dist/echo/server.d.ts +8 -4
  8. package/dist/echo/server.js +29 -37
  9. package/dist/rpcstream/rpcstream.d.ts +6 -6
  10. package/dist/rpcstream/rpcstream.js +92 -51
  11. package/dist/rpcstream/rpcstream.pb.d.ts +46 -1
  12. package/dist/rpcstream/rpcstream.pb.js +157 -9
  13. package/dist/srpc/client.d.ts +3 -4
  14. package/dist/srpc/client.js +12 -46
  15. package/dist/srpc/common-rpc.d.ts +3 -2
  16. package/dist/srpc/common-rpc.js +12 -0
  17. package/dist/srpc/definition.d.ts +3 -3
  18. package/dist/srpc/handler.d.ts +2 -3
  19. package/dist/srpc/handler.js +5 -22
  20. package/dist/srpc/index.d.ts +1 -1
  21. package/dist/srpc/index.js +1 -1
  22. package/dist/srpc/packet.js +0 -32
  23. package/dist/srpc/pushable.d.ts +2 -0
  24. package/dist/srpc/pushable.js +13 -0
  25. package/dist/srpc/rpcproto.pb.d.ts +13 -6
  26. package/dist/srpc/rpcproto.pb.js +95 -10
  27. package/dist/srpc/server.d.ts +1 -0
  28. package/dist/srpc/server.js +7 -0
  29. package/dist/srpc/ts-proto-rpc.d.ts +3 -4
  30. package/e2e/e2e.ts +4 -3
  31. package/e2e/e2e_test.go +24 -1
  32. package/echo/client-test.ts +23 -18
  33. package/echo/echo.pb.go +33 -20
  34. package/echo/echo.pb.ts +90 -34
  35. package/echo/echo.proto +4 -0
  36. package/echo/echo_srpc.pb.go +77 -0
  37. package/echo/server.go +18 -0
  38. package/echo/server.ts +47 -41
  39. package/integration/integration.go +1 -2
  40. package/integration/integration.ts +5 -1
  41. package/integration/integration_srpc.pb.go +139 -0
  42. package/package.json +5 -3
  43. package/patches/ts-proto+1.115.5.patch +1339 -0
  44. package/srpc/client.ts +16 -50
  45. package/srpc/common-rpc.ts +14 -2
  46. package/srpc/definition.ts +3 -3
  47. package/srpc/handler.ts +17 -34
  48. package/srpc/index.ts +1 -1
  49. package/srpc/muxed-conn.go +2 -2
  50. package/srpc/packet-rw.go +4 -6
  51. package/srpc/packet.ts +0 -33
  52. package/srpc/pushable.ts +17 -0
  53. package/srpc/rpcproto.pb.ts +122 -12
  54. package/srpc/server-pipe.go +2 -2
  55. package/srpc/server.go +2 -2
  56. package/srpc/server.ts +8 -0
  57. package/srpc/ts-proto-rpc.ts +4 -6
  58. package/srpc/websocket.go +2 -2
  59. package/dist/echo/sever.d.ts +0 -0
  60. package/dist/echo/sever.js +0 -1
  61. package/dist/srpc/observable-source.d.ts +0 -9
  62. package/dist/srpc/observable-source.js +0 -25
  63. package/echo/sever.ts +0 -0
  64. package/srpc/observable-source.ts +0 -40
@@ -0,0 +1,1339 @@
1
+ diff --git a/node_modules/ts-proto/CHANGELOG.md b/node_modules/ts-proto/CHANGELOG.md
2
+ deleted file mode 100644
3
+ index ca46271..0000000
4
+ --- a/node_modules/ts-proto/CHANGELOG.md
5
+ +++ /dev/null
6
+ @@ -1,1020 +0,0 @@
7
+ -## [1.115.5](https://github.com/stephenh/ts-proto/compare/v1.115.4...v1.115.5) (2022-06-22)
8
+ -
9
+ -
10
+ -### Bug Fixes
11
+ -
12
+ -* remove Long import statement when Long was unused ([#599](https://github.com/stephenh/ts-proto/issues/599)) ([58dc10c](https://github.com/stephenh/ts-proto/commit/58dc10c61ec5a76d4b54ba9eddf34021979dd4aa))
13
+ -
14
+ -## [1.115.4](https://github.com/stephenh/ts-proto/compare/v1.115.3...v1.115.4) (2022-06-05)
15
+ -
16
+ -
17
+ -### Bug Fixes
18
+ -
19
+ -* Struct wrap/unwrap snake case [#579](https://github.com/stephenh/ts-proto/issues/579) ([#588](https://github.com/stephenh/ts-proto/issues/588)) ([33f89bf](https://github.com/stephenh/ts-proto/commit/33f89bfcf0d5d9e64a6fd360eaefc140055e9291))
20
+ -
21
+ -## [1.115.3](https://github.com/stephenh/ts-proto/compare/v1.115.2...v1.115.3) (2022-06-03)
22
+ -
23
+ -
24
+ -### Bug Fixes
25
+ -
26
+ -* Fix ts-poet typo in package.json. ([#589](https://github.com/stephenh/ts-proto/issues/589)) ([5211347](https://github.com/stephenh/ts-proto/commit/5211347cb21ac7d117349a32a87c0d017999c44a))
27
+ -
28
+ -## [1.115.2](https://github.com/stephenh/ts-proto/compare/v1.115.1...v1.115.2) (2022-06-03)
29
+ -
30
+ -
31
+ -### Bug Fixes
32
+ -
33
+ -* simplify handling useJsonWireFormat=true and fix onlyTypes=true ([#583](https://github.com/stephenh/ts-proto/issues/583)) ([6e7f938](https://github.com/stephenh/ts-proto/commit/6e7f9387d144f506ded982604f32981ac5e327de))
34
+ -
35
+ -## [1.115.1](https://github.com/stephenh/ts-proto/compare/v1.115.0...v1.115.1) (2022-06-02)
36
+ -
37
+ -
38
+ -### Bug Fixes
39
+ -
40
+ -* Bump protobufjs. ([#585](https://github.com/stephenh/ts-proto/issues/585)) ([ba6b85d](https://github.com/stephenh/ts-proto/commit/ba6b85d9d5b7ce191dce898c462cf164a6b1e308))
41
+ -
42
+ -# [1.115.0](https://github.com/stephenh/ts-proto/compare/v1.114.7...v1.115.0) (2022-06-02)
43
+ -
44
+ -
45
+ -### Features
46
+ -
47
+ -* added option 'useJsonWireFormat' ([#576](https://github.com/stephenh/ts-proto/issues/576)) ([a71b145](https://github.com/stephenh/ts-proto/commit/a71b145c81136b8d8e3681b6753146d3ceeff179)), closes [#571](https://github.com/stephenh/ts-proto/issues/571)
48
+ -
49
+ -## [1.114.7](https://github.com/stephenh/ts-proto/compare/v1.114.6...v1.114.7) (2022-05-28)
50
+ -
51
+ -
52
+ -### Bug Fixes
53
+ -
54
+ -* Fix version number for Buf plugin. ([dc1fb7e](https://github.com/stephenh/ts-proto/commit/dc1fb7e766ed4115d026e7ff0e9a9480c1e42380))
55
+ -
56
+ -## [1.114.6](https://github.com/stephenh/ts-proto/compare/v1.114.5...v1.114.6) (2022-05-28)
57
+ -
58
+ -
59
+ -### Bug Fixes
60
+ -
61
+ -* Bump node in ts-proto.Dockerfile. ([42f3cea](https://github.com/stephenh/ts-proto/commit/42f3ceac5323056b1b845b51919ecddaa32bf258))
62
+ -
63
+ -## [1.114.5](https://github.com/stephenh/ts-proto/compare/v1.114.4...v1.114.5) (2022-05-28)
64
+ -
65
+ -
66
+ -### Bug Fixes
67
+ -
68
+ -* Use outputs for Buf plugin workflow. ([7017d4c](https://github.com/stephenh/ts-proto/commit/7017d4c1f5eb2a8619dd03cc4f7a27c1dcf6c918))
69
+ -
70
+ -## [1.114.4](https://github.com/stephenh/ts-proto/compare/v1.114.3...v1.114.4) (2022-05-28)
71
+ -
72
+ -
73
+ -### Bug Fixes
74
+ -
75
+ -* Use env prefix for Buf plugin. ([ea42caa](https://github.com/stephenh/ts-proto/commit/ea42caacbd919f9a8b6a9e3138d8a48e80ac86d9))
76
+ -
77
+ -## [1.114.3](https://github.com/stephenh/ts-proto/compare/v1.114.2...v1.114.3) (2022-05-28)
78
+ -
79
+ -
80
+ -### Bug Fixes
81
+ -
82
+ -* Use the npm environment. ([0103443](https://github.com/stephenh/ts-proto/commit/01034430c25461c0e5a46e2b9fd757ef4e0c91b1))
83
+ -
84
+ -## [1.114.2](https://github.com/stephenh/ts-proto/compare/v1.114.1...v1.114.2) (2022-05-28)
85
+ -
86
+ -
87
+ -### Bug Fixes
88
+ -
89
+ -* Try combined workflow. ([c293c1f](https://github.com/stephenh/ts-proto/commit/c293c1f379cb69635c968d5b8094135931bcea54))
90
+ -
91
+ -# [1.114.0](https://github.com/stephenh/ts-proto/compare/v1.113.0...v1.114.0) (2022-05-27)
92
+ -
93
+ -
94
+ -### Features
95
+ -
96
+ -* Official Buf Plugin ([#573](https://github.com/stephenh/ts-proto/issues/573)) ([e6272c4](https://github.com/stephenh/ts-proto/commit/e6272c487f73ff96afb4146a7998a892c4b43f14))
97
+ -
98
+ -# [1.113.0](https://github.com/stephenh/ts-proto/compare/v1.112.2...v1.113.0) (2022-05-27)
99
+ -
100
+ -
101
+ -### Features
102
+ -
103
+ -* add options to schema output ([#437](https://github.com/stephenh/ts-proto/issues/437)) ([e8e4e39](https://github.com/stephenh/ts-proto/commit/e8e4e3937292e07280f5154b584e60124118f093))
104
+ -
105
+ -## [1.112.2](https://github.com/stephenh/ts-proto/compare/v1.112.1...v1.112.2) (2022-05-18)
106
+ -
107
+ -
108
+ -### Bug Fixes
109
+ -
110
+ -* enum type returns 'UNRECOGNIZED' or '-1' in xxxToJSON/xxxToNumber ([#566](https://github.com/stephenh/ts-proto/issues/566)) ([19911a1](https://github.com/stephenh/ts-proto/commit/19911a1c62e3fe5c8a0eb0a795489340512898da))
111
+ -
112
+ -## [1.112.1](https://github.com/stephenh/ts-proto/compare/v1.112.0...v1.112.1) (2022-05-06)
113
+ -
114
+ -
115
+ -### Bug Fixes
116
+ -
117
+ -* use Long.fromValue instead of Long.fromString ([#562](https://github.com/stephenh/ts-proto/issues/562)) ([c99891e](https://github.com/stephenh/ts-proto/commit/c99891e0fec6d9b7225025eb0c5bd7393e80af36))
118
+ -
119
+ -# [1.112.0](https://github.com/stephenh/ts-proto/compare/v1.111.0...v1.112.0) (2022-05-02)
120
+ -
121
+ -
122
+ -### Bug Fixes
123
+ -
124
+ -* update codegen for `nice-grpc` ([#561](https://github.com/stephenh/ts-proto/issues/561)) ([d503f67](https://github.com/stephenh/ts-proto/commit/d503f677922402e880b5d8502b3d8bc099b7f39d))
125
+ -
126
+ -
127
+ -### Features
128
+ -
129
+ -* add support for generating `nice-grpc` server and client stubs ([#555](https://github.com/stephenh/ts-proto/issues/555)) ([8c19361](https://github.com/stephenh/ts-proto/commit/8c19361ede9a7a039acf3a1375913d012b0fcb7d)), closes [#545](https://github.com/stephenh/ts-proto/issues/545)
130
+ -
131
+ -# [1.111.0](https://github.com/stephenh/ts-proto/compare/v1.110.4...v1.111.0) (2022-05-01)
132
+ -
133
+ -
134
+ -### Features
135
+ -
136
+ -* include service and definition types with implementations ([#552](https://github.com/stephenh/ts-proto/issues/552)) ([6b896f4](https://github.com/stephenh/ts-proto/commit/6b896f4b7f4ba0f0d97730767421786171646aea))
137
+ -
138
+ -## [next](https://github.com/stephenh/ts-proto/compare/v1.110.4...main) (????-??-??)
139
+ -
140
+ -### Features
141
+ -
142
+ -* When outputing service and service definition implementations, include types. Eg, before:
143
+ -
144
+ - ```ts
145
+ - export const TestDefinition = {
146
+ - name: 'Test',
147
+ - fullName: 'simple.Test',
148
+ - methods: {
149
+ - …
150
+ - },
151
+ - } as const;
152
+ - ```
153
+ -
154
+ - Now:
155
+ -
156
+ - ```ts
157
+ - export type TestDefinition = typeof TestDefinition;
158
+ - export const TestDefinition = {
159
+ - name: 'Test',
160
+ - fullName: 'simple.Test',
161
+ - methods: {
162
+ - …
163
+ - },
164
+ - } as const;
165
+ - ```
166
+ -
167
+ -## [1.110.4](https://github.com/stephenh/ts-proto/compare/v1.110.3...v1.110.4) (2022-04-08)
168
+ -
169
+ -
170
+ -### Bug Fixes
171
+ -
172
+ -* Use Uint8Array.forEach in base64FromBytes ([#544](https://github.com/stephenh/ts-proto/issues/544)) ([c7641ce](https://github.com/stephenh/ts-proto/commit/c7641ceb6a1c9da234245b9d808b2ded899dbbbc))
173
+ -
174
+ -## [1.110.3](https://github.com/stephenh/ts-proto/compare/v1.110.2...v1.110.3) (2022-04-08)
175
+ -
176
+ -
177
+ -### Bug Fixes
178
+ -
179
+ -* regression in being able to return a Date as a GRPC return value ([#534](https://github.com/stephenh/ts-proto/issues/534)) ([22b76ec](https://github.com/stephenh/ts-proto/commit/22b76eccfc0d26309aab9e454de31ef020595be8))
180
+ -
181
+ -## [1.110.2](https://github.com/stephenh/ts-proto/compare/v1.110.1...v1.110.2) (2022-03-27)
182
+ -
183
+ -
184
+ -### Bug Fixes
185
+ -
186
+ -* **Grpc-Web:** Fix compilation failure when a service definition contains a client streaming call. ([#535](https://github.com/stephenh/ts-proto/issues/535)) ([0c83892](https://github.com/stephenh/ts-proto/commit/0c83892693d5755c9fe848b442b5e666192103ab))
187
+ -
188
+ -## [1.110.1](https://github.com/stephenh/ts-proto/compare/v1.110.0...v1.110.1) (2022-03-25)
189
+ -
190
+ -
191
+ -### Bug Fixes
192
+ -
193
+ -* Use a module star import for protobuf types. ([#540](https://github.com/stephenh/ts-proto/issues/540)) ([f5b7700](https://github.com/stephenh/ts-proto/commit/f5b770083dffe72338beb4a09432a2a917760eae))
194
+ -
195
+ -# [1.110.0](https://github.com/stephenh/ts-proto/compare/v1.109.1...v1.110.0) (2022-03-15)
196
+ -
197
+ -
198
+ -### Features
199
+ -
200
+ -* Add generic metadata parameter to the generic service definition interface. ([#530](https://github.com/stephenh/ts-proto/issues/530)) ([0f5525a](https://github.com/stephenh/ts-proto/commit/0f5525ade80e7b69889dfd091a458e21bb14a265))
201
+ -
202
+ -## [1.109.1](https://github.com/stephenh/ts-proto/compare/v1.109.0...v1.109.1) (2022-03-13)
203
+ -
204
+ -
205
+ -### Bug Fixes
206
+ -
207
+ -* Type Error when map contains string enums [#382](https://github.com/stephenh/ts-proto/issues/382) ([#529](https://github.com/stephenh/ts-proto/issues/529)) ([c2107b9](https://github.com/stephenh/ts-proto/commit/c2107b96b494a500a4773ac04900a1acd13c507a))
208
+ -
209
+ -# [1.109.0](https://github.com/stephenh/ts-proto/compare/v1.108.0...v1.109.0) (2022-03-13)
210
+ -
211
+ -
212
+ -### Features
213
+ -
214
+ -* import proto as type import if onlyTypes is set ([25d8e8b](https://github.com/stephenh/ts-proto/commit/25d8e8b9042142f1032feadc8a799b7a01115cc2))
215
+ -
216
+ -# [1.108.0](https://github.com/stephenh/ts-proto/compare/v1.107.0...v1.108.0) (2022-03-07)
217
+ -
218
+ -
219
+ -### Features
220
+ -
221
+ -* represent field masks as `string[]` ([#525](https://github.com/stephenh/ts-proto/issues/525)) ([903b216](https://github.com/stephenh/ts-proto/commit/903b216238db025e24ec3cfb2d20063aec1a40ed))
222
+ -
223
+ -# [1.107.0](https://github.com/stephenh/ts-proto/compare/v1.106.2...v1.107.0) (2022-03-04)
224
+ -
225
+ -
226
+ -### Features
227
+ -
228
+ -* Allow simultaneous services and generic service definitions ([#512](https://github.com/stephenh/ts-proto/issues/512)) ([680831e](https://github.com/stephenh/ts-proto/commit/680831e76f1a4ceb4337442a157d7e702cb14bfc))
229
+ -
230
+ -## [1.106.2](https://github.com/stephenh/ts-proto/compare/v1.106.1...v1.106.2) (2022-02-27)
231
+ -
232
+ -
233
+ -### Bug Fixes
234
+ -
235
+ -* Add M1/ARM support for the test suite ([#516](https://github.com/stephenh/ts-proto/issues/516)) ([7cf5625](https://github.com/stephenh/ts-proto/commit/7cf56251726d149eebd015367476f36e4edb48aa))
236
+ -
237
+ -## [1.106.1](https://github.com/stephenh/ts-proto/compare/v1.106.0...v1.106.1) (2022-02-21)
238
+ -
239
+ -
240
+ -### Bug Fixes
241
+ -
242
+ -* support json_name containing hyphen on all field types ([#521](https://github.com/stephenh/ts-proto/issues/521)) ([8d9e78e](https://github.com/stephenh/ts-proto/commit/8d9e78eb39c460f6727458f6a2dd149deb983668))
243
+ -
244
+ -# [1.106.0](https://github.com/stephenh/ts-proto/compare/v1.105.2...v1.106.0) (2022-02-21)
245
+ -
246
+ -
247
+ -### Features
248
+ -
249
+ -* Support json names containing non-alphanumeric characters ([#520](https://github.com/stephenh/ts-proto/issues/520)) ([ce44668](https://github.com/stephenh/ts-proto/commit/ce44668b8fe01b14f50ac3c5c950f73db769fa76))
250
+ -
251
+ -## [1.105.2](https://github.com/stephenh/ts-proto/compare/v1.105.1...v1.105.2) (2022-02-17)
252
+ -
253
+ -
254
+ -### Bug Fixes
255
+ -
256
+ -* Fix snakeToCamel single value parsing. ([#513](https://github.com/stephenh/ts-proto/issues/513)) ([e1ad866](https://github.com/stephenh/ts-proto/commit/e1ad866c95751c37ed13f02f4da2dc9076ab4758))
257
+ -
258
+ -## [1.105.1](https://github.com/stephenh/ts-proto/compare/v1.105.0...v1.105.1) (2022-02-14)
259
+ -
260
+ -
261
+ -### Bug Fixes
262
+ -
263
+ -* generate canonical JSON encoding for FieldMasks ([#510](https://github.com/stephenh/ts-proto/issues/510)) ([0ec4e97](https://github.com/stephenh/ts-proto/commit/0ec4e97a2649dc15af1c925f8a2ff6adf1e17d9b))
264
+ -
265
+ -# [1.105.0](https://github.com/stephenh/ts-proto/compare/v1.104.1...v1.105.0) (2022-02-12)
266
+ -
267
+ -
268
+ -### Features
269
+ -
270
+ -* Bump ts-proto-descriptors. ([#489](https://github.com/stephenh/ts-proto/issues/489)) ([d454448](https://github.com/stephenh/ts-proto/commit/d454448b1889b1576c1ebcc6964a55a03af7d921)), closes [#493](https://github.com/stephenh/ts-proto/issues/493)
271
+ -
272
+ -## [1.104.1](https://github.com/stephenh/ts-proto/compare/v1.104.0...v1.104.1) (2022-02-12)
273
+ -
274
+ -
275
+ -### Bug Fixes
276
+ -
277
+ -* make struct types play well with type registry ([#503](https://github.com/stephenh/ts-proto/issues/503)) ([d62f854](https://github.com/stephenh/ts-proto/commit/d62f85478011c7eb3dbca196f79b452895406ece))
278
+ -
279
+ -# [1.104.0](https://github.com/stephenh/ts-proto/compare/v1.103.0...v1.104.0) (2022-01-21)
280
+ -
281
+ -
282
+ -### Bug Fixes
283
+ -
284
+ -* Leave mixed case in all words. ([#488](https://github.com/stephenh/ts-proto/issues/488)) ([8a26c9c](https://github.com/stephenh/ts-proto/commit/8a26c9cba4c9897700aafe1a7f59d0b0f537764b))
285
+ -
286
+ -
287
+ -### Features
288
+ -
289
+ -* enable prototype for defaults for ts-proto-descriptors ([#487](https://github.com/stephenh/ts-proto/issues/487)) ([2b5640f](https://github.com/stephenh/ts-proto/commit/2b5640f582e6adb4e81797a9cec217896061aadb))
290
+ -
291
+ -# [1.103.0](https://github.com/stephenh/ts-proto/compare/v1.102.2...v1.103.0) (2022-01-20)
292
+ -
293
+ -
294
+ -### Features
295
+ -
296
+ -* add usePrototypeForDefaults option ([#484](https://github.com/stephenh/ts-proto/issues/484)) ([8e8c810](https://github.com/stephenh/ts-proto/commit/8e8c81016968e7d772dfac5ed54800898f039cbe))
297
+ -
298
+ -## [1.102.2](https://github.com/stephenh/ts-proto/compare/v1.102.1...v1.102.2) (2022-01-19)
299
+ -
300
+ -
301
+ -### Bug Fixes
302
+ -
303
+ -* Have snakeToCamel leave existing mixed case. ([#482](https://github.com/stephenh/ts-proto/issues/482)) ([c0bf0fc](https://github.com/stephenh/ts-proto/commit/c0bf0fc13da70e2bde923cd1746119d2e7ac4b2f)), closes [#478](https://github.com/stephenh/ts-proto/issues/478)
304
+ -
305
+ -## [1.102.1](https://github.com/stephenh/ts-proto/compare/v1.102.0...v1.102.1) (2022-01-19)
306
+ -
307
+ -
308
+ -### Bug Fixes
309
+ -
310
+ -* Pin ts-proto-descriptors to 1.3.1. ([#481](https://github.com/stephenh/ts-proto/issues/481)) ([6f362bf](https://github.com/stephenh/ts-proto/commit/6f362bfd3517a6bcb440d65e7ac63cd2b0bcc293)), closes [#480](https://github.com/stephenh/ts-proto/issues/480)
311
+ -
312
+ -# [1.102.0](https://github.com/stephenh/ts-proto/compare/v1.101.0...v1.102.0) (2022-01-18)
313
+ -
314
+ -
315
+ -### Features
316
+ -
317
+ -* enable unknown fields for descriptor protos ([#479](https://github.com/stephenh/ts-proto/issues/479)) ([824c996](https://github.com/stephenh/ts-proto/commit/824c9962cd98dc0f9093e8909e3028d900094c54))
318
+ -
319
+ -# [1.101.0](https://github.com/stephenh/ts-proto/compare/v1.100.1...v1.101.0) (2022-01-15)
320
+ -
321
+ -
322
+ -### Features
323
+ -
324
+ -* add support for unknown fields ([#473](https://github.com/stephenh/ts-proto/issues/473)) ([3bb9472](https://github.com/stephenh/ts-proto/commit/3bb9472943cf2e698b013487c7370a76576b68b6))
325
+ -
326
+ -## [1.100.1](https://github.com/stephenh/ts-proto/compare/v1.100.0...v1.100.1) (2022-01-10)
327
+ -
328
+ -
329
+ -### Bug Fixes
330
+ -
331
+ -* respect generateClientImpl=false in grpc-js ([#471](https://github.com/stephenh/ts-proto/issues/471)) ([#472](https://github.com/stephenh/ts-proto/issues/472)) ([2f389f2](https://github.com/stephenh/ts-proto/commit/2f389f243ef11d8d58c32ce37c371aba2cdf294e))
332
+ -
333
+ -# [1.100.0](https://github.com/stephenh/ts-proto/compare/v1.99.0...v1.100.0) (2022-01-09)
334
+ -
335
+ -
336
+ -### Features
337
+ -
338
+ -* support mapping ObjectId message as mongodb.ObjectId ([#467](https://github.com/stephenh/ts-proto/issues/467)) ([8b23897](https://github.com/stephenh/ts-proto/commit/8b2389715ecfd5d51b1b24f5a9332e4ff9f09a27))
339
+ -
340
+ -# [1.99.0](https://github.com/stephenh/ts-proto/compare/v1.98.0...v1.99.0) (2022-01-07)
341
+ -
342
+ -
343
+ -### Features
344
+ -
345
+ -* yarn watch updates (specified) tests when source files change ([#465](https://github.com/stephenh/ts-proto/issues/465)) ([275d0e7](https://github.com/stephenh/ts-proto/commit/275d0e7c61f3acb2b1fd670b1974e64dd49d6ff4))
346
+ -
347
+ -# [1.98.0](https://github.com/stephenh/ts-proto/compare/v1.97.2...v1.98.0) (2022-01-06)
348
+ -
349
+ -
350
+ -### Features
351
+ -
352
+ -* watch for changed integration test files ([#464](https://github.com/stephenh/ts-proto/issues/464)) ([988cd7e](https://github.com/stephenh/ts-proto/commit/988cd7eb84bc3b8b72d6b4d59c38aa794c16c638))
353
+ -
354
+ -## [1.97.2](https://github.com/stephenh/ts-proto/compare/v1.97.1...v1.97.2) (2022-01-06)
355
+ -
356
+ -
357
+ -### Performance Improvements
358
+ -
359
+ -* fromJSON returns object literal to allow v8 optimizations ([#463](https://github.com/stephenh/ts-proto/issues/463)) ([5fcd05b](https://github.com/stephenh/ts-proto/commit/5fcd05b79e7c02547c4b6db46fae7a7202f97629))
360
+ -
361
+ -## [1.97.1](https://github.com/stephenh/ts-proto/compare/v1.97.0...v1.97.1) (2022-01-05)
362
+ -
363
+ -
364
+ -### Bug Fixes
365
+ -
366
+ -* oneof=union breaks wrapper types [#458](https://github.com/stephenh/ts-proto/issues/458) ([#462](https://github.com/stephenh/ts-proto/issues/462)) ([dd16992](https://github.com/stephenh/ts-proto/commit/dd16992a409f24e88e3a142830cd0745f50dbd10))
367
+ -
368
+ -# [1.97.0](https://github.com/stephenh/ts-proto/compare/v1.96.1...v1.97.0) (2021-12-30)
369
+ -
370
+ -
371
+ -### Features
372
+ -
373
+ -* add an option to disable Exact types ([#456](https://github.com/stephenh/ts-proto/issues/456)) ([9c53d7e](https://github.com/stephenh/ts-proto/commit/9c53d7efb0252c7ea0af85a5d161ff94bcd69760))
374
+ -
375
+ -## [1.96.1](https://github.com/stephenh/ts-proto/compare/v1.96.0...v1.96.1) (2021-12-28)
376
+ -
377
+ -
378
+ -### Performance Improvements
379
+ -
380
+ -* optimize object creation in `decode`, `fromJSON` and `fromPartial` ([#457](https://github.com/stephenh/ts-proto/issues/457)) ([70832d3](https://github.com/stephenh/ts-proto/commit/70832d33bae82ecb3c5f87845d14e992a13437e4))
381
+ -
382
+ -# [1.96.0](https://github.com/stephenh/ts-proto/compare/v1.95.1...v1.96.0) (2021-12-24)
383
+ -
384
+ -
385
+ -### Features
386
+ -
387
+ -* `enumsAsLiterals` option ([#450](https://github.com/stephenh/ts-proto/issues/450)) ([fcaade2](https://github.com/stephenh/ts-proto/commit/fcaade2855ae28ea3553a365556ccb92a9644d70))
388
+ -
389
+ -## [1.95.1](https://github.com/stephenh/ts-proto/compare/v1.95.0...v1.95.1) (2021-12-23)
390
+ -
391
+ -
392
+ -### Bug Fixes
393
+ -
394
+ -* Add service to the client constructor. ([#455](https://github.com/stephenh/ts-proto/issues/455)) ([8c32104](https://github.com/stephenh/ts-proto/commit/8c32104a8522cfe2febcf2338d51710021d837ff))
395
+ -
396
+ -# [1.95.0](https://github.com/stephenh/ts-proto/compare/v1.94.0...v1.95.0) (2021-12-14)
397
+ -
398
+ -
399
+ -### Features
400
+ -
401
+ -* Add useOptionals=all to enable non-field members to be optional. ([#402](https://github.com/stephenh/ts-proto/issues/402)) ([e7b70cb](https://github.com/stephenh/ts-proto/commit/e7b70cbd7b9bd43bf9e6e54e25bc48c527718317))
402
+ -
403
+ -# [1.94.0](https://github.com/stephenh/ts-proto/compare/v1.93.3...v1.94.0) (2021-12-14)
404
+ -
405
+ -
406
+ -### Features
407
+ -
408
+ -* Round numbers in toJSON. ([#444](https://github.com/stephenh/ts-proto/issues/444)) ([bd2df7b](https://github.com/stephenh/ts-proto/commit/bd2df7b7176e961955ed1dcacb3602384e13ee45))
409
+ -
410
+ -## [1.93.3](https://github.com/stephenh/ts-proto/compare/v1.93.2...v1.93.3) (2021-12-13)
411
+ -
412
+ -
413
+ -### Bug Fixes
414
+ -
415
+ -* support mutliple options in snakeToCamel flag ([#429](https://github.com/stephenh/ts-proto/issues/429)) ([cff6674](https://github.com/stephenh/ts-proto/commit/cff667406cba21676546fd91b04cf2cbc571ed7d)), closes [#423](https://github.com/stephenh/ts-proto/issues/423)
416
+ -
417
+ -## [1.93.2](https://github.com/stephenh/ts-proto/compare/v1.93.1...v1.93.2) (2021-12-09)
418
+ -
419
+ -
420
+ -### Bug Fixes
421
+ -
422
+ -* standalone dockerized protoc alias ([#438](https://github.com/stephenh/ts-proto/issues/438)) ([466f7d9](https://github.com/stephenh/ts-proto/commit/466f7d91551c6297fc1b9677f7a5839f8cdba0c6))
423
+ -
424
+ -## [1.93.1](https://github.com/stephenh/ts-proto/compare/v1.93.0...v1.93.1) (2021-12-08)
425
+ -
426
+ -
427
+ -### Bug Fixes
428
+ -
429
+ -* Unwrap google.protobuf.BytesValue to Buffer when env=node ([#439](https://github.com/stephenh/ts-proto/issues/439)) ([73aa836](https://github.com/stephenh/ts-proto/commit/73aa8368300818068f3cddc5f046d990c66ab4f2))
430
+ -
431
+ -# [1.93.0](https://github.com/stephenh/ts-proto/compare/v1.92.2...v1.93.0) (2021-12-08)
432
+ -
433
+ -
434
+ -### Features
435
+ -
436
+ -* Allow optional suffix for generated files ([#431](https://github.com/stephenh/ts-proto/issues/431)) ([d826966](https://github.com/stephenh/ts-proto/commit/d826966f22830920444963b3894ffc0be9b7c319))
437
+ -
438
+ -## [1.92.2](https://github.com/stephenh/ts-proto/compare/v1.92.1...v1.92.2) (2021-12-08)
439
+ -
440
+ -
441
+ -### Bug Fixes
442
+ -
443
+ -* noImplicitReturns error in Value.unwrap ([#436](https://github.com/stephenh/ts-proto/issues/436)) ([2d7a5d0](https://github.com/stephenh/ts-proto/commit/2d7a5d04c72ace58fa3a6745c3857f6cc0468543)), closes [#432](https://github.com/stephenh/ts-proto/issues/432)
444
+ -
445
+ -## [1.92.1](https://github.com/stephenh/ts-proto/compare/v1.92.0...v1.92.1) (2021-12-02)
446
+ -
447
+ -
448
+ -### Bug Fixes
449
+ -
450
+ -* Respect stringEnums option in wrap function ([#420](https://github.com/stephenh/ts-proto/issues/420)) ([7adf90c](https://github.com/stephenh/ts-proto/commit/7adf90c23c46950bcf457b317764393ff4af2bf2))
451
+ -
452
+ -# [1.92.0](https://github.com/stephenh/ts-proto/compare/v1.91.0...v1.92.0) (2021-11-28)
453
+ -
454
+ -
455
+ -### Features
456
+ -
457
+ -* Use exact types for fromPartial ([#412](https://github.com/stephenh/ts-proto/issues/412)) ([808f8a7](https://github.com/stephenh/ts-proto/commit/808f8a7a77d56f65dd4a4643dd66158f106ab755)), closes [#156](https://github.com/stephenh/ts-proto/issues/156)
458
+ -
459
+ -# [1.91.0](https://github.com/stephenh/ts-proto/compare/v1.90.1...v1.91.0) (2021-11-27)
460
+ -
461
+ -
462
+ -### Bug Fixes
463
+ -
464
+ -* use Long.fromValue instead of Long.fromString for improved robustness regarding already parsed objects ([#405](https://github.com/stephenh/ts-proto/issues/405)) ([7bdc3ee](https://github.com/stephenh/ts-proto/commit/7bdc3eee05ed1318e18e27aa7d5bb2680060f8b6))
465
+ -
466
+ -
467
+ -### Features
468
+ -
469
+ -* Include dockerized protoc ([#404](https://github.com/stephenh/ts-proto/issues/404)) ([7564a78](https://github.com/stephenh/ts-proto/commit/7564a7887ccd0bb80cac19d313ee9bd8daae778d))
470
+ -
471
+ -## [1.90.1](https://github.com/stephenh/ts-proto/compare/v1.90.0...v1.90.1) (2021-11-27)
472
+ -
473
+ -
474
+ -### Bug Fixes
475
+ -
476
+ -* code-generation for Services with Struct response types ([#407](https://github.com/stephenh/ts-proto/issues/407)) ([f041fa1](https://github.com/stephenh/ts-proto/commit/f041fa1047816748c366bcb81895b6b917eb328d))
477
+ -
478
+ -# [1.90.0](https://github.com/stephenh/ts-proto/compare/v1.89.0...v1.90.0) (2021-11-24)
479
+ -
480
+ -
481
+ -### Features
482
+ -
483
+ -* Add support for 'json_name' annotation ([#408](https://github.com/stephenh/ts-proto/issues/408)) ([b519717](https://github.com/stephenh/ts-proto/commit/b5197174bcaacb8f163cd197d52ab9c645d21d4c))
484
+ -
485
+ -# [1.89.0](https://github.com/stephenh/ts-proto/compare/v1.88.0...v1.89.0) (2021-11-24)
486
+ -
487
+ -
488
+ -### Features
489
+ -
490
+ -* Improve map reading (fromJSON/fromPartial) ([#410](https://github.com/stephenh/ts-proto/issues/410)) ([057d438](https://github.com/stephenh/ts-proto/commit/057d438548d95c354331f7d2d767ccff952ad5c6))
491
+ -
492
+ -# [1.88.0](https://github.com/stephenh/ts-proto/compare/v1.87.1...v1.88.0) (2021-11-22)
493
+ -
494
+ -
495
+ -### Features
496
+ -
497
+ -* Support for Google.Protobuf.Value, ListValue and Struct ([#396](https://github.com/stephenh/ts-proto/issues/396)) ([7dd9c16](https://github.com/stephenh/ts-proto/commit/7dd9c16ffdec4d9ea296fbdc30d390fe44192c42))
498
+ -
499
+ -## [1.87.1](https://github.com/stephenh/ts-proto/compare/v1.87.0...v1.87.1) (2021-11-21)
500
+ -
501
+ -
502
+ -### Bug Fixes
503
+ -
504
+ -* code generation for int64 map values in fromPartial and fromJson ([#395](https://github.com/stephenh/ts-proto/issues/395)) ([d3ea8eb](https://github.com/stephenh/ts-proto/commit/d3ea8eb69e19a5e45fcc1766c4af1194b17e48fc))
505
+ -
506
+ -# [1.87.0](https://github.com/stephenh/ts-proto/compare/v1.86.0...v1.87.0) (2021-11-16)
507
+ -
508
+ -
509
+ -### Features
510
+ -
511
+ -* Use ternary operator for conditional assignments ([#394](https://github.com/stephenh/ts-proto/issues/394)) ([d84c084](https://github.com/stephenh/ts-proto/commit/d84c084fb56c958c184f8971479979b8bfb17ccc))
512
+ -
513
+ -# [1.86.0](https://github.com/stephenh/ts-proto/compare/v1.85.0...v1.86.0) (2021-11-15)
514
+ -
515
+ -
516
+ -### Features
517
+ -
518
+ -* Initialize lists with map ([#387](https://github.com/stephenh/ts-proto/issues/387)) ([200e674](https://github.com/stephenh/ts-proto/commit/200e674e4baf2640d67720ad535fe042d291d4a0))
519
+ -
520
+ -# [1.85.0](https://github.com/stephenh/ts-proto/compare/v1.84.0...v1.85.0) (2021-11-02)
521
+ -
522
+ -
523
+ -### Features
524
+ -
525
+ -* Streaming support ([#373](https://github.com/stephenh/ts-proto/issues/373)) ([459b94f](https://github.com/stephenh/ts-proto/commit/459b94f5b2988d58d186461332e888c3e511603a))
526
+ -
527
+ -# [1.84.0](https://github.com/stephenh/ts-proto/compare/v1.83.3...v1.84.0) (2021-11-02)
528
+ -
529
+ -
530
+ -### Features
531
+ -
532
+ -* Reduce code size by using nullish coalescing operator in fromPartial ([#376](https://github.com/stephenh/ts-proto/issues/376)) ([19d2ded](https://github.com/stephenh/ts-proto/commit/19d2deda2cf7c47b1b56bfc65cf58653291dba4a))
533
+ -
534
+ -## [1.83.3](https://github.com/stephenh/ts-proto/compare/v1.83.2...v1.83.3) (2021-10-28)
535
+ -
536
+ -
537
+ -### Bug Fixes
538
+ -
539
+ -* fix codegen for maps with wrapper value type ([#370](https://github.com/stephenh/ts-proto/issues/370)) ([dd2481d](https://github.com/stephenh/ts-proto/commit/dd2481df0835faafc561aad4a4d0c9c2ff9d868a))
540
+ -
541
+ -## [1.83.2](https://github.com/stephenh/ts-proto/compare/v1.83.1...v1.83.2) (2021-10-26)
542
+ -
543
+ -
544
+ -### Bug Fixes
545
+ -
546
+ -* Add missing defaults to fromPartial if options.oneof is UNIONS ([#375](https://github.com/stephenh/ts-proto/issues/375)) ([21781e9](https://github.com/stephenh/ts-proto/commit/21781e98bb6117b540be8c3f2c38ac3ad5cbbb44))
547
+ -
548
+ -## [1.83.1](https://github.com/stephenh/ts-proto/compare/v1.83.0...v1.83.1) (2021-09-17)
549
+ -
550
+ -
551
+ -### Bug Fixes
552
+ -
553
+ -* deprecated grpc and replace with @grpc/grpc-js ([#362](https://github.com/stephenh/ts-proto/issues/362)) ([1a11b97](https://github.com/stephenh/ts-proto/commit/1a11b97e9b5e92e79fdd4e22d3e8ea4536af243b))
554
+ -
555
+ -# [1.83.0](https://github.com/stephenh/ts-proto/compare/v1.82.5...v1.83.0) (2021-09-12)
556
+ -
557
+ -
558
+ -### Features
559
+ -
560
+ -* Service generation option ([#357](https://github.com/stephenh/ts-proto/issues/357)) ([7a2cf83](https://github.com/stephenh/ts-proto/commit/7a2cf831c3768e5afd76dea37f3165df4886136e))
561
+ -
562
+ -## [1.82.5](https://github.com/stephenh/ts-proto/compare/v1.82.4...v1.82.5) (2021-08-05)
563
+ -
564
+ -
565
+ -### Bug Fixes
566
+ -
567
+ -* Field starting with '_' generates an interface property starting with 'undefined' ([#344](https://github.com/stephenh/ts-proto/issues/344)) ([fab354f](https://github.com/stephenh/ts-proto/commit/fab354f3f8f3aae51bb0377f98138bc80a1113e3))
568
+ -
569
+ -## [1.82.4](https://github.com/stephenh/ts-proto/compare/v1.82.3...v1.82.4) (2021-08-04)
570
+ -
571
+ -
572
+ -### Bug Fixes
573
+ -
574
+ -* resolve import collisions for enums ([#341](https://github.com/stephenh/ts-proto/issues/341)) ([50fe34e](https://github.com/stephenh/ts-proto/commit/50fe34ecc66877bead1f0ae55afe28b88e5eda10))
575
+ -
576
+ -## [1.82.3](https://github.com/stephenh/ts-proto/compare/v1.82.2...v1.82.3) (2021-08-03)
577
+ -
578
+ -
579
+ -### Bug Fixes
580
+ -
581
+ -* resolve import collisions for enums ([#339](https://github.com/stephenh/ts-proto/issues/339)) ([8118748](https://github.com/stephenh/ts-proto/commit/81187488edbbe7b1c8e7028e0bc8f3a8005a97c8))
582
+ -
583
+ -## [1.82.2](https://github.com/stephenh/ts-proto/compare/v1.82.1...v1.82.2) (2021-07-11)
584
+ -
585
+ -
586
+ -### Bug Fixes
587
+ -
588
+ -* grpc-js support for nestjs ([#307](https://github.com/stephenh/ts-proto/issues/307)) ([d11c8c2](https://github.com/stephenh/ts-proto/commit/d11c8c2bc041c2e8a25ebf7f1c68c901c18ee0ca))
589
+ -
590
+ -## [1.82.1](https://github.com/stephenh/ts-proto/compare/v1.82.0...v1.82.1) (2021-07-11)
591
+ -
592
+ -
593
+ -### Bug Fixes
594
+ -
595
+ -* Consistently apply lowerCaseServiceMethods=true ([#332](https://github.com/stephenh/ts-proto/issues/332)) ([57f2473](https://github.com/stephenh/ts-proto/commit/57f24739f425ec05eabd8c8d6959d4b1b14623a1))
596
+ -
597
+ -# [1.82.0](https://github.com/stephenh/ts-proto/compare/v1.81.3...v1.82.0) (2021-06-28)
598
+ -
599
+ -
600
+ -### Features
601
+ -
602
+ -* framework-agnostic service definitions ([#316](https://github.com/stephenh/ts-proto/issues/316)) ([3d89282](https://github.com/stephenh/ts-proto/commit/3d89282176f8f16a33eea5042df0439c3f23b038))
603
+ -
604
+ -## [1.81.3](https://github.com/stephenh/ts-proto/compare/v1.81.2...v1.81.3) (2021-06-13)
605
+ -
606
+ -
607
+ -### Bug Fixes
608
+ -
609
+ -* close server stream on observer unsubscribe ([#309](https://github.com/stephenh/ts-proto/issues/309)) ([4b72563](https://github.com/stephenh/ts-proto/commit/4b7256381c3b2ff2d4d5190e878de6903cd0d53a))
610
+ -
611
+ -## [1.81.2](https://github.com/stephenh/ts-proto/compare/v1.81.1...v1.81.2) (2021-06-13)
612
+ -
613
+ -
614
+ -### Bug Fixes
615
+ -
616
+ -* Fix TypeScript errors when compiling with `noUncheckedIndexedAccess` ([#297](https://github.com/stephenh/ts-proto/issues/297)) ([f865e43](https://github.com/stephenh/ts-proto/commit/f865e431c2613a1cfe9dc1d87fba6a9e4bcd3b16))
617
+ -
618
+ -## [1.81.1](https://github.com/stephenh/ts-proto/compare/v1.81.0...v1.81.1) (2021-05-23)
619
+ -
620
+ -
621
+ -### Bug Fixes
622
+ -
623
+ -* Fix encode wrap types ([#303](https://github.com/stephenh/ts-proto/issues/303)) ([533c0e0](https://github.com/stephenh/ts-proto/commit/533c0e0959943562a59de5f456b83ab0b0b6abed))
624
+ -
625
+ -# [1.81.0](https://github.com/stephenh/ts-proto/compare/v1.80.1...v1.81.0) (2021-05-23)
626
+ -
627
+ -
628
+ -### Features
629
+ -
630
+ -* implemented emitImportedFiles flag ([#302](https://github.com/stephenh/ts-proto/issues/302)) ([16b4aca](https://github.com/stephenh/ts-proto/commit/16b4aca98aa9f0266734421314baaa5259e3f4e2)), closes [#294](https://github.com/stephenh/ts-proto/issues/294) [#283](https://github.com/stephenh/ts-proto/issues/283) [#283](https://github.com/stephenh/ts-proto/issues/283)
631
+ -
632
+ -## [1.80.1](https://github.com/stephenh/ts-proto/compare/v1.80.0...v1.80.1) (2021-05-18)
633
+ -
634
+ -
635
+ -### Bug Fixes
636
+ -
637
+ -* resolve import collisions for interfaces ([#300](https://github.com/stephenh/ts-proto/issues/300)) ([773d866](https://github.com/stephenh/ts-proto/commit/773d86686c15e9e831ad1c22405dee8d7251072e)), closes [#298](https://github.com/stephenh/ts-proto/issues/298)
638
+ -
639
+ -# [1.80.0](https://github.com/stephenh/ts-proto/compare/v1.79.8...v1.80.0) (2021-05-09)
640
+ -
641
+ -
642
+ -### Features
643
+ -
644
+ -* Bind service methods to class ([#290](https://github.com/stephenh/ts-proto/issues/290)) ([84060e2](https://github.com/stephenh/ts-proto/commit/84060e204d0e42688b8da85d434fe3d24788813b))
645
+ -
646
+ -## [1.79.8](https://github.com/stephenh/ts-proto/compare/v1.79.7...v1.79.8) (2021-05-09)
647
+ -
648
+ -
649
+ -### Bug Fixes
650
+ -
651
+ -* Fix integration test codegen script ([#291](https://github.com/stephenh/ts-proto/issues/291)) ([a51eee5](https://github.com/stephenh/ts-proto/commit/a51eee55d07c43b4b7cbe1ad2eb010f33c216a29))
652
+ -
653
+ -## [1.79.7](https://github.com/stephenh/ts-proto/compare/v1.79.6...v1.79.7) (2021-04-27)
654
+ -
655
+ -
656
+ -### Bug Fixes
657
+ -
658
+ -* add missing `boolean` to `DeepPartial` ([#287](https://github.com/stephenh/ts-proto/issues/287)) ([ba18380](https://github.com/stephenh/ts-proto/commit/ba1838069c6119516ceb1bfa5bc0242724e2b520))
659
+ -
660
+ -## [1.79.6](https://github.com/stephenh/ts-proto/compare/v1.79.5...v1.79.6) (2021-04-24)
661
+ -
662
+ -
663
+ -### Bug Fixes
664
+ -
665
+ -* Handle empty package ([#285](https://github.com/stephenh/ts-proto/issues/285)) ([5eadf92](https://github.com/stephenh/ts-proto/commit/5eadf9271fd9b00180593f3771266f3796a157bb))
666
+ -
667
+ -## [1.79.5](https://github.com/stephenh/ts-proto/compare/v1.79.4...v1.79.5) (2021-04-24)
668
+ -
669
+ -
670
+ -### Bug Fixes
671
+ -
672
+ -* Support repeated string enums. ([#284](https://github.com/stephenh/ts-proto/issues/284)) ([be9ecf7](https://github.com/stephenh/ts-proto/commit/be9ecf785952ab7515155cb495e8e0da76b93a38))
673
+ -
674
+ -## [1.79.4](https://github.com/stephenh/ts-proto/compare/v1.79.3...v1.79.4) (2021-04-23)
675
+ -
676
+ -
677
+ -### Bug Fixes
678
+ -
679
+ -* ignore `$type` field in `DeepPartial` ([#282](https://github.com/stephenh/ts-proto/issues/282)) ([6c5087e](https://github.com/stephenh/ts-proto/commit/6c5087ed489283bf7293a2cdbee71dd83484c68e))
680
+ -
681
+ -## [1.79.3](https://github.com/stephenh/ts-proto/compare/v1.79.2...v1.79.3) (2021-04-16)
682
+ -
683
+ -
684
+ -### Bug Fixes
685
+ -
686
+ -* Add long dep to ts-proto-descriptors. ([#275](https://github.com/stephenh/ts-proto/issues/275)) ([0d20827](https://github.com/stephenh/ts-proto/commit/0d20827dbae5195d30a3094c4ea5e98833909daa))
687
+ -
688
+ -## [1.79.2](https://github.com/stephenh/ts-proto/compare/v1.79.1...v1.79.2) (2021-04-07)
689
+ -
690
+ -
691
+ -### Bug Fixes
692
+ -
693
+ -* Use the right Metadata for grpc-web. Fixes [#270](https://github.com/stephenh/ts-proto/issues/270). ([#271](https://github.com/stephenh/ts-proto/issues/271)) ([640e645](https://github.com/stephenh/ts-proto/commit/640e645dd93cd0e04abac17de9899aa6a172ac37))
694
+ -
695
+ -## [1.79.1](https://github.com/stephenh/ts-proto/compare/v1.79.0...v1.79.1) (2021-04-04)
696
+ -
697
+ -
698
+ -### Bug Fixes
699
+ -
700
+ -* Build before releasing, fixes [#267](https://github.com/stephenh/ts-proto/issues/267). ([#269](https://github.com/stephenh/ts-proto/issues/269)) ([1f1bcfe](https://github.com/stephenh/ts-proto/commit/1f1bcfeca329e36c41c069b791e803ceb7cb975c))
701
+ -
702
+ -# [1.79.0](https://github.com/stephenh/ts-proto/compare/v1.78.1...v1.79.0) (2021-04-02)
703
+ -
704
+ -
705
+ -### Features
706
+ -
707
+ -* Add support for useDate=string ([#221](https://github.com/stephenh/ts-proto/issues/221)) ([d967a9a](https://github.com/stephenh/ts-proto/commit/d967a9afd6cf63fc7b156d506b8683b2f8fd6569))
708
+ -
709
+ -## [1.78.1](https://github.com/stephenh/ts-proto/compare/v1.78.0...v1.78.1) (2021-04-02)
710
+ -
711
+ -
712
+ -### Bug Fixes
713
+ -
714
+ -* Fix bad grpc.Metadata import. Fixes [#188](https://github.com/stephenh/ts-proto/issues/188). ([#259](https://github.com/stephenh/ts-proto/issues/259)) ([cd83733](https://github.com/stephenh/ts-proto/commit/cd83733bfe64ba637633282c3170011051dec41e))
715
+ -
716
+ -# [1.78.0](https://github.com/stephenh/ts-proto/compare/v1.77.0...v1.78.0) (2021-04-02)
717
+ -
718
+ -
719
+ -### Features
720
+ -
721
+ -* Add support for @grpc/grpc-js ([#252](https://github.com/stephenh/ts-proto/issues/252)) ([99a3d92](https://github.com/stephenh/ts-proto/commit/99a3d9218093c9aa1726f0c0b403cb0e95aac82e))
722
+ -
723
+ -## v1.77.0
724
+ -
725
+ -* Fix bytes initialization. Fixes #237. (willclarktech and webmaster128)
726
+ -* Better camelization for `FOO_BAR` to `fooBar`
727
+ -* Add `message.$type` fields and a type register. See #254. (aikoven)
728
+ -* Don't output long initialization for only types. Fixes #247.
729
+ -
730
+ -## v1.76.0
731
+ -
732
+ -* Always initial long when `forceLong=long`. Fixes #247. (daw1012345)
733
+ -
734
+ -## v1.75.0
735
+ -
736
+ -* Fix `stringEnums` combined with `outputEncodeMethods`
737
+ -
738
+ -## v1.74.0
739
+ -
740
+ -* Fix `@improbable-eng` imports to work with babel. (m!m)
741
+ -
742
+ -## v1.73.0
743
+ -
744
+ -* Fix compiler errors when strict is enabled. Fixes #235. (Graham)
745
+ -
746
+ -## v1.72.0
747
+ -
748
+ -* Revert the change in v1.70.0 that changed `useOptionals` handling of repeated fields.
749
+ -
750
+ -Before this PR, `useOptionals` was purely a type system tweak, and this PR introduced a
751
+ -change to decoding semantics, so it needs to be re-introduced under a separate flag to
752
+ -avoid being a breaking change.
753
+ -
754
+ -## v1.71.0
755
+ -
756
+ -* Add `constEnum` option to enable `const` enums. Fixes #230. (lxgreen)
757
+ -
758
+ -## v1.70.0
759
+ -
760
+ -* Update `useOptionals` to make repeated fields optional as well. Fixes #225. (i-dot)
761
+ -
762
+ -## v1.69.0
763
+ -
764
+ -* Actually fix #223.
765
+ -
766
+ -## v1.68.0
767
+ -
768
+ -* Allow setting `outputJsonMethods=true` while using `nestJs=true`. Fixes #223.
769
+ -
770
+ -## v1.67.0
771
+ -
772
+ -* Add `outputPartialMethods`. See #207. (mharsat)
773
+ -
774
+ -## v1.66.0
775
+ -
776
+ -* Allow `returnObservable=true` when not using grpc-web. See #220. (ardyfeb)
777
+ -* Fix `useDate=false` in encoding/JSON methods. See #211. (willclarktech)
778
+ -* Revert back to object spread instead of `Object.create` for primitive default values. Fixes #218.
779
+ -
780
+ -## v1.65.0
781
+ -
782
+ -* Fix `globalThis` compilation errors with messages called `Error`
783
+ -
784
+ -## v1.64.0
785
+ -
786
+ -* Don't put default values on the wire while encoding. Fixed #213. (webmaster128)
787
+ -
788
+ -## v1.63.0
789
+ -
790
+ -* Qualify `Object.create` with `globalThis` to avoid collisions with message names of `Object`. Fixes #216.
791
+ -
792
+ -## v1.62.0
793
+ -
794
+ -* Use `ts-proto-descriptors` package to read/write the `protoc` stdin `CodeGeneratorRequest` and stdout `CodeGeneratorResponse` messages.
795
+ -
796
+ -## v1.61.0
797
+ -
798
+ -* Use `Object.create` in `decode` to create messages so that `hasOwnProperty` will be false for fields that are using default values.
799
+ -
800
+ - In theory fields being default values is not supposed to be observable (on the wire at least), but protobuf itself specifically uses this for the `FieldDescriptorProto.oneofIndex` field.
801
+ -
802
+ -## v1.60.0
803
+ -
804
+ -* New `outputSchema` option to include the `*.proto` schema/metadata in the generated output file (Vilsol)
805
+ -
806
+ -## v1.59.0
807
+ -
808
+ -* Fix `DeepPartial` imports when services and messages are in separate files
809
+ -
810
+ -## v1.58.0
811
+ -
812
+ -* Fix JSON parsing of long wrapper values when forceLong != long (jessebutterfield)
813
+ -
814
+ -## v1.57.0
815
+ -
816
+ -* Accidental duplicate publish.
817
+ -
818
+ -## v1.56.0
819
+ -
820
+ -* Fix import collisions for imported-only symbols (stezu)
821
+ -
822
+ -## v1.55.0
823
+ -
824
+ -* Fix missing `fromTimestamp` import in generated code, fixes #200 (jessebutterfield)
825
+ -
826
+ -## v1.54.0
827
+ -
828
+ -* Fix `google.protobuf.BytesValue` in `fromPartial` & `fromJSON` (ebakoba)
829
+ -
830
+ -## v1.53.0
831
+ -
832
+ -* Fix typo for method names in service output (willclarktech)
833
+ -
834
+ -## v1.52.0
835
+ -
836
+ -* Fix `stringEnums=true` in `fromJSON` and `fromPartial` output (mharsat)
837
+ -
838
+ -## v1.51.0
839
+ -
840
+ -* Re-publish to fix previous publish error.
841
+ -
842
+ -## v1.50.0
843
+ -
844
+ -* Allow setting `addGrpcMetadata=true` w/o using NestJS (#188)
845
+ -
846
+ -## v1.49.0
847
+ -
848
+ -* Add `exportCommonSymbols` flag (defaults `true`) that, when `false` skips `export`ing a few common symbols (i.e. `DeepPartial`) that make it more likely for multiple generated files to be imported by `import * from ...` and not have import conflicts, i.e. for barrel imports.
849
+ -## v1.48.0
850
+ -
851
+ -* Tweak `atob` & `btoa` utility methods to prefix `Buffer` with `globalThis` to avoid issues in non-node envs. Fixes #77.
852
+ -
853
+ -## v1.47.0
854
+ -
855
+ -* Avoid import conflicts when an imported message name matches a locally-declared message name, see #36.
856
+ -
857
+ -## v1.46.0
858
+ -
859
+ -* Import `protobufjs/minimal` as a default import when using `esModuleInterop`
860
+ - * This should fix running in "type: module" ESM modules, see #181
861
+ -
862
+ -## v1.45.0
863
+ -
864
+ -* Add new `esModuleInterop` option to fix `Long` imports for projects that use `esModuleInterop: true` in their `tsconfig.json`.
865
+ -
866
+ -## v1.44.0
867
+ -
868
+ -* Fix `DeepPartial` when used with `Long`s (willclarktech)
869
+ -
870
+ -## v1.43.0
871
+ -
872
+ -* Polyfill `globalThis` for Node v10 support (willclarktech)
873
+ -
874
+ -## v1.42.1
875
+ -
876
+ -* Handle `@deprecated` when there are no other comments (ShakedH)
877
+ -
878
+ -## v1.42.0
879
+ -
880
+ -* Messages and fields that are marked as `deprecated` in `*.proto` files will have a `@deprecated` marker included in their JSDoc output (ShakedH)
881
+ -* Upgraded to the latest ts-poet
882
+ -
883
+ -## v1.41.1
884
+ -
885
+ -* [grpc-web] Remove `import =` to support not using synthetic default imports
886
+ -
887
+ -## v1.41.0
888
+ -
889
+ -* [grpc-web] Fix code generation errors introduced in v1.40.0
890
+ -* [grpc-web] Revert breaking change of `unaryTransport` / `invokeTransport`
891
+ - * Now client constructors take `transport` & `streamingTransport`, and streaming calls will use `streamingTransport` is set, and otherwise fallback on `transport`.
892
+ -* [grpc-web] Remove `rxjs` dependency unless streaming is actually used
893
+ -
894
+ -## v1.40.0
895
+ -
896
+ -* Add support for grpc-web streaming responses (PhilipMantrov)
897
+ -
898
+ -## v1.38.0
899
+ -
900
+ -* Add `unrecognizedEnum` option for disabling the `UNRECOGNIZED` enum values (ShakedH)
901
+ -
902
+ -## v1.37.0
903
+ -
904
+ -* Fix `forceLong` behavior when using wrapper types (Graham)
905
+ -* Add `rpcDataLoaderOptions` (Felix Mo)
906
+ -* Add `useDate` option to disable `java.util.Date` mapping (Graham)
907
+ - * This is primarily useful for NestJS which can only encode the original `google.protobuf.Timestamp` type
908
+ -* Add `stringEnums` option (Bastian Eicher)
909
+ - * Note this is not supported in the binary `encode`/`decode` methods yet
910
+ -* Avoid unnecessary `import =` usage (Graham)
911
+ -
912
+ -## v1.36.0
913
+ -
914
+ -* Add a `protobufPackage` exported `const` for metadata
915
+ -
916
+ -## v1.35.1
917
+ -
918
+ -* Fix maps of enums (@ahmadj-levelbenefits)
919
+ -
920
+ -## v1.35.0
921
+ -
922
+ -* Fix proto3 optional support
923
+ -
924
+ -## v1.34.0
925
+ -
926
+ -* Fix `blob`s in `fromPartial` and `toJSON`
927
+ -
928
+ -## v1.33.0
929
+ -
930
+ -* Automatically configure `protobuf.util.Long` when 64-bit numbers are used (fixes #78)
931
+ -
932
+ -## v1.32.0
933
+ -
934
+ -* Add support for the experimental proto3 `optional` keyword
935
+ -
936
+ -## v1.31.0
937
+ -
938
+ -* Fix `oneof=unions` not decoding default values correctly (@philikon)
939
+ -
940
+ -## v1.30.0
941
+ -
942
+ -* Accept cross-call metadata args in the `GrpcWebImpl` constructor
943
+ -* Accept `DeepPartial` request types for grpc-web calls
944
+ -
945
+ -## v1.29.0
946
+ -
947
+ -* Fix `toJSON` with maps of messages (#124 by @mscolnick)
948
+ -
949
+ -## v1.28.0
950
+ -
951
+ -* Use `enum` keyword for modeling keywords again
952
+ -* Fix maps of `google.protobuf.Timestamp`s
953
+ -* Fix name conflicts when using `google.type.Date`
954
+ -* Fix maps of bytes in JSON
955
+ -* Add initial support for grpc-web using the `@improbable-eng/grpc-web` runtime
956
+ -
957
+ -## v1.27.1
958
+ -
959
+ -* Extra release to ensure the build output is correct.
960
+ -
961
+ -## v1.27.0
962
+ -
963
+ -* Added a `addNestjsRestParameter=true` that adds a `...rest: any` parameter to use NestJS decorators like `@CurrentUser` (@ToonvanStrijp)
964
+ -
965
+ -## v1.26.0
966
+ -
967
+ -* Added a `oneof=properties` that generates `oneof`s as an Abstract Data Type (ADT) of each option (@philikon)
968
+ -
969
+ -## v1.25.0
970
+ -
971
+ -* Added a `useOptionals=true` option that makes non-scaler/oneof fields optional, i.e. `message?: Message` instead of `message: Message | undefined` (@philikon)
972
+ -
973
+ -## v1.24.0
974
+ -
975
+ -* Messages no longer use a base prototype to get default values. (@cliedeman)
976
+ -
977
+ -## v1.23.0
978
+ -
979
+ -* Added a `env=both` option and made that the default
980
+ -
981
+ - This restores the pre-1.22.0 behavior that bytes are `Uint8Array` so that the `Buffer` support is not a breaking change. Users have to opt-in with `env=node`.
982
+ -
983
+ - Also fixes a bug introduced in 1.22.0 that output an `as Buffer` without first checking `env=node`.
984
+ -
985
+ -## v1.22.0
986
+ -
987
+ -* Added a `env=node`/`env=browser` option that defaults to `env=node`
988
+ -
989
+ - Currently `env=node` only changes the types of `bytes` from `Uint8Array` to `Buffer`, as a convenience for Node programming where `Buffer` (which is the defacto subclass of `Uint8Array`) is more widely used (@dolsup)
990
+ -
991
+ -## v1.21.5
992
+ -
993
+ -* Drop drop falsey values in maps in `decode` and `fromPartial`. Fixes #79. (@timostamm)
994
+ -
995
+ -## v1.21.4
996
+ -
997
+ -* Repeated fields cannot be optional, fixes #80 (@philikon)
998
+ -
999
+ -## v1.21.2 and v1.21.3
1000
+ -
1001
+ -* Use `globalThis.Error` instead of `global.Error` for browsers, fix for #70
1002
+ -
1003
+ -## v1.21.1
1004
+ -
1005
+ -* Fix NestJS decorator for only-stream-in / only-stream-out methods
1006
+ -
1007
+ -## v1.21.0
1008
+ -
1009
+ -* Allow `Message.decode` methods to take a `Uint8Array` (or `Buffer`) directly instead of having to pass a `Reader`
1010
+ -
1011
+ -## v1.20.2
1012
+ -
1013
+ -* Another fix for NestJS-related `PACKAGE_NAME` consts
1014
+ -
1015
+ -## v1.20.1
1016
+ -
1017
+ -* Fix for NestJS-related `PACKAGE_NAME` consts
1018
+ -
1019
+ -## v1.20.0
1020
+ -
1021
+ -* Support for NestJS streams
1022
+ -
1023
+ -## v1.19.0
1024
+ -
1025
+ -* Added support for generating [NestJS](https://docs.nestjs.com/microservices/grpc) friendly output (thanks Ian Gregson!)
1026
+ - * See the readme for new options `nestJs`, `lowerCaseServiceMethods`, `returnObservable`, etc.
1027
+ diff --git a/node_modules/ts-proto/README.markdown b/node_modules/ts-proto/README.markdown
1028
+ index de04740..5b527c2 100644
1029
+ --- a/node_modules/ts-proto/README.markdown
1030
+ +++ b/node_modules/ts-proto/README.markdown
1031
+ @@ -381,6 +381,8 @@ Generated code will be placed in the Gradle build directory.
1032
+
1033
+ - With `--ts_proto_opt=outputServices=false`, or `=none`, ts-proto will output NO service definitions.
1034
+
1035
+ +- With `--ts_proto_opt=useAsyncIterable=true`, the generated services will use `AsyncIterable` instead of `Observable`.
1036
+ +
1037
+ - With `--ts_proto_opt=emitImportedFiles=false`, ts-proto will not emit `google/protobuf/*` files unless you explicit add files to `protoc` like this
1038
+ `protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto my_message.proto google/protobuf/duration.proto`
1039
+
1040
+ diff --git a/node_modules/ts-proto/build/generate-async-iterable.js b/node_modules/ts-proto/build/generate-async-iterable.js
1041
+ new file mode 100644
1042
+ index 0000000..183f447
1043
+ --- /dev/null
1044
+ +++ b/node_modules/ts-proto/build/generate-async-iterable.js
1045
+ @@ -0,0 +1,46 @@
1046
+ +"use strict";
1047
+ +Object.defineProperty(exports, "__esModule", { value: true });
1048
+ +exports.generateDecodeTransform = exports.generateEncodeTransform = void 0;
1049
+ +const ts_poet_1 = require("ts-poet");
1050
+ +/** Creates a function to transform a message Source to a Uint8Array Source. */
1051
+ +function generateEncodeTransform(fullName) {
1052
+ + return ts_poet_1.code `
1053
+ + // encodeTransform encodes a source of message objects.
1054
+ + // Transform<${fullName}, Uint8Array>
1055
+ + async *encodeTransform(
1056
+ + source: AsyncIterable<${fullName} | ${fullName}[]> | Iterable<${fullName} | ${fullName}[]>
1057
+ + ): AsyncIterable<Uint8Array> {
1058
+ + for await (const pkt of source) {
1059
+ + if (Array.isArray(pkt)) {
1060
+ + for (const p of pkt) {
1061
+ + yield* [${fullName}.encode(p).finish()]
1062
+ + }
1063
+ + } else {
1064
+ + yield* [${fullName}.encode(pkt).finish()]
1065
+ + }
1066
+ + }
1067
+ + }
1068
+ + `;
1069
+ +}
1070
+ +exports.generateEncodeTransform = generateEncodeTransform;
1071
+ +/** Creates a function to transform a Uint8Array Source to a message Source. */
1072
+ +function generateDecodeTransform(fullName) {
1073
+ + return ts_poet_1.code `
1074
+ + // decodeTransform decodes a source of encoded messages.
1075
+ + // Transform<Uint8Array, ${fullName}>
1076
+ + async *decodeTransform(
1077
+ + source: AsyncIterable<Uint8Array | Uint8Array[]> | Iterable<Uint8Array | Uint8Array[]>
1078
+ + ): AsyncIterable<${fullName}> {
1079
+ + for await (const pkt of source) {
1080
+ + if (Array.isArray(pkt)) {
1081
+ + for (const p of pkt) {
1082
+ + yield* [${fullName}.decode(p)]
1083
+ + }
1084
+ + } else {
1085
+ + yield* [${fullName}.decode(pkt)]
1086
+ + }
1087
+ + }
1088
+ + }
1089
+ + `;
1090
+ +}
1091
+ +exports.generateDecodeTransform = generateDecodeTransform;
1092
+ diff --git a/node_modules/ts-proto/build/generate-grpc-web.js b/node_modules/ts-proto/build/generate-grpc-web.js
1093
+ index dc8bee7..3def359 100644
1094
+ --- a/node_modules/ts-proto/build/generate-grpc-web.js
1095
+ +++ b/node_modules/ts-proto/build/generate-grpc-web.js
1096
+ @@ -8,9 +8,8 @@ const grpc = ts_poet_1.imp('grpc@@improbable-eng/grpc-web');
1097
+ const share = ts_poet_1.imp('share@rxjs/operators');
1098
+ const take = ts_poet_1.imp('take@rxjs/operators');
1099
+ const BrowserHeaders = ts_poet_1.imp('BrowserHeaders@browser-headers');
1100
+ -const Observable = ts_poet_1.imp('Observable@rxjs');
1101
+ /** Generates a client that uses the `@improbable-web/grpc-web` library. */
1102
+ -function generateGrpcClientImpl(ctx, fileDesc, serviceDesc) {
1103
+ +function generateGrpcClientImpl(ctx, _fileDesc, serviceDesc) {
1104
+ const chunks = [];
1105
+ // Define the FooServiceImpl class
1106
+ chunks.push(ts_poet_1.code `
1107
+ @@ -134,16 +133,16 @@ function addGrpcWebMisc(ctx, hasStreamingMethods) {
1108
+ interface UnaryMethodDefinitionishR extends ${grpc}.UnaryMethodDefinition<any, any> { requestStream: any; responseStream: any; }
1109
+ `);
1110
+ chunks.push(ts_poet_1.code `type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;`);
1111
+ - chunks.push(generateGrpcWebRpcType(options.returnObservable, hasStreamingMethods));
1112
+ - chunks.push(generateGrpcWebImpl(options.returnObservable, hasStreamingMethods));
1113
+ + chunks.push(generateGrpcWebRpcType(ctx, options.returnObservable, hasStreamingMethods));
1114
+ + chunks.push(generateGrpcWebImpl(ctx, options.returnObservable, hasStreamingMethods));
1115
+ return ts_poet_1.joinCode(chunks, { on: '\n\n' });
1116
+ }
1117
+ exports.addGrpcWebMisc = addGrpcWebMisc;
1118
+ /** Makes an `Rpc` interface to decouple from the low-level grpc-web `grpc.invoke and grpc.unary`/etc. methods. */
1119
+ -function generateGrpcWebRpcType(returnObservable, hasStreamingMethods) {
1120
+ +function generateGrpcWebRpcType(ctx, returnObservable, hasStreamingMethods) {
1121
+ const chunks = [];
1122
+ chunks.push(ts_poet_1.code `interface Rpc {`);
1123
+ - const wrapper = returnObservable ? Observable : 'Promise';
1124
+ + const wrapper = returnObservable ? types_1.observableType(ctx) : 'Promise';
1125
+ chunks.push(ts_poet_1.code `
1126
+ unary<T extends UnaryMethodDefinitionish>(
1127
+ methodDesc: T,
1128
+ @@ -157,14 +156,14 @@ function generateGrpcWebRpcType(returnObservable, hasStreamingMethods) {
1129
+ methodDesc: T,
1130
+ request: any,
1131
+ metadata: grpc.Metadata | undefined,
1132
+ - ): ${Observable}<any>;
1133
+ + ): ${types_1.observableType(ctx)}<any>;
1134
+ `);
1135
+ }
1136
+ chunks.push(ts_poet_1.code `}`);
1137
+ return ts_poet_1.joinCode(chunks, { on: '\n' });
1138
+ }
1139
+ /** Implements the `Rpc` interface by making calls using the `grpc.unary` method. */
1140
+ -function generateGrpcWebImpl(returnObservable, hasStreamingMethods) {
1141
+ +function generateGrpcWebImpl(ctx, returnObservable, hasStreamingMethods) {
1142
+ const options = ts_poet_1.code `
1143
+ {
1144
+ transport?: grpc.TransportFactory,
1145
+ @@ -185,13 +184,13 @@ function generateGrpcWebImpl(returnObservable, hasStreamingMethods) {
1146
+ }
1147
+ `);
1148
+ if (returnObservable) {
1149
+ - chunks.push(createObservableUnaryMethod());
1150
+ + chunks.push(createObservableUnaryMethod(ctx));
1151
+ }
1152
+ else {
1153
+ chunks.push(createPromiseUnaryMethod());
1154
+ }
1155
+ if (hasStreamingMethods) {
1156
+ - chunks.push(createInvokeMethod());
1157
+ + chunks.push(createInvokeMethod(ctx));
1158
+ }
1159
+ chunks.push(ts_poet_1.code `}`);
1160
+ return ts_poet_1.joinCode(chunks, { trim: false });
1161
+ @@ -230,13 +229,13 @@ function createPromiseUnaryMethod() {
1162
+ }
1163
+ `;
1164
+ }
1165
+ -function createObservableUnaryMethod() {
1166
+ +function createObservableUnaryMethod(ctx) {
1167
+ return ts_poet_1.code `
1168
+ unary<T extends UnaryMethodDefinitionish>(
1169
+ methodDesc: T,
1170
+ _request: any,
1171
+ metadata: grpc.Metadata | undefined
1172
+ - ): ${Observable}<any> {
1173
+ + ): ${types_1.observableType(ctx)}<any> {
1174
+ const request = { ..._request, ...methodDesc.requestType };
1175
+ const maybeCombinedMetadata =
1176
+ metadata && this.options.metadata
1177
+ @@ -262,13 +261,13 @@ function createObservableUnaryMethod() {
1178
+ }
1179
+ `;
1180
+ }
1181
+ -function createInvokeMethod() {
1182
+ +function createInvokeMethod(ctx) {
1183
+ return ts_poet_1.code `
1184
+ invoke<T extends UnaryMethodDefinitionish>(
1185
+ methodDesc: T,
1186
+ _request: any,
1187
+ metadata: grpc.Metadata | undefined
1188
+ - ): ${Observable}<any> {
1189
+ + ): ${types_1.observableType(ctx)}<any> {
1190
+ // Status Response Codes (https://developers.google.com/maps-booking/reference/grpc-api/status_codes)
1191
+ const upStreamCodes = [2, 4, 8, 9, 10, 13, 14, 15];
1192
+ const DEFAULT_TIMEOUT_TIME: number = 3_000;
1193
+ diff --git a/node_modules/ts-proto/build/generate-services.js b/node_modules/ts-proto/build/generate-services.js
1194
+ index 9dcfaec..6ba61e6 100644
1195
+ --- a/node_modules/ts-proto/build/generate-services.js
1196
+ +++ b/node_modules/ts-proto/build/generate-services.js
1197
+ @@ -21,7 +21,7 @@ const Reader = ts_poet_1.imp('Reader@protobufjs/minimal');
1198
+ */
1199
+ function generateService(ctx, fileDesc, sourceInfo, serviceDesc) {
1200
+ var _a;
1201
+ - const { options, utils } = ctx;
1202
+ + const { options } = ctx;
1203
+ const chunks = [];
1204
+ utils_1.maybeAddComment(sourceInfo, chunks, (_a = serviceDesc.options) === null || _a === void 0 ? void 0 : _a.deprecated);
1205
+ const maybeTypeVar = options.context ? `<${main_1.contextTypeVar}>` : '';
1206
+ @@ -89,12 +89,22 @@ function generateRegularRpcMethod(ctx, fileDesc, serviceDesc, methodDesc) {
1207
+ decode = ts_poet_1.code `data => ${utils.fromTimestamp}(${rawOutputType}.decode(new ${Reader}(data)))`;
1208
+ }
1209
+ if (methodDesc.clientStreaming) {
1210
+ - encode = ts_poet_1.code `request.pipe(${ts_poet_1.imp('map@rxjs/operators')}(request => ${encode}))`;
1211
+ + if (options.useAsyncIterable) {
1212
+ + encode = ts_poet_1.code `${rawInputType}.encodeTransform(request)`;
1213
+ + }
1214
+ + else {
1215
+ + encode = ts_poet_1.code `request.pipe(${ts_poet_1.imp('map@rxjs/operators')}(request => ${encode}))`;
1216
+ + }
1217
+ }
1218
+ let returnVariable;
1219
+ if (options.returnObservable || methodDesc.serverStreaming) {
1220
+ returnVariable = 'result';
1221
+ - decode = ts_poet_1.code `result.pipe(${ts_poet_1.imp('map@rxjs/operators')}(${decode}))`;
1222
+ + if (options.useAsyncIterable) {
1223
+ + decode = ts_poet_1.code `${rawOutputType}.decodeTransform(result)`;
1224
+ + }
1225
+ + else {
1226
+ + decode = ts_poet_1.code `result.pipe(${ts_poet_1.imp('map@rxjs/operators')}(${decode}))`;
1227
+ + }
1228
+ }
1229
+ else {
1230
+ returnVariable = 'promise';
1231
+ @@ -168,7 +178,7 @@ function generateServiceClientImpl(ctx, fileDesc, serviceDesc) {
1232
+ }
1233
+ exports.generateServiceClientImpl = generateServiceClientImpl;
1234
+ /** We've found a BatchXxx method, create a synthetic GetXxx method that calls it. */
1235
+ -function generateBatchingRpcMethod(ctx, batchMethod) {
1236
+ +function generateBatchingRpcMethod(_ctx, batchMethod) {
1237
+ const { methodDesc, singleMethodName, inputFieldName, inputType, outputFieldName, outputType, mapType, uniqueIdentifier, } = batchMethod;
1238
+ utils_1.assertInstanceOf(methodDesc, utils_1.FormattedMethodDescriptor);
1239
+ // Create the `(keys) => ...` lambda we'll pass to the DataLoader constructor
1240
+ @@ -256,7 +266,7 @@ function generateRpcType(ctx, hasStreamingMethods) {
1241
+ const maybeContextParam = options.context ? 'ctx: Context,' : '';
1242
+ const methods = [[ts_poet_1.code `request`, ts_poet_1.code `Uint8Array`, ts_poet_1.code `Promise<Uint8Array>`]];
1243
+ if (hasStreamingMethods) {
1244
+ - const observable = ts_poet_1.imp('Observable@rxjs');
1245
+ + const observable = types_1.observableType(ctx);
1246
+ methods.push([ts_poet_1.code `clientStreamingRequest`, ts_poet_1.code `${observable}<Uint8Array>`, ts_poet_1.code `Promise<Uint8Array>`]);
1247
+ methods.push([ts_poet_1.code `serverStreamingRequest`, ts_poet_1.code `Uint8Array`, ts_poet_1.code `${observable}<Uint8Array>`]);
1248
+ methods.push([
1249
+ diff --git a/node_modules/ts-proto/build/main.js b/node_modules/ts-proto/build/main.js
1250
+ index 1064b3a..6f5f063 100644
1251
+ --- a/node_modules/ts-proto/build/main.js
1252
+ +++ b/node_modules/ts-proto/build/main.js
1253
+ @@ -9,6 +9,7 @@ const case_1 = require("./case");
1254
+ const generate_nestjs_1 = require("./generate-nestjs");
1255
+ const generate_services_1 = require("./generate-services");
1256
+ const generate_grpc_web_1 = require("./generate-grpc-web");
1257
+ +const generate_async_iterable_1 = require("./generate-async-iterable");
1258
+ const enums_1 = require("./enums");
1259
+ const visit_1 = require("./visit");
1260
+ const options_1 = require("./options");
1261
+ @@ -80,6 +81,10 @@ function generateFile(ctx, fileDesc) {
1262
+ staticMembers.push(generateEncode(ctx, fullName, message));
1263
+ staticMembers.push(generateDecode(ctx, fullName, message));
1264
+ }
1265
+ + if (options.useAsyncIterable) {
1266
+ + staticMembers.push(generate_async_iterable_1.generateEncodeTransform(fullName));
1267
+ + staticMembers.push(generate_async_iterable_1.generateDecodeTransform(fullName));
1268
+ + }
1269
+ if (options.outputJsonMethods) {
1270
+ staticMembers.push(generateFromJson(ctx, fullName, fullTypeName, message));
1271
+ staticMembers.push(generateToJson(ctx, fullName, fullTypeName, message));
1272
+ diff --git a/node_modules/ts-proto/build/options.js b/node_modules/ts-proto/build/options.js
1273
+ index 3b1afed..811aea1 100644
1274
+ --- a/node_modules/ts-proto/build/options.js
1275
+ +++ b/node_modules/ts-proto/build/options.js
1276
+ @@ -65,6 +65,7 @@ function defaultOptions() {
1277
+ onlyTypes: false,
1278
+ emitImportedFiles: true,
1279
+ useExactTypes: true,
1280
+ + useAsyncIterable: false,
1281
+ unknownFields: false,
1282
+ usePrototypeForDefaults: false,
1283
+ useJsonWireFormat: false,
1284
+ diff --git a/node_modules/ts-proto/build/types.js b/node_modules/ts-proto/build/types.js
1285
+ index ac9d7b9..fe5a1d5 100644
1286
+ --- a/node_modules/ts-proto/build/types.js
1287
+ +++ b/node_modules/ts-proto/build/types.js
1288
+ @@ -1,6 +1,6 @@
1289
+ "use strict";
1290
+ Object.defineProperty(exports, "__esModule", { value: true });
1291
+ -exports.detectBatchMethod = exports.responsePromiseOrObservable = exports.responseObservable = exports.responsePromise = exports.responseType = exports.requestType = exports.rawRequestType = exports.detectMapType = exports.toTypeName = exports.getEnumMethod = exports.messageToTypeName = exports.wrapperTypeName = exports.valueTypeName = exports.isEmptyType = exports.isLongValueType = exports.isStructTypeName = exports.isStructType = exports.isListValueTypeName = exports.isListValueType = exports.isFieldMaskTypeName = exports.isFieldMaskType = exports.isBytesValueType = exports.isAnyValueTypeName = exports.isAnyValueType = exports.isValueType = exports.isTimestamp = exports.isObjectId = exports.isMapType = exports.isWholeNumber = exports.isLong = exports.isRepeated = exports.isWithinOneOfThatShouldBeUnion = exports.isWithinOneOf = exports.isEnum = exports.isMessage = exports.isBytes = exports.isPrimitive = exports.isOptionalProperty = exports.isScalar = exports.createTypeMap = exports.notDefaultCheck = exports.defaultValue = exports.packedType = exports.toReaderCall = exports.basicTypeName = exports.basicLongWireType = exports.basicWireType = void 0;
1292
+ +exports.detectBatchMethod = exports.responsePromiseOrObservable = exports.responseObservable = exports.responsePromise = exports.responseType = exports.requestType = exports.observableType = exports.rawRequestType = exports.detectMapType = exports.toTypeName = exports.getEnumMethod = exports.messageToTypeName = exports.wrapperTypeName = exports.valueTypeName = exports.isEmptyType = exports.isLongValueType = exports.isStructTypeName = exports.isStructType = exports.isListValueTypeName = exports.isListValueType = exports.isFieldMaskTypeName = exports.isFieldMaskType = exports.isBytesValueType = exports.isAnyValueTypeName = exports.isAnyValueType = exports.isValueType = exports.isTimestamp = exports.isObjectId = exports.isMapType = exports.isWholeNumber = exports.isLong = exports.isRepeated = exports.isWithinOneOfThatShouldBeUnion = exports.isWithinOneOf = exports.isEnum = exports.isMessage = exports.isBytes = exports.isPrimitive = exports.isOptionalProperty = exports.isScalar = exports.createTypeMap = exports.notDefaultCheck = exports.defaultValue = exports.packedType = exports.toReaderCall = exports.basicTypeName = exports.basicLongWireType = exports.basicWireType = void 0;
1293
+ const ts_proto_descriptors_1 = require("ts-proto-descriptors");
1294
+ const ts_poet_1 = require("ts-poet");
1295
+ const options_1 = require("./options");
1296
+ @@ -609,13 +609,20 @@ function rawRequestType(ctx, methodDesc) {
1297
+ return messageToTypeName(ctx, methodDesc.inputType);
1298
+ }
1299
+ exports.rawRequestType = rawRequestType;
1300
+ +function observableType(ctx) {
1301
+ + if (ctx.options.useAsyncIterable) {
1302
+ + return ts_poet_1.code `AsyncIterable`;
1303
+ + }
1304
+ + return ts_poet_1.code `${ts_poet_1.imp('Observable@rxjs')}`;
1305
+ +}
1306
+ +exports.observableType = observableType;
1307
+ function requestType(ctx, methodDesc, partial = false) {
1308
+ let typeName = rawRequestType(ctx, methodDesc);
1309
+ if (partial) {
1310
+ typeName = ts_poet_1.code `${ctx.utils.DeepPartial}<${typeName}>`;
1311
+ }
1312
+ if (methodDesc.clientStreaming) {
1313
+ - return ts_poet_1.code `${ts_poet_1.imp('Observable@rxjs')}<${typeName}>`;
1314
+ + return ts_poet_1.code `${observableType(ctx)}<${typeName}>`;
1315
+ }
1316
+ return typeName;
1317
+ }
1318
+ @@ -629,7 +636,7 @@ function responsePromise(ctx, methodDesc) {
1319
+ }
1320
+ exports.responsePromise = responsePromise;
1321
+ function responseObservable(ctx, methodDesc) {
1322
+ - return ts_poet_1.code `${ts_poet_1.imp('Observable@rxjs')}<${responseType(ctx, methodDesc)}>`;
1323
+ + return ts_poet_1.code `${observableType(ctx)}<${responseType(ctx, methodDesc)}>`;
1324
+ }
1325
+ exports.responseObservable = responseObservable;
1326
+ function responsePromiseOrObservable(ctx, methodDesc) {
1327
+ diff --git a/node_modules/ts-proto/build/utils.js b/node_modules/ts-proto/build/utils.js
1328
+ index 0d89384..3f04a76 100644
1329
+ --- a/node_modules/ts-proto/build/utils.js
1330
+ +++ b/node_modules/ts-proto/build/utils.js
1331
+ @@ -175,7 +175,7 @@ function impProto(options, module, type) {
1332
+ return ts_poet_1.imp('t:' + importString);
1333
+ }
1334
+ else {
1335
+ - return ts_poet_1.imp(importString);
1336
+ + return ts_poet_1.imp(importString + '.js');
1337
+ }
1338
+ }
1339
+ exports.impProto = impProto;