@sentry/react-router 10.41.0-beta.0 → 10.42.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/client/createClientInstrumentation.js +21 -3
- package/build/cjs/client/createClientInstrumentation.js.map +1 -1
- package/build/cjs/client/hydratedRouter.js +2 -1
- package/build/cjs/client/hydratedRouter.js.map +1 -1
- package/build/cjs/client/utils.js +29 -0
- package/build/cjs/client/utils.js.map +1 -0
- package/build/cjs/server/createServerInstrumentation.js +73 -49
- package/build/cjs/server/createServerInstrumentation.js.map +1 -1
- package/build/cjs/server/instrumentation/reactRouter.js +23 -7
- package/build/cjs/server/instrumentation/reactRouter.js.map +1 -1
- package/build/cjs/server/integration/reactRouterServer.js +11 -8
- package/build/cjs/server/integration/reactRouterServer.js.map +1 -1
- package/build/cjs/server/serverBuild.js +54 -0
- package/build/cjs/server/serverBuild.js.map +1 -0
- package/build/cjs/server/serverGlobals.js +19 -0
- package/build/cjs/server/serverGlobals.js.map +1 -1
- package/build/cjs/vite/makeServerBuildCapturePlugin.js +43 -0
- package/build/cjs/vite/makeServerBuildCapturePlugin.js.map +1 -0
- package/build/cjs/vite/plugin.js +2 -0
- package/build/cjs/vite/plugin.js.map +1 -1
- package/build/esm/client/createClientInstrumentation.js +21 -3
- package/build/esm/client/createClientInstrumentation.js.map +1 -1
- package/build/esm/client/hydratedRouter.js +2 -1
- package/build/esm/client/hydratedRouter.js.map +1 -1
- package/build/esm/client/utils.js +27 -0
- package/build/esm/client/utils.js.map +1 -0
- package/build/esm/package.json +1 -1
- package/build/esm/server/createServerInstrumentation.js +74 -50
- package/build/esm/server/createServerInstrumentation.js.map +1 -1
- package/build/esm/server/instrumentation/reactRouter.js +25 -9
- package/build/esm/server/instrumentation/reactRouter.js.map +1 -1
- package/build/esm/server/integration/reactRouterServer.js +12 -9
- package/build/esm/server/integration/reactRouterServer.js.map +1 -1
- package/build/esm/server/serverBuild.js +48 -0
- package/build/esm/server/serverBuild.js.map +1 -0
- package/build/esm/server/serverGlobals.js +18 -1
- package/build/esm/server/serverGlobals.js.map +1 -1
- package/build/esm/vite/makeServerBuildCapturePlugin.js +41 -0
- package/build/esm/vite/makeServerBuildCapturePlugin.js.map +1 -0
- package/build/esm/vite/plugin.js +2 -0
- package/build/esm/vite/plugin.js.map +1 -1
- package/build/types/client/createClientInstrumentation.d.ts.map +1 -1
- package/build/types/client/hydratedRouter.d.ts.map +1 -1
- package/build/types/client/utils.d.ts +9 -0
- package/build/types/client/utils.d.ts.map +1 -0
- package/build/types/server/createServerInstrumentation.d.ts.map +1 -1
- package/build/types/server/instrumentation/reactRouter.d.ts.map +1 -1
- package/build/types/server/integration/reactRouterServer.d.ts.map +1 -1
- package/build/types/server/serverBuild.d.ts +28 -0
- package/build/types/server/serverBuild.d.ts.map +1 -0
- package/build/types/server/serverGlobals.d.ts +10 -0
- package/build/types/server/serverGlobals.d.ts.map +1 -1
- package/build/types/vite/makeServerBuildCapturePlugin.d.ts +6 -0
- package/build/types/vite/makeServerBuildCapturePlugin.d.ts.map +1 -0
- package/build/types/vite/plugin.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/client/utils.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAc1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createServerInstrumentation.d.ts","sourceRoot":"","sources":["../../../src/server/createServerInstrumentation.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAqD,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"createServerInstrumentation.d.ts","sourceRoot":"","sources":["../../../src/server/createServerInstrumentation.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAqD,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAQhH,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;GAGG;AACH,wBAAgB,iCAAiC,CAC/C,OAAO,GAAE,wCAA6C,GACrD,qBAAqB,CAmMvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactRouter.d.ts","sourceRoot":"","sources":["../../../../src/server/instrumentation/reactRouter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"reactRouter.d.ts","sourceRoot":"","sources":["../../../../src/server/instrumentation/reactRouter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAE,MAAM,gCAAgC,CAAC;AAyB1G;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,mBAAmB,CAAC,qBAAqB,CAAC;gBACrE,MAAM,GAAE,qBAA0B;IAIrD;;OAEG;IAEH,SAAS,CAAC,IAAI,IAAI,mCAAmC;IAgBrD;;;OAGG;IACH,OAAO,CAAC,yBAAyB;CAkFlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactRouterServer.d.ts","sourceRoot":"","sources":["../../../../src/server/integration/reactRouterServer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reactRouterServer.d.ts","sourceRoot":"","sources":["../../../../src/server/integration/reactRouterServer.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,2BAA2B,SAClC,IAAI;;CAMT,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,0CAsCvC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subset of ServerBuild shape for middleware name lookup.
|
|
3
|
+
* The official React Router types don't expose `middleware` on route modules yet.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
interface ServerBuildLike {
|
|
7
|
+
routes?: Record<string, {
|
|
8
|
+
module?: {
|
|
9
|
+
middleware?: Array<{
|
|
10
|
+
name?: string;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const GLOBAL_KEY = "__sentrySetServerBuild";
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare function isServerBuildLike(build: unknown): build is ServerBuildLike;
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare function setServerBuild(build: ServerBuildLike): void;
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare function getMiddlewareName(routeId: string, index: number): string | undefined;
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare function registerServerBuildGlobal(): void;
|
|
25
|
+
/** @internal Exported for testing. */
|
|
26
|
+
export declare function _resetServerBuild(): void;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=serverBuild.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverBuild.d.ts","sourceRoot":"","sources":["../../../src/server/serverBuild.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,MAAM,CACb,MAAM,EACN;QACE,MAAM,CAAC,EAAE;YACP,UAAU,CAAC,EAAE,KAAK,CAAC;gBAAE,IAAI,CAAC,EAAE,MAAM,CAAA;aAAE,CAAC,CAAC;SACvC,CAAC;KACH,CACF,CAAC;CACH;AAED,gBAAgB;AAChB,eAAO,MAAM,UAAU,2BAA2B,CAAC;AASnD,gBAAgB;AAChB,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAQ1E;AAED,gBAAgB;AAChB,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAE3D;AAED,gBAAgB;AAChB,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAQpF;AAED,gBAAgB;AAChB,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD;AAED,sCAAsC;AACtC,wBAAgB,iBAAiB,IAAI,IAAI,CAIxC"}
|
|
@@ -8,4 +8,14 @@ export declare function markInstrumentationApiUsed(): void;
|
|
|
8
8
|
* @experimental
|
|
9
9
|
*/
|
|
10
10
|
export declare function isInstrumentationApiUsed(): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Enable OTEL data-loader span creation for React Router server.
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare function enableOtelDataLoaderSpanCreation(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Check if OTEL data-loader span creation is enabled for React Router server.
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare function isOtelDataLoaderSpanCreationEnabled(): boolean;
|
|
11
21
|
//# sourceMappingURL=serverGlobals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverGlobals.d.ts","sourceRoot":"","sources":["../../../src/server/serverGlobals.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"serverGlobals.d.ts","sourceRoot":"","sources":["../../../src/server/serverGlobals.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,OAAO,CAElD;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,IAAI,IAAI,CAEvD;AAED;;;GAGG;AACH,wBAAgB,mCAAmC,IAAI,OAAO,CAE7D"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Plugin } from 'vite';
|
|
2
|
+
/**
|
|
3
|
+
* A Sentry plugin for React Router to capture the server build for middleware name resolution.
|
|
4
|
+
*/
|
|
5
|
+
export declare function makeServerBuildCapturePlugin(): Plugin;
|
|
6
|
+
//# sourceMappingURL=makeServerBuildCapturePlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeServerBuildCapturePlugin.d.ts","sourceRoot":"","sources":["../../../src/vite/makeServerBuildCapturePlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,MAAM,CAAC;AAKnC;;GAEG;AACH,wBAAgB,4BAA4B,IAAI,MAAM,CA8BrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/vite/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/vite/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAK9C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE7D;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,6BAA6B,YAAK,EAC3C,UAAU,EAAE,SAAS,GACpB,OAAO,CAAC,MAAM,EAAE,CAAC,CAYnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/react-router",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.42.0",
|
|
4
4
|
"description": "Official Sentry SDK for React Router (Framework)",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/react-router",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"@opentelemetry/core": "^2.5.1",
|
|
50
50
|
"@opentelemetry/instrumentation": "^0.211.0",
|
|
51
51
|
"@opentelemetry/semantic-conventions": "^1.39.0",
|
|
52
|
-
"@sentry/browser": "10.
|
|
52
|
+
"@sentry/browser": "10.42.0",
|
|
53
53
|
"@sentry/cli": "^2.58.5",
|
|
54
|
-
"@sentry/core": "10.
|
|
55
|
-
"@sentry/node": "10.
|
|
56
|
-
"@sentry/react": "10.
|
|
54
|
+
"@sentry/core": "10.42.0",
|
|
55
|
+
"@sentry/node": "10.42.0",
|
|
56
|
+
"@sentry/react": "10.42.0",
|
|
57
57
|
"@sentry/vite-plugin": "^5.1.0",
|
|
58
58
|
"glob": "^13.0.6"
|
|
59
59
|
},
|