Skip to content

Commit e7e8f04

Browse files
authored
Merge pull request #10044 from protocolbuffers/21.x-202205252102
Update versions and changelog for 21.x
2 parents ec4c19b + 7062d0a commit e7e8f04

25 files changed

Lines changed: 107 additions & 42 deletions

File tree

CHANGES.txt

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
1+
2022-05-25 version 21.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby)
2+
3+
C++
4+
* cmake: Call get_filename_component() with DIRECTORY mode instead of PATH mode (#9614)
5+
* Escape GetObject macro inside protoc-generated code (#9739)
6+
* Update CMake configuration to add a dependency on Abseil (#9793)
7+
* Fix cmake install targets (#9822)
8+
* Use __constinit only in GCC 12.2 and up (#9936)
9+
10+
Java
11+
* Update protobuf_version.bzl to separate protoc and per-language java … (#9900)
12+
13+
Python
14+
* Increment python major version to 4 in version.json for python upb (#9926)
15+
* The C extension module for Python has been rewritten to use the upb library.
16+
This is expected to deliver significant performance benefits, especially when
17+
parsing large payloads. There are some minor breaking changes, but these
18+
should not impact most users. For more information see:
19+
https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
20+
* Fixed win32 build and fixed str(message) on all Windows platforms. (#9976)
21+
* The binary wheel for macOS now supports Apple silicon.
22+
23+
PHP
24+
* [PHP] fix PHP build system (#9571)
25+
* Fix building packaged PHP extension (#9727)
26+
* fix: reserve "ReadOnly" keyword for PHP 8.1 and add compatibility (#9633)
27+
* fix: phpdoc syntax for repeatedfield parameters (#9784)
28+
* fix: phpdoc for repeatedfield (#9783)
29+
* Change enum string name for reserved words (#9780)
30+
* chore: [PHP] fix phpdoc for MapField keys (#9536)
31+
* Fixed PHP SEGV by not writing to shared memory for zend_class_entry. (#9996)
32+
33+
Ruby
34+
* Allow pre-compiled binaries for ruby 3.1.0 (#9566)
35+
* Implement `respond_to?` in RubyMessage (#9677)
36+
* [Ruby] Fix RepeatedField#last, #first inconsistencies (#9722)
37+
* Do not use range based UTF-8 validation in truffleruby (#9769)
38+
* Improve range handling logic of `RepeatedField` (#9799)
39+
* Support x64-mingw-ucrt platform
40+
41+
Other
42+
* [Kotlin] remove redundant public modifiers for compiled code (#9642)
43+
* [C#] Update GetExtension to support getting typed value (#9655)
44+
* Fix invalid dependency manifest when using `descriptor_set_out` (#9647)
45+
* Fix C# generator handling of a field named "none" in a oneof (#9636)
46+
* Add initial version.json file for 21-dev (#9840)
47+
* Remove duplicate java generated code (#9909)
48+
* Cherry-pick PR #9981 into 21.x branch (#10000)
49+
50+
151
2022-05-19 version 21.0-rc2(C++/Java/Python/PHP/Objective-C/C#/Ruby)
252

353
Python

Protobuf-C++.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Protobuf-C++'
3-
s.version = '3.21.0-rc2'
3+
s.version = '3.21.0'
44
s.summary = 'Protocol Buffers v3 runtime library for C++.'
55
s.homepage = 'https://github.com/google/protobuf'
66
s.license = 'BSD-3-Clause'

Protobuf.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# dependent projects use the :git notation to refer to the library.
66
Pod::Spec.new do |s|
77
s.name = 'Protobuf'
8-
s.version = '3.21.0-rc2'
8+
s.version = '3.21.0'
99
s.summary = 'Protocol Buffers v.3 runtime library for Objective-C.'
1010
s.homepage = 'https://github.com/protocolbuffers/protobuf'
1111
s.license = 'BSD-3-Clause'

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ AC_PREREQ(2.59)
1717
# In the SVN trunk, the version should always be the next anticipated release
1818
# version with the "-pre" suffix. (We used to use "-SNAPSHOT" but this pushed
1919
# the size of one file name in the dist tarfile over the 99-char limit.)
20-
AC_INIT([Protocol Buffers],[3.21.0-rc-2],[protobuf@googlegroups.com],[protobuf])
20+
AC_INIT([Protocol Buffers],[3.21.0],[protobuf@googlegroups.com],[protobuf])
2121

2222
AM_MAINTAINER_MODE([enable])
2323

csharp/Google.Protobuf.Tools.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>Google Protocol Buffers tools</title>
66
<summary>Tools for Protocol Buffers - Google's data interchange format.</summary>
77
<description>See project site for more info.</description>
8-
<version>3.21.0-rc2</version>
8+
<version>3.21.0</version>
99
<authors>Google Inc.</authors>
1010
<owners>protobuf-packages</owners>
1111
<licenseUrl>https://github.com/protocolbuffers/protobuf/blob/main/LICENSE</licenseUrl>

csharp/src/Google.Protobuf/Google.Protobuf.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Description>C# runtime library for Protocol Buffers - Google's data interchange format.</Description>
55
<Copyright>Copyright 2015, Google Inc.</Copyright>
66
<AssemblyTitle>Google Protocol Buffers</AssemblyTitle>
7-
<VersionPrefix>3.21.0-rc2</VersionPrefix>
7+
<VersionPrefix>3.21.0</VersionPrefix>
88
<!-- C# 7.2 is required for Span/BufferWriter/ReadOnlySequence -->
99
<LangVersion>7.2</LangVersion>
1010
<Authors>Google Inc.</Authors>

java/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you are using Maven, use the following:
2323
<dependency>
2424
<groupId>com.google.protobuf</groupId>
2525
<artifactId>protobuf-java</artifactId>
26-
<version>3.21.0-rc-2</version>
26+
<version>3.21.0</version>
2727
</dependency>
2828
```
2929

@@ -37,15 +37,15 @@ protobuf-java-util package:
3737
<dependency>
3838
<groupId>com.google.protobuf</groupId>
3939
<artifactId>protobuf-java-util</artifactId>
40-
<version>3.21.0-rc-2</version>
40+
<version>3.21.0</version>
4141
</dependency>
4242
```
4343

4444
### Gradle
4545

4646
If you are using Gradle, add the following to your `build.gradle` file's dependencies:
4747
```
48-
implementation 'com.google.protobuf:protobuf-java:3.21.0-rc-2'
48+
implementation 'com.google.protobuf:protobuf-java:3.21.0'
4949
```
5050
Again, be sure to check that the version number matches (or is newer than) the version number of protoc that you are using.
5151

java/bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.google.protobuf</groupId>
66
<artifactId>protobuf-bom</artifactId>
7-
<version>3.21.0-rc-2</version>
7+
<version>3.21.0</version>
88
<packaging>pom</packaging>
99

1010
<name>Protocol Buffers [BOM]</name>

java/core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.google.protobuf</groupId>
66
<artifactId>protobuf-parent</artifactId>
7-
<version>3.21.0-rc-2</version>
7+
<version>3.21.0</version>
88
</parent>
99

1010
<artifactId>protobuf-java</artifactId>

java/kotlin-lite/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.google.protobuf</groupId>
66
<artifactId>protobuf-parent</artifactId>
7-
<version>3.21.0-rc-2</version>
7+
<version>3.21.0</version>
88
</parent>
99

1010
<artifactId>protobuf-kotlin-lite</artifactId>

0 commit comments

Comments
 (0)