Skip to content

Commit

Permalink
chore(deps): update dependency @bufbuild/protoc-gen-es to v2 (#2891)
Browse files Browse the repository at this point in the history
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 (@&#8203;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
[@&#8203;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
[@&#8203;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 "@&#8203;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
[@&#8203;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
renovate[bot] and wesbillman authored Oct 2, 2024
1 parent 9479c62 commit 74c415b
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 62 deletions.
18 changes: 7 additions & 11 deletions frontend/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,20 @@
"build-storybook": "storybook build"
},
"lint-staged": {
"*.(js|cjs|tsx|ts)": [
"pnpm run lint:fix"
]
"*.(js|cjs|tsx|ts)": ["pnpm run lint:fix"]
},
"browserslist": [
"> 2%"
],
"browserslist": ["> 2%"],
"source": "index.html",
"dependencies": {
"@bufbuild/protobuf": "^1.1.0",
"@bufbuild/protoc-gen-es": "1.10.0",
"@bufbuild/protobuf": "^1.10.0",
"@codemirror/autocomplete": "^6.18.0",
"@codemirror/commands": "^6.5.0",
"@codemirror/language": "^6.10.1",
"@codemirror/lint": "^6.8.1",
"@codemirror/state": "^6.4.1",
"@codemirror/view": "^6.26.3",
"@connectrpc/connect": "^1.1.2",
"@connectrpc/connect-web": "^1.1.2",
"@connectrpc/protoc-gen-connect-es": "^1.4.0",
"@connectrpc/connect": "^1.5.0",
"@connectrpc/connect-web": "^1.5.0",
"@headlessui/react": "2.1.8",
"@tailwindcss/forms": "^0.5.6",
"@tanstack/react-query": "^5.51.23",
Expand All @@ -68,7 +62,9 @@
"type-fest": "^4.18.2"
},
"devDependencies": {
"@bufbuild/protoc-gen-es": "^1.10.0",
"@chromatic-com/storybook": "^2.0.0",
"@connectrpc/protoc-gen-connect-es": "^1.5.0",
"@playwright/test": "^1.46.1",
"@storybook/addon-essentials": "^8.2.7",
"@storybook/addon-interactions": "^8.2.7",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 35 additions & 47 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 74c415b

Please sign in to comment.