@sentry/solidstart 8.53.0 → 9.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.
Files changed (56) hide show
  1. package/README.md +83 -37
  2. package/build/cjs/client/index.js +1 -1
  3. package/build/cjs/client/sdk.js +1 -1
  4. package/build/cjs/client/solidrouter.js +1 -1
  5. package/build/cjs/common/debug-build.js +1 -1
  6. package/build/cjs/config/addInstrumentation.js +1 -1
  7. package/build/cjs/config/withSentry.js +3 -7
  8. package/build/cjs/config/withSentry.js.map +1 -1
  9. package/build/cjs/config/wrapServerEntryWithDynamicImport.js +18 -20
  10. package/build/cjs/config/wrapServerEntryWithDynamicImport.js.map +1 -1
  11. package/build/cjs/index.client.js +1 -1
  12. package/build/cjs/index.server.js +1 -11
  13. package/build/cjs/index.server.js.map +1 -1
  14. package/build/cjs/server/index.js +1 -11
  15. package/build/cjs/server/index.js.map +1 -1
  16. package/build/cjs/server/middleware.js +2 -2
  17. package/build/cjs/server/middleware.js.map +1 -1
  18. package/build/cjs/server/sdk.js +1 -1
  19. package/build/cjs/server/solidrouter.js +1 -1
  20. package/build/cjs/server/utils.js +2 -6
  21. package/build/cjs/server/utils.js.map +1 -1
  22. package/build/cjs/server/withServerActionInstrumentation.js +1 -1
  23. package/build/cjs/solidrouter.client.js +1 -1
  24. package/build/cjs/solidrouter.js +1 -1
  25. package/build/cjs/solidrouter.server.js +1 -1
  26. package/build/cjs/vite/buildInstrumentationFile.js +1 -1
  27. package/build/cjs/vite/sentrySolidStartVite.js +8 -29
  28. package/build/cjs/vite/sentrySolidStartVite.js.map +1 -1
  29. package/build/cjs/vite/sourceMaps.js +123 -49
  30. package/build/cjs/vite/sourceMaps.js.map +1 -1
  31. package/build/esm/config/withSentry.js +2 -3
  32. package/build/esm/config/withSentry.js.map +1 -1
  33. package/build/esm/config/wrapServerEntryWithDynamicImport.js +17 -19
  34. package/build/esm/config/wrapServerEntryWithDynamicImport.js.map +1 -1
  35. package/build/esm/index.server.js +1 -1
  36. package/build/esm/package.json +1 -1
  37. package/build/esm/server/index.js +1 -1
  38. package/build/esm/server/middleware.js +1 -1
  39. package/build/esm/server/middleware.js.map +1 -1
  40. package/build/esm/server/utils.js +1 -2
  41. package/build/esm/server/utils.js.map +1 -1
  42. package/build/esm/vite/sentrySolidStartVite.js +8 -25
  43. package/build/esm/vite/sentrySolidStartVite.js.map +1 -1
  44. package/build/esm/vite/sourceMaps.js +119 -43
  45. package/build/esm/vite/sourceMaps.js.map +1 -1
  46. package/build/types/config/utils.d.ts.map +1 -1
  47. package/build/types/config/wrapServerEntryWithDynamicImport.d.ts.map +1 -1
  48. package/build/types/index.types.d.ts +0 -1
  49. package/build/types/index.types.d.ts.map +1 -1
  50. package/build/types/server/index.d.ts +1 -1
  51. package/build/types/server/index.d.ts.map +1 -1
  52. package/build/types/vite/sentrySolidStartVite.d.ts +1 -18
  53. package/build/types/vite/sentrySolidStartVite.d.ts.map +1 -1
  54. package/build/types/vite/sourceMaps.d.ts +23 -5
  55. package/build/types/vite/sourceMaps.d.ts.map +1 -1
  56. package/package.json +6 -6
