@sentry/tanstackstart-react 10.69.0 → 11.0.0-alpha.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/server/globalMiddleware.js +1 -1
- package/build/cjs/server/globalMiddleware.js.map +1 -1
- package/build/cjs/server/middleware.js.map +1 -1
- package/build/cjs/server/utils.js +3 -2
- package/build/cjs/server/utils.js.map +1 -1
- package/build/cjs/server/wrapFetchWithSentry.js +3 -3
- package/build/cjs/server/wrapFetchWithSentry.js.map +1 -1
- package/build/cjs/vite/sentryTanstackStart.js +2 -0
- package/build/cjs/vite/sentryTanstackStart.js.map +1 -1
- package/build/cjs/vite/sourceMaps.js +2 -2
- package/build/cjs/vite/sourceMaps.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/server/globalMiddleware.js +1 -1
- package/build/esm/server/globalMiddleware.js.map +1 -1
- package/build/esm/server/middleware.js.map +1 -1
- package/build/esm/server/utils.js +4 -3
- package/build/esm/server/utils.js.map +1 -1
- package/build/esm/server/wrapFetchWithSentry.js +4 -4
- package/build/esm/server/wrapFetchWithSentry.js.map +1 -1
- package/build/esm/vite/sentryTanstackStart.js +2 -0
- package/build/esm/vite/sentryTanstackStart.js.map +1 -1
- package/build/esm/vite/sourceMaps.js +1 -1
- package/build/esm/vite/sourceMaps.js.map +1 -1
- package/build/import-hook.mjs +1 -1
- package/build/types/index.types.d.ts +1 -0
- package/build/types/index.types.d.ts.map +1 -1
- package/build/types/server/index.d.ts.map +1 -1
- package/build/types/server/utils.d.ts.map +1 -1
- package/build/types/server/wrapFetchWithSentry.d.ts +1 -1
- package/build/types/server/wrapFetchWithSentry.d.ts.map +1 -1
- package/build/types/vite/sentryTanstackStart.d.ts.map +1 -1
- package/build/types/vite/sourceMaps.d.ts +1 -1
- package/package.json +11 -24
- package/build/loader-hook.mjs +0 -1
- package/build/types-ts3.8/client/index.d.ts +0 -35
- package/build/types-ts3.8/client/sdk.d.ts +0 -9
- package/build/types-ts3.8/client/tunnelRoute.d.ts +0 -7
- package/build/types-ts3.8/common/index.d.ts +0 -2
- package/build/types-ts3.8/common/types.d.ts +0 -76
- package/build/types-ts3.8/config/index.d.ts +0 -2
- package/build/types-ts3.8/index.client.d.ts +0 -3
- package/build/types-ts3.8/index.server.d.ts +0 -4
- package/build/types-ts3.8/index.types.d.ts +0 -33
- package/build/types-ts3.8/server/globalMiddleware.d.ts +0 -12
- package/build/types-ts3.8/server/index.d.ts +0 -28
- package/build/types-ts3.8/server/middleware.d.ts +0 -23
- package/build/types-ts3.8/server/routeParametrization.d.ts +0 -12
- package/build/types-ts3.8/server/sdk.d.ts +0 -6
- package/build/types-ts3.8/server/tunnelRoute.d.ts +0 -35
- package/build/types-ts3.8/server/utils.d.ts +0 -6
- package/build/types-ts3.8/server/wrapFetchWithSentry.d.ts +0 -29
- package/build/types-ts3.8/vite/autoInstrumentMiddleware.d.ts +0 -43
- package/build/types-ts3.8/vite/index.d.ts +0 -4
- package/build/types-ts3.8/vite/routePatterns.d.ts +0 -18
- package/build/types-ts3.8/vite/sentryTanstackStart.d.ts +0 -79
- package/build/types-ts3.8/vite/sourceMaps.d.ts +0 -27
- package/build/types-ts3.8/vite/tunnelRoute.d.ts +0 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,KAAK,KAAK,SAAS,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,KAAK,SAAS,MAAM,UAAU,CAAC;AAE3C,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AAEzB,4CAA4C;AAC5C,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,OAAO,EAAE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iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7D,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GACvC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAEb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/server/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/server/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrD;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAQvE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type ServerEntry = {
|
|
2
|
-
fetch: (request: Request, opts?:
|
|
2
|
+
fetch: (request: Request, opts?: any) => Promise<Response> | Response;
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
5
5
|
* This function can be used to wrap the server entry request handler to add tracing to server-side functionality.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapFetchWithSentry.d.ts","sourceRoot":"","sources":["../../../src/server/wrapFetchWithSentry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wrapFetchWithSentry.d.ts","sourceRoot":"","sources":["../../../src/server/wrapFetchWithSentry.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,WAAW,GAAG;IAKxB,KAAK,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;CACvE,CAAC;AAgGF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAqCzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentryTanstackStart.d.ts","sourceRoot":"","sources":["../../../src/vite/sentryTanstackStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"sentryTanstackStart.d.ts","sourceRoot":"","sources":["../../../src/vite/sentryTanstackStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAInC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGxD;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,oBAAoB;IACtE;;;;;;;;;;OAUG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE;QACzB;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC9B,CAAC;IAEF;;;;;;;;;;;;;;OAcG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,0BAA+B,GAAG,MAAM,EAAE,CA+BtF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Plugin, UserConfig } from 'vite';
|
|
2
2
|
import type { SentryTanstackStartOptions } from './sentryTanstackStart';
|
|
3
3
|
/**
|
|
4
|
-
* A Sentry plugin for adding the @sentry/vite
|
|
4
|
+
* A Sentry plugin for adding the @sentry/bundler-plugins/vite to automatically upload source maps to Sentry.
|
|
5
5
|
*/
|
|
6
6
|
export declare function makeAddSentryVitePlugin(options: SentryTanstackStartOptions): Plugin[];
|
|
7
7
|
/**
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/tanstackstart-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-alpha.0",
|
|
4
4
|
"description": "Official Sentry SDK for TanStack Start React",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/tanstackstart-react",
|
|
7
7
|
"author": "Sentry",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": ">=
|
|
10
|
+
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
|
|
11
11
|
},
|
|
12
12
|
"main": "build/cjs/index.server.js",
|
|
13
13
|
"module": "build/esm/index.server.js",
|
|
@@ -41,35 +41,24 @@
|
|
|
41
41
|
"default": "./build/import-hook.mjs"
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
"./loader": {
|
|
45
|
-
"import": {
|
|
46
|
-
"default": "./build/loader-hook.mjs"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
44
|
"./vite": {
|
|
50
45
|
"types": "./build/types/vite/index.d.ts",
|
|
51
46
|
"import": "./build/esm/vite/index.js",
|
|
52
47
|
"require": "./build/cjs/vite/index.js"
|
|
53
48
|
}
|
|
54
49
|
},
|
|
55
|
-
"typesVersions": {
|
|
56
|
-
"<5.0": {
|
|
57
|
-
"build/npm/types/index.d.ts": [
|
|
58
|
-
"build/npm/types-ts3.8/index.d.ts"
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
50
|
"publishConfig": {
|
|
63
51
|
"access": "public"
|
|
64
52
|
},
|
|
65
53
|
"dependencies": {
|
|
66
54
|
"@opentelemetry/api": "^1.9.1",
|
|
67
|
-
"@sentry/browser-utils": "
|
|
55
|
+
"@sentry/browser-utils": "11.0.0-alpha.0",
|
|
68
56
|
"@sentry/conventions": "^0.16.0",
|
|
69
|
-
"@sentry/core": "
|
|
70
|
-
"@sentry/node": "
|
|
71
|
-
"@sentry/react": "
|
|
72
|
-
"@sentry/
|
|
57
|
+
"@sentry/core": "11.0.0-alpha.0",
|
|
58
|
+
"@sentry/node": "11.0.0-alpha.0",
|
|
59
|
+
"@sentry/react": "11.0.0-alpha.0",
|
|
60
|
+
"@sentry/server-utils": "11.0.0-alpha.0",
|
|
61
|
+
"@sentry/bundler-plugins": "11.0.0-alpha.0"
|
|
73
62
|
},
|
|
74
63
|
"devDependencies": {
|
|
75
64
|
"vite": "^6.4.3"
|
|
@@ -78,17 +67,15 @@
|
|
|
78
67
|
"build": "run-p build:transpile build:types",
|
|
79
68
|
"build:dev": "yarn build",
|
|
80
69
|
"build:transpile": "rollup -c rollup.npm.config.mjs",
|
|
81
|
-
"build:types": "
|
|
82
|
-
"build:types:core": "tsc -p tsconfig.types.json",
|
|
83
|
-
"build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8",
|
|
70
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
84
71
|
"build:watch": "run-p build:transpile:watch",
|
|
85
72
|
"build:dev:watch": "yarn build:watch",
|
|
86
73
|
"build:transpile:watch": "nodemon --ext ts --watch src scripts/buildRollup.ts",
|
|
87
74
|
"build:tarball": "npm pack",
|
|
88
75
|
"circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/index.server.ts && madge --circular src/index.types.ts",
|
|
89
76
|
"clean": "rimraf build coverage sentry-tanstackstart-react-*.tgz",
|
|
90
|
-
"lint:fix": "
|
|
91
|
-
"lint": "
|
|
77
|
+
"lint:fix": "oxlint . --fix --type-aware",
|
|
78
|
+
"lint": "oxlint . --type-aware",
|
|
92
79
|
"lint:es-compatibility": "es-check es2020 ./build/cjs/*.js && es-check es2020 ./build/esm/*.js --module",
|
|
93
80
|
"test": "yarn test:unit",
|
|
94
81
|
"test:unit": "vitest run",
|
package/build/loader-hook.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@sentry/node/import-hook';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { SentryGlobalFunctionMiddleware, SentryGlobalRequestMiddleware, TanStackMiddlewareBase } from '../common/types';
|
|
2
|
-
import { CreateSentryTunnelRouteOptions } from '../server/tunnelRoute';
|
|
3
|
-
export * from '@sentry/react';
|
|
4
|
-
export { init } from './sdk';
|
|
5
|
-
/**
|
|
6
|
-
* No-op stub for client-side builds.
|
|
7
|
-
* The actual implementation is server-only, but this stub is needed to prevent build errors.
|
|
8
|
-
*/
|
|
9
|
-
export declare function wrapMiddlewaresWithSentry<T extends TanStackMiddlewareBase>(middlewares: Record<string, T>): T[];
|
|
10
|
-
/**
|
|
11
|
-
* No-op stub for client-side builds.
|
|
12
|
-
* The actual implementation is server-only, but this stub is needed to prevent rendering errors.
|
|
13
|
-
*/
|
|
14
|
-
export declare const sentryGlobalRequestMiddleware: SentryGlobalRequestMiddleware;
|
|
15
|
-
/**
|
|
16
|
-
* No-op stub for client-side builds.
|
|
17
|
-
* The actual implementation is server-only, but this stub is needed to prevent rendering errors.
|
|
18
|
-
*/
|
|
19
|
-
export declare const sentryGlobalFunctionMiddleware: SentryGlobalFunctionMiddleware;
|
|
20
|
-
/**
|
|
21
|
-
* No-op stub for client-side builds.
|
|
22
|
-
* The actual implementation is server-only, but this stub is needed to prevent rendering errors.
|
|
23
|
-
*/
|
|
24
|
-
export declare function createSentryTunnelRoute(_options: CreateSentryTunnelRouteOptions): {
|
|
25
|
-
handlers: {
|
|
26
|
-
POST: () => Promise<Response>;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* No-op stub for client-side builds.
|
|
31
|
-
* The actual implementation is server-only, but this stub is needed so the managed tunnel route module
|
|
32
|
-
* can statically import it (the call is server-guarded and tree-shaken from the client bundle).
|
|
33
|
-
*/
|
|
34
|
-
export declare function registerSentryServerTunnelRoute(_path: string): void;
|
|
35
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Client } from '@sentry/core';
|
|
2
|
-
import { BrowserOptions as ReactBrowserOptions } from '@sentry/react';
|
|
3
|
-
/**
|
|
4
|
-
* Initializes the TanStack Start React SDK
|
|
5
|
-
*
|
|
6
|
-
* @param options Configuration options for the SDK.
|
|
7
|
-
*/
|
|
8
|
-
export declare function init(options: ReactBrowserOptions): Client | undefined;
|
|
9
|
-
//# sourceMappingURL=sdk.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BrowserOptions as ReactBrowserOptions } from '@sentry/react';
|
|
2
|
-
/**
|
|
3
|
-
* Applies the managed tunnel route from `sentryTanstackStart({ tunnelRoute: ... })` unless the user already
|
|
4
|
-
* configured an explicit runtime `tunnel` option in `Sentry.init()`.
|
|
5
|
-
*/
|
|
6
|
-
export declare function applyTunnelRouteOption(options: ReactBrowserOptions): void;
|
|
7
|
-
//# sourceMappingURL=tunnelRoute.d.ts.map
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
export type TanStackMiddlewareBase = {
|
|
2
|
-
'~types': unknown;
|
|
3
|
-
options: {
|
|
4
|
-
server?: (...args: any[]) => any;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Structurally mirrors TanStack Start's `RequestMiddlewareTypes` for a middleware that contributes
|
|
9
|
-
* nothing to the middleware chain. The context-related fields are deliberately typed as `undefined`
|
|
10
|
-
* rather than `any`: TanStack Start merges middleware context types through these fields, so an
|
|
11
|
-
* `any` here would turn the inferred `context` of every subsequent middleware and handler into `any`.
|
|
12
|
-
*/
|
|
13
|
-
type SentryRequestMiddlewareTypes = {
|
|
14
|
-
type: 'request';
|
|
15
|
-
middlewares: undefined;
|
|
16
|
-
allInput: undefined;
|
|
17
|
-
allOutput: undefined;
|
|
18
|
-
serverContext: undefined;
|
|
19
|
-
allServerContext: undefined;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Structurally mirrors TanStack Start's `FunctionMiddlewareTypes` for a middleware that contributes
|
|
23
|
-
* nothing to the middleware chain (see `SentryRequestMiddlewareTypes`).
|
|
24
|
-
*/
|
|
25
|
-
type SentryFunctionMiddlewareTypes = {
|
|
26
|
-
type: 'function';
|
|
27
|
-
middlewares: undefined;
|
|
28
|
-
input: undefined;
|
|
29
|
-
allInput: undefined;
|
|
30
|
-
output: undefined;
|
|
31
|
-
allOutput: undefined;
|
|
32
|
-
clientContext: undefined;
|
|
33
|
-
allClientContextBeforeNext: undefined;
|
|
34
|
-
allClientContextAfterNext: undefined;
|
|
35
|
-
serverContext: undefined;
|
|
36
|
-
serverSendContext: undefined;
|
|
37
|
-
allServerSendContext: undefined;
|
|
38
|
-
allServerContext: undefined;
|
|
39
|
-
clientSendContext: undefined;
|
|
40
|
-
allClientSendContext: undefined;
|
|
41
|
-
validator: undefined;
|
|
42
|
-
inputValidator: undefined;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Type of the `sentryGlobalRequestMiddleware` export.
|
|
46
|
-
*
|
|
47
|
-
* Declares the middleware type information under both `~types` (TanStack Start >=1.143) and
|
|
48
|
-
* `_types` (older versions) so the middleware satisfies `AnyRequestMiddleware` across the
|
|
49
|
-
* supported version range.
|
|
50
|
-
*/
|
|
51
|
-
export type SentryGlobalRequestMiddleware = {
|
|
52
|
-
'~types': SentryRequestMiddlewareTypes;
|
|
53
|
-
_types: SentryRequestMiddlewareTypes;
|
|
54
|
-
options: {
|
|
55
|
-
server?: (...args: any[]) => any;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Type of the `sentryGlobalFunctionMiddleware` export.
|
|
60
|
-
*
|
|
61
|
-
* Declares the middleware type information under both `~types` (TanStack Start >=1.143) and
|
|
62
|
-
* `_types` (older versions) so the middleware satisfies `AnyFunctionMiddleware` across the
|
|
63
|
-
* supported version range.
|
|
64
|
-
*/
|
|
65
|
-
export type SentryGlobalFunctionMiddleware = {
|
|
66
|
-
'~types': SentryFunctionMiddlewareTypes;
|
|
67
|
-
_types: SentryFunctionMiddlewareTypes;
|
|
68
|
-
options: {
|
|
69
|
-
server?: (...args: any[]) => any;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
export type MiddlewareWrapperOptions = {
|
|
73
|
-
name: string;
|
|
74
|
-
};
|
|
75
|
-
export {};
|
|
76
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Client, Integration, Options, StackParser } from '@sentry/core';
|
|
2
|
-
import * as clientSdk from './client';
|
|
3
|
-
import * as serverSdk from './server';
|
|
4
|
-
export * from './config';
|
|
5
|
-
export * from './client';
|
|
6
|
-
export * from './server';
|
|
7
|
-
export * from './common';
|
|
8
|
-
/** Initializes Sentry TanStack Start SDK */
|
|
9
|
-
export declare function init(options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions): Client | undefined;
|
|
10
|
-
export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsIntegration;
|
|
11
|
-
export declare const contextLinesIntegration: typeof clientSdk.contextLinesIntegration;
|
|
12
|
-
export declare const spanStreamingIntegration: typeof clientSdk.spanStreamingIntegration;
|
|
13
|
-
export declare const withStreamedSpan: typeof clientSdk.withStreamedSpan;
|
|
14
|
-
export declare const getDefaultIntegrations: (options: Options) => Integration[];
|
|
15
|
-
export declare const defaultStackParser: StackParser;
|
|
16
|
-
export declare const ErrorBoundary: typeof clientSdk.ErrorBoundary;
|
|
17
|
-
export declare const withErrorBoundary: typeof clientSdk.withErrorBoundary;
|
|
18
|
-
export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger;
|
|
19
|
-
export declare const growthbookIntegration: typeof clientSdk.growthbookIntegration;
|
|
20
|
-
export declare const launchDarklyIntegration: typeof clientSdk.launchDarklyIntegration;
|
|
21
|
-
export declare const buildLaunchDarklyFlagUsedHandler: typeof clientSdk.buildLaunchDarklyFlagUsedHandler;
|
|
22
|
-
export declare const openFeatureIntegration: typeof clientSdk.openFeatureIntegration;
|
|
23
|
-
export declare const OpenFeatureIntegrationHook: typeof clientSdk.OpenFeatureIntegrationHook;
|
|
24
|
-
export declare const statsigIntegration: typeof clientSdk.statsigIntegration;
|
|
25
|
-
export declare const unleashIntegration: typeof clientSdk.unleashIntegration;
|
|
26
|
-
export declare const wrapMiddlewaresWithSentry: typeof serverSdk.wrapMiddlewaresWithSentry;
|
|
27
|
-
export declare const replayIntegration: typeof clientSdk.replayIntegration;
|
|
28
|
-
export declare const tanstackRouterBrowserTracingIntegration: typeof clientSdk.tanstackRouterBrowserTracingIntegration;
|
|
29
|
-
export declare const sentryGlobalRequestMiddleware: typeof serverSdk.sentryGlobalRequestMiddleware;
|
|
30
|
-
export declare const sentryGlobalFunctionMiddleware: typeof serverSdk.sentryGlobalFunctionMiddleware;
|
|
31
|
-
export declare const createSentryTunnelRoute: typeof serverSdk.createSentryTunnelRoute;
|
|
32
|
-
export declare const registerSentryServerTunnelRoute: typeof serverSdk.registerSentryServerTunnelRoute;
|
|
33
|
-
//# sourceMappingURL=index.types.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SentryGlobalFunctionMiddleware, SentryGlobalRequestMiddleware } from '../common/types';
|
|
2
|
-
/**
|
|
3
|
-
* Global request middleware that captures errors from API route requests.
|
|
4
|
-
* Should be added as the first entry in the `requestMiddleware` array of `createStart()`.
|
|
5
|
-
*/
|
|
6
|
-
export declare const sentryGlobalRequestMiddleware: SentryGlobalRequestMiddleware;
|
|
7
|
-
/**
|
|
8
|
-
* Global function middleware that captures errors from server function invocations.
|
|
9
|
-
* Should be added as the first entry in the `functionMiddleware` array of `createStart()`.
|
|
10
|
-
*/
|
|
11
|
-
export declare const sentryGlobalFunctionMiddleware: SentryGlobalFunctionMiddleware;
|
|
12
|
-
//# sourceMappingURL=globalMiddleware.d.ts.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Integration } from '@sentry/core';
|
|
2
|
-
export * from '@sentry/node';
|
|
3
|
-
export { init } from './sdk';
|
|
4
|
-
export { wrapFetchWithSentry } from './wrapFetchWithSentry';
|
|
5
|
-
export { wrapMiddlewaresWithSentry } from './middleware';
|
|
6
|
-
export { sentryGlobalRequestMiddleware, sentryGlobalFunctionMiddleware } from './globalMiddleware';
|
|
7
|
-
export { createSentryTunnelRoute, registerSentryServerTunnelRoute } from './tunnelRoute';
|
|
8
|
-
/**
|
|
9
|
-
* A no-op stub of the replay integration for the server. Router setup code is shared between client and server,
|
|
10
|
-
* so this stub is needed to prevent build errors during SSR bundling.
|
|
11
|
-
*/
|
|
12
|
-
export declare function replayIntegration(_options?: Record<string, unknown>): Integration;
|
|
13
|
-
/**
|
|
14
|
-
* A no-op stub of the browser tracing integration for the server. Router setup code is shared between client and server,
|
|
15
|
-
* so this stub is needed to prevent build errors during SSR bundling.
|
|
16
|
-
*/
|
|
17
|
-
export declare function tanstackRouterBrowserTracingIntegration(_router: unknown, _options?: Record<string, unknown>): Integration;
|
|
18
|
-
/**
|
|
19
|
-
* A passthrough error boundary for the server that doesn't depend on any react. Error boundaries don't catch SSR errors
|
|
20
|
-
* so they should simply be a passthrough.
|
|
21
|
-
*/
|
|
22
|
-
export declare const ErrorBoundary: (props: React.PropsWithChildren<unknown>) => React.ReactNode;
|
|
23
|
-
/**
|
|
24
|
-
* A passthrough error boundary wrapper for the server that doesn't depend on any react. Error boundaries don't catch
|
|
25
|
-
* SSR errors so they should simply be a passthrough.
|
|
26
|
-
*/
|
|
27
|
-
export declare function withErrorBoundary<P extends Record<string, any>>(WrappedComponent: React.ComponentType<P>): React.FC<P>;
|
|
28
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { TanStackMiddlewareBase } from '../common/types';
|
|
2
|
-
export declare const SENTRY_INTERNAL = "__SENTRY_INTERNAL__";
|
|
3
|
-
/**
|
|
4
|
-
* Wraps multiple TanStack Start middlewares with Sentry instrumentation.
|
|
5
|
-
* Object keys are used as span names to avoid users having to specify this manually.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* import { wrapMiddlewaresWithSentry } from '@sentry/tanstackstart-react';
|
|
10
|
-
*
|
|
11
|
-
* const wrappedMiddlewares = wrapMiddlewaresWithSentry({
|
|
12
|
-
* authMiddleware,
|
|
13
|
-
* loggingMiddleware,
|
|
14
|
-
* });
|
|
15
|
-
*
|
|
16
|
-
* createServerFn().middleware(wrappedMiddlewares)
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @param middlewares - An object containing middlewares
|
|
20
|
-
* @returns An array of wrapped middlewares
|
|
21
|
-
*/
|
|
22
|
-
export declare function wrapMiddlewaresWithSentry<T extends TanStackMiddlewareBase>(middlewares: Record<string, T>): T[];
|
|
23
|
-
//# sourceMappingURL=middleware.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Matches a URL pathname against a list of TanStack Start route patterns.
|
|
3
|
-
* Patterns use `$param` syntax for dynamic segments (e.g., `/users/$id`).
|
|
4
|
-
*
|
|
5
|
-
* Patterns are expected to be pre-sorted by specificity (more segments first, static before dynamic).
|
|
6
|
-
*/
|
|
7
|
-
export declare function matchUrlToRoutePattern(pathname: string, patterns: string[]): string | undefined;
|
|
8
|
-
/**
|
|
9
|
-
* Updates the active root span with a parametrized route name.
|
|
10
|
-
*/
|
|
11
|
-
export declare function updateSpanWithRouteParametrization(method: string, pathname: string, patterns: string[]): void;
|
|
12
|
-
//# sourceMappingURL=routeParametrization.d.ts.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Drops the incoming `http.server` transaction for a tunnel route by matching its request path (the
|
|
3
|
-
* `http.target` attribute, set at span creation, so it works for static and streamed lifecycles).
|
|
4
|
-
* Called at server startup for the managed route and from the handler (self-registration) otherwise.
|
|
5
|
-
*/
|
|
6
|
-
export declare function registerSentryServerTunnelRoute(path: string): void;
|
|
7
|
-
export interface CreateSentryTunnelRouteOptions {
|
|
8
|
-
allowedDsns?: string[];
|
|
9
|
-
}
|
|
10
|
-
type SentryTunnelRouteHandlerContext = {
|
|
11
|
-
request: Request;
|
|
12
|
-
};
|
|
13
|
-
type SentryTunnelRoute = {
|
|
14
|
-
handlers: {
|
|
15
|
-
POST: (context: SentryTunnelRouteHandlerContext) => Promise<Response>;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Creates a TanStack Start server route configuration for tunneling Sentry envelopes.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* import { createFileRoute } from '@tanstack/react-router';
|
|
24
|
-
* import * as Sentry from '@sentry/tanstackstart-react';
|
|
25
|
-
*
|
|
26
|
-
* export const Route = createFileRoute('/monitoring')({
|
|
27
|
-
* server: Sentry.createSentryTunnelRoute({
|
|
28
|
-
* allowedDsns: ['https://public@o0.ingest.sentry.io/0'],
|
|
29
|
-
* }),
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare function createSentryTunnelRoute(options: CreateSentryTunnelRouteOptions): SentryTunnelRoute;
|
|
34
|
-
export {};
|
|
35
|
-
//# sourceMappingURL=tunnelRoute.d.ts.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export type ServerEntry = {
|
|
2
|
-
fetch: (request: Request, opts?: unknown) => Promise<Response> | Response;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* This function can be used to wrap the server entry request handler to add tracing to server-side functionality.
|
|
6
|
-
* You must explicitly define a server entry point in your application for this to work. This is done by passing the request handler to the `createServerEntry` function.
|
|
7
|
-
* For more information about the server entry point, see the [TanStack Start documentation](https://tanstack.com/start/docs/server-entry).
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* import { wrapFetchWithSentry } from '@sentry/tanstackstart-react';
|
|
12
|
-
*
|
|
13
|
-
* import handler, { createServerEntry } from '@tanstack/react-start/server-entry';
|
|
14
|
-
* import type { ServerEntry } from '@tanstack/react-start/server-entry';
|
|
15
|
-
*
|
|
16
|
-
* const requestHandler: ServerEntry = wrapFetchWithSentry({
|
|
17
|
-
* fetch(request: Request) {
|
|
18
|
-
* return handler.fetch(request);
|
|
19
|
-
* },
|
|
20
|
-
* });
|
|
21
|
-
*
|
|
22
|
-
* export default serverEntry = createServerEntry(requestHandler);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @param serverEntry - request handler to wrap
|
|
26
|
-
* @returns - wrapped request handler
|
|
27
|
-
*/
|
|
28
|
-
export declare function wrapFetchWithSentry(serverEntry: ServerEntry): ServerEntry;
|
|
29
|
-
//# sourceMappingURL=wrapFetchWithSentry.d.ts.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Plugin } from 'vite';
|
|
2
|
-
type AutoInstrumentMiddlewareOptions = {
|
|
3
|
-
enabled?: boolean;
|
|
4
|
-
debug?: boolean;
|
|
5
|
-
};
|
|
6
|
-
type WrapResult = {
|
|
7
|
-
code: string;
|
|
8
|
-
didWrap: boolean;
|
|
9
|
-
skipped: string[];
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Wraps global middleware arrays (requestMiddleware, functionMiddleware) in createStart() files.
|
|
13
|
-
*/
|
|
14
|
-
export declare function wrapGlobalMiddleware(code: string, id: string, debug: boolean): WrapResult;
|
|
15
|
-
/**
|
|
16
|
-
* Wraps route middleware arrays in createFileRoute() files.
|
|
17
|
-
*/
|
|
18
|
-
export declare function wrapRouteMiddleware(code: string, id: string, debug: boolean): WrapResult;
|
|
19
|
-
/**
|
|
20
|
-
* Wraps middleware arrays in createServerFn().middleware([...]) calls.
|
|
21
|
-
*/
|
|
22
|
-
export declare function wrapServerFnMiddleware(code: string, id: string, debug: boolean): WrapResult;
|
|
23
|
-
/**
|
|
24
|
-
* A Vite plugin that automatically instruments TanStack Start middlewares:
|
|
25
|
-
* - `requestMiddleware` and `functionMiddleware` arrays in `createStart()`
|
|
26
|
-
* - `middleware` arrays in `createFileRoute()` route definitions
|
|
27
|
-
*/
|
|
28
|
-
export declare function makeAutoInstrumentMiddlewarePlugin(options?: AutoInstrumentMiddlewareOptions): Plugin;
|
|
29
|
-
/**
|
|
30
|
-
* Convert array contents to object shorthand syntax.
|
|
31
|
-
* e.g., "foo, bar, baz" → "{ foo, bar, baz }"
|
|
32
|
-
*
|
|
33
|
-
* Returns null if contents contain non-identifier expressions (function calls, etc.)
|
|
34
|
-
* which cannot be converted to object shorthand.
|
|
35
|
-
*/
|
|
36
|
-
export declare function arrayToObjectShorthand(contents: string): string | null;
|
|
37
|
-
/**
|
|
38
|
-
* Adds the wrapMiddlewaresWithSentry import to the code.
|
|
39
|
-
* Handles 'use client' and 'use server' directives by inserting the import after them.
|
|
40
|
-
*/
|
|
41
|
-
export declare function addSentryImport(code: string): string;
|
|
42
|
-
export {};
|
|
43
|
-
//# sourceMappingURL=autoInstrumentMiddleware.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Plugin } from 'vite';
|
|
2
|
-
/**
|
|
3
|
-
* Extracts route patterns from TanStack Start's generated routeTree.gen.ts
|
|
4
|
-
* and replaces `__SENTRY_ROUTE_PATTERNS__` references with the extracted patterns.
|
|
5
|
-
*
|
|
6
|
-
* The route tree file is read during `transform` rather than `config` because
|
|
7
|
-
* TanStack Start generates it during the build.
|
|
8
|
-
*/
|
|
9
|
-
export declare function makeRoutePatternPlugin(): Plugin;
|
|
10
|
-
/**
|
|
11
|
-
* Extracts full route path patterns from the content of routeTree.gen.ts.
|
|
12
|
-
*
|
|
13
|
-
* Parses the `fullPaths` type union which contains the resolved full paths
|
|
14
|
-
* (e.g., `fullPaths: '/' | '/page-a' | '/users/$userId'`).
|
|
15
|
-
* This is more reliable than `path:` properties which can be relative for nested routes.
|
|
16
|
-
*/
|
|
17
|
-
export declare function extractRoutePatterns(content: string): string[];
|
|
18
|
-
//# sourceMappingURL=routePatterns.d.ts.map
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { BuildTimeOptionsBase } from '@sentry/core';
|
|
2
|
-
import { Plugin } from 'vite';
|
|
3
|
-
import { TunnelRouteOptions } from './tunnelRoute';
|
|
4
|
-
/**
|
|
5
|
-
* Build-time options for the Sentry TanStack Start SDK.
|
|
6
|
-
*/
|
|
7
|
-
export interface SentryTanstackStartOptions extends BuildTimeOptionsBase {
|
|
8
|
-
/**
|
|
9
|
-
* If this flag is `true`, the Sentry plugins will automatically instrument TanStack Start middlewares.
|
|
10
|
-
*
|
|
11
|
-
* This wraps global middlewares (`requestMiddleware` and `functionMiddleware`) in `createStart()` with Sentry
|
|
12
|
-
* instrumentation to capture performance data.
|
|
13
|
-
*
|
|
14
|
-
* Set to `false` to disable automatic middleware instrumentation if you prefer to wrap middlewares manually
|
|
15
|
-
* using `wrapMiddlewaresWithSentry`.
|
|
16
|
-
*
|
|
17
|
-
* @default true
|
|
18
|
-
*/
|
|
19
|
-
autoInstrumentMiddleware?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Options related to react component name annotations.
|
|
22
|
-
* Disabled by default, unless a value is set for this option.
|
|
23
|
-
* When enabled, your app's DOM will automatically be annotated during build-time with their respective component names.
|
|
24
|
-
* This will unlock the capability to search for Replays in Sentry by component name, as well as see component names in breadcrumbs and performance monitoring.
|
|
25
|
-
* Please note that this feature is not currently supported by the esbuild bundler plugins, and will only annotate React components
|
|
26
|
-
*/
|
|
27
|
-
reactComponentAnnotation?: {
|
|
28
|
-
/**
|
|
29
|
-
* Whether the component name annotate plugin should be enabled or not.
|
|
30
|
-
*/
|
|
31
|
-
enabled?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* A list of strings representing the names of components to ignore. The plugin will not apply `data-sentry` annotations on the DOM element for these components.
|
|
34
|
-
*/
|
|
35
|
-
ignoredComponents?: string[];
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Configures a framework-managed same-origin tunnel route for Sentry envelopes.
|
|
39
|
-
*
|
|
40
|
-
* This creates a TanStack Start server route backed by `createSentryTunnelRoute()` and applies the resulting path
|
|
41
|
-
* as the default `tunnel` option on the client.
|
|
42
|
-
*
|
|
43
|
-
* You can pass:
|
|
44
|
-
* - `true` to generate an opaque route path per dev session or production build.
|
|
45
|
-
* - `'/custom-path'` to use a fixed static route path.
|
|
46
|
-
* - `{ allowedDsns, path }` for full control. If `allowedDsns` is omitted or empty, the tunnel route derives the DSN
|
|
47
|
-
* from the active server Sentry client at runtime.
|
|
48
|
-
*
|
|
49
|
-
* If you also pass `tunnel` to `Sentry.init()`, that explicit runtime option wins and a warning is emitted because
|
|
50
|
-
* the managed tunnel route is being bypassed.
|
|
51
|
-
*/
|
|
52
|
-
tunnelRoute?: TunnelRouteOptions;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Vite plugins for the Sentry TanStack Start SDK.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```typescript
|
|
59
|
-
* // vite.config.ts
|
|
60
|
-
* import { defineConfig } from 'vite';
|
|
61
|
-
* import { sentryTanstackStart } from '@sentry/tanstackstart-react/vite';
|
|
62
|
-
* import { tanstackStart } from '@tanstack/react-start/plugin/vite';
|
|
63
|
-
*
|
|
64
|
-
* export default defineConfig({
|
|
65
|
-
* plugins: [
|
|
66
|
-
* tanstackStart(),
|
|
67
|
-
* sentryTanstackStart({
|
|
68
|
-
* org: 'your-org',
|
|
69
|
-
* project: 'your-project',
|
|
70
|
-
* }),
|
|
71
|
-
* ],
|
|
72
|
-
* });
|
|
73
|
-
* ```
|
|
74
|
-
*
|
|
75
|
-
* @param options - Options to configure the Sentry Vite plugins
|
|
76
|
-
* @returns An array of Vite plugins
|
|
77
|
-
*/
|
|
78
|
-
export declare function sentryTanstackStart(options?: SentryTanstackStartOptions): Plugin[];
|
|
79
|
-
//# sourceMappingURL=sentryTanstackStart.d.ts.map
|