chore: regenerate protobuf protocol with protobufjs-cli 2#164
Merged
Komoszek merged 3 commits intoJul 6, 2026
Merged
Conversation
…ributes Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ET2dL5CiUkuFR1ZGiUrUH
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ET2dL5CiUkuFR1ZGiUrUH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Łukasz Komoszyński · Slack thread
This regenerates the committed static protobuf module —
libs/schema/src/lib/protocol/index.jsandindex.d.ts— fromcontracts.protousingprotobufjs-cli2 (the version #163 bumped to). The goal is to keep the checked-in generated output in sync with the current codegen so it matches whatnx run schema:proto-updateproduces on the new toolchain.Stacked on #163 — the base of this PR is the
chore/npm-dependencies-bumpbranch, notmain.Notes on the diff:
index.jschange is purely stylistic: identical enums, field numbers, and methods — no behavioral change.index.d.tsreflects pbts 2's new type-emission style ($Properties/$Shape/$unknowns), while theI*interfaces are retained.libs/schema/src/lib/protocol/folder is flaggedlinguist-generatedin.gitattributes(via the globlibs/schema/src/lib/protocol/** linguist-generated=true) so GitHub collapses these diffs and excludes them from language stats. Every tracked file in the folder is non-authored:index.js/index.d.tsare generated by pbjs/pbts (nx run schema:proto-update), andcontracts.protois downloaded from the upstream repo vianx run schema:proto-download(https://raw.githubusercontent.com/leancodepl/contractsgenerator/main/contracts.proto) — none of them are hand-edited here.nx run schema:buildandnx run-many -t lint build testall pass on Node 24 (31 tests / 23 snapshots across 10 projects).Keeping as draft.