@sentry/solidstart 8.50.0 → 8.52.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/common/debug-build.js.map +1 -1
- package/build/cjs/config/addInstrumentation.js +185 -0
- package/build/cjs/config/addInstrumentation.js.map +1 -0
- package/build/cjs/config/withSentry.js +76 -0
- package/build/cjs/config/withSentry.js.map +1 -0
- package/build/cjs/config/wrapServerEntryWithDynamicImport.js +248 -0
- package/build/cjs/config/wrapServerEntryWithDynamicImport.js.map +1 -0
- package/build/cjs/index.server.js +3 -0
- package/build/cjs/index.server.js.map +1 -1
- package/build/cjs/vite/buildInstrumentationFile.js +58 -0
- package/build/cjs/vite/buildInstrumentationFile.js.map +1 -0
- package/build/cjs/vite/sentrySolidStartVite.js +38 -0
- package/build/cjs/vite/sentrySolidStartVite.js.map +1 -1
- package/build/esm/common/debug-build.js.map +1 -1
- package/build/esm/config/addInstrumentation.js +179 -0
- package/build/esm/config/addInstrumentation.js.map +1 -0
- package/build/esm/config/withSentry.js +71 -0
- package/build/esm/config/withSentry.js.map +1 -0
- package/build/esm/config/wrapServerEntryWithDynamicImport.js +238 -0
- package/build/esm/config/wrapServerEntryWithDynamicImport.js.map +1 -0
- package/build/esm/index.server.js +2 -1
- package/build/esm/index.server.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/vite/buildInstrumentationFile.js +56 -0
- package/build/esm/vite/buildInstrumentationFile.js.map +1 -0
- package/build/esm/vite/sentrySolidStartVite.js +38 -1
- package/build/esm/vite/sentrySolidStartVite.js.map +1 -1
- package/build/types/config/addInstrumentation.d.ts +36 -0
- package/build/types/config/addInstrumentation.d.ts.map +1 -0
- package/build/types/config/index.d.ts +2 -0
- package/build/types/config/index.d.ts.map +1 -0
- package/build/types/config/types.d.ts +13 -0
- package/build/types/config/types.d.ts.map +1 -0
- package/build/types/config/utils.d.ts +26 -0
- package/build/types/config/utils.d.ts.map +1 -0
- package/build/types/config/withSentry.d.ts +13 -0
- package/build/types/config/withSentry.d.ts.map +1 -0
- package/build/types/config/wrapServerEntryWithDynamicImport.d.ts +60 -0
- package/build/types/config/wrapServerEntryWithDynamicImport.d.ts.map +1 -0
- package/build/types/index.server.d.ts +1 -0
- package/build/types/index.server.d.ts.map +1 -1
- package/build/types/index.types.d.ts +1 -0
- package/build/types/index.types.d.ts.map +1 -1
- package/build/types/vite/buildInstrumentationFile.d.ts +8 -0
- package/build/types/vite/buildInstrumentationFile.d.ts.map +1 -0
- package/build/types/vite/sentrySolidStartVite.d.ts +22 -1
- package/build/types/vite/sentrySolidStartVite.d.ts.map +1 -1
- package/build/types/vite/types.d.ts +52 -1
- package/build/types/vite/types.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './client';
|
|
2
2
|
export * from './server';
|
|
3
3
|
export * from './vite';
|
|
4
|
+
export * from './config';
|
|
4
5
|
import type { Client, Integration, Options, StackParser } from '@sentry/core';
|
|
5
6
|
import type * as clientSdk from './client';
|
|
6
7
|
import type * as serverSdk from './server';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AAEzB,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE9E,OAAO,KAAK,KAAK,SAAS,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,KAAK,SAAS,MAAM,UAAU,CAAC;AAE3C,yCAAyC;AACzC,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAEtH,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC;AACvF,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC;AAEvF,MAAM,CAAC,OAAO,CAAC,MAAM,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,WAAW,EAAE,CAAC;AACjF,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,EAAE,WAAW,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAClF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAClF,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,MAAM,GAAG,SAAS,CAAC;AAG1D,MAAM,CAAC,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,SAAS,CAAC,OAAO,GAAG,OAAO,SAAS,CAAC,OAAO,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Plugin } from 'vite';
|
|
2
|
+
import type { SentrySolidStartPluginOptions } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* A Sentry plugin for SolidStart to build the server
|
|
5
|
+
* `instrument.server.ts` file.
|
|
6
|
+
*/
|
|
7
|
+
export declare function makeBuildInstrumentationFilePlugin(options?: SentrySolidStartPluginOptions): Plugin;
|
|
8
|
+
//# sourceMappingURL=buildInstrumentationFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildInstrumentationFile.d.ts","sourceRoot":"","sources":["../../../src/vite/buildInstrumentationFile.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAc,MAAM,MAAM,CAAC;AAC/C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE7D;;;GAGG;AACH,wBAAgB,kCAAkC,CAAC,OAAO,GAAE,6BAAkC,GAAG,MAAM,CA4CtG"}
|
|
@@ -1,7 +1,28 @@
|
|
|
1
|
-
import type { Plugin } from 'vite';
|
|
1
|
+
import type { Plugin, UserConfig } from 'vite';
|
|
2
2
|
import type { SentrySolidStartPluginOptions } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Various Sentry vite plugins to be used for SolidStart.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated This plugin will be removed in v9. Instead, use `withSentry` to wrap your SolidStart config. Example:
|
|
7
|
+
* ```
|
|
8
|
+
* export default defineConfig(
|
|
9
|
+
* withSentry(
|
|
10
|
+
* {
|
|
11
|
+
* // SolidStart config...
|
|
12
|
+
* },
|
|
13
|
+
* {
|
|
14
|
+
* // Sentry config
|
|
15
|
+
* org: process.env.SENTRY_ORG,
|
|
16
|
+
* project: process.env.SENTRY_PROJECT,
|
|
17
|
+
* authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
18
|
+
* },
|
|
19
|
+
* ),
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
5
22
|
*/
|
|
6
23
|
export declare const sentrySolidStartVite: (options?: SentrySolidStartPluginOptions) => Plugin[];
|
|
24
|
+
/**
|
|
25
|
+
* Helper to add the Sentry SolidStart vite plugin to a vite config.
|
|
26
|
+
*/
|
|
27
|
+
export declare const addSentryPluginToVite: (config: UserConfig | undefined, options: SentrySolidStartPluginOptions) => UserConfig;
|
|
7
28
|
//# sourceMappingURL=sentrySolidStartVite.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentrySolidStartVite.d.ts","sourceRoot":"","sources":["../../../src/vite/sentrySolidStartVite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"sentrySolidStartVite.d.ts","sourceRoot":"","sources":["../../../src/vite/sentrySolidStartVite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAG/C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAG7D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,oBAAoB,aAAa,6BAA6B,KAAQ,MAAM,EAcxF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,4CAAsC,6BAA6B,KAAG,UASvG,CAAC"}
|
|
@@ -75,7 +75,7 @@ type BundleSizeOptimizationOptions = {
|
|
|
75
75
|
excludeReplayWorker?: boolean;
|
|
76
76
|
};
|
|
77
77
|
/**
|
|
78
|
-
* Build options for the Sentry
|
|
78
|
+
* Build options for the Sentry plugin. These options are used during build-time by the Sentry SDK.
|
|
79
79
|
*/
|
|
80
80
|
export type SentrySolidStartPluginOptions = {
|
|
81
81
|
/**
|
|
@@ -110,6 +110,57 @@ export type SentrySolidStartPluginOptions = {
|
|
|
110
110
|
* Enabling this will give you, for example logs about source maps.
|
|
111
111
|
*/
|
|
112
112
|
debug?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* The path to your `instrument.server.ts|js` file.
|
|
115
|
+
* e.g. `./src/instrument.server.ts`
|
|
116
|
+
*
|
|
117
|
+
* Defaults to: `./src/instrument.server.ts`
|
|
118
|
+
*/
|
|
119
|
+
instrumentation?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The server entrypoint filename is automatically set by the Sentry SDK depending on the Nitro present.
|
|
122
|
+
* In case the server entrypoint has a different filename, you can overwrite it here.
|
|
123
|
+
*/
|
|
124
|
+
serverEntrypointFileName?: string;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* Enables (partial) server tracing by automatically injecting Sentry for environments where modifying the node option `--import` is not possible.
|
|
128
|
+
*
|
|
129
|
+
* **DO NOT** add the node CLI flag `--import` in your node start script, when auto-injecting Sentry.
|
|
130
|
+
* This would initialize Sentry twice on the server-side and this leads to unexpected issues.
|
|
131
|
+
*
|
|
132
|
+
* ---
|
|
133
|
+
*
|
|
134
|
+
* **"top-level-import"**
|
|
135
|
+
*
|
|
136
|
+
* Enabling basic server tracing with top-level import can be used for environments where modifying the node option `--import` is not possible.
|
|
137
|
+
* However, enabling this option only supports limited tracing instrumentation. Only http traces will be collected (but no database-specific traces etc.).
|
|
138
|
+
*
|
|
139
|
+
* If `"top-level-import"` is enabled, the Sentry SDK will import the Sentry server config at the top of the server entry file to load the SDK on the server.
|
|
140
|
+
*
|
|
141
|
+
* ---
|
|
142
|
+
* **"experimental_dynamic-import"**
|
|
143
|
+
*
|
|
144
|
+
* Wraps the server entry file with a dynamic `import()`. This will make it possible to preload Sentry and register
|
|
145
|
+
* necessary hooks before other code runs. (Node docs: https://nodejs.org/api/module.html#enabling)
|
|
146
|
+
*
|
|
147
|
+
* If `"experimental_dynamic-import"` is enabled, the Sentry SDK wraps the server entry file with `import()`.
|
|
148
|
+
*
|
|
149
|
+
* @default undefined
|
|
150
|
+
*/
|
|
151
|
+
autoInjectServerSentry?: 'top-level-import' | 'experimental_dynamic-import';
|
|
152
|
+
/**
|
|
153
|
+
* When `autoInjectServerSentry` is set to `"experimental_dynamic-import"`, the SDK will wrap your Nitro server entrypoint
|
|
154
|
+
* with a dynamic `import()` to ensure all dependencies can be properly instrumented. Any previous exports from the entrypoint are still exported.
|
|
155
|
+
* Most exports of the server entrypoint are serverless functions and those are wrapped by Sentry. Other exports stay as-is.
|
|
156
|
+
*
|
|
157
|
+
* By default, the SDK will wrap the default export as well as a `handler` or `server` export from the entrypoint.
|
|
158
|
+
* If your server has a different main export that is used to run the server, you can overwrite this by providing an array of export names to wrap.
|
|
159
|
+
* Any wrapped export is expected to be an async function.
|
|
160
|
+
*
|
|
161
|
+
* @default ['default', 'handler', 'server']
|
|
162
|
+
*/
|
|
163
|
+
experimental_entrypointWrappedFunctions?: string[];
|
|
113
164
|
};
|
|
114
165
|
export {};
|
|
115
166
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/vite/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAEnE,KAAK,iBAAiB,GAAG;IACvB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;;OAOG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAElD;;;;;;;;;;;;OAYG;IACH,gCAAgC,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACrE,CAAC;AAEF,KAAK,6BAA6B,GAAG;IACnC;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,uBAAuB,CAAC,EAAE,iBAAiB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IAEhB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,sBAAsB,CAAC,EAAE,kBAAkB,GAAG,6BAA6B,CAAC;IAE5E;;;;;;;;;;OAUG;IACH,uCAAuC,CAAC,EAAE,MAAM,EAAE,CAAC;CACpD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/solidstart",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.52.0",
|
|
4
4
|
"description": "Official Sentry SDK for Solid Start",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/solidstart",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@sentry/core": "8.
|
|
70
|
-
"@sentry/node": "8.
|
|
71
|
-
"@sentry/opentelemetry": "8.
|
|
72
|
-
"@sentry/solid": "8.
|
|
69
|
+
"@sentry/core": "8.52.0",
|
|
70
|
+
"@sentry/node": "8.52.0",
|
|
71
|
+
"@sentry/opentelemetry": "8.52.0",
|
|
72
|
+
"@sentry/solid": "8.52.0",
|
|
73
73
|
"@sentry/vite-plugin": "2.22.6"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|