Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions docs/migration/v8-to-v9.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ Sentry.init({
- The `urlEncode` method has been removed. There is no replacement.
- The `getDomElement` method has been removed. There is no replacement.
- The `Request` type has been removed. Use `RequestEventData` type instead.
- The `TransactionNamingScheme` type has been removed. There is no replacement.

### `@sentry/browser`

Expand Down
6 changes: 1 addition & 5 deletions packages/core/src/utils-hoist/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,7 @@ export {
extractQueryParamsFromUrl,
headersToDict,
} from './requestdata';
export type {
AddRequestDataToEventOptions,
// eslint-disable-next-line deprecation/deprecation
TransactionNamingScheme,
} from './requestdata';
export type { AddRequestDataToEventOptions } from './requestdata';

export { severityLevelFromString } from './severity';
export {
Expand Down
7 changes: 1 addition & 6 deletions packages/core/src/utils-hoist/requestdata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export type AddRequestDataToEventOptions = {
request?: boolean | Array<(typeof DEFAULT_REQUEST_INCLUDES)[number]>;
/** @deprecated This option will be removed in v9. It does not do anything anymore, the `transcation` is set in other places. */
// eslint-disable-next-line deprecation/deprecation
transaction?: boolean | TransactionNamingScheme;
transaction?: boolean | 'path' | 'methodPath' | 'handler';
user?: boolean | Array<(typeof DEFAULT_USER_INCLUDES)[number]>;
};

Expand All @@ -54,11 +54,6 @@ export type AddRequestDataToEventOptions = {
};
};

/**
* @deprecated This type will be removed in v9. It is not in use anymore.
*/
export type TransactionNamingScheme = 'path' | 'methodPath' | 'handler';

/**
* Extracts a complete and parameterized path from the request object and uses it to construct transaction name.
* If the parameterized transaction name cannot be extracted, we fall back to the raw URL.
Expand Down
Loading