Releases: connectrpc/connect-es
v2.1.1
What's Changed
- Do not hold on to HTTP/2 connections after receiving GOAWAY without open streams by @timostamm in #1566
- Add Protovalidate (@connectrpc/validate) to README by @jrinehart-buf in #1595
- Fix memory leak in Http2SessionManager's verify step by @ttyniwa in #1616
New Contributors
- @jrinehart-buf made their first contribution in #1595
- @ttyniwa made their first contribution in #1616
Full Changelog: v2.1.0...v2.1.1
v1.7.0
What's Changed
- Backport user-provided User-Agent header to v1 by @vovaspace in #1578
New Contributors
- @vovaspace made their first contribution in #1578
Full Changelog: v1.6.1...v1.7.0
v2.1.0
What's Changed
Important
TypeScript 5.9 includes breaking changes to lib.d.ts, forcing us to change return types for some functions from Uint8Array to Uint8Array<ArrayBuffer>. This is unlikely to affect you, but if it does, see #1560 for details.
- Update to TypeScript 5.9 and change return types from
Uint8ArraytoUint8Array<ArrayBuffer>by @timostamm in #1560 - Drop support for Node.js 18 by @timostamm in #1559
Full Changelog: v2.0.4...v2.1.0
v2.0.4
What's Changed
- Fix memory leak in Node.js universal HTTP client by @timostamm in #1547
Full Changelog: v2.0.3...v2.0.4
v2.0.3
What's Changed
- Support Node.js http.ClientRequestArgs["headers"] array by @timostamm in #1510
- Special case TimeoutError in ConnectError.from by @timostamm in #1526
- Add proto syntax highlighting to snippet in README by @stefanvanburen in #1529
- Optimize envelope decoding by @timostamm in #1530
New Contributors
- @stefanvanburen made their first contribution in #1529
Full Changelog: v2.0.2...v2.0.3
v2.0.2
What's Changed
- Ensure any error metadata is appended to target grpc response by @smaye81 in #1407
- Fix server interceptor not seeing the request message in server streaming rpcs by @srikrsna-buf in #1429
Full Changelog: v2.0.1...v2.0.2
v2.0.1
What's Changed
The only noteworthy changes in this release are enhancements made to the @connectrpc/connect-migrate package.
The migration tool now handles additional scenarios for migrating your code to Connect v2:
Transforms new to create:
- import { Foo } from "./foo_pb.js";
+ import { FooSchema } from "./foo_pb.js";
+ import { create } from "@bufbuild/protobuf";
- const foo = new Foo();
+ const foo = create(FooSchema);Transforms isMessage to use the schema:
import { isMessage } from "@bufbuild/protobuf";
- import { Foo } from "./foo_pb.js";
+ import { FooSchema } from "./foo_pb.js";
- isMessage(1, Foo);
+ isMessage(1, FooSchema);Transforms the static fromBinary, fromJson, and fromJsonString method calls:
- import { Foo } from "./foo_pb.js";
+ import { FooSchema } from "./foo_pb.js";
+ import { fromJson } from "@bufbuild/protobuf";
- Foo.fromJson(x, y);
+ fromJson(FooSchema, x, y);In addition, if the message is a well-known type, the import path is updated accordingly.
For details on Connect v2, see the v2 release notes as well as the full migration guide.
- Transform class references in connect-migrate by @timostamm and @smaye81 in #1342
New Contributors
- @HermanBilous made their first contribution in #1340
Full Changelog: v2.0.0...v2.0.1
v2.0.0
What's Changed
- We're upgrading to Protobuf-ES version 2. It's the largest change in this release.
- Connect-ES no longer needs its own code generator plugin.
- We're adding support for Next.js 15, Fastify 5, and Express 5.
- We're dropping support for old versions of Node.js and TypeScript. You'll need at least Node.js 18.14.1 and TypeScript 4.9.6.
The upgrade of the Protobuf runtime brings support for Editions and new APIs for Protobuf messages with support for custom options. Messages are now plain TypeScript types, which greatly improves compatibility with the ecosystem. For example, messages can be passed from a server-side component in Next.js to a client-side component without losing any data or types. To learn more about the enhancements, see the release blog post for Protobuf-ES v2.
Tip
If you are already using Connect, see our migration guide to upgrade to version 2.
Full Changelog
- Support Fastify v5 in @connectrpc/connect-fastify by @timostamm in #1296
- Support Express v5 in @connectrpc/connect-fastify by @timostamm in #1297
- Add support for Next.js v15 by @timostamm in #1290
- Allow user-provided User-Agent request header by @polRk in #1272
- Ensure that a signal exists for a completed RPC by @timostamm in #1282
- Require HTTP/2 for the gRPC transport by @timostamm in #1279
- Replace MethodInfo with Descriptor Types by @srikrsna-buf in #1255
- Remove "credentials" option from transports by @timostamm in #1242
- Remove
createPromiseClientandPromiseClientby @srikrsna-buf in #1240 - Bump minimum supported TypeScript version to 4.9.5 by @timostamm in #1231
- Remove support for Node.js v16 by @timostamm in #1225
- Remove Node10 subpath fallbacks by @timostamm in #1227
- Remove protoc-gen-connect-es by @timostamm in #1224
- Swith to protobuf v2 by @srikrsna-buf in 4fa60c8
Full Changelog: v1.6.1...v2.0.0
v2.0.0-rc.3
What's Changed
This is a release candidate for version 2. See here for an introduction.
- Update makeAnyClient signature to carry type information to narrow down method kinds by @timostamm in #1292
- Support Express v5 in @connectrpc/connect-fastify by @timostamm in #1297
- Support Fastify v5 in @connectrpc/connect-fastify by @timostamm in #1296
Full Changelog: v2.0.0-rc.2...v2.0.0-rc.3
v2.0.0-rc.2
What's Changed
This is a release candidate for version 2. See here for an introduction.
To give this version a try, run npx @connectrpc/connect-migrate@rc.
- Allow user-provided User-Agent request header by @polRk in #1272
- Add support for Next.js v15 by @timostamm in #1290
New Contributors
Full Changelog: v2.0.0-rc.1...v2.0.0-rc.2