Skip to content

Commit 0a97514

Browse files
authored
ref(node-experimental): Deprecate lastEventId on scope (#10093)
1 parent 2cfb0ef commit 0a97514

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/node-experimental/src/sdk/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export function withIsolationScope<T>(callback: (isolationScope: Scope) => T): T
5959
* @deprecated This function will be removed in the next major version of the Sentry SDK.
6060
*/
6161
export function lastEventId(): string | undefined {
62+
// eslint-disable-next-line deprecation/deprecation
6263
return getCurrentScope().lastEventId();
6364
}
6465

packages/node-experimental/src/sdk/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ export interface Scope extends BaseScope {
3232
isolationScope: typeof this | undefined;
3333
// @ts-expect-error typeof this is what we want here
3434
clone(scope?: Scope): typeof this;
35+
/**
36+
* @deprecated This function will be removed in the next major version of the Sentry SDK.
37+
*/
3538
lastEventId(): string | undefined;
3639
getScopeData(): ScopeData;
3740
}

0 commit comments

Comments
 (0)