-
Notifications
You must be signed in to change notification settings - Fork 138
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
Conversation
@mariusandra Please review. |
@@ -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 |
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.
Hm, I don't think this is quite correct as we don't support getCurrentHub
in
posthog-js/src/posthog-core.js
Line 1493 in 7d5eefb
PostHogLib.prototype.sentry_integration = function (_posthog, organization, projectId, prefix) { |
What's the intention with adding this and updating types to 7.2.0?
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.
@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.
and why me? :D |
I saw this PR was approved by you. So asked you to review. |
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.
Looks good, thanks
Changes
Update sentry function "setupOnce" declaration.
...
Checklist