github bufbuild/protobuf-es v0.0.9

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

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 TypeRegistry is deprecated. Please use createRegistry() instead.
  • class DescriptorRegistry has been replaced by createRegistryFromDescriptors(). The old version is still available as class LegacyDescriptorRegistry
  • class DescriptorSet has been replaced by createDescriptorSet(). The old version is still available as class LegacyDescriptorSet.
  • The signatures of makeEnum(), setEnumType() and makeEnumType() have changed slightly for improved enum value names.

Changes in the generated code

  • The code generator can no longer be installed via go.
  • The logic for stripping shared enum prefixes (see docs) has improved for some edge cases, and enum value names in those edge cases will differ.
  • There are other minor changes, but they are not breaking. See #159 for details.

Don't miss a new protobuf-es release

NewReleases is sending notifications on new releases.