@sentry/react 10.58.0 → 10.60.0
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/build/cjs/index.js +6 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/reactrouter-compat-utils/instrumentation.js +4 -4
- package/build/cjs/reactrouter-compat-utils/instrumentation.js.map +1 -1
- package/build/cjs/reactrouter.compat.js +29 -0
- package/build/cjs/reactrouter.compat.js.map +1 -0
- package/build/cjs/reactrouterv6.js.map +1 -1
- package/build/cjs/reactrouterv7.js.map +1 -1
- package/build/esm/index.js +1 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/reactrouter-compat-utils/instrumentation.js +4 -4
- package/build/esm/reactrouter-compat-utils/instrumentation.js.map +1 -1
- package/build/esm/reactrouter.compat.js +23 -0
- package/build/esm/reactrouter.compat.js.map +1 -0
- package/build/esm/reactrouterv6.js.map +1 -1
- package/build/esm/reactrouterv7.js.map +1 -1
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/reactrouter-compat-utils/instrumentation.d.ts +1 -1
- package/build/types/reactrouter-compat-utils/instrumentation.d.ts.map +1 -1
- package/build/types/reactrouter.compat.d.ts +42 -0
- package/build/types/reactrouter.compat.d.ts.map +1 -0
- package/build/types/reactrouterv6.d.ts +10 -0
- package/build/types/reactrouterv6.d.ts.map +1 -1
- package/build/types/reactrouterv7.d.ts +10 -0
- package/build/types/reactrouterv7.d.ts.map +1 -1
- package/build/types/vendor/tanstackrouter-types.d.ts.map +1 -1
- package/build/types-ts3.8/index.d.ts +1 -0
- package/build/types-ts3.8/reactrouter-compat-utils/instrumentation.d.ts +1 -1
- package/build/types-ts3.8/reactrouter.compat.d.ts +42 -0
- package/build/types-ts3.8/reactrouterv6.d.ts +10 -0
- package/build/types-ts3.8/reactrouterv7.d.ts +10 -0
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactrouterv6.d.ts","sourceRoot":"","sources":["../../src/reactrouterv6.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAQrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpF
|
|
1
|
+
{"version":3,"file":"reactrouterv6.d.ts","sourceRoot":"","sources":["../../src/reactrouterv6.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAQrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpF;;;;;GAKG;AACH,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC,GAAG,kBAAkB,GAC5E,WAAW,CAEb;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,aAAa,EAAE,SAAS,GAAG,SAAS,CAEnE;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,SAAS,WAAW,GAAG,WAAW,EACxC,OAAO,SAAS,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAC/C,oBAAoB,EAAE,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAEpG;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,SAAS,WAAW,GAAG,WAAW,EACxC,OAAO,SAAS,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAC/C,0BAA0B,EAAE,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAE1G;AAED;;;;;GAKG;AAEH,wBAAgB,8BAA8B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,SAAS,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAEjH"}
|
|
@@ -5,16 +5,22 @@ import type { CreateRouterFunction, Router, RouterState, UseRoutes } from './typ
|
|
|
5
5
|
/**
|
|
6
6
|
* A browser tracing integration that uses React Router v7 to instrument navigations.
|
|
7
7
|
* Expects `useEffect`, `useLocation`, `useNavigationType`, `createRoutesFromChildren` and `matchRoutes` to be passed as options.
|
|
8
|
+
*
|
|
9
|
+
* @deprecated Use `reactRouterBrowserTracingIntegration` instead.
|
|
8
10
|
*/
|
|
9
11
|
export declare function reactRouterV7BrowserTracingIntegration(options: Parameters<typeof browserTracingIntegration>[0] & ReactRouterOptions): Integration;
|
|
10
12
|
/**
|
|
11
13
|
* A higher-order component that adds Sentry routing instrumentation to a React Router v7 Route component.
|
|
12
14
|
* This is used to automatically capture route changes as transactions.
|
|
15
|
+
*
|
|
16
|
+
* @deprecated Use `wrapReactRouterRouting` instead.
|
|
13
17
|
*/
|
|
14
18
|
export declare function withSentryReactRouterV7Routing<P extends Record<string, any>, R extends React.FC<P>>(routes: R): R;
|
|
15
19
|
/**
|
|
16
20
|
* A wrapper function that adds Sentry routing instrumentation to a React Router v7 createBrowserRouter function.
|
|
17
21
|
* This is used to automatically capture route changes as transactions when using the createBrowserRouter API.
|
|
22
|
+
*
|
|
23
|
+
* @deprecated Use `wrapCreateBrowserRouter` instead.
|
|
18
24
|
*/
|
|
19
25
|
export declare function wrapCreateBrowserRouterV7<TState extends RouterState = RouterState, TRouter extends Router<TState> = Router<TState>>(createRouterFunction: CreateRouterFunction<TState, TRouter>): CreateRouterFunction<TState, TRouter>;
|
|
20
26
|
/**
|
|
@@ -22,11 +28,15 @@ export declare function wrapCreateBrowserRouterV7<TState extends RouterState = R
|
|
|
22
28
|
* This is used to automatically capture route changes as transactions when using the createMemoryRouter API.
|
|
23
29
|
* The difference between createBrowserRouter and createMemoryRouter is that with createMemoryRouter,
|
|
24
30
|
* optional `initialEntries` are also taken into account.
|
|
31
|
+
*
|
|
32
|
+
* @deprecated Use `wrapCreateMemoryRouter` instead.
|
|
25
33
|
*/
|
|
26
34
|
export declare function wrapCreateMemoryRouterV7<TState extends RouterState = RouterState, TRouter extends Router<TState> = Router<TState>>(createMemoryRouterFunction: CreateRouterFunction<TState, TRouter>): CreateRouterFunction<TState, TRouter>;
|
|
27
35
|
/**
|
|
28
36
|
* A wrapper function that adds Sentry routing instrumentation to a React Router v7 useRoutes hook.
|
|
29
37
|
* This is used to automatically capture route changes as transactions when using the useRoutes hook.
|
|
38
|
+
*
|
|
39
|
+
* @deprecated Use `wrapUseRoutes` instead.
|
|
30
40
|
*/
|
|
31
41
|
export declare function wrapUseRoutesV7(origUseRoutes: UseRoutes): UseRoutes;
|
|
32
42
|
//# sourceMappingURL=reactrouterv7.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactrouterv7.d.ts","sourceRoot":"","sources":["../../src/reactrouterv7.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAQrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpF
|
|
1
|
+
{"version":3,"file":"reactrouterv7.d.ts","sourceRoot":"","sources":["../../src/reactrouterv7.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAQrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpF;;;;;GAKG;AACH,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC,GAAG,kBAAkB,GAC5E,WAAW,CAEb;AAED;;;;;GAKG;AAEH,wBAAgB,8BAA8B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,SAAS,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAEjH;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,SAAS,WAAW,GAAG,WAAW,EACxC,OAAO,SAAS,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAC/C,oBAAoB,EAAE,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAEpG;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,SAAS,WAAW,GAAG,WAAW,EACxC,OAAO,SAAS,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAC/C,0BAA0B,EAAE,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAE1G;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,aAAa,EAAE,SAAS,GAAG,SAAS,CAEnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tanstackrouter-types.d.ts","sourceRoot":"","sources":["../../../src/vendor/tanstackrouter-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tanstackrouter-types.d.ts","sourceRoot":"","sources":["../../../src/vendor/tanstackrouter-types.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,6BAA6B,CAAC;IACvC,KAAK,EAAE,2BAA2B,CAAC;IACnC,OAAO,EAAE;QAEP,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KACtD,CAAC;IACF,WAAW,EAAE,CACX,QAAQ,EAAE,MAAM,EAEhB,cAAc,EAAE,EAAE,EAClB,IAAI,CAAC,EAAE;QACL,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,YAAY,CAAC,EAAE,OAAO,CAAC;KACxB,KACE,KAAK,CAAC,gCAAgC,CAAC,CAAC;IAC7C,SAAS,CACP,SAAS,EAAE,YAAY,GAAG,kBAAkB,EAC5C,QAAQ,EAAE,CAAC,WAAW,EAAE;QACtB,UAAU,EAAE,8BAA8B,CAAC;QAC3C,YAAY,CAAC,EAAE,8BAA8B,CAAC;KAC/C,KAAK,IAAI,GACT,MAAM,IAAI,CAAC;CACf;AAED,UAAU,8BAA8B;IACtC,QAAQ,EAAE,MAAM,CAAC;IAEjB,MAAM,EAAE,EAAE,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,6BAA6B;IACrC,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;CAC3C;AAED,UAAU,2BAA2B;IACnC,OAAO,EAAE,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACjD,cAAc,CAAC,EAAE,KAAK,CAAC,gCAAgC,CAAC,CAAC;CAC1D;AAED,MAAM,WAAW,gCAAgC;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACnC"}
|
|
@@ -10,4 +10,5 @@ export { tanstackRouterBrowserTracingIntegration } from './tanstackrouter';
|
|
|
10
10
|
export { withSentryRouting, reactRouterV4BrowserTracingIntegration, reactRouterV5BrowserTracingIntegration, } from './reactrouter';
|
|
11
11
|
export { reactRouterV6BrowserTracingIntegration, withSentryReactRouterV6Routing, wrapUseRoutesV6, wrapCreateBrowserRouterV6, wrapCreateMemoryRouterV6, } from './reactrouterv6';
|
|
12
12
|
export { reactRouterV7BrowserTracingIntegration, withSentryReactRouterV7Routing, wrapCreateBrowserRouterV7, wrapCreateMemoryRouterV7, wrapUseRoutesV7, } from './reactrouterv7';
|
|
13
|
+
export { reactRouterBrowserTracingIntegration, wrapReactRouterRouting, wrapCreateBrowserRouter, wrapCreateMemoryRouter, wrapUseRoutes, } from './reactrouter.compat';
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -77,7 +77,7 @@ export interface ReactRouterOptions {
|
|
|
77
77
|
*/
|
|
78
78
|
lazyRouteManifest?: string[];
|
|
79
79
|
}
|
|
80
|
-
type V6CompatibleVersion = '6' | '7';
|
|
80
|
+
type V6CompatibleVersion = '6' | '7' | '';
|
|
81
81
|
export declare function addResolvedRoutesToParent(resolvedRoutes: RouteObject[], parentRoute: RouteObject): void;
|
|
82
82
|
/**
|
|
83
83
|
* Processes resolved routes by adding them to allRoutes and checking for nested async handlers.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { browserTracingIntegration } from '@sentry/browser';
|
|
2
|
+
import { Integration } from '@sentry/core';
|
|
3
|
+
import { ReactRouterOptions } from './reactrouter-compat-utils';
|
|
4
|
+
import { CreateRouterFunction, Router, RouterState, UseRoutes } from './types';
|
|
5
|
+
/**
|
|
6
|
+
* A browser tracing integration that uses React Router to instrument navigations.
|
|
7
|
+
* Expects `useEffect`, `useLocation`, `useNavigationType`, `createRoutesFromChildren` and `matchRoutes` to be passed as options.
|
|
8
|
+
*
|
|
9
|
+
* Works with React Router v6+.
|
|
10
|
+
*/
|
|
11
|
+
export declare function reactRouterBrowserTracingIntegration(options: Parameters<typeof browserTracingIntegration>[0] & ReactRouterOptions): Integration;
|
|
12
|
+
/**
|
|
13
|
+
* A higher-order component that adds Sentry routing instrumentation to a React Router Route component.
|
|
14
|
+
* This is used to automatically capture route changes as transactions.
|
|
15
|
+
*
|
|
16
|
+
* Works with React Router v6+.
|
|
17
|
+
*/
|
|
18
|
+
export declare function wrapReactRouterRouting<P extends Record<string, any>, R extends React.FC<P>>(routes: R): R;
|
|
19
|
+
/**
|
|
20
|
+
* A wrapper function that adds Sentry routing instrumentation to a React Router createBrowserRouter function.
|
|
21
|
+
* This is used to automatically capture route changes as transactions when using the createBrowserRouter API.
|
|
22
|
+
*
|
|
23
|
+
* Works with React Router v6+.
|
|
24
|
+
*/
|
|
25
|
+
export declare function wrapCreateBrowserRouter<TState extends RouterState = RouterState, TRouter extends Router<TState> = Router<TState>>(createRouterFunction: CreateRouterFunction<TState, TRouter>): CreateRouterFunction<TState, TRouter>;
|
|
26
|
+
/**
|
|
27
|
+
* A wrapper function that adds Sentry routing instrumentation to a React Router createMemoryRouter function.
|
|
28
|
+
* This is used to automatically capture route changes as transactions when using the createMemoryRouter API.
|
|
29
|
+
* The difference between createBrowserRouter and createMemoryRouter is that with createMemoryRouter,
|
|
30
|
+
* optional `initialEntries` are also taken into account.
|
|
31
|
+
*
|
|
32
|
+
* Works with React Router v6+.
|
|
33
|
+
*/
|
|
34
|
+
export declare function wrapCreateMemoryRouter<TState extends RouterState = RouterState, TRouter extends Router<TState> = Router<TState>>(createMemoryRouterFunction: CreateRouterFunction<TState, TRouter>): CreateRouterFunction<TState, TRouter>;
|
|
35
|
+
/**
|
|
36
|
+
* A wrapper function that adds Sentry routing instrumentation to a React Router useRoutes hook.
|
|
37
|
+
* This is used to automatically capture route changes as transactions when using the useRoutes hook.
|
|
38
|
+
*
|
|
39
|
+
* Works with React Router v6+.
|
|
40
|
+
*/
|
|
41
|
+
export declare function wrapUseRoutes(origUseRoutes: UseRoutes): UseRoutes;
|
|
42
|
+
//# sourceMappingURL=reactrouter.compat.d.ts.map
|
|
@@ -5,16 +5,22 @@ import { CreateRouterFunction, Router, RouterState, UseRoutes } from './types';
|
|
|
5
5
|
/**
|
|
6
6
|
* A browser tracing integration that uses React Router v6 to instrument navigations.
|
|
7
7
|
* Expects `useEffect`, `useLocation`, `useNavigationType`, `createRoutesFromChildren` and `matchRoutes` to be passed as options.
|
|
8
|
+
*
|
|
9
|
+
* @deprecated Use `reactRouterBrowserTracingIntegration` instead.
|
|
8
10
|
*/
|
|
9
11
|
export declare function reactRouterV6BrowserTracingIntegration(options: Parameters<typeof browserTracingIntegration>[0] & ReactRouterOptions): Integration;
|
|
10
12
|
/**
|
|
11
13
|
* A wrapper function that adds Sentry routing instrumentation to a React Router v6 useRoutes hook.
|
|
12
14
|
* This is used to automatically capture route changes as transactions when using the useRoutes hook.
|
|
15
|
+
*
|
|
16
|
+
* @deprecated Use `wrapUseRoutes` instead.
|
|
13
17
|
*/
|
|
14
18
|
export declare function wrapUseRoutesV6(origUseRoutes: UseRoutes): UseRoutes;
|
|
15
19
|
/**
|
|
16
20
|
* A wrapper function that adds Sentry routing instrumentation to a React Router v6 createBrowserRouter function.
|
|
17
21
|
* This is used to automatically capture route changes as transactions when using the createBrowserRouter API.
|
|
22
|
+
*
|
|
23
|
+
* @deprecated Use `wrapCreateBrowserRouter` instead.
|
|
18
24
|
*/
|
|
19
25
|
export declare function wrapCreateBrowserRouterV6<TState extends RouterState = RouterState, TRouter extends Router<TState> = Router<TState>>(createRouterFunction: CreateRouterFunction<TState, TRouter>): CreateRouterFunction<TState, TRouter>;
|
|
20
26
|
/**
|
|
@@ -22,11 +28,15 @@ export declare function wrapCreateBrowserRouterV6<TState extends RouterState = R
|
|
|
22
28
|
* This is used to automatically capture route changes as transactions when using the createMemoryRouter API.
|
|
23
29
|
* The difference between createBrowserRouter and createMemoryRouter is that with createMemoryRouter,
|
|
24
30
|
* optional `initialEntries` are also taken into account.
|
|
31
|
+
*
|
|
32
|
+
* @deprecated Use `wrapCreateMemoryRouter` instead.
|
|
25
33
|
*/
|
|
26
34
|
export declare function wrapCreateMemoryRouterV6<TState extends RouterState = RouterState, TRouter extends Router<TState> = Router<TState>>(createMemoryRouterFunction: CreateRouterFunction<TState, TRouter>): CreateRouterFunction<TState, TRouter>;
|
|
27
35
|
/**
|
|
28
36
|
* A higher-order component that adds Sentry routing instrumentation to a React Router v6 Route component.
|
|
29
37
|
* This is used to automatically capture route changes as transactions.
|
|
38
|
+
*
|
|
39
|
+
* @deprecated Use `wrapReactRouterRouting` instead.
|
|
30
40
|
*/
|
|
31
41
|
export declare function withSentryReactRouterV6Routing<P extends Record<string, any>, R extends React.FC<P>>(routes: R): R;
|
|
32
42
|
//# sourceMappingURL=reactrouterv6.d.ts.map
|
|
@@ -5,16 +5,22 @@ import { CreateRouterFunction, Router, RouterState, UseRoutes } from './types';
|
|
|
5
5
|
/**
|
|
6
6
|
* A browser tracing integration that uses React Router v7 to instrument navigations.
|
|
7
7
|
* Expects `useEffect`, `useLocation`, `useNavigationType`, `createRoutesFromChildren` and `matchRoutes` to be passed as options.
|
|
8
|
+
*
|
|
9
|
+
* @deprecated Use `reactRouterBrowserTracingIntegration` instead.
|
|
8
10
|
*/
|
|
9
11
|
export declare function reactRouterV7BrowserTracingIntegration(options: Parameters<typeof browserTracingIntegration>[0] & ReactRouterOptions): Integration;
|
|
10
12
|
/**
|
|
11
13
|
* A higher-order component that adds Sentry routing instrumentation to a React Router v7 Route component.
|
|
12
14
|
* This is used to automatically capture route changes as transactions.
|
|
15
|
+
*
|
|
16
|
+
* @deprecated Use `wrapReactRouterRouting` instead.
|
|
13
17
|
*/
|
|
14
18
|
export declare function withSentryReactRouterV7Routing<P extends Record<string, any>, R extends React.FC<P>>(routes: R): R;
|
|
15
19
|
/**
|
|
16
20
|
* A wrapper function that adds Sentry routing instrumentation to a React Router v7 createBrowserRouter function.
|
|
17
21
|
* This is used to automatically capture route changes as transactions when using the createBrowserRouter API.
|
|
22
|
+
*
|
|
23
|
+
* @deprecated Use `wrapCreateBrowserRouter` instead.
|
|
18
24
|
*/
|
|
19
25
|
export declare function wrapCreateBrowserRouterV7<TState extends RouterState = RouterState, TRouter extends Router<TState> = Router<TState>>(createRouterFunction: CreateRouterFunction<TState, TRouter>): CreateRouterFunction<TState, TRouter>;
|
|
20
26
|
/**
|
|
@@ -22,11 +28,15 @@ export declare function wrapCreateBrowserRouterV7<TState extends RouterState = R
|
|
|
22
28
|
* This is used to automatically capture route changes as transactions when using the createMemoryRouter API.
|
|
23
29
|
* The difference between createBrowserRouter and createMemoryRouter is that with createMemoryRouter,
|
|
24
30
|
* optional `initialEntries` are also taken into account.
|
|
31
|
+
*
|
|
32
|
+
* @deprecated Use `wrapCreateMemoryRouter` instead.
|
|
25
33
|
*/
|
|
26
34
|
export declare function wrapCreateMemoryRouterV7<TState extends RouterState = RouterState, TRouter extends Router<TState> = Router<TState>>(createMemoryRouterFunction: CreateRouterFunction<TState, TRouter>): CreateRouterFunction<TState, TRouter>;
|
|
27
35
|
/**
|
|
28
36
|
* A wrapper function that adds Sentry routing instrumentation to a React Router v7 useRoutes hook.
|
|
29
37
|
* This is used to automatically capture route changes as transactions when using the useRoutes hook.
|
|
38
|
+
*
|
|
39
|
+
* @deprecated Use `wrapUseRoutes` instead.
|
|
30
40
|
*/
|
|
31
41
|
export declare function wrapUseRoutesV7(origUseRoutes: UseRoutes): UseRoutes;
|
|
32
42
|
//# sourceMappingURL=reactrouterv7.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/react",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.60.0",
|
|
4
4
|
"description": "Official Sentry SDK for React.js",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/react",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@sentry/browser": "10.
|
|
47
|
-
"@sentry/core": "10.
|
|
46
|
+
"@sentry/browser": "10.60.0",
|
|
47
|
+
"@sentry/core": "10.60.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react": "^16.14.0 || 17.x || 18.x || 19.x"
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"react-router-3": "npm:react-router@3.2.0",
|
|
68
68
|
"react-router-4": "npm:react-router@4.1.0",
|
|
69
69
|
"react-router-5": "npm:react-router@5.3.4",
|
|
70
|
-
"react-router-6": "npm:react-router@6.30.
|
|
70
|
+
"react-router-6": "npm:react-router@6.30.4",
|
|
71
71
|
"redux": "^4.0.5"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|