Skip to content

Releases: protocolbuffers/protobuf

Protocol Buffers v24.2

25 Aug 21:24
Compare
Choose a tag to compare

C++

Protocol Buffers v24.1

18 Aug 19:55
Compare
Choose a tag to compare

Announcements

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

Python

Python C-Extension (Default)

Ruby

Ruby C-Extension

Protocol Buffers v24.0

08 Aug 22:15
Compare
Choose a tag to compare

Announcements

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

Compiler

  • Drop support for Bazel 5. (fff4905)
  • Allow code generators to specify whether or not they support editions. (e2cec78)
  • Release prototype of Protobuf Editions. (4f9e417)
  • Compiler: Correct depfile generation when there are no outputs (a44fc2b)
  • Add dllexport_decl for generated default instance. (#13085) (9d0961a)
  • In TSan mode, detect concurrent mutations of repeated/map fields. (d800c5f)
  • Add a workaround for GCC constexpr bug (e15326b)
  • Turn on the table-driven parser by default, as it is no longer experimental. (c3e2efe)
  • Shrink code size of generated protocol buffer code via a few (97c3513)
  • Implement enforcement of target constraints (e3848c1)
  • Fix(libprotoc): export useful symbols from .so (44b4bcc)

C++

  • In OSS mode omit some extern template specializations. We have seen reports of compilers falling over due to the size of translation units. (2ed49c9)
  • Automated rollback of commit adb2c4b. (9f2d7ea)
  • Fix building shared libraries on MinGW-w64 (#13240) (c2f07bb)
  • Enable TSan validation to detect when a mutable accessor of a message is called concurrently with another accessor on the same message, which is a data race. (0275e51)
  • Release prototype of Protobuf Editions. (4f9e417)
  • Enable TSan validation to detect when a mutable accessor of a message is called concurrently with another accessor on the same message, which is a data race. (e2eae81)
  • Fix case of locality optimizer being wrong for split repeated fields and add a check that the optimized order has the same size as the unoptimized order. (76a327e)
  • Enable TSan validation to detect when a mutable accessor of a message is called concurrently with another accessor on the same message, which is a data race. (80dbc50)
  • Mark single arg ctor explicit in DynamicMessageFactory. (8fe88a5)
  • Enable TSan validation to detect when a mutable accessor of a message is called concurrently with another accessor on the same message, which is a data race. (6d79d13)
  • Let ParseRepeatedStringOnce call AllocateFromStringBlock(). (bcf3e36)
  • Check next tag in MpRepeatedMessage. (9e1cf6f)
  • When parsing repeated primitives, append to a tmp array on stack. (adb2c4b)
  • Add dllexport_decl for generated default instance. (#13085) (9d0961a)
  • TextFormat::ParseFieldValueFromString now takes absl::string_view as input instead of const std::string & (5411fc6)
  • In TSan mode, detect concurrent mutations of repeated/map fields. (d800c5f)
  • Use the same ABI for static and shared libraries on non-Windows platforms (#12983) (4329fde)
  • Replace ColdChunkSkipper with iterator-based approach. (ad677f3)
  • Check invalid type_id after casting it to uint32_t. (d890126)
  • Strengthen assertions on reflection methods. (eb5e9e0)
  • Add assertions to reflection methods. (5866e45)
  • Fail to parse message sets if type_id is zero. (bc1b1f6)
  • Enable the use of [SU]Int32Size and EnumSize templates for AArch64 (#11102) (e285d3e)
  • Add a workaround for GCC constexpr bug (e15326b)
  • Add ABSL_ATTRIBUTE_LIFETIME_BOUND attribute on Map, RepeatedField and RepeatedPtrField. (7b7ba2d)
  • Turn on the table-driven parser by default, as it is no longer experimental. (c3e2efe)
  • Fix: avoid warnings on MSVC (#12697) (4fcf2c0)
  • Fix: avoid warnings on Windows (#12701) (f9108c2)
  • Shrink code size of generated protocol buffer code via a few (97c3513)
  • Fix(libprotoc): export useful symbols from .so (#12619) (b1ae4fa)
  • Forbid embedded nulls in json_name. (b478a29)
  • Implement option retention for C# (5f64444)
  • Implement enforcement of target constraints (e3848c1)
  • Make RepeatedField and RepeatedPtrField be destructor skippable for proto arenas. (e4168df)
  • Update MessageDifferencer to conditionally force comparing additional fields while doing PARTIAL comparison (compare fields which are not repeated, have no presence and are set to their default value). (748f57f)
  • CMake: Use the correct jsoncpp target name in static builds (#12733) (d372fcd)
  • Fix: missing -DPROTOBUF_USE_DLLS in pkg-config (#12700) (f86008a)
  • Avoid using string(JOIN..., which requires cmake 3.12 (adee0a5)

Java

  • Put a 4k limit on preallocation to prevent OOM from malformed inputs. (173adca)
  • Mark OneofDescriptor.isSynthetic() deprecated. (b6b86e2)
  • Use ProtobufArrayList for repeated bytes field. Presize primitive arrays for fixed-length primitives. (b0b926a)
  • Add protobuf-kotlin into protobuf-bom (#12936) (943b696)
  • Handle clear for Java proto3 optionals (synthetic oneofs) using field descriptor instead of clear method. (a534902)
  • Deps: Update Guava to 32.0.0 (#12953) (cd615a8)
  • Migrate repeated numeric fields to use bit field to track presence instead of using it to indicate the field mutability to potentially skip work on the field during build operations. (f0de774)
  • Automated rollback of commit 3e188b7. (a1b3ff0)

Csharp

Read more

Protocol Buffers v24.0-rc3

01 Aug 18:45
Compare
Choose a tag to compare
Pre-release

Announcements

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

Compiler

  • Drop support for Bazel 5. (fff4905)

C++

  • In OSS mode omit some extern template specializations. We have seen reports of compilers falling over due to the size of translation units. (2ed49c9)
  • Automated rollback of commit adb2c4b. (9f2d7ea)

Protocol Buffers v24.0-rc2

18 Jul 20:50
Compare
Choose a tag to compare
Pre-release

Announcements

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

Compiler

  • Allow code generators to specify whether or not they support editions. (e2cec78)

Java

  • Put a 4k limit on preallocation to prevent OOM from malformed inputs. (173adca)

Ruby

  • Update ruby gemspec required ruby version to >=2.7 (14ea2cb)

Protocol Buffers v24.0-rc1

11 Jul 23:41
Compare
Choose a tag to compare
Pre-release

Announcements

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

Compiler

  • Release prototype of Protobuf Editions. (4f9e417)
  • Compiler: Correct depfile generation when there are no outputs (a44fc2b)
  • Add dllexport_decl for generated default instance. (#13085) (9d0961a)
  • In TSan mode, detect concurrent mutations of repeated/map fields. (d800c5f)
  • Add a workaround for GCC constexpr bug (e15326b)
  • Turn on the table-driven parser by default, as it is no longer experimental. (c3e2efe)
  • Shrink code size of generated protocol buffer code via a few (97c3513)
  • Implement enforcement of target constraints (e3848c1)
  • Fix(libprotoc): export useful symbols from .so (44b4bcc)

C++

  • Fix building shared libraries on MinGW-w64 (#13240) (c2f07bb)
  • Enable TSan validation to detect when a mutable accessor of a message is called concurrently with another accessor on the same message, which is a data race. (0275e51)
  • Release prototype of Protobuf Editions. (4f9e417)
  • Enable TSan validation to detect when a mutable accessor of a message is called concurrently with another accessor on the same message, which is a data race. (e2eae81)
  • Fix case of locality optimizer being wrong for split repeated fields and add a check that the optimized order has the same size as the unoptimized order. (76a327e)
  • Enable TSan validation to detect when a mutable accessor of a message is called concurrently with another accessor on the same message, which is a data race. (80dbc50)
  • Mark single arg ctor explicit in DynamicMessageFactory. (8fe88a5)
  • Enable TSan validation to detect when a mutable accessor of a message is called concurrently with another accessor on the same message, which is a data race. (6d79d13)
  • Let ParseRepeatedStringOnce call AllocateFromStringBlock(). (bcf3e36)
  • Check next tag in MpRepeatedMessage. (9e1cf6f)
  • When parsing repeated primitives, append to a tmp array on stack. (adb2c4b)
  • Add dllexport_decl for generated default instance. (#13085) (9d0961a)
  • TextFormat::ParseFieldValueFromString now takes absl::string_view as input instead of const std::string & (5411fc6)
  • In TSan mode, detect concurrent mutations of repeated/map fields. (d800c5f)
  • Use the same ABI for static and shared libraries on non-Windows platforms (#12983) (4329fde)
  • Replace ColdChunkSkipper with iterator-based approach. (ad677f3)
  • Check invalid type_id after casting it to uint32_t. (d890126)
  • Strengthen assertions on reflection methods. (eb5e9e0)
  • Add assertions to reflection methods. (5866e45)
  • Fail to parse message sets if type_id is zero. (bc1b1f6)
  • Enable the use of [SU]Int32Size and EnumSize templates for AArch64 (#11102) (e285d3e)
  • Add a workaround for GCC constexpr bug (e15326b)
  • Add ABSL_ATTRIBUTE_LIFETIME_BOUND attribute on Map, RepeatedField and RepeatedPtrField. (7b7ba2d)
  • Turn on the table-driven parser by default, as it is no longer experimental. (c3e2efe)
  • Fix: avoid warnings on MSVC (#12697) (4fcf2c0)
  • Fix: avoid warnings on Windows (#12701) (f9108c2)
  • Shrink code size of generated protocol buffer code via a few (97c3513)
  • Fix(libprotoc): export useful symbols from .so (#12619) (b1ae4fa)
  • Forbid embedded nulls in json_name. (b478a29)
  • Implement option retention for C# (5f64444)
  • Implement enforcement of target constraints (e3848c1)
  • Make RepeatedField and RepeatedPtrField be destructor skippable for proto arenas. (e4168df)
  • Update MessageDifferencer to conditionally force comparing additional fields while doing PARTIAL comparison (compare fields which are not repeated, have no presence and are set to their default value). (748f57f)
  • CMake: Use the correct jsoncpp target name in static builds (#12733) (d372fcd)
  • Fix: missing -DPROTOBUF_USE_DLLS in pkg-config (#12700) (f86008a)
  • Avoid using string(JOIN..., which requires cmake 3.12 (adee0a5)

Java

  • Mark OneofDescriptor.isSynthetic() deprecated. (b6b86e2)
  • Use ProtobufArrayList for repeated bytes field. Presize primitive arrays for fixed-length primitives. (b0b926a)
  • Add protobuf-kotlin into protobuf-bom (#12936) (943b696)
  • Handle clear for Java proto3 optionals (synthetic oneofs) using field descriptor instead of clear method. (a534902)
  • Deps: Update Guava to 32.0.0 (#12953) (cd615a8)
  • Migrate repeated numeric fields to use bit field to track presence instead of using it to indicate the field mutability to potentially skip work on the field during build operations. (f0de774)
  • Automated rollback of commit 3e188b7. (a1b3ff0)

Csharp

  • [C#] Replace regex that validates descriptor names (#12174) (cfb702a)
  • Implement option retention for C# (5f64444)

Objective-C

Read more

Protocol Buffers v23.4

06 Jul 21:25
Compare
Choose a tag to compare

Announcements

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

Compiler

  • Add dllexport_decl for generated default instance. (#13085) (0c70d95)

Java

  • Deps: Update Guava to 32.0.1 (40d5777)

Protocol Buffers v23.3

14 Jun 19:22
Compare
Choose a tag to compare

Announcements

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

C++

  • Regenerate stale files (#13046) (58b6ddb)
  • Use the same ABI for static and shared libraries on non-Windows platforms (#12983) (efa1ec7)

Objective-C

UPB (Python/PHP/Ruby C-Extension)

  • Fixed a bug in upb_Map_Delete() that caused crashes in map.delete(k) for Ruby when string-keyed maps were in use. (protocolbuffers/upb@2de798e)

Protocol Buffers v23.2

26 May 16:43
Compare
Choose a tag to compare

Announcements

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

Compiler

  • Add missing header to Objective-c generator

Java

  • Rollback of: Simplify protobuf Java message builder by removing methods that calls the super class only. (b556b88)

Protocol Buffers v23.1

17 May 17:28
Compare
Choose a tag to compare

Announcements

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

Compiler

  • Add a workaround for GCC constexpr bug (67ecdde)

C++

  • Add a workaround for GCC constexpr bug (67ecdde)

Csharp

  • [C#] Replace regex that validates descriptor names (#12174) (0ced986)