Repository navigation
Conversation
|
|
|
Hi @murgatroid99 , @wenbozhu — would one of you be able to take a look at this PR when you have a chance? It adds longs: BigInt support to @grpc/proto-loader and addresses #3047. Thanks! |
Expose protobufjs BigInt conversion (available since 7.6.0) through @grpc/proto-loader options, CLI, and generated TypeScript types. Fixes grpc#3047.
f3d01ba to
e4be8ce
Compare
|
Rebased onto master (e4be8ce). The earlier CI failure was unrelated — The new run needs approval ( |
|
@murgatroid99 friendly ping on this one. It’s a small, opt-in change (longs: BigInt) on top of protobufjs 7.6.0’s BigInt support that dcodeIO mentioned in #3047. The branch merges cleanly with current master, and none of the master commits since the base touch proto-loader. 🙏 |
Summary
longs: BigIntin@grpc/proto-loader(runtime options, CLI, andproto-loader-gen-types)protobufjsfloor to^7.6.0(BigInt conversion support)int64/uint64/sint64/fixed64/sfixed64as nativebigintCloses #3047
Depends on protobufjs BigInt conversion from protobufjs/protobuf.js#2257 (backported in 7.6.0).
Test plan
npm run compileinpackages/proto-loaderbuild/test/**/*.js— includes new BigInt deserialize testnpm run validate-golden