Repository navigation
Update dependency @bufbuild/protobuf to v2 #1055
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,7 @@ | |
| } | ||
| }, | ||
| "dependencies": { | ||
| "@bufbuild/protobuf": "^1.10.1" | ||
| "@bufbuild/protobuf": "^2.0.0" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Missing changeset file required by repository contribution rules No changeset file was added for this PR (no new files in Impact: The dependency bump won't be tracked in the changelog and may not trigger the required version bump. AGENTS.md requires a changeset for every PRThe AGENTS.md file states:
The git diff between the base and head commits shows no new files in Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback. |
||
| }, | ||
| "devDependencies": { | ||
| "@bufbuild/protoc-gen-es": "^1.10.1", | ||
|
devin-ai-integration[bot] marked this conversation as resolved.
|
||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Protobuf runtime upgraded to v2 but generated code still uses incompatible v1 API, breaking all proto operations
The protobuf runtime dependency is upgraded to v2 (
"@bufbuild/protobuf": "^2.0.0"atlivekit-ffi-node-bindings/package.json:36) without regenerating the proto files, so all protobuf serialization and deserialization will fail at runtime.Impact: The package is completely non-functional — any code that imports or uses protobuf messages will crash.
Generated proto files use v1 APIs that don't exist in v2
The proto files in
proto/were generated byprotoc-gen-es v1.10.1(visible in the header comment of each file, e.g.proto/audio_frame_pb.js:15). They import and use v1-specific APIs:const { proto2 } = require("@bufbuild/protobuf")—proto/audio_frame_pb.js:23proto2.makeEnum(...)— used extensively across all proto JS filesproto2.makeMessageType(...)— used extensively across all proto JS filesimport { Message, proto2 } from "@bufbuild/protobuf"—proto/audio_frame_pb.d.ts:21import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"—proto/audio_frame_pb.d.ts:20In
@bufbuild/protobufv2, theMessagebase class,proto2.makeEnum,proto2.makeMessageType, and the type exports likeFieldListandPlainMessagewere all removed or completely restructured. The v2 library uses a descriptor-based approach instead.Additionally,
devDependenciesstill pins@bufbuild/protoc-gen-esat^1.10.1which has a peer dependency on@bufbuild/protobuf@1.10.1, creating a version conflict (pnpm-lock.yamlshows it resolved with@bufbuild/protobuf@2.12.1which is incompatible).The
index.d.ts:31also re-exportsPartialMessagefrom@bufbuild/protobuf, which has a different type signature in v2.Prompt for agents
Was this helpful? React with 👍 or 👎 to provide feedback.