@@ -41,7 +41,7 @@ const ALREADY_SEEN_ERROR = "Not capturing exception because it's already been ca
4141/**
4242 * Base implementation for all JavaScript SDK clients.
4343 *
44- * TODO: refactor doc w.r.t. Backend
44+ * TODO(v7) : refactor doc w.r.t. Backend
4545 *
4646 * Call the constructor with the corresponding backend constructor and options
4747 * specific to the client subclass. To access these options later, use
@@ -77,7 +77,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
7777 * The backend used to physically interact in the environment. Usually, this
7878 * will correspond to the client. When composing SDKs, however, the Backend
7979 * from the root SDK will be used.
80- * TODO: DELETE
80+ * TODO(v7) : DELETE
8181 */
8282 protected readonly _backend : B ;
8383
@@ -106,7 +106,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
106106 * @param options Options for the client.
107107 */
108108 protected constructor ( backendClass : BackendClass < B , O > , options : O ) {
109- // TODO: Delete
109+ // TODO(v7) : Delete
110110 this . _backend = new backendClass ( options ) ;
111111 this . _options = options ;
112112
@@ -149,7 +149,6 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
149149 public captureMessage ( message : string , level ?: Severity , hint ?: EventHint , scope ?: Scope ) : string | undefined {
150150 let eventId : string | undefined = hint && hint . event_id ;
151151
152- // TODO: refactor
153152 const promisedEvent = isPrimitive ( message )
154153 ? this . eventFromMessage ( String ( message ) , level , hint )
155154 : this . eventFromException ( message , hint ) ;
@@ -367,6 +366,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
367366 }
368367
369368 /** Deliver captured session to Sentry */
369+ // TODO(v7): should this be deleted?
370370 protected _sendSession ( session : Session ) : void {
371371 this . sendSession ( session ) ;
372372 }
@@ -402,7 +402,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
402402 }
403403
404404 /** Returns the current backend.
405- * TODO: DELETE
405+ * TODO(v7) : DELETE
406406 */
407407 protected _getBackend ( ) : B {
408408 return this . _backend ;
@@ -576,7 +576,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
576576 * Tells the backend to send this event
577577 * @param event The Sentry event to send
578578 */
579- // TODO: refactor: get rid of method?
579+ // TODO(v7) : refactor: get rid of method?
580580 protected _sendEvent ( event : Event ) : void {
581581 this . sendEvent ( event ) ;
582582 }
0 commit comments