Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

fix: force import protobufjs/ext/descriptor package#407

Merged
alexander-fenster merged 5 commits into
googleapis:mainfrom
alvarowolfx:fix-protobuf-extension
Jan 22, 2024
Merged

fix: force import protobufjs/ext/descriptor package#407
alexander-fenster merged 5 commits into
googleapis:mainfrom
alvarowolfx:fix-protobuf-extension

Conversation

@alvarowolfx
Copy link
Copy Markdown
Contributor

@alvarowolfx alvarowolfx commented Jan 18, 2024

We are using the protobufjs/ext/descriptor extension to be able to dynamically load/export protobuf definitions, but this never played nicely with the Typescript compiler and by importing it from google-gax makes it even harder to monkey patch some methods.

Same issue was reported on the protobufjs repo a while ago a seems like there is solution on fixing for that in the short term.

This PR changes things so we import protobufjs directly, add a TS file to manually declare the monkey patched methods and add protobufjs as a peer dependency.

@alvarowolfx alvarowolfx requested a review from a team January 18, 2024 17:18
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: bigquerystorage Issues related to the googleapis/nodejs-bigquery-storage API. labels Jan 18, 2024
@alvarowolfx alvarowolfx added the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 18, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 18, 2024
@product-auto-label product-auto-label Bot added size: xl Pull request size is extra large. and removed size: m Pull request size is medium. labels Jan 18, 2024
@alvarowolfx alvarowolfx added the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 22, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 22, 2024
Comment thread package.json
"google-gax": "^4.0.3"
},
"peerDependencies": {
"protobufjs": "^7.2.4"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7.2.6 is the latest

Comment thread package.json
"google-gax": "^4.0.3"
},
"peerDependencies": {
"protobufjs": "^7.2.4"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7.2.6 is the latest

@alexander-fenster
Copy link
Copy Markdown
Contributor

Merging with system-check test bypassed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquerystorage Issues related to the googleapis/nodejs-bigquery-storage API. size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants