@sentry/react 7.105.0 → 8.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +10 -10
  2. package/cjs/errorboundary.js +5 -6
  3. package/cjs/errorboundary.js.map +1 -1
  4. package/cjs/index.js +0 -4
  5. package/cjs/index.js.map +1 -1
  6. package/cjs/profiler.js +24 -16
  7. package/cjs/profiler.js.map +1 -1
  8. package/cjs/reactrouter.js +3 -29
  9. package/cjs/reactrouter.js.map +1 -1
  10. package/cjs/reactrouterv3.js +1 -9
  11. package/cjs/reactrouterv3.js.map +1 -1
  12. package/cjs/reactrouterv6.js +0 -41
  13. package/cjs/reactrouterv6.js.map +1 -1
  14. package/cjs/redux.js +1 -1
  15. package/cjs/redux.js.map +1 -1
  16. package/esm/errorboundary.js +5 -6
  17. package/esm/errorboundary.js.map +1 -1
  18. package/esm/index.js +3 -3
  19. package/esm/profiler.js +25 -17
  20. package/esm/profiler.js.map +1 -1
  21. package/esm/reactrouter.js +5 -29
  22. package/esm/reactrouter.js.map +1 -1
  23. package/esm/reactrouterv3.js +3 -10
  24. package/esm/reactrouterv3.js.map +1 -1
  25. package/esm/reactrouterv6.js +1 -41
  26. package/esm/reactrouterv6.js.map +1 -1
  27. package/esm/redux.js +2 -2
  28. package/esm/redux.js.map +1 -1
  29. package/package.json +7 -7
  30. package/types/errorboundary.d.ts +3 -2
  31. package/types/errorboundary.d.ts.map +1 -1
  32. package/types/index.d.ts +3 -3
  33. package/types/index.d.ts.map +1 -1
  34. package/types/profiler.d.ts.map +1 -1
  35. package/types/reactrouter.d.ts +1 -9
  36. package/types/reactrouter.d.ts.map +1 -1
  37. package/types/reactrouterv3.d.ts +1 -12
  38. package/types/reactrouterv3.d.ts.map +1 -1
  39. package/types-ts3.8/errorboundary.d.ts +3 -2
  40. package/types-ts3.8/index.d.ts +3 -3
  41. package/types-ts3.8/reactrouter.d.ts +1 -9
  42. package/types-ts3.8/reactrouterv3.d.ts +1 -12
@@ -4,7 +4,7 @@ export { Profiler, withProfiler, useProfiler } from './profiler';
4
4
  export { ErrorBoundaryProps, FallbackRender } from './errorboundary';
5
5
  export { ErrorBoundary, withErrorBoundary } from './errorboundary';
6
6
  export { createReduxEnhancer } from './redux';
7
- export { reactRouterV3Instrumentation, reactRouterV3BrowserTracingIntegration, } from './reactrouterv3';
8
- export { reactRouterV4Instrumentation, reactRouterV5Instrumentation, withSentryRouting, reactRouterV4BrowserTracingIntegration, reactRouterV5BrowserTracingIntegration, } from './reactrouter';
9
- export { reactRouterV6Instrumentation, reactRouterV6BrowserTracingIntegration, withSentryReactRouterV6Routing, wrapUseRoutes, wrapCreateBrowserRouter, } from './reactrouterv6';
7
+ export { reactRouterV3BrowserTracingIntegration } from './reactrouterv3';
8
+ export { withSentryRouting, reactRouterV4BrowserTracingIntegration, reactRouterV5BrowserTracingIntegration, } from './reactrouter';
9
+ export { reactRouterV6BrowserTracingIntegration, withSentryReactRouterV6Routing, wrapUseRoutes, wrapCreateBrowserRouter, } from './reactrouterv6';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { browserTracingIntegration } from '@sentry/browser';
2
2
  import { Integration } from '@sentry/types';
3
3
  import * as React from 'react';
4
- import { Action, Location, ReactRouterInstrumentation } from './types';
4
+ import { Action, Location } from './types';
5
5
  type Match = {
6
6
  path: string;
7
7
  url: string;
@@ -35,14 +35,6 @@ export declare function reactRouterV4BrowserTracingIntegration(options: Paramete
35
35
  * Expects `history` (and optionally `routes` and `matchPath`) to be passed as options.
36
36
  */
37
37
  export declare function reactRouterV5BrowserTracingIntegration(options: Parameters<typeof browserTracingIntegration>[0] & ReactRouterOptions): Integration;
38
- /**
39
- * @deprecated Use `browserTracingReactRouterV4()` instead.
40
- */
41
- export declare function reactRouterV4Instrumentation(history: RouterHistory, routes?: RouteConfig[], matchPath?: MatchPath): ReactRouterInstrumentation;
42
- /**
43
- * @deprecated Use `browserTracingReactRouterV5()` instead.
44
- */
45
- export declare function reactRouterV5Instrumentation(history: RouterHistory, routes?: RouteConfig[], matchPath?: MatchPath): ReactRouterInstrumentation;
46
38
  export declare function withSentryRouting<P extends Record<string, any>, R extends React.ComponentType<P>>(Route: R): R;
47
39
  export {};
48
40
  //# sourceMappingURL=reactrouter.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { browserTracingIntegration } from '@sentry/browser';
2
2
  import { Integration } from '@sentry/types';
3
- import { Location, ReactRouterInstrumentation } from './types';
3
+ import { Location } from './types';
4
4
  type HistoryV3 = {
5
5
  location?: Location;
6
6
  listen?(cb: (location: Location) => void): void;
@@ -25,16 +25,5 @@ interface ReactRouterOptions {
25
25
  * Expects `history` (and optionally `routes` and `matchPath`) to be passed as options.
26
26
  */
27
27
  export declare function reactRouterV3BrowserTracingIntegration(options: Parameters<typeof browserTracingIntegration>[0] & ReactRouterOptions): Integration;
28
- /**
29
- * Creates routing instrumentation for React Router v3
30
- * Works for React Router >= 3.2.0 and < 4.0.0
31
- *
32
- * @param history object from the `history` library
33
- * @param routes a list of all routes, should be
34
- * @param match `Router.match` utility
35
- *
36
- * @deprecated Use `reactRouterV3BrowserTracingIntegration()` instead
37
- */
38
- export declare function reactRouterV3Instrumentation(history: HistoryV3, routes: Route[], match: Match): ReactRouterInstrumentation;
39
28
  export {};
40
29
  //# sourceMappingURL=reactrouterv3.d.ts.map