-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ref(core)!: Cleanup internal types, including ReportDialogOptions
#14861
base: develop
Are you sure you want to change the base?
Conversation
@@ -131,7 +131,6 @@ function _isIgnoredTransaction(event: Event, ignoreTransactions?: Array<string | | |||
} | |||
|
|||
function _isDeniedUrl(event: Event, denyUrls?: Array<string | RegExp>): boolean { | |||
// TODO: Use Glob instead? |
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.
@AbhiPrasad I think this is not really relevant anymore, is it? 🤔
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.
Yeah we can remove!
@@ -19,8 +19,6 @@ interface Performance { | |||
|
|||
/** | |||
* Returns a timestamp in seconds since the UNIX epoch using the Date API. | |||
* | |||
* TODO(v8): Return type should be rounded. |
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.
@AbhiPrasad I think this would be pretty breaking, I do not think we actually want to reduce fidelity here? Or am I missing something?
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.
I think we added this because relay assumes that seconds comes in as integers, not floats. Let's ping ingest to double check.
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.
but this would lose a whole lot of accuracy, wouldn't it? Or how would you then send sub-second timestamps?
@@ -32,8 +32,7 @@ export function setContextOnScope(scope: Scope, context: Context): void { | |||
|
|||
/** | |||
* Get the context related to a scope. | |||
* TODO v8: Use this for the `trace` functions. |
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.
We are already doing this, so all good :D
size-limit report 📦
|
❌ 75 Tests Failed:
View the top 3 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
@@ -131,7 +131,6 @@ function _isIgnoredTransaction(event: Event, ignoreTransactions?: Array<string | | |||
} | |||
|
|||
function _isDeniedUrl(event: Event, denyUrls?: Array<string | RegExp>): boolean { | |||
// TODO: Use Glob instead? |
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.
Yeah we can remove!
@@ -19,8 +19,6 @@ interface Performance { | |||
|
|||
/** | |||
* Returns a timestamp in seconds since the UNIX epoch using the Date API. | |||
* | |||
* TODO(v8): Return type should be rounded. |
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.
I think we added this because relay assumes that seconds comes in as integers, not floats. Let's ping ingest to double check.
packages/browser/src/sdk.ts
Outdated
// TODO(v9): Change this to [key: string]: unknkown; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
[key: string]: any; | ||
[key: string]: unknown; |
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.
I think this requires a changelog entry.
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.
Added a changelog entry!
9ffc282
to
2b01487
Compare
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.
ReportDialogOptions
changes needs a changelog entry because we are breaking the types.
packages/core/src/api.ts
Outdated
@@ -47,9 +47,7 @@ export function getEnvelopeEndpointWithUrlEncodedAuth(dsn: DsnComponents, tunnel | |||
export function getReportDialogEndpoint( | |||
dsnLike: DsnLike, | |||
dialogOptions: { |
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.
I wonder if this should be typed with ReportDialogOptions
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.
I moved the type to core so we can reuse this here!
2b01487
to
a36df93
Compare
ReportDialogOptions
These are small changes, cleaning up outdated (I believe?) TODOs, and some internal type stuff.