Skip to content

Releases: protocolbuffers/protobuf

Protocol Buffers v28.2

18 Sep 21:10
Compare
Choose a tag to compare

Announcements

  • Protobuf News may include additional announcements or pre-announcements for upcoming changes.

C++

  • Fix cord handling in DynamicMessage and oneofs. (#18373) (5b0e543)

Java

  • Add recursion check when parsing unknown fields in Java. (ac9fb5b)

Protocol Buffers v27.5

18 Sep 22:38
Compare
Choose a tag to compare

Announcements

  • Protobuf News may include additional announcements or pre-announcements for upcoming changes.

C++

  • Fix cord handling in DynamicMessage and oneofs. (#18374) (6fa3f2d)

Java

  • Add recursion check when parsing unknown fields in Java. (#18388)
    (8bfa80b)

Other

Protocol Buffers v25.5

18 Sep 22:07
Compare
Choose a tag to compare

Announcements

  • Protobuf News may include additional announcements or pre-announcements for upcoming changes.

C++

  • Fix cord handling in DynamicMessage and oneofs. (#18375) (e673479)

Java

  • Add recursion check when parsing unknown fields in Java. (4728531)

Python

  • Fixed a SEGV when deep copying a non-reified sub-message. (94a2663)

Protocol Buffers v28.1

11 Sep 17:21
Compare
Choose a tag to compare

Announcements

  • Protobuf News may include additional announcements or pre-announcements for upcoming changes.

C++

  • Fix compiler error with StrongReferenceToType() (8ea3bb1)

PHP

PHP C-Extension

  • Upb: fix uninitialized upb_MessageValue buffer bugs (#18160) (9deedf0)
  • See also UPB changes below, which may affect PHP C-Extension.

Ruby

Ruby C-Extension

  • Fix a potential Ruby-upb use of uninitialized memory. (70b77de)
  • Upb: fix uninitialized upb_MessageValue buffer bugs (#18160) (9deedf0)
  • See also UPB changes below, which may affect Ruby C-Extension.

UPB (Python/PHP/Ruby C-Extension)

  • Fix a potential Ruby-upb use of uninitialized memory. (70b77de)
  • Upb: fix uninitialized upb_MessageValue buffer bugs (#18160) (9deedf0)

Protocol Buffers v28.0

28 Aug 19:53
Compare
Choose a tag to compare

Announcements

  • Protobuf News may include additional announcements or pre-announcements for upcoming changes.

Compiler

  • UPB text encoder without using reflection for Rust (used for a message's Debug trait) that will print out field number to value entries instead of field name to value entries of a message like how it's expected for the usual text format using reflection. (f9dd9ce)
  • Enable MessageLite::DebugString to use Message::DebugString where possible. (f810cc5)
  • Always report plugin support errors from protoc. (986ef8d)
  • Stop supporting EDITION_PROTO2 as an alias for EDITION_LEGACY. (35b3425)
  • Rename DynamicCastToGenerated/DownCastToGenerated to (18da465)
  • Mark deleted fields in descriptor.proto reserved (44c409d)
  • Protoc: support inf, -inf, nan, and -nan in option values (#15017) (3c03e93)

C++

  • Move -Werror to our test/dev bazelrc files. (#17938) (f5a1b17)
  • Introduce FieldDescriptor::cpp_string_type() API to replace direct ctype inspection which will be removed in the next breaking change (72b0b7a)
  • Removed specific MSVC settings when installing (#17285) (770090e)
  • Omit the _raw_default_instance_ declaration when using DLL linkage. (79c55cb)
  • Enable MessageLite::DebugString to use Message::DebugString where possible. (f810cc5)
  • Fix a bug in which proto code uses ctype instead of string_type internally. (dfbe987)
  • Add an optimization that prevents an exponential number of comparisons on deeply (594a71f)
  • Replace FindHelper() with BucketNumber() when only the bucket number is required. (8c7b1ec)
  • Stop supporting EDITION_PROTO2 as an alias for EDITION_LEGACY. (35b3425)
  • Rename DynamicCastToGenerated/DownCastToGenerated to (18da465)
  • Prohibit using features in the same file they're defined in. (24b91a7)
  • Implement new Debug API with redaction. (bb68eb2)
  • Use bool HasHasbits(const FieldDescriptor*) instead of manual checks. (448e326)
  • Add java to reserved names to escape extensions to java_. This may break existing references to gencode for extensions named java. (c99cf4b)
  • Put arena cleanup nodes on a separate chunked list instead of at the ends of arena blocks. (f70d90b)
  • Fix validation checks of implicit presence. (d6c2833)
  • Clarify map behaviors in editions. (0dbd99a)
  • Protoc: support inf, -inf, nan, and -nan in option values (#15017) (3c03e93)

Java

  • Binary compatibility shims for GeneratedMessageV3, SingleFieldBuilderV3, RepeatedFieldBuilderV3, and their nested classes to restore binary compatibility with <=v3.x.x generated code built against v3.x.x prior to v4.26.0 breaking release. (6bf01c5)
  • Remove unused pom.xml files. (aaf5f79)
  • Add overload for LazyStringArrayList.add(String): boolean (761d49a)
  • Hoist SmallSortedMap.getNumArrayEntries() outside loops over array entries (229c958)
  • Omit the _raw_default_instance_ declaration when using DLL linkage. (79c55cb)
  • Java: Deprecate newExtensionWriter. (7122ba1)
  • Immutable java: Use new lower-allocation extension serialization APIs from gencode (4151486)
  • Reserialize all unresolved features using java features from the generated pool in case of descriptors from the custom pool. (415a147)
  • Fix delimited inheritance in all languages. (8beb970)
  • Full java runtime: Avoid allocating ArrayList iterators when serializing UnknownFieldSet (fac847c)
  • Move back deprecation of java utf8 feature to 2024. (bd7078d)
  • Reparse unknown features using extension registry containing Java features. (68d9087)
  • Remove field SmallSortedMap.maxArraySize (16e0a63)
  • Delete unused method SmallSortedSet.getOverflowEntriesDescending (c05be32)
  • Avoid allocating FieldSet iterator if FieldSet is empty (3ba7280)
  • Lazily resolve features for proto2 and proto3 for compatibility with old open source gencode that does not invoke feature resolution from gencode static init. (11c27df)
  • Implement new Debug API with redaction. (bb68eb2)
  • Replace SmallSortedMap.EmptySet with equivalent Collections.emptySet() (c6e2778)
  • Add java to reserved names to escape extensions to java_. This may break existing references to gencode for extensions named java. (c99cf4b)
  • Avoid allocating TreeMap in UnknownFieldSet.Builder.asMap (4b7c2d4)
  • Avoid allocating iterator in TextFormat printing UnknownFieldSet (8c6e5b7)
  • Add null to the list of reserved words. (510c143)
  • Add UnknownFieldSet.isEmpty (c56bddd)
  • Java full runtime: Avoid allocating when calling asMap on empty UnknownFieldSet (d0b016f)
  • Return the default instance when parsing from an empty byte[]. (f597991)
  • Deprecate building from source with Maven to be removed in 4.28.x. (4c8da99)
  • Java full runtime: Avoid allocating iterator if UnknownFieldSet's TreeMap is empty (4f12891)
  • Proto java full runtime: avoid allocating Integers accessing enum lists (cc79f77)
  • Split bootstrapped java_features.proto to keep it from leaking out. (2257232)
  • Java Proto lite: avoid boxing Integers accessing enum lists (fb054c8)
  • In the Kotlin DSL, reference builder methods with property syntax. (e9c9970)
  • Java Proto Lite: Serialize repeated enums without allocating (de6aba9)
  • Avoid boxing when ser...
Read more

Protocol Buffers v27.4

27 Aug 20:57
Compare
Choose a tag to compare

Announcements

  • Protobuf News may include additional announcements or pre-announcements for upcoming changes.

Java

  • Binary compatibility shims for GeneratedMessageV3, SingleFieldBuilderV3, RepeatedFieldBuilderV3, and their nested classes to restore binary compatibility with <=v3.x.x generated code built against v3.x.x prior to v4.26.0 breaking release. (8dd83da)

Protocol Buffers v28.0-rc3

22 Aug 18:05
Compare
Choose a tag to compare
Pre-release

Announcements

  • Protobuf News may include additional announcements or pre-announcements for upcoming changes.

C++

  • Introduce FieldDescriptor::cpp_string_type() API to replace direct ctype inspection which will be removed in the next breaking change (72b0b7a)

Java

  • Binary compatibility shims for GeneratedMessageV3, SingleFieldBuilderV3, RepeatedFieldBuilderV3, and their nested classes to restore binary compatibility with <=v3.x.x generated code built against v3.x.x prior to v4.26.0 breaking release. (6bf01c5)

Objective-C

  • [ObjC] Add api to add a field to another collection of unknown fields. (0790ab4)
  • [ObjC] Fix GPBUnknownField/GPBUnknownFields copy. (b3b9888)
  • [ObjC] Raise an exception for a nil message. (35bd2be)
  • [ObjC] Deprecate GPBUnknownFieldSet and related apis. (9f6ee72)
  • [ObjC] More tests around unknown to known failure cases. (e822dce)

Rust

  • Add visibility for rust public aliases for '@protobuf//:protobuf_rust' (2cee142)

Python

  • Raise warnings for deprecated python cpp extension GetDebugString(). (5fc5558)

Other

  • Remove protobuf rust from BCR presubmits for now. (92552d3)

Protocol Buffers v28.0-rc2

08 Aug 20:17
Compare
Choose a tag to compare
Pre-release

Announcements

  • Protobuf News may include additional announcements or pre-announcements for upcoming changes.

Java

  • Remove unused pom.xml files. (aaf5f79)

Kotlin

  • Remove unused pom.xml files. (aaf5f79)

Objective-C

  • [ObjC] Support errors when merging unknown fields to a message. (c46340e)
  • [ObjC] Add apis for removing things from GPBUnknownFields. (c5c9c89)
  • [ObjC] Collect unknown fields as data (a6b3535)
  • [ObjC] Internal helper for getting the unknown field data from a message (bf2d4e7)
  • [ObjC] Update tests to use both unknown fields apis. (0832b52)
  • [ObjC] Deprecate GPBTextFormatForUnknownFieldSet(). (d1b6f8c)
  • [ObjC] Parsing helper and tests around unknown fields. (9b16ee4)
  • [ObjC] Add test around enum unknown values. (fad7b78)
  • [ObjC] Expose a helper for stream error. (cf7abf6)
  • [ObjC] Support MessageSet with GPBUnknownFields. (ddf9b76)
  • [ObjC] Update MessageSet Parsing. (5fa8cd9)
  • [ObjC] Validate MessageSet expectations. (3aa491c)
  • [ObjC] Improve parsing validations (ef4898f)

Python

  • Remove service.py usages in builder (902a68a)
  • Raise warnings for deprecated google/protobuf/reflection.py APIs. (38140ac)

Ruby

  • [Ruby] Warn if assigning a "UTF-8" string with invalid UTF-8. (#17253) (fe9a53c)

Ruby C-Extension

  • [Ruby] Warn if assigning a "UTF-8" string with invalid UTF-8. (#17253) (fe9a53c)

Other

  • Set -ex in test_java.yml (6a7e215)
  • Refactor java maven GHA test to use our generated jars. (671ef8b)
  • Remove /utf-8 flag added in #14197 (440dc83)
  • Downgrade CMake to 3.29 to workaround Abseil issue. (cd75dd5)

Protocol Buffers v27.3

31 Jul 16:09
Compare
Choose a tag to compare

Announcements

  • Protobuf News may include additional announcements or pre-announcements for upcoming changes.

Compiler

  • Revert workaround for std::mutex issues on github windows runners. (ba3e7d7)

C++

  • Update staleness (b7ef2ca)
  • Omit the _raw_default_instance_ declaration when using DLL linkage. (22d9a03)
  • Refactor the way we turn on the optimization in StrongPointer. (a15c9c5)

Java

  • Omit the _raw_default_instance_ declaration when using DLL linkage. (22d9a03)

PHP

PHP C-Extension

  • Fix segmentation faults with enabled keep_descriptor_pool_after_request (#16993) (ca3b732)

Ruby

Ruby C-Extension

Other

  • Remove /utf-8 flag added in #14197 (e20cb7a)
  • Downgrade CMake to 3.29 to workaround Abseil issue. (8a579c1)
  • Upgrade macos-11 tests to macos-12 (aec8a76)
  • Use explicit names of our large runners (4e3b4f0)
  • Upgrade our C++ release tests to large runners. (fa2b2d6)

Protocol Buffers v25.4

24 Jul 18:41
Compare
Choose a tag to compare

Announcements

  • Protobuf News may include additional announcements or pre-announcements for upcoming changes.

Java

  • Check that size is non-negative when reading string or bytes in StreamDecoder. (165cf12)
  • Add Automatic-Module-Name (#14562) (552ad31)

PHP

PHP C-Extension

Ruby

Ruby C-Extension

Other

  • Drop 2.7 in linux test (#17524) (314fc8b)
  • Fix targets (eb1fdd3)
  • Update bazel to 6.3.2 (a5dadc3)
  • Backport staleness changes to 25.x (c3b9b4f)
  • Downgrade CMake to 3.29 to workaround Abseil issue. (bdb1f75)
  • Upgrade macos-11 tests to macos-12 (27041af)
  • Use explicit names of our large runners (c73d6c8)
  • Upgrade our C++ release tests to large runners. (8ec9a43)
  • Downgrade our sanitized builds to ubuntu-20. (892a2ce)
  • Disable TSAN tests due to what appears to be a sanitizer bug (aa32865)
  • Disable MacOS C++ Cmake test for now. (6b1c253)
  • Update setup-php to 2.30.0 and re-enable macOS PHP 8.2 tests. (220a74b)
  • Add back error message unconditionally (f60c624)
  • Pin bazel 6 for 25.x (3b72455)
  • Actually fail if staleness fail (8688825)