Skip to content

Releases: bufbuild/protobuf-es

v0.0.10

28 Jul 16:56
da79b21
Compare
Choose a tag to compare
v0.0.10 Pre-release
Pre-release

This release fixes two bugs:

  • Respect json_name in messages created from a descriptor set (#171)
  • call process.exit only after write completes (#172)

v0.0.9

22 Jul 14:12
d7e409a
Compare
Choose a tag to compare
v0.0.9 Pre-release
Pre-release

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.

v0.0.8

12 Jul 14:50
7f91baf
Compare
Choose a tag to compare
v0.0.8 Pre-release
Pre-release

This release fixes a compatibility issue with webpack v4 and below (#138).

v0.0.7

27 Jun 13:37
f919326
Compare
Choose a tag to compare
v0.0.7 Pre-release
Pre-release

This release fixes a bug where transpilation of projects using @bufbuild/protobuf would error when using TypeScript target lower than ES2020, because we left a bigint literal in the source that did not need to be there.

  • Remove bigint literal in google.protobuf.Duration, clarify required target environment (#122)

v0.0.6

15 Jun 13:39
b571d96
Compare
Choose a tag to compare
v0.0.6 Pre-release
Pre-release
  • Remove circular dependencies (#119)

v0.0.5

14 Jun 19:12
5ba52e0
Compare
Choose a tag to compare
v0.0.5 Pre-release
Pre-release
  • Fix CommonJS exports of @bufbuild/protobuf (#117) - Thanks to @zacharygraziano for the report!
  • Improve TypeRegistry (#113)

v0.0.4

06 May 20:33
156d1be
Compare
Choose a tag to compare
v0.0.4 Pre-release
Pre-release
  • Improve DescriptorRegistry (#77)
  • Enable tree-shaking (#76)

v0.0.3

04 May 09:08
a1ea8e6
Compare
Choose a tag to compare
v0.0.3 Pre-release
Pre-release
  • Avoid circular imports (#72)
  • Fix instances for message fields in message constructor (#70)
  • Use "preferUnplugged": true (#68)