ref(core)!: Cleanup internal types, including ReportDialogOptions#14861
ref(core)!: Cleanup internal types, including ReportDialogOptions#14861
ReportDialogOptions#14861Conversation
| } | ||
|
|
||
| function _isDeniedUrl(event: Event, denyUrls?: Array<string | RegExp>): boolean { | ||
| // TODO: Use Glob instead? |
There was a problem hiding this comment.
@AbhiPrasad I think this is not really relevant anymore, is it? 🤔
| /** | ||
| * 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.
@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.
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.
but this would lose a whole lot of accuracy, wouldn't it? Or how would you then send sub-second timestamps?
|
|
||
| /** | ||
| * Get the context related to a scope. | ||
| * TODO v8: Use this for the `trace` functions. |
There was a problem hiding this comment.
We are already doing this, so all good :D
size-limit report 📦
|
❌ 5 Tests Failed:
View the top 2 failed tests by shortest run time
View the full list of 1 ❄️ flaky tests
To view more test analytics, go to the Test Analytics Dashboard |
| } | ||
|
|
||
| function _isDeniedUrl(event: Event, denyUrls?: Array<string | RegExp>): boolean { | ||
| // TODO: Use Glob instead? |
| /** | ||
| * 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.
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.
I think this requires a changelog entry.
9ffc282 to
2b01487
Compare
AbhiPrasad
left a comment
There was a problem hiding this comment.
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.
I wonder if this should be typed with ReportDialogOptions
There was a problem hiding this comment.
I moved the type to core so we can reuse this here!
2b01487 to
a36df93
Compare
ReportDialogOptions
a36df93 to
3bfcc1a
Compare
These are small changes, cleaning up outdated (I believe?) TODOs, and some internal type stuff.