Skip to content

v0.10.0

Compare
Choose a tag to compare
@smaye81 smaye81 released this 14 Jun 19:43
· 308 commits to main since this release
b6187e9

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 option keepSessionAlive, which is deprecated with this PR.

In it's most simple form, the following example enables regular PINGs every 5 minutes:

import { createConnectTransport } from "@bufbuild/connect-node";

const transport = createConnectTransport({
  httpVersion: "2",
  baseUrl: "https://demo.connect.build",
  pingIntervalMs: 1000 * 60 * 5,
});

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

  • Manage HTTP/2 connections and keep them alive with PING frames by @timostamm in #673
  • Ignore unknown JSON fields by default by @timostamm in #642
  • Modify parsing of response for Connect unary requests by @smaye81 in #668

Full Changelog: v0.9.1...v0.10.0