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

Upgrade to protobuf v22.0 #394

Merged
merged 13 commits into from
Feb 28, 2023
Merged

Upgrade to protobuf v22.0 #394

merged 13 commits into from
Feb 28, 2023

Conversation

smaye81
Copy link
Member

@smaye81 smaye81 commented Feb 22, 2023

This upgrades Protobuf-ES to v22.0. A few changes were involved. Notably:

  • protocolbuffers/protobuf@ca1cb1b added checks to expect a failure when attempting to serialize NaN or Infinity with the Value WKT. This adds these checks to our generated Value code to adhere to the conformance spec.

  • This PR added conformance checks to check for negative values in the Duration WKT. This adds additional checks and unit tests to our generated Duration code to handle negative durations and adhere to the conformance spec.

  • protoc was changed to check the json_name option, and give errors for case-sensitive conflict, which caused some of our tests to fail. Tests have been updated.

Note that v22.0 also mentions the new editions syntax, although this is not used anywhere. Protobuf-ES validates the syntax value is only either proto2 or proto3 so we are handling this effectively at this point. An example error message if editions is used:

proto/address_book.proto:15:10:syntax value must be "proto2" or "proto3"

@smaye81 smaye81 marked this pull request as ready for review February 27, 2023 18:53
@smaye81 smaye81 merged commit 270f5ea into main Feb 28, 2023
@smaye81 smaye81 deleted the sayers/protobuf_22.0 branch February 28, 2023 13:09
This was referenced Feb 28, 2023
smaye81 added a commit that referenced this pull request Mar 2, 2023
This release includes the following:

## Enhancements
* Support size-delimited messages by @timostamm in #387.

## Bug Fixes
*  Upgrade to Protobuf v22.0 by @smaye81 in #394.
* Fix type declaration emitting when using NodeNext module resolution by
@fubhy in #398.
*  Strip rewrite_imports parameter by @smaye81 in #386.

## New Contributors
* @s-hakase made their first contribution in #367.
* @balzdur made their first contribution in #368.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants