Skip to content

Releases: connectrpc/connect-es

v1.0.0

18 Sep 16:05
3efe987
Compare
Choose a tag to compare

This is Connect-ES's first stable release! It does not contain any user-facing changes.

If you are coming from version 0.13.0 or earlier, run npx @connectrpc/connect-migrate@latest to update your dependencies. See here for details.

Thanks to all contributors!

v1.0.0-rc1

13 Sep 09:43
4d7b1ab
Compare
Choose a tag to compare

If you are coming from version 0.13.0 or earlier, run npx @connectrpc/connect-migrate@latest to update your dependencies. See here for details.

What's Changed

Full Changelog: v0.13.2...v1.0.0-rc1

v0.13.2

29 Aug 17:15
2675e56
Compare
Choose a tag to compare

If you are coming from version 0.13.0 or earlier, run npx @connectrpc/connect-migrate@latest to update your dependencies. See here for details.

What's Changed

Full Changelog: v0.13.1...v0.13.2

v0.13.1

21 Aug 17:42
ce0fe6c
Compare
Choose a tag to compare

What's Changed

To keep Connect well-maintained and responsive to its users' needs over the long term, we're preparing to donate it to a foundation. (More details on that soon!) To cleanly separate Connect from Buf's other code, we're moving development to the connectrpc GitHub organization and to the connectrpc organization on npmjs.com.

This is the first release that publishes packages with the new @connectrpc scope. To make the switch seamless, we are introducing a small tool that updates all references in your project automatically, @connectrpc/connect-migrate.

The switch is as simple as running a single command:

$ npx @connectrpc/connect-migrate@latest
Scanning... ✓
    1 package.json file
    1 lock file
    5 source files
Updating source files... 
  src/client.ts ✓
  src/server.ts ✓
  src/webclient.ts ✓
Updating packages... ✓
  package.json ✓
Updating lock file... 
  package-lock.json ✓
Old package New package
@bufbuild/connect v0.13.0 @connectrpc/connect v0.13.1
@bufbuild/connect-web v0.13.0 @connectrpc/connect-web v0.13.1
@bufbuild/connect-fastify v0.13.0 @connectrpc/connect-fastify v0.13.1
@bufbuild/connect-node v0.13.0 @connectrpc/connect-node v0.13.1
@bufbuild/connect-next v0.13.0 @connectrpc/connect-next v0.13.1
@bufbuild/connect-express v0.13.0 @connectrpc/connect-express v0.13.1
@bufbuild/protoc-gen-connect-es v0.13.0 @connectrpc/protoc-gen-connect-es v0.13.1
@bufbuild/connect-query v0.4.1 @connectrpc/connect-query v0.4.2
@bufbuild/protoc-gen-connect-query v0.4.1 @connectrpc/protoc-gen-connect-query v0.4.2
@bufbuild/protoc-gen-connect-query-react v0.4.1 @connectrpc/protoc-gen-connect-query-react v0.4.2

Full Changelog: v0.13.0...v0.13.1

v0.13.0

17 Aug 16:07
6e2fb65
Compare
Choose a tag to compare

What's Changed

This release changes the User-Agent used with gRPC and gRPC-web clients. Previously, the User-Agent was @bufbuild/connect-web, now it is connect-es/0.13.0. Future releases will bump the version number in the User-Agent string.

Enhancements

  • Handle multiple set-cookie headers from fetch API Headers object by @tcarnes in #746
  • Update gRPC and gRPC-web user agent by @timostamm in #770

Bugfixes

New Contributors

Full Changelog: v0.12.0...v0.13.0

v0.12.0

25 Jul 13:29
00c7a60
Compare
Choose a tag to compare

What's Changed

Improvements and fixes to the HTTP/2 session management in Node.js

  • Do not block Node.js from exiting on an idle HTTP/2 connection by @timostamm in #716
  • Avoid incorrect maintained conn state by @mustard-mh in #712
  • Assert that the HTTP/2 connection is open by @timostamm in #687
  • Fix memory leak for 'error' on session during h2 requests by @timostamm in #726

Other changes

  • Update ConnectError.from to keep the cause by @timostamm in #722
  • Remove deprecated protoc-gen-connect-web plugin by @smaye81 in #717

New Contributors

Full Changelog: v0.11.0...v0.12.0

v0.11.0

29 Jun 14:27
5d6dc65
Compare
Choose a tag to compare

What's Changed

Disregard non-JSON error response bodies for unary requests

This release makes a change in how response bodies are parsed for Connect unary requests that result in an HTTP error. Previously, all response bodies for unary requests that returned an HTTP error status were parsed with response.json(). However, this could lead to errors with non-JSON bodies. Now, only responses with a Content-Type of application/json will have the body parsed as JSON and added to the resulting Connect error.

For all other errors, the resulting Connect error will show the HTTP status code as the message and the corresponding Connect error code as the code.

To reiterate, this only affects Connect protocol unary requests that end with an HTTP error status code. All other protocols and/or RPC types are unaffected.

Enhancements

New Contributors

Full Changelog: v0.10.1...v0.11.0

v0.10.1

21 Jun 15:28
76b17ed
Compare
Choose a tag to compare

What's Changed

  • Handle GOAWAY frames with NO_ERROR in Node.js clients by @timostamm in #681

Full Changelog: v0.10.0...v0.10.1

v0.10.0

14 Jun 19:43
b6187e9
Compare
Choose a tag to compare

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

v0.9.1

30 May 17:28
a57540c
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.9.0...v0.9.1