Skip to content
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

PUB-60 : Deprecate v1,v2 style subscribers #64

Merged
merged 5 commits into from Sep 20, 2021

Conversation

rohit-gohri
Copy link
Member

@rohit-gohri rohit-gohri commented Sep 17, 2021

Closes PUB-60

@@ -94,6 +109,18 @@ export default class SubscriberV2 extends Subscriber {
};

return class extends subscriberClass {
constructor(...args: any[]) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Codacy has a fix for the issue: Unexpected any. Specify a different type.

Suggested change
constructor(...args: any[]) {
constructor(...args: unknown[]) {

import { CredentialBody } from 'google-auth-library';
import chalk from 'chalk';
Copy link
Member Author

Choose a reason for hiding this comment

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

Codacy has a fix for the issue: Replace chalk·from·'chalk with util·from·'util

Suggested change
import chalk from 'chalk';
import util from 'util';

import { SubscriberOptions as GoogleCloudSubscriberOptions } from '@google-cloud/pubsub/build/src/subscriber';
import { Logger } from '../service/logger';
Copy link
Member Author

Choose a reason for hiding this comment

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

Codacy has a fix for the issue: Replace {·Logger·}·from·'../service/logger with util·from·'util

Suggested change
import { Logger } from '../service/logger';
import util from 'util';

Copy link
Contributor

@ishan123456789 ishan123456789 left a comment

Choose a reason for hiding this comment

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

LGTM

@rohit-gohri rohit-gohri merged commit 5541586 into main Sep 20, 2021
@rohit-gohri rohit-gohri deleted the chore/PUB-60-deprecate-old-classes branch September 20, 2021 06:01
@github-actions github-actions bot mentioned this pull request Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants