Skip to content

Commit dbd7826

Browse files
Rachel Goldfingercopybara-github
authored andcommitted
Announce additional planned breaking changes for Protocol Buffers v38 (2027 Q1).
This CL adds a news article for October 15, 2026, detailing anticipated additional breaking changes in the v38 release, expected in 2027 Q1. The changes cover C++, Python, Protoc, and UPB. PiperOrigin-RevId: 998622518
1 parent d75b49a commit dbd7826

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

‎content/news/2026-10-15.md‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
3+
+++
4+
title = "Changes Announced on October 15, 2026"
5+
linkTitle = "October 15, 2026"
6+
toc_hide = "true"
7+
description = "Changes announced for Protobuf on October 15, 2026."
8+
type = "docs"
9+
+++
10+
11+
The following sections cover additional planned breaking changes in the v38
12+
release, expected in 2027 Q1. These describe changes as we anticipate them being
13+
implemented, but due to the flexible nature of software some of these changes
14+
may not land or may vary from how they are described in this topic.
15+
16+
## Changes in C++ {#cpp}
17+
18+
### Remove NULL Termination in Descriptor Names
19+
20+
Remove null terminators in string_view.
21+
22+
## Changes in Protoc {#protoc}
23+
24+
### Add Compiler Flag `--source_code_info_out` to Output SourceCodeInfo Separately
25+
26+
## Changes in Python {#python}
27+
28+
### Align `__eq__()` with `Any` Fields on Pure Python with Py-upb Behavior
29+
30+
Align pure PythonProto `__eq__()` behavior to upb by only comparing the
31+
serialized bytes. There are some edge cases where two `Any` fields may contain
32+
different bytes which are equal only when parsed. These cases used to return
33+
`true`, but will now return `false`.
34+
35+
## Changes in UPB {#upb}
36+
37+
### Align Default Value Float and Double Formatting with C++ FileDescriptor::CopyTo
38+
39+
In `upb_FileDef_ToProto`, `float` and `double` default values in
40+
`FieldDescriptorProto.default_value` were previously formatted using hardcoded
41+
`"%.9g"` and `"%.17g"`. This could produce more digits than C++
42+
`FieldDescriptor::DefaultValueAsString()` (`io::SimpleFtoa` / `io::SimpleDtoa`),
43+
causing `upb_FileDef_ToProto` output to differ from C++ `FileDescriptor::CopyTo`
44+
(for example, `"0.10000000000000001"` vs `"0.1"` for `double`, and
45+
`"7.77777779e+35"` vs `"7.777778e+35"` for `float`).
46+
47+
In v38, `upb_FileDef_ToProto` will format `float` and `double` default values
48+
using round-trip formatting matching `io::SimpleFtoa` and `io::SimpleDtoa`,
49+
aligning OSS behavior with Google3.

‎content/news/_index.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ New news topics will also be published to the
2020
The following news topics provide information in the reverse order in which it
2121
was released.
2222

23+
* [October 15, 2026](/news/2026-10-15) - Additional
24+
breaking changes in the upcoming 38.x release
2325
* [September 22, 2026](/news/2026-09-22) - Breaking
2426
changes in the upcoming 38.x release
2527
* [July 13, 2026](/news/2026-07-13) - Edition 2026

0 commit comments

Comments
 (0)