Skip to content

Commit 4bca46a

Browse files
committed
rename to reactRouterV3BrowserTracingIntegration
1 parent 2eb7f94 commit 4bca46a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/react/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export { createReduxEnhancer } from './redux';
88
export {
99
// eslint-disable-next-line deprecation/deprecation
1010
reactRouterV3Instrumentation,
11-
browserTracingReactRouterV3Integration,
11+
reactRouterV3BrowserTracingIntegration,
1212
} from './reactrouterv3';
1313
export {
1414
// eslint-disable-next-line deprecation/deprecation

packages/react/src/reactrouterv3.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ interface ReactRouterOptions {
4848
* A browser tracing integration that uses React Router v3 to instrument navigations.
4949
* Expects `history` (and optionally `routes` and `matchPath`) to be passed as options.
5050
*/
51-
export function browserTracingReactRouterV3Integration(
51+
export function reactRouterV3BrowserTracingIntegration(
5252
options: Parameters<typeof browserTracingIntegration>[0] & ReactRouterOptions,
5353
): Integration {
5454
const integration = browserTracingIntegration({
@@ -92,7 +92,7 @@ export function browserTracingReactRouterV3Integration(
9292
* @param routes a list of all routes, should be
9393
* @param match `Router.match` utility
9494
*
95-
* @deprecated Use `browserTracingReactRouterV3Integration()` instead
95+
* @deprecated Use `reactRouterV3BrowserTracingIntegration()` instead
9696
*/
9797
export function reactRouterV3Instrumentation(
9898
history: HistoryV3,

packages/react/test/reactrouterv3.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import * as React from 'react';
1212
import { IndexRoute, Route, Router, createMemoryHistory, createRoutes, match } from 'react-router-3';
1313

1414
import type { Match, Route as RouteType } from '../src/reactrouterv3';
15-
import { browserTracingReactRouterV3Integration } from '../src/reactrouterv3';
15+
import { reactRouterV3BrowserTracingIntegration } from '../src/reactrouterv3';
1616
import { reactRouterV3Instrumentation } from '../src/reactrouterv3';
1717

1818
// Have to manually set types because we are using package-alias
@@ -319,7 +319,7 @@ describe('browserTracingReactRouterV3', () => {
319319
const client = createMockBrowserClient();
320320
setCurrentClient(client);
321321

322-
client.addIntegration(browserTracingReactRouterV3Integration({ history, routes: instrumentationRoutes, match }));
322+
client.addIntegration(reactRouterV3BrowserTracingIntegration({ history, routes: instrumentationRoutes, match }));
323323

324324
client.init();
325325
render(<Router history={history}>{routes}</Router>);
@@ -340,7 +340,7 @@ describe('browserTracingReactRouterV3', () => {
340340
setCurrentClient(client);
341341

342342
const history = createMemoryHistory();
343-
client.addIntegration(browserTracingReactRouterV3Integration({ history, routes: instrumentationRoutes, match }));
343+
client.addIntegration(reactRouterV3BrowserTracingIntegration({ history, routes: instrumentationRoutes, match }));
344344

345345
client.init();
346346
render(<Router history={history}>{routes}</Router>);
@@ -378,7 +378,7 @@ describe('browserTracingReactRouterV3', () => {
378378
setCurrentClient(client);
379379

380380
const history = createMemoryHistory();
381-
client.addIntegration(browserTracingReactRouterV3Integration({ history, routes: instrumentationRoutes, match }));
381+
client.addIntegration(reactRouterV3BrowserTracingIntegration({ history, routes: instrumentationRoutes, match }));
382382

383383
client.init();
384384
render(<Router history={history}>{routes}</Router>);
@@ -393,7 +393,7 @@ describe('browserTracingReactRouterV3', () => {
393393
const client = createMockBrowserClient();
394394

395395
const history = createMemoryHistory();
396-
client.addIntegration(browserTracingReactRouterV3Integration({ history, routes: instrumentationRoutes, match }));
396+
client.addIntegration(reactRouterV3BrowserTracingIntegration({ history, routes: instrumentationRoutes, match }));
397397

398398
client.init();
399399
const { container } = render(<Router history={history}>{routes}</Router>);

0 commit comments

Comments
 (0)