Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

fix: properly convert repeated int64 and maps of int64#96

Merged
sofisl merged 1 commit intomainfrom
long
May 22, 2024
Merged

fix: properly convert repeated int64 and maps of int64#96
sofisl merged 1 commit intomainfrom
long

Conversation

@alexander-fenster
Copy link
Copy Markdown
Contributor

Fixes googleapis/google-cloud-node#4743.

We support Long type (which is the protobufjs representation of int64 and uint64), but one very special case, where the proto contains either repeated int64 or map<..., int64>, does not work properly. Fixing that.

An unrelated change is to add protobufjs-cli to devDependencies; it's now needed for running npm run compile-test-protos to regenerate the fixtures. It was not needed before since pbjs was originally a part of protobufjs, but now it lives in a separate package.

On a personal note, I'm quite happy that my last code change while working for Google is for this library, which I created and published about 3 years ago, and enjoyed working on :)

@alexander-fenster alexander-fenster requested review from a team and sofisl May 22, 2024 18:05
@product-auto-label product-auto-label Bot added the size: m Pull request size is medium. label May 22, 2024
@sofisl sofisl merged commit 1ec05fb into main May 22, 2024
@sofisl sofisl deleted the long branch May 22, 2024 22:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Talent: custom attributes error "Starting an object on a scalar field" when using fallback mode

2 participants