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
createPromiseClient
andPromiseClient
by @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