Skip to content

Commit de51011

Browse files
authored
ref(deprecate): Deprecate timestampWithMs (#7878)
1 parent 1b21154 commit de51011

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

MIGRATION.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Deprecations in 7.x
22

3+
## Deprecate `timestampWithMs` export - #7878
4+
5+
The `timestampWithMs` util is deprecated in favor of using `timestampInSeconds`.
6+
37
## Remove requirement for `@sentry/tracing` package (since 7.46.0)
48

59
With `7.46.0` you no longer require the `@sentry/tracing` package to use tracing and performance monitoring with the Sentry JavaScript SDKs. The `@sentry/tracing` package will be removed in a future major release, but can still be used in the meantime.

packages/utils/src/time.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,12 @@ export const dateTimestampInSeconds: () => number = dateTimestampSource.nowSecon
121121
*/
122122
export const timestampInSeconds: () => number = timestampSource.nowSeconds.bind(timestampSource);
123123

124-
// Re-exported with an old name for backwards-compatibility.
124+
/**
125+
* Re-exported with an old name for backwards-compatibility.
126+
* TODO (v8): Remove this
127+
*
128+
* @deprecated Use `timestampInSeconds` instead.
129+
*/
125130
export const timestampWithMs = timestampInSeconds;
126131

127132
/**

0 commit comments

Comments
 (0)