Skip to content

Commit 8181799

Browse files
authored
Merge branch 'develop' into fix/fetch-not-release
2 parents b0b096a + 381cd6c commit 8181799

File tree

33 files changed

+37
-324
lines changed

33 files changed

+37
-324
lines changed

dev-packages/browser-integration-tests/utils/generatePlugin.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ const useLoader = bundleKey.startsWith('loader');
3030
const IMPORTED_INTEGRATION_CDN_BUNDLE_PATHS: Record<string, string> = {
3131
httpClientIntegration: 'httpclient',
3232
captureConsoleIntegration: 'captureconsole',
33-
debugIntegration: 'debug',
3433
rewriteFramesIntegration: 'rewriteframes',
3534
contextLinesIntegration: 'contextlines',
3635
extraErrorDataIntegration: 'extraerrordata',
3736
reportingObserverIntegration: 'reportingobserver',
38-
sessionTimingIntegration: 'sessiontiming',
3937
feedbackIntegration: 'feedback',
4038
moduleMetadataIntegration: 'modulemetadata',
4139
};

dev-packages/e2e-tests/test-applications/react-create-hash-router/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Sentry.init({
4141
debug: !!process.env.DEBUG,
4242
});
4343

44-
const sentryCreateHashRouter = Sentry.wrapCreateBrowserRouter(createHashRouter);
44+
const sentryCreateHashRouter = Sentry.wrapCreateBrowserRouterV6(createHashRouter);
4545

