Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency @connectrpc/connect to v2 #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 19, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@connectrpc/connect (source) 1.6.1 -> 2.0.1 age adoption passing confidence

Release Notes

connectrpc/connect-es (@​connectrpc/connect)

v2.0.1

Compare Source

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.

New Contributors

Full Changelog: connectrpc/connect-es@v2.0.0...v2.0.1

v2.0.0

Compare Source

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

Full Changelog: connectrpc/connect-es@v1.6.1...v2.0.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update dependency @connectrpc/connect to v2 Update dependency @connectrpc/connect to v2 - autoclosed Dec 8, 2024
@renovate renovate bot closed this Dec 8, 2024
@renovate renovate bot deleted the renovate/connectrpc-connect-2.x branch December 8, 2024 18:46
@renovate renovate bot changed the title Update dependency @connectrpc/connect to v2 - autoclosed Update dependency @connectrpc/connect to v2 Dec 9, 2024
@renovate renovate bot reopened this Dec 9, 2024
@renovate renovate bot force-pushed the renovate/connectrpc-connect-2.x branch from cfcb396 to b272768 Compare December 9, 2024 02:34
@renovate renovate bot force-pushed the renovate/connectrpc-connect-2.x branch from b272768 to 564cae2 Compare January 9, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants