Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/types/src/dsn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ export type DsnProtocol = 'http' | 'https';
export interface DsnComponents {
/** Protocol used to connect to Sentry. */
protocol: DsnProtocol;
/** Public authorization key (deprecated, renamed to publicKey). */
user?: string;
/** Public authorization key. */
publicKey?: string;
/** Private authorization key (deprecated, optional). */
Expand Down
6 changes: 0 additions & 6 deletions packages/utils/src/dsn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,7 @@ function dsnFromString(str: string): DsnComponents {
}

function dsnFromComponents(components: DsnComponents): DsnComponents {
// TODO this is for backwards compatibility, and can be removed in a future version
if ('user' in components && !('publicKey' in components)) {
components.publicKey = components.user;
}

return {
user: components.publicKey || '',
protocol: components.protocol,
publicKey: components.publicKey || '',
pass: components.pass || '',
Expand Down