Skip to content

Releases: timostamm/protobuf-ts

v2.7.0

16 Jun 08:39
Compare
Choose a tag to compare

New Features:

  • Added force_disable_services option to protobuf-ts/plugin for disabling service metadata generation, see #268
    Thanks to @ColinLaws for the contribution!

Bug fixes:

  • Guard access of response.type to support Cloudflare Workers, see #321
    Thanks to @mikeylemmon for the fix!

  • find protoc in path also in windows, see #334
    Thanks to @tannera for the fix!

  • Update baseURL in example, see #333
    Thanks to @GRB3NW for the fix!

This release is available on the BSR.

v2.6.0

16 May 12:58
Compare
Choose a tag to compare

New Features:

  • Add ability to pass grpc-js MetadataOptions to GrpcOptions in @protobuf-ts/grpc-transport #261
    Thanks to @kskalski for the contribution!

  • export createDefinition from @protobuf-ts/grpc-backend #307
    Thanks to @eyalpost for the contribution!

  • Treat null values the same as undefined when generating protobuf messages #299
    Thanks to @markh123 for the contribution!

  • Use Promise as return type for call.then() #308

This release is available on the BSR.

v2.5.0

23 Apr 14:35
Compare
Choose a tag to compare

New Features:

  • Added disable_service_types option for disabling service metadata generation, see #268
    Thanks to @ColinLaws for the contribution!

  • Change dependency behavior for well-known types.
    If you have been using the option generate_dependencies, you can probably remove it now!
    See #258 for details.

Bug fixes:

  • Fix line breaks in header comments, see #289
    Thanks to @RyotaSugawara for the fix!
  • Avoid cyclic import in binary format contract, see #271
  • Use type import in grpc server, see #264

Project maintenance:

  • Support go 1.18 in build #263

This release is available on the BSR.

v2.4.0

25 Mar 16:23
Compare
Choose a tag to compare

New Features:

  • Add option eslint_disable, which generates a comment /* eslint-disable */ at the
    top of each file, see #256

Bug fixes:

  • Make sure to add non-default longtype to map field info, see #260

This release is available on the BSR.

v2.3.0

21 Mar 20:27
Compare
Choose a tag to compare

New Features:

  • Add option for preserving original proto field names in generated interfaces. #250.
    Thanks to @kskalksi for the contribution.

This release is available on the BSR.

v2.2.4

18 Mar 13:15
Compare
Choose a tag to compare

New Features:

  • Relax angular version constraints in runtime-angular, see #246

This release is available on the BSR.

v2.2.3

15 Mar 19:02
Compare
Choose a tag to compare

Bug fixes:

  • Improved compatibility of grpcweb-transport with TypeScript >= 4.1.5 and skipLibCheck=false,
    see #248

This release is available on the BSR.

v2.2.2

24 Jan 12:08
Compare
Choose a tag to compare

New Features:

  • For generic servers, support custom contexts, see #201.
    Thanks to @be9 for the contribution.

This release is available on the BSR.

v2.2.1

11 Jan 17:15
Compare
Choose a tag to compare

Bug fixes:

  • server_generic option stopped working, see #202.
    Thanks to @sessfeld for the contribution.

This release is available on the BSR.

v2.2.0

11 Jan 09:38
Compare
Choose a tag to compare

New features:

  • Add the plugin option ts_nocheck to support most strict compiler options in userspace, see #152.
  • The new plugin option add_pb_suffix adds the suffix _pb to all file names, see #186.
  • Add service/method name to RpcError, see #197
    Thanks to @jcready for the contribution.
  • Support JavaScript output via plugin option output_javascript, see #200.

Bug fixes:

  • Use TextDecoder API for decoding UTF-8 from binary data, see #184.
    We have been using protobuf.js' algorithm to decode UTF-8, but it has had bugs
    in the past. For best possible compatibility, we have switched to the TextDecoder API.
    See MANUAL for details.

This release is available on the BSR.