Skip to content

Commit c7656ff

Browse files
committed
feat(core)!: Remove TransactionNamingScheme type
1 parent 9030f37 commit c7656ff

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

docs/migration/v8-to-v9.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ Sentry.init({
132132
- The `urlEncode` method has been removed. There is no replacement.
133133
- The `getDomElement` method has been removed. There is no replacement.
134134
- The `Request` type has been removed. Use `RequestEventData` type instead.
135+
- The `TransactionNamingScheme` type has been removed. There is no replacement.
135136

136137
### `@sentry/browser`
137138

packages/core/src/utils-hoist/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,7 @@ export {
8282
extractQueryParamsFromUrl,
8383
headersToDict,
8484
} from './requestdata';
85-
export type {
86-
AddRequestDataToEventOptions,
87-
// eslint-disable-next-line deprecation/deprecation
88-
TransactionNamingScheme,
89-
} from './requestdata';
85+
export type { AddRequestDataToEventOptions } from './requestdata';
9086

9187
export { severityLevelFromString } from './severity';
9288
export {

packages/core/src/utils-hoist/requestdata.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export type AddRequestDataToEventOptions = {
3737
request?: boolean | Array<(typeof DEFAULT_REQUEST_INCLUDES)[number]>;
3838
/** @deprecated This option will be removed in v9. It does not do anything anymore, the `transcation` is set in other places. */
3939
// eslint-disable-next-line deprecation/deprecation
40-
transaction?: boolean | TransactionNamingScheme;
40+
transaction?: boolean;
4141
user?: boolean | Array<(typeof DEFAULT_USER_INCLUDES)[number]>;
4242
};
4343

@@ -54,11 +54,6 @@ export type AddRequestDataToEventOptions = {
5454
};
5555
};
5656

57-
/**
58-
* @deprecated This type will be removed in v9. It is not in use anymore.
59-
*/
60-
export type TransactionNamingScheme = 'path' | 'methodPath' | 'handler';
61-
6257
/**
6358
* Extracts a complete and parameterized path from the request object and uses it to construct transaction name.
6459
* If the parameterized transaction name cannot be extracted, we fall back to the raw URL.

0 commit comments

Comments
 (0)