Skip to content

Releases: bufbuild/protobuf-es

v1.1.1

14 Mar 21:30
5253331
Compare
Choose a tag to compare

This release contains the following:

Enhancements

Fixes

New Contributors

Full Changelog: v1.1.0...v1.1.1

v1.1.0

02 Mar 15:07
2f3c3e2
Compare
Choose a tag to compare

This release includes the following:

Enhancements

Bug Fixes

  • Upgrade to Protobuf v22.0 by @smaye81 in #394.
  • Fix type declaration emitting when using NodeNext module resolution by @fubhy in #398.
  • Strip rewrite_imports parameter by @smaye81 in #386.

New Contributors

v1.0.0

20 Dec 18:15
19ba0c0
Compare
Choose a tag to compare

🎉 v1.0.0 🎉

This is Protobuf-ES's first stable release! It does not contain any user-facing changes.

v0.5.0

14 Dec 20:16
f8cf4e2
Compare
Choose a tag to compare
v0.5.0 Pre-release
Pre-release

This release includes the following:

🚨 Breaking Changes 🚨

  • #335 - The toJSON method on messages has been set to protected. Users should use JSON.stringify(msg) or msg.toJsonString (which allows for passing options) for stringified JSON. Alternatively, if actual JSON is desired, users should call toJson.

Enhancements

v0.4.0

05 Dec 19:05
b5263bf
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release

This release includes the following:

Enhancements

  • Add plugin option import_extension to replace the .js extension in
    import paths by @timostamm in #317
  • Improve JSON parse error message by @timostamm in #318
  • Make PlainMessage recursive by @smaye81 in #308

New Contributors

@McTano made their first contribution in #311

v0.3.0

23 Nov 17:37
f45e58b
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

This release includes the following:

🚨 Breaking Changes 🚨

  • #296 - If you have been using PlainMessage or PartialMessage to create message types, you may need to change your code if you are using generics. For example:
-type WrapperFn<T extends Message> = (
   msg: PartialMessage<T>
) => void;

+type WrapperFn<T extends Message<T>> = (
   msg: PartialMessage<T>
) => void;

Enhancements

  • Add a toJSON method to messages by @smaye81 in #306
  • Add an unpack function to google.protobuf.Any by @smaye81 in #303
  • Make generated imports look more normal by @dimitropoulos in #298
    ⚠️ Note that as a result of this PR, import statements in your generated code will contain diffs when generated with v0.3.0 as the import statements will have spaces added. For example:
    - import {FooMessage} from './foo_message_pb.js';
    + import { FooMessage } from './foo_message_pb.js';
  • Add print function with tagged template literal by @yukukotani in #279
  • Enhance the Any.is function by @smaye81 in #294
  • Make wrappers more lenient by @timostamm in #291

Bugfixes

New Contributors

@calebdoxsey made their first contribution in #305
@yukukotani made their first contributions in #275 and #279

v0.2.1

31 Oct 16:23
9213949
Compare
Choose a tag to compare
v0.2.1 Pre-release
Pre-release

This patch release fixes bug when parsing Any from JSON. Thanks to @fubhy for catching it.

Bugfixes

  • Fix error when parsing google.protobuf.Any field from JSON empty object by @timostamm in #261

Enhancements

v0.2.0

25 Oct 13:57
906105a
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release

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 new fieldKind discriminator. The kind property no longer contains values such as map_field and message_field for their respective types of DescField. Instead, a new type has been added named fieldKind, which allows you to further identify the kind of field a DescField 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

Bugfixes

New Contributors

@fubhy made their first contributions in #254 and #255.

v0.1.1

02 Sep 20:08
c3caf1d
Compare
Choose a tag to compare
v0.1.1 Pre-release
Pre-release

Bug Fixes

  • Fix error message in proto2 binary format by @timostamm in #221.
  • Fix type prop issue in conditional exports by @smaye81 in #210. This adds support for TypeScript compiler option of moduleResolution: "NodeNext".

Documentation

  • Fix protoc option in protoc-gen-es/README.md by @timostamm in #223.
  • Add code generation examples to protoc-gen-es README.md by @timostamm in #207.

v0.1.0

24 Aug 21:06
02d015c
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

This release includes the following:

Enhancements

Bugfixes

  • Fix string-based fallback for 64-bit integral values by @timostamm in #202
  • Fix PlainMessage type to correctly omit functions by @smaye81 in #195
  • Fix createRegistryFromDescriptors() by @timostamm in #183