Skip to content

Commit 85aa87c

Browse files
mkruskal-googleJasonLunnjorgbrown
authored
Merge 3.20.1-rc1 into main (#9760)
* Fix NPE during encoding and add regression test for issue 9507. (cherry picked from commit 58e320a) * Implement `respond_to?` in RubyMessage (#9677) All synthetic methods implemented by `method_missing` are now supported by `respond_to?`. Fixes issue #9202. * Fix null pointer exceptions exposed by new regression tests. * Fix clear_ on oneofs so that it is safe to call repeatedly and so that respond_to? does not depend on whether the oneof is currently cleared. * Code cleanup: reenable more tests on JRuby. * Align JRuby behavior with CRuby by throwing a RuntimeError when attempting to assign to a oneof. (cherry picked from commit 8e7f936) * Update protobuf version * Merge pull request #9727 from mlocati/build-packaged-php-extension Fix building packaged PHP extension (cherry picked from commit 7f9901c) * Update protobuf version * Update changelogs for 3.20.1-rc1 Co-authored-by: Jason Lunn <jason.lunn@gmail.com> Co-authored-by: Jorg Brown <jorg.brown@gmail.com>
1 parent 88eb755 commit 85aa87c

38 files changed

+70
-47
lines changed

CHANGES.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2022-04-05 version 3.20.1 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
2+
3+
PHP
4+
* Fix building packaged PHP extension (#9727)
5+
6+
Other
7+
* Fix versioning issues in 3.20.0
8+
19
Unreleased Changes
210

311
C++

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.20.0'
3+
s.version = '3.20.1-rc1'
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.20.0'
8+
s.version = '3.20.1-rc1'
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.20.0],[protobuf@googlegroups.com],[protobuf])
20+
AC_INIT([Protocol Buffers],[3.20.1-rc-1],[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.20.0</version>
8+
<version>3.20.1-rc1</version>
99
<authors>Google Inc.</authors>
1010
<owners>protobuf-packages</owners>
1111
<licenseUrl>https://github.com/protocolbuffers/protobuf/blob/master/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.20.0</VersionPrefix>
7+
<VersionPrefix>3.20.1-rc1</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.20.0</version>
26+
<version>3.20.1-rc-1</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.20.0</version>
40+
<version>3.20.1-rc-1</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.20.0'
48+
implementation 'com.google.protobuf:protobuf-java:3.20.1-rc-1'
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.20.0</version>
7+
<version>3.20.1-rc-1</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.20.0</version>
7+
<version>3.20.1-rc-1</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.20.0</version>
7+
<version>3.20.1-rc-1</version>
88
</parent>
99

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

java/kotlin/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.20.0</version>
7+
<version>3.20.1-rc-1</version>
88
</parent>
99

1010
<artifactId>protobuf-kotlin</artifactId>

java/lite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protobuf Java Lite runtime. If you are using Maven, include the following:
2929
<dependency>
3030
<groupId>com.google.protobuf</groupId>
3131
<artifactId>protobuf-javalite</artifactId>
32-
<version>3.20.0</version>
32+
<version>3.20.1-rc-1</version>
3333
</dependency>
3434
```
3535

java/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.20.0</version>
7+
<version>3.20.1-rc-1</version>
88
</parent>
99

1010
<artifactId>protobuf-javalite</artifactId>

java/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-parent</artifactId>
7-
<version>3.20.0</version>
7+
<version>3.20.1-rc-1</version>
88
<packaging>pom</packaging>
99

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

java/util/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.20.0</version>
7+
<version>3.20.1-rc-1</version>
88
</parent>
99

1010
<artifactId>protobuf-java-util</artifactId>

js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "google-protobuf",
3-
"version": "3.20.0",
3+
"version": "3.20.1-rc.1",
44
"description": "Protocol Buffers for JavaScript",
55
"main": "google-protobuf.js",
66
"files": [

php/ext/google/protobuf/package.xml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
<email>protobuf-opensource@google.com</email>
1111
<active>yes</active>
1212
</lead>
13-
<date>2022-03-25</date>
14-
<time>19:17:44</time>
13+
<date>2022-04-05</date>
14+
<time>17:06:47</time>
1515
<version>
16-
<release>3.20.0</release>
17-
<api>3.20.0</api>
16+
<release>3.20.1RC1</release>
17+
<api>3.20.1</api>
1818
</version>
1919
<stability>
20-
<release>stable</release>
21-
<api>stable</api>
20+
<release>beta</release>
21+
<api>beta</api>
2222
</stability>
2323
<license uri="https://opensource.org/licenses/BSD-3-Clause">BSD-3-Clause</license>
2424
<notes>
@@ -1253,5 +1253,20 @@ G A release.
12531253
<notes>
12541254
</notes>
12551255
</release>
1256+
<release>
1257+
<version>
1258+
<release>3.20.1RC1</release>
1259+
<api>3.20.1</api>
1260+
</version>
1261+
<stability>
1262+
<release>beta</release>
1263+
<api>beta</api>
1264+
</stability>
1265+
<date>2022-04-05</date>
1266+
<time>17:06:47</time>
1267+
<license uri="https://opensource.org/licenses/BSD-3-Clause">BSD-3-Clause</license>
1268+
<notes>
1269+
</notes>
1270+
</release>
12561271
</changelog>
12571272
</package>

php/ext/google/protobuf/protobuf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_setter, 0, 0, 1)
127127
ZEND_ARG_INFO(0, value)
128128
ZEND_END_ARG_INFO()
129129

130-
#define PHP_PROTOBUF_VERSION "3.20.0"
130+
#define PHP_PROTOBUF_VERSION "3.20.1RC1"
131131

132132
// ptr -> PHP object cache. This is a weak map that caches lazily-created
133133
// wrapper objects around upb types:

protobuf_version.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PROTOBUF_VERSION = '3.20.0'
1+
PROTOBUF_VERSION = '3.20.1-rc-1'

protoc-artifacts/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</parent>
99
<groupId>com.google.protobuf</groupId>
1010
<artifactId>protoc</artifactId>
11-
<version>3.20.0</version>
11+
<version>3.20.1-rc-1</version>
1212
<packaging>pom</packaging>
1313
<name>Protobuf Compiler</name>
1414
<description>

python/google/protobuf/__init__.py

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

3131
# Copyright 2007 Google Inc. All Rights Reserved.
3232

33-
__version__ = '3.20.0'
33+
__version__ = '3.20.1rc1'

ruby/google-protobuf.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = "google-protobuf"
3-
s.version = "3.20.0"
3+
s.version = "3.20.1.rc.1"
44
git_tag = "v#{s.version.to_s.sub('.rc.', '-rc')}" # Converts X.Y.Z.rc.N to vX.Y.Z-rcN, used for the git tag
55
s.licenses = ["BSD-3-Clause"]
66
s.summary = "Protocol Buffers"

ruby/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<groupId>com.google.protobuf.jruby</groupId>
1111
<artifactId>protobuf-jruby</artifactId>
12-
<version>3.20.0</version>
12+
<version>3.20.1-rc-1</version>
1313
<name>Protocol Buffer JRuby native extension</name>
1414
<description>
1515
Protocol Buffers are a way of encoding structured data in an efficient yet
@@ -76,7 +76,7 @@
7676
<dependency>
7777
<groupId>com.google.protobuf</groupId>
7878
<artifactId>protobuf-java-util</artifactId>
79-
<version>3.20.0</version>
79+
<version>3.20.1-rc-1</version>
8080
</dependency>
8181
<dependency>
8282
<groupId>org.jruby</groupId>

src/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ else
1818
PTHREAD_DEF =
1919
endif
2020

21-
PROTOBUF_VERSION = 31:0:0
21+
PROTOBUF_VERSION = 31:1:0
2222

2323
if GCC
2424
# Turn on all warnings except for sign comparison (we ignore sign comparison

src/google/protobuf/any.pb.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/google/protobuf/api.pb.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/google/protobuf/compiler/plugin.pb.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/google/protobuf/descriptor.pb.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/google/protobuf/duration.pb.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/google/protobuf/empty.pb.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/google/protobuf/field_mask.pb.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/google/protobuf/port_def.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
#ifdef PROTOBUF_VERSION
158158
#error PROTOBUF_VERSION was previously defined
159159
#endif
160-
#define PROTOBUF_VERSION 3020000
160+
#define PROTOBUF_VERSION 3020001
161161

162162
#ifdef PROTOBUF_MIN_HEADER_VERSION_FOR_PROTOC
163163
#error PROTOBUF_MIN_HEADER_VERSION_FOR_PROTOC was previously defined
@@ -172,7 +172,7 @@
172172
#ifdef PROTOBUF_VERSION_SUFFIX
173173
#error PROTOBUF_VERSION_SUFFIX was previously defined
174174
#endif
175-
#define PROTOBUF_VERSION_SUFFIX ""
175+
#define PROTOBUF_VERSION_SUFFIX "-rc1"
176176

177177
#if defined(PROTOBUF_NAMESPACE) || defined(PROTOBUF_NAMESPACE_ID)
178178
#error PROTOBUF_NAMESPACE or PROTOBUF_NAMESPACE_ID was previously defined

src/google/protobuf/source_context.pb.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/google/protobuf/struct.pb.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/google/protobuf/stubs/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ namespace internal {
8282

8383
// The current version, represented as a single integer to make comparison
8484
// easier: major * 10^6 + minor * 10^3 + micro
85-
#define GOOGLE_PROTOBUF_VERSION 3020000
85+
#define GOOGLE_PROTOBUF_VERSION 3020001
8686

8787
// A suffix string for alpha, beta or rc releases. Empty for stable releases.
88-
#define GOOGLE_PROTOBUF_VERSION_SUFFIX ""
88+
#define GOOGLE_PROTOBUF_VERSION_SUFFIX "-rc1"
8989

9090
// The minimum header version which works with the current version of
9191
// the library. This constant should only be used by protoc's C++ code

src/google/protobuf/timestamp.pb.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/google/protobuf/type.pb.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)