v0.2.0
Pre-releaseThis 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 newfieldKind
discriminator. Thekind
property no longer contains values such asmap_field
andmessage_field
for their respective types ofDescField
. Instead, a new type has been added namedfieldKind
, which allows you to further identify the kind of field aDescField
represents (map
,enum
,message
, etc.) -
#228 - If you have been using
createEcmaScriptPlugin
to 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