-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(types): Introduce @sentry/types package #1332
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
Conversation
import * as Shim from '@sentry/shim'; | ||
import { | ||
bindClient as shimBindClient, | ||
getCurrentClient as shimGetCurrentClient, |
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.
Really?
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.
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.
Ah, alright then :)
@@ -14,6 +14,9 @@ | |||
"publishConfig": { | |||
"access": "public" | |||
}, | |||
"dependencies": { | |||
"@sentry/types": "0.5.4" |
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.
Going forward, we should probably also provide a rollup build without that dependency for our CDN, just like the @sentry/browser
package. This would allow users to include a single javascript file to shim sentry instead of having to install multiple packages for use cases without sophisticated bundlers.
packages/types/package-lock.json
Outdated
{ | ||
"name": "@sentry/types", | ||
"version": "0.5.4", | ||
"lockfileVersion": 1, |
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.
Did that lockfile get here by accident?
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.
Yup, removed it.
"The more packages, the better"™