You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PubSub class is reported as deprecated by TypeScript-based lint tooling #9834
When using @google-cloud/pubsub@6.3.2, the PubSub class is flagged as deprecated by lint rules that rely on TypeScript's deprecation diagnostics (specifically sonarjs/deprecation, rule S1874).
Every import and usage of PubSub produces a warning: 'PubSub' is deprecated.
We don't believe PubSub is actually intended to be deprecated — there's no replacement mentioned in the docs, and the class is used in all official examples. Is this a known issue?
Steps to Reproduce
Create a TypeScript project with @google-cloud/pubsub@6.3.2
Use PubSub: import { PubSub } from '@google-cloud/pubsub'
Run ESLint with the sonarjs/deprecation rule enabled
Every import and usage of PubSub is flagged as deprecated
Activity