This release switches the code generator from Golang to a TypeScript implementation. There are breaking changes in the generated code and in the reflection API.
New features
createDescriptorSet()provides a nice way to inspect a set of google.protobuf.FileDescriptorProto- @bufbuild/protoplugin provides an early version of an API to write your own code generator plugins in TypeScript
API changes
class TypeRegistryis deprecated. Please usecreateRegistry()instead.class DescriptorRegistryhas been replaced bycreateRegistryFromDescriptors(). The old version is still available asclass LegacyDescriptorRegistryclass DescriptorSethas been replaced bycreateDescriptorSet(). The old version is still available asclass LegacyDescriptorSet.- The signatures of
makeEnum(),setEnumType()andmakeEnumType()have changed slightly for improved enum value names.