Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's Changed
KeepAlive
As of this release, Connect-ES offers Basic Keepalive support for HTTP/2 for clients that use one of the transports from
@bufbuild/connect-node
. Note that this replaces the optionkeepSessionAlive
, which is deprecated with this PR.In it's most simple form, the following example enables regular PINGs every 5 minutes:
For more information, see #673
JSON parser ignores unknown fields by default
This release also changes the default behavior of the JSON parser so that unknown fields are ignored rather than rejected. Previously, Connect-ES followed the official guidance of the proto3 language spec and rejected unknown fields by default in parsing. However, this contradicts with the ethos that adding fields to a Protobuf definition should not be a breaking change. Therefore, the default behavior has been changed so any new/unknown fields are simply ignored.
Note that this could be considered a breaking change if consumers were relying on this rejection behavior.
Enhancements
Full Changelog: v0.9.1...v0.10.0