This release includes the following:
🚨 Breaking Changes 🚨
-
#233 - If you have been inspecting fields (
DescField) from createDescriptorSet(), you will need to update your code to use the newfieldKinddiscriminator. Thekindproperty no longer contains values such asmap_fieldandmessage_fieldfor their respective types ofDescField. Instead, a new type has been added namedfieldKind, which allows you to further identify the kind of field aDescFieldrepresents (map,enum,message, etc.) -
#228 - If you have been using
createEcmaScriptPluginto create your own plugin, the signature has changed. Previously, the function accepted a single generator function for generating your output files. This has been split up into separate functions for TypeScript (generateTs), JavaScript (generateJs), and declaration files (generateDts). See the plugin docs for more information on usage.
Enhancements
- Add plugin example for creating a Twirp client by @smaye81 #250
- Export printable type by @fubhy #255
- Extend documentation for PlainMessage and PartialMessage by @timostamm #248
- Add convenience functions for retrieving custom options by @smaye81 #244
- Clean up descriptor discrimination by @timostamm #233
- Add a plugin option to keep empty files by @timostamm #229
- Add the option to transpile target files by @smaye81 #228