Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test": "repo-tools test run --cmd npm -- run cover"
},
"dependencies": {
"@google-cloud/pubsub": "0.20.0",
"@google-cloud/pubsub": "4.0.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

Upgrading from version 0.20.0 to 4.0.0 is a major version jump that introduces significant breaking changes. The sample code in this repository that uses @google-cloud/pubsub will likely fail to run with this new version.

For example, one common breaking change in Google Cloud libraries is the switch to named exports for client classes. The existing code likely uses const PubSub = require('@google-cloud/pubsub');, which would need to be updated to const {PubSub} = require('@google-cloud/pubsub');.

Other API methods and their return values may have also changed. To ensure the samples remain functional, please update the JavaScript files in the samples/ directory (such as quickstart.js, subscriptions.js, and topics.js) to be compatible with @google-cloud/pubsub v4.0.0.

"yargs": "10.1.2"
},
"devDependencies": {
Expand Down
Loading