Skip to content

Commit 72a8bce

Browse files
authored
ref: Remove Repo interface and repos attribute from Event (#1598)
1 parent 89885fa commit 72a8bce

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

packages/core/src/baseclient.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
274274
* @returns A new event with more information.
275275
*/
276276
protected async prepareEvent(event: SentryEvent, scope?: Scope, hint?: SentryEventHint): Promise<SentryEvent | null> {
277-
const { environment, maxBreadcrumbs = DEFAULT_BREADCRUMBS, release, repos, dist } = this.getOptions();
277+
const { environment, maxBreadcrumbs = DEFAULT_BREADCRUMBS, release, dist } = this.getOptions();
278278

279279
const prepared = { ...event };
280280
if (prepared.environment === undefined && environment !== undefined) {
@@ -284,10 +284,6 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
284284
prepared.release = release;
285285
}
286286

287-
if (prepared.repos === undefined && repos !== undefined) {
288-
prepared.repos = repos;
289-
}
290-
291287
if (prepared.dist === undefined && dist !== undefined) {
292288
prepared.dist = dist;
293289
}

packages/core/src/interfaces.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ export interface Options {
8585
/** The current environment of your application (e.g. "production"). */
8686
environment?: string;
8787

88-
/** Configures the repository spec for events */
89-
repos?: Record<string, Repo>;
90-
9188
/** Sets the distribution for all events */
9289
dist?: string;
9390

packages/types/src/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,6 @@ export interface Request {
155155
headers?: { [key: string]: string };
156156
}
157157

158-
/** JSDoc */
159-
export interface Repo {
160-
name: string;
161-
prefix?: string;
162-
revision?: string;
163-
}
164-
165158
/** JSDoc */
166159
export interface SentryEvent {
167160
event_id?: string;
@@ -172,7 +165,6 @@ export interface SentryEvent {
172165
logger?: string;
173166
server_name?: string;
174167
release?: string;
175-
repos?: Record<string, Repo>,
176168
dist?: string;
177169
environment?: string;
178170
sdk?: SdkInfo;

0 commit comments

Comments
 (0)