4646
const router = sentryCreateHashRouter([
4747
{

dev-packages/e2e-tests/test-applications/react-router-6-use-routes/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Sentry.init({
3939
tunnel: 'http://localhost:3031', // proxy server
4040
});
4141

42-
const useSentryRoutes = Sentry.wrapUseRoutes(useRoutes);
42+
const useSentryRoutes = Sentry.wrapUseRoutesV6(useRoutes);
4343

4444
function App() {
4545
return useSentryRoutes([

docs/migration/v8-to-v9.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,19 @@ It will be removed in a future major version.
9292

9393
## 4. Removal of Deprecated APIs (TODO)
9494

95-
TODO
95+
### `@sentry/core` / All SDKs
96+
97+
- The `debugIntegration` has been removed. To log outgoing events, use [Hook Options](https://docs.sentry.io/platforms/javascript/configuration/options/#hooks) (`beforeSend`, `beforeSendTransaction`, ...).
98+
- The `sessionTimingIntegration` has been removed. To capture session durations alongside events, use [Context](https://docs.sentry.io/platforms/javascript/enriching-events/context/) (`Sentry.setContext()`).
99+
100+
### `@sentry/react`
101+
102+
- The `wrapUseRoutes` method has been removed. Use `wrapUseRoutesV6` or `wrapUseRoutesV7` instead depending on what version of react router you are using.
103+
- The `wrapCreateBrowserRouter` method has been removed. Use `wrapCreateBrowserRouterV6` or `wrapCreateBrowserRouterV7` depending on what version of react router you are using.
104+
105+
### `@sentry/core`
106+
107+
- The `getNumberOfUrlSegments` method has been removed. There are no replacements.
96108

97109
## 5. Build Changes
98110

packages/astro/src/index.server.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ export {
3434
createTransport,
3535
cron,
3636
dataloaderIntegration,
37-
// eslint-disable-next-line deprecation/deprecation
38-
debugIntegration,
3937
dedupeIntegration,
4038
DEFAULT_USER_INCLUDES,
4139
defaultStackParser,
@@ -105,8 +103,6 @@ export {
105103
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
106104
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
107105
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
108-
// eslint-disable-next-line deprecation/deprecation
109-
sessionTimingIntegration,
110106
setContext,
111107
setCurrentClient,
112108
setExtra,

packages/aws-serverless/src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,9 @@ export {
125125

126126
export {
127127
captureConsoleIntegration,
128-
// eslint-disable-next-line deprecation/deprecation
129-
debugIntegration,
130128
dedupeIntegration,
131129
extraErrorDataIntegration,
132130
rewriteFramesIntegration,
133-
// eslint-disable-next-line deprecation/deprecation
134-
sessionTimingIntegration,
135131
} from '@sentry/core';
136132

137133
export { awsIntegration } from './integration/aws';

packages/browser/rollup.bundle.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const reexportedPluggableIntegrationFiles = [
1010
'dedupe',
1111
'extraerrordata',
1212
'rewriteframes',
13-
'sessiontiming',
1413
'feedback',
1514
'modulemetadata',
1615
];

packages/browser/src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@ export { contextLinesIntegration } from './integrations/contextlines';
66

77
export {
88
captureConsoleIntegration,
9-
// eslint-disable-next-line deprecation/deprecation
10-
debugIntegration,
119
extraErrorDataIntegration,
1210
rewriteFramesIntegration,
13-
// eslint-disable-next-line deprecation/deprecation
14-
sessionTimingIntegration,
1511
captureFeedback,
1612
} from '@sentry/core';
1713

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
// eslint-disable-next-line deprecation/deprecation
2-
export { debugIntegration } from '@sentry/core';
31
export { spotlightBrowserIntegration } from '../integrations/spotlight';

packages/browser/src/integrations-bundle/index.sessiontiming.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/browser/src/utils/lazyLoadIntegration.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ const LazyLoadableIntegrations = {
1313
captureConsoleIntegration: 'captureconsole',
1414
contextLinesIntegration: 'contextlines',
1515
linkedErrorsIntegration: 'linkederrors',
16-
debugIntegration: 'debug',
1716
dedupeIntegration: 'dedupe',
1817
extraErrorDataIntegration: 'extraerrordata',
1918
httpClientIntegration: 'httpclient',
2019
reportingObserverIntegration: 'reportingobserver',
2120
rewriteFramesIntegration: 'rewriteframes',
22-
sessionTimingIntegration: 'sessiontiming',
2321
browserProfilingIntegration: 'browserprofiling',
2422
moduleMetadataIntegration: 'modulemetadata',
2523
} as const;

packages/bun/src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,9 @@ export {
147147

148148
export {
149149
captureConsoleIntegration,
150-
// eslint-disable-next-line deprecation/deprecation
151-
debugIntegration,
152150
dedupeIntegration,
153151
extraErrorDataIntegration,
154152
rewriteFramesIntegration,
155-
// eslint-disable-next-line deprecation/deprecation
156-
sessionTimingIntegration,
157153
} from '@sentry/core';
158154

159155
export type { BunOptions } from './types';

packages/cloudflare/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ export {
7474
linkedErrorsIntegration,
7575
requestDataIntegration,
7676
extraErrorDataIntegration,
77-
// eslint-disable-next-line deprecation/deprecation
78-
debugIntegration,
7977
dedupeIntegration,
8078
rewriteFramesIntegration,
8179
captureConsoleIntegration,

packages/core/src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,9 @@ export { linkedErrorsIntegration } from './integrations/linkederrors';
9696
export { moduleMetadataIntegration } from './integrations/metadata';
9797
export { requestDataIntegration } from './integrations/requestdata';
9898
export { captureConsoleIntegration } from './integrations/captureconsole';
99-
// eslint-disable-next-line deprecation/deprecation
100-
export { debugIntegration } from './integrations/debug';
10199
export { dedupeIntegration } from './integrations/dedupe';
102100
export { extraErrorDataIntegration } from './integrations/extraerrordata';
103101
export { rewriteFramesIntegration } from './integrations/rewriteframes';
104-
// eslint-disable-next-line deprecation/deprecation
105-
export { sessionTimingIntegration } from './integrations/sessiontiming';
106102
export { zodErrorsIntegration } from './integrations/zoderrors';
107103
export { thirdPartyErrorFilterIntegration } from './integrations/third-party-errors-filter';
108104
// eslint-disable-next-line deprecation/deprecation

packages/core/src/integrations/debug.ts

Lines changed: 0 additions & 57 deletions
This file was deleted.

packages/core/src/integrations/sessiontiming.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ export {
162162
parseBaggageHeader,
163163
} from './baggage';
164164

165-
// eslint-disable-next-line deprecation/deprecation
166-
export { getNumberOfUrlSegments, getSanitizedUrlString, parseUrl, stripUrlQueryAndFragment } from './url';
165+
export { getSanitizedUrlString, parseUrl, stripUrlQueryAndFragment } from './url';
167166
// eslint-disable-next-line deprecation/deprecation
168167
export { makeFifoCache } from './cache';
169168
export { eventFromMessage, eventFromUnknownInput, exceptionFromError, parseStackFrames } from './eventbuilder';

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,6 @@ export function stripUrlQueryAndFragment(urlPath: string): string {
4848
return (urlPath.split(/[?#]/, 1) as [string, ...string[]])[0];
4949
}
5050

51-
/**
52-
* Returns number of URL segments of a passed string URL.
53-
*
54-
* @deprecated This function will be removed in the next major version.
55-
*/
56-
// TODO(v9): Hoist this function into the places where we use it. (as it stands only react router v6 instrumentation)
57-
export function getNumberOfUrlSegments(url: string): number {
58-
// split at '/' or at '\/' to split regex urls correctly
59-
return url.split(/\\?\//).filter(s => s.length > 0 && s !== ',').length;
60-
}
61-
6251
/**
6352
* Takes a URL object and returns a sanitized string which is safe to use as span name
6453
* see: https://develop.sentry.dev/sdk/data-handling/#structuring-data

packages/core/test/lib/integrations/debug.test.ts

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)