Skip to content

feat: update protobuf.js v7.5.7#402

Open
braianj wants to merge 3 commits into
mainfrom
feat/update-protobuf-js-v7.5.7
Open

feat: update protobuf.js v7.5.7#402
braianj wants to merge 3 commits into
mainfrom
feat/update-protobuf-js-v7.5.7

Conversation

@braianj
Copy link
Copy Markdown

@braianj braianj commented May 11, 2026

No description provided.

braianj added 2 commits May 11, 2026 12:14
protobufjs 7.5.7's bundled descriptor.proto is not valid proto3 (uses string literals where enums expected, mixes tags/names in reserved, sets repeated message options as singular). It cannot be parsed by buf. Replace the build-time copy from node_modules with vendored upstream files (protocolbuffers/protobuf v21.12) so the runtime upgrade is independent of the .proto contracts.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

Test this pull request

  • The @dcl/protocol package can be tested in scenes by running
    npm install "https://sdk-team-cdn.decentraland.org/@dcl/protocol/branch//dcl-protocol-1.0.0-25753730351.commit-c469afd.tgz"

proto-compatibility-tool (last released 2022) iterates protobufjs internals
in a way that's incompatible with protobufjs >=7.5: it crashes on string
reservations and OOMs while walking the namespace tree. The runtime
dependency stays on ^7.5.7 (consumers of @dcl/protocol get the secure
version); the override only affects the dev-time tool.

Also patch the tool's lone 'How to handle string reservations?' throw so
it skips strings rather than aborting — keeps the tool's pre-upgrade
coverage on numeric reservations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant