Skip to content

Commit da8b5c8

Browse files
add deprecated tag to both functions
1 parent 69ae6f7 commit da8b5c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sdkBase.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ export abstract class SdkBase {
198198
return isOptoutIdentity(this._identity);
199199
}
200200

201+
/**
202+
* @deprecated disconnect() should no longer be used for anything
203+
*/
201204
public disconnect() {
202205
this.abort(`${this._product.name} SDK disconnected.`);
203206
// Note: This silently fails to clear the cookie if init hasn't been called and a cookieDomain is used!
@@ -215,6 +218,9 @@ export abstract class SdkBase {
215218
}
216219

217220
// Note: This doesn't invoke callbacks. It's a hard, silent reset.
221+
/**
222+
* @deprecated abort() should no longer be used for anything
223+
*/
218224
public abort(reason?: string) {
219225
this._tokenPromiseHandler.rejectAllPromises(
220226
reason ?? new Error(`${this._product.name} SDK aborted.`)

0 commit comments

Comments
 (0)