@@ -64,33 +64,33 @@ const MISSING_RELEASE_FOR_SESSION_ERROR = 'Discarded session because of missing
6464 *
6565 * Call the constructor with the corresponding options
6666 * specific to the client subclass. To access these options later, use
67- * {@link BaseClient .getOptions}.
67+ * {@link Client .getOptions}.
6868 *
6969 * If a Dsn is specified in the options, it will be parsed and stored. Use
70- * {@link BaseClient .getDsn} to retrieve the Dsn at any moment. In case the Dsn is
70+ * {@link Client .getDsn} to retrieve the Dsn at any moment. In case the Dsn is
7171 * invalid, the constructor will throw a {@link SentryException}. Note that
7272 * without a valid Dsn, the SDK will not send any events to Sentry.
7373 *
7474 * Before sending an event, it is passed through
75- * {@link BaseClient ._prepareEvent} to add SDK information and scope data
75+ * {@link Client ._prepareEvent} to add SDK information and scope data
7676 * (breadcrumbs and context). To add more custom information, override this
7777 * method and extend the resulting prepared event.
7878 *
7979 * To issue automatically created events (e.g. via instrumentation), use
80- * {@link BaseClient .captureEvent}. It will prepare the event and pass it through
80+ * {@link Client .captureEvent}. It will prepare the event and pass it through
8181 * the callback lifecycle. To issue auto-breadcrumbs, use
82- * {@link BaseClient .addBreadcrumb}.
82+ * {@link Client .addBreadcrumb}.
8383 *
8484 * @example
85- * class NodeClient extends BaseClient <NodeOptions> {
85+ * class NodeClient extends Client <NodeOptions> {
8686 * public constructor(options: NodeOptions) {
8787 * super(options);
8888 * }
8989 *
9090 * // ...
9191 * }
9292 */
93- export abstract class BaseClient < O extends ClientOptions > {
93+ export abstract class Client < O extends ClientOptions = ClientOptions > {
9494 /** Options passed to the SDK. */
9595 protected readonly _options : O ;
9696
@@ -960,7 +960,15 @@ export abstract class BaseClient<O extends ClientOptions> {
960960 ) : PromiseLike < Event > ;
961961}
962962
963- export type Client < O extends ClientOptions = ClientOptions > = BaseClient < O > ;
963+ /**
964+ * @deprecated Use `Client` instead. This alias may be removed in a future major version.
965+ */
966+ export type BaseClient = Client ;
967+
968+ /**
969+ * @deprecated Use `Client` instead. This alias may be removed in a future major version.
970+ */
971+ export const BaseClient = Client ;
964972
965973/**
966974 * Verifies that return value of configured `beforeSend` or `beforeSendTransaction` is of expected type, and returns the value if so.
0 commit comments