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

chore(deps): Update @sentry/types for 7.2.0 #412

Merged
merged 1 commit into from
Jul 1, 2022

Conversation

yog27ray
Copy link
Contributor

@yog27ray yog27ray commented Jun 23, 2022

Changes

Update sentry function "setupOnce" declaration.
...

Checklist

  • Tests for new code (see advice on the tests we use)
  • Accounted for the impact of any changes across different browsers
  • TypeScript definitions (module.d.ts) updated and in sync with library exports (if applicable)

@yog27ray
Copy link
Contributor Author

@mariusandra Please review.

@Twixes Twixes self-requested a review June 30, 2022 09:57
@@ -851,7 +851,7 @@ declare namespace posthog {
export class SentryIntegration implements Integration {
constructor(posthog: posthog, organization?: string, projectId?: number, prefix?: string)
name: string
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void): void
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void
Copy link
Member

Choose a reason for hiding this comment

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

Hm, I don't think this is quite correct as we don't support getCurrentHub in

PostHogLib.prototype.sentry_integration = function (_posthog, organization, projectId, prefix) {
.

What's the intention with adding this and updating types to 7.2.0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Twixes in the latest release of @sentry/types 7.x.x, an additional parameter has been added in setupOnce function i.e. getCurrentHub. So due to this, I am not able to update this library to the latest version as I am using sentry postHog integration also. This update will to keep both sentry and postHog libraries to the latest versions.

@mariusandra
Copy link
Collaborator

@mariusandra Please review.

and why me? :D

@yog27ray
Copy link
Contributor Author

yog27ray commented Jul 1, 2022

@mariusandra Please review.

and why me? :D

I saw this PR was approved by you. So asked you to review.

@yog27ray yog27ray closed this Jul 1, 2022
@yog27ray yog27ray reopened this Jul 1, 2022
Copy link
Member

@Twixes Twixes left a comment

Choose a reason for hiding this comment

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

Looks good, thanks

@Twixes Twixes added the bump minor Bump minor version when this PR gets merged label Jul 1, 2022
@Twixes Twixes changed the title Update @sentry/types for 7.2.0 chore(deps): Update @sentry/types for 7.2.0 Jul 1, 2022
@Twixes Twixes merged commit 78af690 into PostHog:master Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump minor Bump minor version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants