github bufbuild/protobuf-es v0.3.0

latest releases: v2.10.2, v2.10.1, v2.10.0...
pre-release3 years ago

This release includes the following:

🚨 Breaking Changes 🚨

  • #296 - If you have been using PlainMessage or PartialMessage to create message types, you may need to change your code if you are using generics. For example:
-type WrapperFn<T extends Message> = (
   msg: PartialMessage<T>
) => void;

+type WrapperFn<T extends Message<T>> = (
   msg: PartialMessage<T>
) => void;

Enhancements

  • Add a toJSON method to messages by @smaye81 in #306
  • Add an unpack function to google.protobuf.Any by @smaye81 in #303
  • Make generated imports look more normal by @dimitropoulos in #298
    ⚠️ Note that as a result of this PR, import statements in your generated code will contain diffs when generated with v0.3.0 as the import statements will have spaces added. For example:
    - import {FooMessage} from './foo_message_pb.js';
    + import { FooMessage } from './foo_message_pb.js';
  • Add print function with tagged template literal by @yukukotani in #279
  • Enhance the Any.is function by @smaye81 in #294
  • Make wrappers more lenient by @timostamm in #291

Bugfixes

New Contributors

@calebdoxsey made their first contribution in #305
@yukukotani made their first contributions in #275 and #279

Don't miss a new protobuf-es release

NewReleases is sending notifications on new releases.