-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update @google-cloud/pubsub to v5 #9428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update @google-cloud/pubsub to v5 #9428
Conversation
Summary of ChangesHello @nzws, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request primarily focuses on enhancing the project's security posture by upgrading the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request updates the @google-cloud/pubsub dependency to version 5, successfully addressing a critical security vulnerability in a transitive dependency ([email protected]). Your analysis of the breaking changes in the new major version is spot on; the project's existing usage of the library is not affected by the changes, primarily because the project already requires a Node.js version that meets the new minimum and does not use the deprecated options that were removed. The change is correct and well-contained.
4aa26b6 to
325f698
Compare
|
Honestly, good idea. Assuming the tests run okay, don't see a reason we can't do this! |
325f698 to
6e9c2e4
Compare
|
https://github.com/firebase/firebase-tools/actions/runs/19090483761/job/54540317859?pr=9428 Hmm... I ran the tests on my local environment (node v20.19.4) as well, but couldn’t reproduce the failure. |
|
I'm getting the additional tests run - don't force-push your branch any more 'cause it makes it harder for me to track and do it. But this seems reasonable enough so it should be able to get merged in soon. :) |
Description
Updates @google-cloud/pubsub to v5 in order to remove the dependency on [email protected], which has a published critical vulnerability (GHSA-fjxv-7rqg-78g4).
The main breaking change in @google-cloud/pubsub v5 appears to be raising the minimum Node.js requirement from v14 to v18; other changes seem to be mostly cleanup of deprecated options. Since this project already requires Node.js v20 or later, there should be no problem with this update.
ref: googleapis/nodejs-pubsub#2024
Scenarios Tested
Sample Commands