Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump protobuf and protoc_plugin #2021

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 19, 2023

Bumps protobuf and protoc_plugin. These dependencies needed to be updated together.
Updates protobuf from 2.1.0 to 3.0.0

Release notes

Sourced from protobuf's releases.

protobuf-3.0.0

  • Require Dart 2.19.
  • Remove ReadonlyMessageMixin (#183, #644)
  • Remove frozenMessageModificationHandler (#175, #643)
  • Remove PbListBase and FrozenPbList types. All proto repeated fields now use PbList. To check if a list is frozen, use isFrozen getter. (#624, #626)
  • Initialize map fields in GeneratedMessage.getField. This behavior is consistent with getField called on repeated fields. (#373, #707)
  • Remove unused and optional PbMap constructor argument BuilderInfo? info. ([d94d3f0])
  • UnknownFieldSetField methods hasRequiredFields, isInitialized and getter length removed. (#721)
  • Update library documentation to hide internals, add documentation for public types. (#681)
  • Fix PbMap._isReadonly field initialization in PbMap.unmodifiable. (#741, #754)
  • Fix decoding map fields when key or value (or both) fields of a map entry is missing. (#719, #745)
  • Fix updating frozen (immutable) messages with merge methods (mergeFromBuffer, mergeFromProto3Json, ...). (#489, #727)
  • Fix handling null values in proto3 JSON deserializer. (#751, #760, #763)
  • Fix handling negative JSON values when parsing uint32 fields. (#839)
  • Avoid serializing unknown fields twice in reparseMessage. (#840)

#183: google/protobuf.dart#183 #644: google/protobuf.dart#644 #175: google/protobuf.dart#175 #643: google/protobuf.dart#643 #624: google/protobuf.dart#624 #626: google/protobuf.dart#626 #373: google/protobuf.dart#373 #707: google/protobuf.dart#707 [d94d3f0]: google/protobuf.dart@d94d3f0 #721: google/protobuf.dart#721 #681: google/protobuf.dart#681 #741: google/protobuf.dart#741 #719: google/protobuf.dart#719 #745: google/protobuf.dart#745 #489: google/protobuf.dart#489 #727: google/protobuf.dart#727 #751: google/protobuf.dart#751 #760: google/protobuf.dart#760 #763: google/protobuf.dart#763 #754: google/protobuf.dart#754 #839: google/protobuf.dart#839 #840: google/protobuf.dart#840

Commits
  • a9bf79f Release protobuf-3.0.0, protoc_plugin-21.0.0 (#843)
  • 6f3fc90 More simplifications, add an argument type (#842)
  • 831003b Minor refactoring in ExtensionRegistry.getExtension (#841)
  • 0d820ef Avoid serializing unknown fields twice in reparseMessage (#840)
  • edf8e92 Fix parsing negative JSON values for uint32 fields (#839)
  • 2931b2e Add PR links to recent CHANGELOG entries (#838)
  • da6953c Update to latest lints and Dart SDK (#828)
  • 346a72d Fix generated ignore_for_file directives (#833)
  • 35ea45f Latest mono_repo (#834)
  • 7d2d293 Sync some g3 changes, minor refactoring (#832)
  • Additional commits viewable in compare view

Updates protoc_plugin from 20.0.1 to 21.0.0

Release notes

Sourced from protoc_plugin's releases.

protoc_plugin-21.0.0

  • Identifiers fromBuffer, fromJson, $_defaultFor, initByValue are no longer reserved. Proto fields with those Dart names will no longer have a suffix added. (#679)

  • Remove message constructor arguments. Constructors with arguments cause increase in release binary sizes even when no arguments are passed to the constructors. (#703)

    Migration:

    Set the fields after construction, using cascade syntax. For example, if you have:

    MyMessage(a: 123, b: [1, 2, 3])

    You can do:

    MyMessage()
      ..a = 123
      ..b.addAll([1, 2, 3])
  • Require Dart 2.19.

  • Export public dependencies (import publics in proto files) in .pbenum.dart files, same as .pb.dart files. ([9aad6aa])

  • Fix decoding map fields when key or value (or both) fields of a map entry is missing. (#719, #745)

  • Generated files now split ignore_for_file comments across multiple lines when necessary. (#770)

  • Generated files now uses shared consts to eliminate repeated bool.fromEnvironment() expressions. (#772)

  • Removed accidental /// at the top of generated Dart files to avoid new dangling_library_doc_comments lint. (#774)

  • Generated files now have sorted imports and have fewer import-related ignore_for_file: analysis directives. (#778)

  • Remove duplicated consts in generated files. (#773)

#679: google/protobuf.dart#679 #703: google/protobuf.dart#703 [9aad6aa]: https://github.com/google/protobuf.dart/commits/9aad6aa #719: google/protobuf.dart#719 #745: google/protobuf.dart#745 #770: google/protobuf.dart#770 #772: google/protobuf.dart#772 #773: google/protobuf.dart#773 #774: google/protobuf.dart#774 #778: google/protobuf.dart#778

Commits
  • a9bf79f Release protobuf-3.0.0, protoc_plugin-21.0.0 (#843)
  • 6f3fc90 More simplifications, add an argument type (#842)
  • 831003b Minor refactoring in ExtensionRegistry.getExtension (#841)
  • 0d820ef Avoid serializing unknown fields twice in reparseMessage (#840)
  • edf8e92 Fix parsing negative JSON values for uint32 fields (#839)
  • 2931b2e Add PR links to recent CHANGELOG entries (#838)
  • da6953c Update to latest lints and Dart SDK (#828)
  • 346a72d Fix generated ignore_for_file directives (#833)
  • 35ea45f Latest mono_repo (#834)
  • 7d2d293 Sync some g3 changes, minor refactoring (#832)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [protobuf](https://github.com/google/protobuf.dart) and [protoc_plugin](https://github.com/google/protobuf.dart). These dependencies needed to be updated together.

Updates `protobuf` from 2.1.0 to 3.0.0
- [Release notes](https://github.com/google/protobuf.dart/releases)
- [Commits](google/protobuf.dart@protobuf-v2.1.0...protobuf-v3.0.0)

Updates `protoc_plugin` from 20.0.1 to 21.0.0
- [Release notes](https://github.com/google/protobuf.dart/releases)
- [Commits](google/protobuf.dart@protoc_plugin-v20.0.1...protoc_plugin-v21.0.0)

---
updated-dependencies:
- dependency-name: protobuf
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: protoc_plugin
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 19, 2023
@nex3 nex3 merged commit c41d52a into main Jun 20, 2023
@nex3 nex3 deleted the dependabot/pub/protobuf-and-protoc_plugin-3.0.0 branch June 20, 2023 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant