Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency @bufbuild/protoc-gen-es to v2 (#2891)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@bufbuild/protoc-gen-es](https://redirect.github.com/bufbuild/protobuf-es) ([source](https://redirect.github.com/bufbuild/protobuf-es/tree/HEAD/packages/protoc-gen-es)) | [`1.10.0` -> `2.1.0`](https://renovatebot.com/diffs/npm/@bufbuild%2fprotoc-gen-es/1.10.0/2.1.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@bufbuild%2fprotoc-gen-es/2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@bufbuild%2fprotoc-gen-es/2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@bufbuild%2fprotoc-gen-es/1.10.0/2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@bufbuild%2fprotoc-gen-es/1.10.0/2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>bufbuild/protobuf-es (@​bufbuild/protoc-gen-es)</summary> ### [`v2.1.0`](https://redirect.github.com/bufbuild/protobuf-es/releases/tag/v2.1.0) [Compare Source](https://redirect.github.com/bufbuild/protobuf-es/compare/v2.0.0...v2.1.0) #### What's Changed - Fix assignability of wrong message type in create by [@​timostamm](https://redirect.github.com/timostamm) in [https://github.com/bufbuild/protobuf-es/pull/972](https://redirect.github.com/bufbuild/protobuf-es/pull/972) - Generate full JSDoc for JSON types by [@​timostamm](https://redirect.github.com/timostamm) in [https://github.com/bufbuild/protobuf-es/pull/975](https://redirect.github.com/bufbuild/protobuf-es/pull/975) **Full Changelog**: bufbuild/protobuf-es@v2.0.0...v2.1.0 ### [`v2.0.0`](https://redirect.github.com/bufbuild/protobuf-es/releases/tag/v2.0.0) [Compare Source](https://redirect.github.com/bufbuild/protobuf-es/compare/v1.10.0...v2.0.0) #### What's new in version 2 To support [Protobuf editions](https://protobuf.dev/editions/overview/), 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: ```typescript 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](https://redirect.github.com/bufbuild/protobuf-es/blob/main/MANUAL.md#field-presence-and-default-values). This approach solves several outstanding issues, such as: - [https://github.com/bufbuild/protobuf-es/issues/397](https://redirect.github.com/bufbuild/protobuf-es/issues/397) Provide custom options at runtime - [https://github.com/bufbuild/protobuf-es/issues/551](https://redirect.github.com/bufbuild/protobuf-es/issues/551) Generated types allow assigning wrong message type if it is a superset of the target type - [https://github.com/bufbuild/protobuf-es/issues/414](https://redirect.github.com/bufbuild/protobuf-es/issues/414) Improvements for proto2 required - [https://github.com/bufbuild/protobuf-es/issues/738](https://redirect.github.com/bufbuild/protobuf-es/issues/738) type-save full enum value names - [https://github.com/bufbuild/protobuf-es/issues/928](https://redirect.github.com/bufbuild/protobuf-es/issues/928) Better interop with 3rd party frameworks requiring plain objects - [https://github.com/bufbuild/protobuf-es/issues/508](https://redirect.github.com/bufbuild/protobuf-es/issues/508) JSON types > \[!TIP] > > Take a look at the [upgrade guide](https://redirect.github.com/bufbuild/protobuf-es/blob/main/MANUAL.md#migrating-from-version-1) to learn more. > \[!NOTE] > > [Connect-ES](https://redirect.github.com/connectrpc/connect-es) does not support version 2 yet. We will update it shortly. #### Contributors Thanks to [@​srikrsna-buf](https://redirect.github.com/srikrsna-buf) for his contributions to v2! </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/TBD54566975/ftl). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC45Ny4wIiwidXBkYXRlZEluVmVyIjoiMzguOTcuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicnVuLWFsbCJdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Wes <[email protected]>
- Loading branch information