@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.
- package/README.md +10 -10
- package/cjs/errorboundary.js +5 -6
- package/cjs/errorboundary.js.map +1 -1
- package/cjs/index.js +0 -4
- package/cjs/index.js.map +1 -1
- package/cjs/profiler.js +24 -16
- package/cjs/profiler.js.map +1 -1
- package/cjs/reactrouter.js +3 -29
- package/cjs/reactrouter.js.map +1 -1
- package/cjs/reactrouterv3.js +1 -9
- package/cjs/reactrouterv3.js.map +1 -1
- package/cjs/reactrouterv6.js +0 -41
- package/cjs/reactrouterv6.js.map +1 -1
- package/cjs/redux.js +1 -1
- package/cjs/redux.js.map +1 -1
- package/esm/errorboundary.js +5 -6
- package/esm/errorboundary.js.map +1 -1
- package/esm/index.js +3 -3
- package/esm/profiler.js +25 -17
- package/esm/profiler.js.map +1 -1
- package/esm/reactrouter.js +5 -29
- package/esm/reactrouter.js.map +1 -1
- package/esm/reactrouterv3.js +3 -10
- package/esm/reactrouterv3.js.map +1 -1
- package/esm/reactrouterv6.js +1 -41
- package/esm/reactrouterv6.js.map +1 -1
- package/esm/redux.js +2 -2
- package/esm/redux.js.map +1 -1
- package/package.json +7 -7
- package/types/errorboundary.d.ts +3 -2
- package/types/errorboundary.d.ts.map +1 -1
- package/types/index.d.ts +3 -3
- package/types/index.d.ts.map +1 -1
- package/types/profiler.d.ts.map +1 -1
- package/types/reactrouter.d.ts +1 -9
- package/types/reactrouter.d.ts.map +1 -1
- package/types/reactrouterv3.d.ts +1 -12
- package/types/reactrouterv3.d.ts.map +1 -1
- package/types-ts3.8/errorboundary.d.ts +3 -2
- package/types-ts3.8/index.d.ts +3 -3
- package/types-ts3.8/reactrouter.d.ts +1 -9
- package/types-ts3.8/reactrouterv3.d.ts +1 -12
package/types-ts3.8/index.d.ts
CHANGED
|
@@ -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 {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
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
|
|
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
|
|
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
|