This release includes the following:
🚨 Breaking Changes 🚨
- #296 - If you have been using
PlainMessageorPartialMessageto 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.Anyby @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 withv0.3.0as 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.isfunction by @smaye81 in #294 - Make wrappers more lenient by @timostamm in #291
Bugfixes
- Fix map equality by @calebdoxsey in #305
- Make
tsNocheckwork correctly by @yukukotani in #275
New Contributors
@calebdoxsey made their first contribution in #305
@yukukotani made their first contributions in #275 and #279