@@ -2,25 +2,8 @@ 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
- * ```
22
5
  */
23
- export declare const sentrySolidStartVite: (options?: SentrySolidStartPluginOptions) => Plugin[];
6
+ export declare const sentrySolidStartVite: (options: SentrySolidStartPluginOptions | undefined, viteConfig: UserConfig) => Plugin[];
24
7
  /**
25
8
  * Helper to add the Sentry SolidStart vite plugin to a vite config.
26
9
  */
@@ -1 +1 @@
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"}
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;AAE7D;;GAEG;AACH,eAAO,MAAM,oBAAoB,mEAA6D,UAAU,KAAG,MAAM,EAiBhH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,4CAAsC,6BAA6B,KAAG,UAQvG,CAAC"}
@@ -1,9 +1,27 @@
1
- import type { Plugin } from 'vite';
1
+ import type { Plugin, UserConfig } from 'vite';
2
2
  import type { SentrySolidStartPluginOptions } from './types';
3
3
  /**
4
- * A Sentry plugin for SolidStart to enable source maps and use
5
- * @sentry/vite-plugin to automatically upload source maps to Sentry.
6
- * @param {SourceMapsOptions} options
4
+ * A Sentry plugin for adding the @sentry/vite-plugin to automatically upload source maps to Sentry.
7
5
  */
8
- export declare function makeSourceMapsVitePlugin(options: SentrySolidStartPluginOptions): Plugin[];
6
+ export declare function makeAddSentryVitePlugin(options: SentrySolidStartPluginOptions, viteConfig: UserConfig): Plugin[];
7
+ /**
8
+ * A Sentry plugin for SolidStart to enable "hidden" source maps if they are unset.
9
+ */
10
+ export declare function makeEnableSourceMapsVitePlugin(options: SentrySolidStartPluginOptions): Plugin[];
11
+ /** There are 3 ways to set up source map generation (https://github.com/getsentry/sentry-j avascript/issues/13993)
12
+ *
13
+ * 1. User explicitly disabled source maps
14
+ * - keep this setting (emit a warning that errors won't be unminified in Sentry)
15
+ * - We won't upload anything
16
+ *
17
+ * 2. Users enabled source map generation (true, 'hidden', 'inline').
18
+ * - keep this setting (don't do anything - like deletion - besides uploading)
19
+ *
20
+ * 3. Users didn't set source maps generation
21
+ * - we enable 'hidden' source maps generation
22
+ * - configure `filesToDeleteAfterUpload` to delete all .map files (we emit a log about this)
23
+ *
24
+ * --> only exported for testing
25
+ */
26
+ export declare function getUpdatedSourceMapSettings(viteConfig: UserConfig, sentryPluginOptions?: SentrySolidStartPluginOptions): boolean | 'inline' | 'hidden';
9
27
  //# sourceMappingURL=sourceMaps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sourceMaps.d.ts","sourceRoot":"","sources":["../../../src/vite/sourceMaps.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE7D;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,6BAA6B,GAAG,MAAM,EAAE,CAoDzF"}
1
+ {"version":3,"file":"sourceMaps.d.ts","sourceRoot":"","sources":["../../../src/vite/sourceMaps.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE7D;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,6BAA6B,EAAE,UAAU,EAAE,UAAU,GAAG,MAAM,EAAE,CAgDhH;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,6BAA6B,GAAG,MAAM,EAAE,CAiB/F;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,UAAU,EACtB,mBAAmB,CAAC,EAAE,6BAA6B,GAClD,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAwC/B"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@sentry/solidstart",
3
- "version": "8.53.0",
3
+ "version": "9.0.0-alpha.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",
7
7
  "author": "Sentry",
8
8
  "license": "MIT",
9
9
  "engines": {
10
- "node": ">=16"
10
+ "node": ">=18.19.1"
11
11
  },
12
12
  "files": [
13
13
  "/build",
@@ -66,10 +66,10 @@
66
66
  }
67
67
  },
68
68
  "dependencies": {
69
- "@sentry/core": "8.53.0",
70
- "@sentry/node": "8.53.0",
71
- "@sentry/opentelemetry": "8.53.0",
72
- "@sentry/solid": "8.53.0",
69
+ "@sentry/core": "9.0.0-alpha.0",
70
+ "@sentry/node": "9.0.0-alpha.0",
71
+ "@sentry/opentelemetry": "9.0.0-alpha.0",
72
+ "@sentry/solid": "9.0.0-alpha.0",
73
73
  "@sentry/vite-plugin": "2.22.6"
74
74
  },
75
75
  "devDependencies": {