gate icon indicating copy to clipboard operation
gate copied to clipboard

fix(deps): update dependency @bufbuild/protobuf to v2

Open renovate[bot] opened this issue 11 months ago • 1 comments
trafficstars

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@bufbuild/protobuf (source) ^1.0.0 -> ^2.0.0 age adoption passing confidence

[!WARNING] Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

bufbuild/protobuf-es (@​bufbuild/protobuf)

v2.2.3

Compare Source

v2.2.2

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/bufbuild/protobuf-es/compare/v2.2.1...v2.2.2

v2.2.1

Compare Source

What's Changed

Full Changelog: https://github.com/bufbuild/protobuf-es/compare/v2.2.0...v2.2.1

v2.2.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/bufbuild/protobuf-es/compare/v2.1.0...v2.2.0

v2.1.0

Compare Source

What's Changed

Full Changelog: https://github.com/bufbuild/protobuf-es/compare/v2.0.0...v2.1.0

v2.0.0

Compare Source

What's new in version 2

To support Protobuf editions, we have to make breaking changes that also affect users of proto2 and proto3. This prompted us to make more extensive changes that take feedback from version 1 into account:

We no longer use classes. Instead, we generate a schema object and a type for every message. To create a new instance, to serialize, and for other concerns, we provide functions. Here is a simple example:

import { create, toBinary } from "@​bufbuild/protobuf";
import { UserSchema } from "./gen/example_pb";

let user = create(UserSchema, {
  firstName: "Homer",
  lastName: "Simpson",
  active: true,
});

const bytes = toBinary(UserSchema, user);

If you use proto3, messages are now plain objects. Files with proto2 and editions use the prototype chain to track field presence.

This approach solves several outstanding issues, such as:

[!TIP]

Take a look at the upgrade guide to learn more.

[!NOTE]

Connect-ES does not support version 2 yet. We will update it shortly.

Contributors

Thanks to @​srikrsna-buf for his contributions to v2!


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 these updates 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[bot] avatar Nov 20 '24 21:11 renovate[bot]