open-feature / js-sdk-contrib

OpenFeature Providers and Hooks for JavaScript
https://openfeature.dev
Apache License 2.0
37 stars 37 forks source link

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

Open renovate[bot] opened 2 months ago

renovate[bot] commented 2 months ago

This PR contains the following updates:

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

Release Notes

bufbuild/protobuf-es (@​bufbuild/protobuf) ### [`v2.2.2`](https://redirect.github.com/bufbuild/protobuf-es/releases/tag/v2.2.2) [Compare Source](https://redirect.github.com/bufbuild/protobuf-es/compare/v2.2.1...v2.2.2) #### What's Changed - Print diagnostics when a protoplugin fails to emit files by [@​will-wow](https://redirect.github.com/will-wow) in [https://github.com/bufbuild/protobuf-es/pull/1003](https://redirect.github.com/bufbuild/protobuf-es/pull/1003) - Fix JSON types for fields with uncommon json_name by [@​nicole0707](https://redirect.github.com/nicole0707) in [https://github.com/bufbuild/protobuf-es/pull/1004](https://redirect.github.com/bufbuild/protobuf-es/pull/1004) #### New Contributors - [@​will-wow](https://redirect.github.com/will-wow) made their first contribution in [https://github.com/bufbuild/protobuf-es/pull/1003](https://redirect.github.com/bufbuild/protobuf-es/pull/1003) - [@​nicole0707](https://redirect.github.com/nicole0707) made their first contribution in [https://github.com/bufbuild/protobuf-es/pull/1004](https://redirect.github.com/bufbuild/protobuf-es/pull/1004) **Full Changelog**: https://github.com/bufbuild/protobuf-es/compare/v2.2.1...v2.2.2 ### [`v2.2.1`](https://redirect.github.com/bufbuild/protobuf-es/releases/tag/v2.2.1) [Compare Source](https://redirect.github.com/bufbuild/protobuf-es/compare/v2.2.0...v2.2.1) #### What's Changed - Support target prefix in plugin option rewrite_imports [@​timostamm](https://redirect.github.com/timostamm) in [https://github.com/bufbuild/protobuf-es/pull/998](https://redirect.github.com/bufbuild/protobuf-es/pull/998) **Full Changelog**: https://github.com/bufbuild/protobuf-es/compare/v2.2.0...v2.2.1 ### [`v2.2.0`](https://redirect.github.com/bufbuild/protobuf-es/releases/tag/v2.2.0) [Compare Source](https://redirect.github.com/bufbuild/protobuf-es/compare/v2.1.0...v2.2.0) #### What's Changed - Properly reset BinaryWriter after finish by [@​bhollis](https://redirect.github.com/bhollis) in [https://github.com/bufbuild/protobuf-es/pull/986](https://redirect.github.com/bufbuild/protobuf-es/pull/986) - Add typed `DescMethod` variants by [@​srikrsna-buf](https://redirect.github.com/srikrsna-buf) in [https://github.com/bufbuild/protobuf-es/pull/985](https://redirect.github.com/bufbuild/protobuf-es/pull/985) #### New Contributors - [@​bhollis](https://redirect.github.com/bhollis) made their first contribution in [https://github.com/bufbuild/protobuf-es/pull/986](https://redirect.github.com/bufbuild/protobuf-es/pull/986) **Full Changelog**: https://github.com/bufbuild/protobuf-es/compare/v2.1.0...v2.2.0 ### [`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**: https://github.com/bufbuild/protobuf-es/compare/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!

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 is behind base branch, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about this update again.



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

renovate[bot] commented 2 months ago

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

β™» Renovate will retry this branch, including artifacts, only when one of the following happens:

The artifact failure details are included below:

File name: package-lock.json
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @connectrpc/connect@1.4.0
npm error Found: @bufbuild/protobuf@2.2.2
npm error node_modules/@bufbuild/protobuf
npm error   @bufbuild/protobuf@"^2.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @bufbuild/protobuf@"^1.4.2" from @connectrpc/connect@1.4.0
npm error node_modules/@connectrpc/connect
npm error   @connectrpc/connect@"^1.4.0" from the root project
npm error   peer @connectrpc/connect@"1.4.0" from @connectrpc/connect-web@1.4.0
npm error   node_modules/@connectrpc/connect-web
npm error     @connectrpc/connect-web@"^1.4.0" from the root project
npm error
npm error Conflicting peer dependency: @bufbuild/protobuf@1.10.0
npm error node_modules/@bufbuild/protobuf
npm error   peer @bufbuild/protobuf@"^1.4.2" from @connectrpc/connect@1.4.0
npm error   node_modules/@connectrpc/connect
npm error     @connectrpc/connect@"^1.4.0" from the root project
npm error     peer @connectrpc/connect@"1.4.0" from @connectrpc/connect-web@1.4.0
npm error     node_modules/@connectrpc/connect-web
npm error       @connectrpc/connect-web@"^1.4.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-11-05T04_56_04_920Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-11-05T04_56_04_920Z-debug-0.log