Skip to content

Commit 8ed1e9e

Browse files
AbhiPrasadlobsterkatie
authored andcommitted
ref(types): Remove deprecated user dsn field (#4864)
The `user` dsn component was renamed to `publicKey`. This PR removes that from the dsn field.
1 parent c481f55 commit 8ed1e9e

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

packages/types/src/dsn.ts

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ export type DsnProtocol = 'http' | 'https';
55
export interface DsnComponents {
66
/** Protocol used to connect to Sentry. */
77
protocol: DsnProtocol;
8-
/** Public authorization key (deprecated, renamed to publicKey). */
9-
user?: string;
108
/** Public authorization key. */
119
publicKey?: string;
1210
/** Private authorization key (deprecated, optional). */

packages/utils/src/dsn.ts

-6
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,7 @@ function dsnFromString(str: string): DsnComponents {
5555
}
5656

5757
function dsnFromComponents(components: DsnComponents): DsnComponents {
58-
// TODO this is for backwards compatibility, and can be removed in a future version
59-
if ('user' in components && !('publicKey' in components)) {
60-
components.publicKey = components.user;
61-
}
62-
6358
return {
64-
user: components.publicKey || '',
6559
protocol: components.protocol,
6660
publicKey: components.publicKey || '',
6761
pass: components.pass || '',

0 commit comments

Comments
 (0)