Skip to content

feat(proto-loader): support longs: BigInt for int64 fields - #3073

Open
brzosthub wants to merge 1 commit into
grpc:masterfrom
brzosthub:feat/proto-loader-bigint-longs
Open

feat(proto-loader): support longs: BigInt for int64 fields#3073
brzosthub wants to merge 1 commit into
grpc:masterfrom
brzosthub:feat/proto-loader-bigint-longs

Conversation

@brzosthub

@brzosthub brzosthub commented Aug 11, 2026

Copy link
Copy Markdown

Summary

  • Allow longs: BigInt in @grpc/proto-loader (runtime options, CLI, and proto-loader-gen-types)
  • Bump protobufjs floor to ^7.6.0 (BigInt conversion support)
  • Add a decode test for int64/uint64/sint64/fixed64/sfixed64 as native bigint

Closes #3047

Depends on protobufjs BigInt conversion from protobufjs/protobuf.js#2257 (backported in 7.6.0).

Test plan

  • npm run compile in packages/proto-loader
  • mocha build/test/**/*.js — includes new BigInt deserialize test
  • npm run validate-golden

Expose protobufjs BigInt conversion (available since 7.6.0) through
@grpc/proto-loader options, CLI, and generated TypeScript types.
Fixes grpc#3047.
@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 11, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: brzosthub / name: Hubert Brzostowski (f3d01ba)

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.

Allow configuration to choose BigInt over Long.js for int64 types

1 participant