Skip to content

Releases: thesayyn/protoc-gen-ts

0.6.0

14 Sep 18:27
Compare
Choose a tag to compare

Messages now have a method called fromObject which can coerce json data with the support for mapping non-scalar values.

Features

  • Support for message.fromObject. see #85

0.4.0

11 Aug 08:12
Compare
Choose a tag to compare

Fixes

  • Cast Map.deserializeBinary to any to workaround an upstream issue at @types/google-protobuf

Type everything!

07 Jul 10:33
Compare
Choose a tag to compare

With this release, we have covered every inch of the generated code to be type-safe.

In #48, we introduced a new union type, that ensures one of the "one-of-fields" is present at most.
In #72, we introduced a new way to implement grpc services and fully typed service clients.

We introduced a few breaking changes to the generated service classes that would require some small changes in your codebase to comply with the breaking changes.

Breaking changes

  • interface I{ServiceName}Service is not generated anymore. Use typeof Unimplemented{ServiceName}Service.definition as a replacement.

  • interface I{ServiceName}Server is not generated anymore. Use Unimplemented{ServiceName}Service abstract class and extend your concrete service implementation from it. For further information see rpc.

  • constant {ServiceName} is not generated anymore. Use Unimplemented{ServiceName}Service.definition as a replacement.

Features

  • {ServiceName}Client is now fully typed. Including the rpcs inside the service not matter client_streaming, server_streaming, bidi or unary.