Protobuf Team Bot
f1d3f28eca
Automated rollback of commit 976a6eb6a4
.
...
PiperOrigin-RevId: 613296331
9 months ago
Protobuf Team Bot
976a6eb6a4
Rolling back while figuring out why some tests failed.
...
PiperOrigin-RevId: 607458035
9 months ago
Protobuf Team Bot
1f9b71e9dd
Check if the number of seconds is valid for a timestamp before creating a
...
normalized timestamp.
Without this change, an input of `9223372036854775807, 2` leads to a java.lang.ArithmeticException: overflow.
PiperOrigin-RevId: 607359958
9 months ago
Ian Baker
89bea36856
Document that `Timestamps.parse` might emit zero fractional digits
...
PiperOrigin-RevId: 606870523
10 months ago
aiuto
3ab1276bbb
Update Bazel references to rules_pkg to the supported file locations. ( #15780 )
...
WIP: I want to see this pass CI first.
Fixes : #15779
3 scripted transforms:
```
-load("@rules_pkg//:mappings.bzl", ...)
+load("@rules_pkg//pkg:mappings.bzl", ...)
```
```
-load("@rules_pkg//:pkg.bzl", "pkg_tar")
+load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
```
```
-load("@rules_pkg//:pkg.bzl", "pkg_zip")
+load("@rules_pkg//pkg:zip.bzl", "pkg_zip")
```
Closes #15780
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/15780 from aiuto:rules_pkg a630276341
PiperOrigin-RevId: 606641398
10 months ago
Protobuf Team Bot
2699579875
Breaking change: Remove the deprecated always_print_primitive_fields option from Java, Python and C++ JSON parsers.
...
The replacement always_print_without_presence_fields should be used instead, which is very similar but has consistent handling of optional fields by not affecting them.
PiperOrigin-RevId: 604381178
10 months ago
Protobuf Team Bot
7d43131a0a
Rename the 'includingDefaultValueWithoutPresenceFields' and 'always_print_without_presence_fields' to 'alwaysPrintFieldsWithNoPresence' in the Cpp, Py and Java JSON serializers for consistency.
...
PiperOrigin-RevId: 604292220
10 months ago
Protobuf Team Bot
d111589bc0
Add a new 'includingDefaultValueWithoutPresenceFields' option to the Java parser which is intended to replace the current 'includingDefaultValueFields'.
...
The old flag accidentally had inconsistent behavior between proto2 optional and proto3 optional fields, the new flag treats them consistently (and is consistent with the preexisting behavior of the Go JSON serializer).
includingDefaultValueFields is now deprecated and will be removed in an upcoming release.
PiperOrigin-RevId: 603449195
10 months ago
Protobuf Team Bot
44ec9d9e86
Automated rollback of commit 58baeb4c3b
.
...
PiperOrigin-RevId: 602770552
10 months ago
Protobuf Team Bot
58baeb4c3b
Add a new 'includingDefaultValueWithoutPresenceFields' option to the Java parser which is intended to replace the current 'includingDefaultValueFields'.
...
The old flag accidentally had inconsistent behavior between proto2 optional and proto3 optional fields, the new flag treats them consistently (and is consistent with the preexisting behavior of the Go JSON serializer).
PiperOrigin-RevId: 602711486
10 months ago
Dennis Shao
9146ce6ddb
Updating version.json and repo version numbers to: 27-dev ( #15590 )
...
Closes #15590
PiperOrigin-RevId: 601468713
10 months ago
Sandy Zhang
303239d74d
Drop Protobuf support for Android KitKat per EOL and add existing minimum Java 1.8 in Maven pom.xmls
...
See https://android-developers.googleblog.com/2023/07/google-play-services-discontinuing-updates-for-kitkat.html for more details on Android KitKat EOL.
PiperOrigin-RevId: 600609333
10 months ago
Sandy Zhang
63623a688c
Remove public access to Java Edition APIs e.g. getEdition(), getEditionName().
...
Editions should not be used to make semantic decisions -- specific helpers (e.g. FieldDescriptor.hasPresence()) should be used instead. FileDescriptorProto can be used to access editions for *non semantic* purposes, incl. with ProtoFileUti.
These APIs have not been released yet and are thus non-breaking.
PiperOrigin-RevId: 597362543
11 months ago
Protobuf Team Bot
2d7376ea37
Internal change
...
PiperOrigin-RevId: 590871044
12 months ago
Clayton Walker
d580fde63a
Add Automatic-Module-Name ( #14562 )
...
Adds Automatic-Module-Name after it was lost during the maven-bazel migration (and subsequent re-addition of osgi bundle support).
Updates OsgiWrapper to support adding the Automatic-Module-Name header to the list of properties supported by the `osgi_java_library` rule.
Fixes #12639
Closes #14562
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/14562 from Sineaggi:add-automatic-module-name a27b3e6695
PiperOrigin-RevId: 579748655
1 year ago
Jie Luo
1231af10c7
merge 25.x to main ( #14617 )
...
Closes #14617
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/14617 from anandolee:25.x ac86c5ef32
PiperOrigin-RevId: 578996979
1 year ago
Protobuf Team Bot
3ea774370a
Internal change
...
PiperOrigin-RevId: 578944754
1 year ago
Protobuf Team Bot
6b5d8db01f
Updating version.json and repo version numbers to: 25.0
1 year ago
Protobuf Team Bot
ba1aab2baf
Updating version.json and repo version numbers to: 25.0-rc2
1 year ago
Protobuf Team Bot
896f3d8ced
Updating version.json and repo version numbers to: 25.0-rc1
1 year ago
Kurt Alfred Kluever
833ded7298
Clean up assertions in `DurationsTest` and `TimestampsTest` a bit.
...
PiperOrigin-RevId: 572279223
1 year ago
Protobuf Team Bot
8f8513835c
Timestamps.parse: Add error handling for invalid hours/minutes in the timezone offset.
...
Before this CL, bad offsets result in a NumberFormatException (from parseLong) instead of the documented ParseException/IllegalArgumentException.
PiperOrigin-RevId: 572266056
1 year ago
Protobuf Team Bot
b86b9ff337
Internal change.
...
PiperOrigin-RevId: 568232318
1 year ago
Sandy Zhang
81068e8e8c
Internal change
...
PiperOrigin-RevId: 566426899
1 year ago
Joshua Haberman
7853a5e301
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 563956563
1 year ago
Joshua Haberman
f78eaa9aa2
Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
...
PiperOrigin-RevId: 563888947
1 year ago
ericsalo
843b74e601
Main 202308091812 ( #13489 )
...
Closes #13489
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/13489 from protocolbuffers:main-202308091812 e729f0bf5a
PiperOrigin-RevId: 555301642
1 year ago
Protobuf Team Bot
aba9a7f1a3
Internal change
...
PiperOrigin-RevId: 555251853
1 year ago
Protobuf Team Bot
093e258a71
Updating version.json and repo version numbers to: 24.0
1 year ago
Kurt Alfred Kluever
279d627b1e
Improve javadocs of `Timestamps.now()`.
...
PiperOrigin-RevId: 553183786
1 year ago
Protobuf Team Bot
3487ae0c01
Updating version.json and repo version numbers to: 24.0-rc3
1 year ago
Protobuf Team Bot
034ec9d9f6
Updating version.json and repo version numbers to: 24.0-rc2
1 year ago
Protobuf Team Bot
05835e374d
Updating version.json and repo version numbers to: 24.0-rc1
1 year ago
Chad Wilson
cd615a8c65
deps: Update Guava to 32.0.0 ( #12953 )
...
Updates Guava to [32.0.0](https://github.com/google/guava/releases/tag/v32.0.0 ) to include fixes for CVE-2020-8908 and CVE-2023-2976 (https://github.com/google/guava/issues/2575 ) which affects certain builds with shaded usage, e.g ruby via jruby/java platform such as https://rubygems.org/gems/google-protobuf/versions/3.23.2-java
- Protobuf does not appear to (directly) use the affected `Files.createTempDir` or `FileBackedOutputStream` code which might behave differently on Windows.
- Referred to #9707 and #9757 for reference
- Updated transitive dependency versions match https://mvnrepository.com/artifact/com.google.guava/guava/32.0.0-jre (note major version change for `j2objc-annotations` from `1.3` --> `2.8`)
May need backporting to `23.x` branch if sufficiently compatible.
Closes #12953
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12953 from chadlwilson:update-guava-32 9c396b6759
PiperOrigin-RevId: 538666552
1 year ago
deannagarcia
0e23f18865
Merge to main after 23.0 release ( #12721 )
...
Closes #12721
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12721 from protocolbuffers:main-202305082101 36482b4c68
PiperOrigin-RevId: 530664393
2 years ago
Protobuf Team Bot
67d9ea87f3
Internal change
...
PiperOrigin-RevId: 530619366
2 years ago
Protobuf Team Bot
6e511679de
Updating version.json and repo version numbers to: 23.0
2 years ago
Protobuf Team Bot
d8f44cc2fb
Updating version.json and repo version numbers to: 23.0-rc3
2 years ago
Protobuf Team Bot
51f51ac4ef
Updating version.json and repo version numbers to: 23.0-rc2
2 years ago
Deanna Garcia
433c35dbcb
Remove osgi dependency from main java libraries.
...
//java:core, //java:lite, and //java:util shouldn't have this extra dependency. For now, we just add a separate version but we will look into using the java_library in protobuf_versioned_java_library in the future.
PiperOrigin-RevId: 527643325
2 years ago
Deanna Garcia
167e3e5081
Remove osgi dependency from main java libraries.
...
//java:core, //java:lite, and //java:util shouldn't have this extra dependency. For now, we just add a separate version but we will look into using the java_library in protobuf_versioned_java_library in the future.
PiperOrigin-RevId: 527643325
2 years ago
Protobuf Team Bot
b21d6be78b
Updating version.json and repo version numbers to: 23.0-rc1
2 years ago
Kurt Alfred Kluever
295f1125ce
Adds `Timestamps.now()`.
...
PiperOrigin-RevId: 526160914
2 years ago
Protobuf Team Bot
482156c0f9
Updating version.json and repo version numbers to: 22.3
2 years ago
Protobuf Team Bot
4b5652b030
Re-attach OSGI headers to lite,core, and util. This information was dropped in the move from maven to bazel.
...
PiperOrigin-RevId: 518267412
2 years ago
zhangskz
b15bf628e5
Merge 22.x back to main ( #12200 )
...
Closes #12200
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12200 from protocolbuffers:main-202303101853 1efa2e7205
PiperOrigin-RevId: 515722578
2 years ago
Mike Kruskal
25dfc39b11
Internal changes
...
PiperOrigin-RevId: 515648197
2 years ago
Protobuf Team Bot
81f89d509d
Updating version.json and repo version numbers to: 22.2
2 years ago
Deanna Garcia
99ed01009f
Add version to intra proto dependencies and add kotlin stdlib dependency
2 years ago
Deanna Garcia
d80c12d322
Add $ back for osgi header
2 years ago