You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,14 @@
5
5
- "You know what they say ‘Fool me once, strike one, but fool me twice… strike three.’" — Michael Scott
6
6
- fix(react-native): Enhance fragment detection for indirect references ([#767](https://github.com/getsentry/sentry-javascript-bundler-plugins/pull/767))
7
7
8
+
## 4.1.0
9
+
10
+
- feat(deps): Bump @sentry/cli to 2.51.0 [#786](https://github.com/gestsentry/sentry-javascript-bundler-plugins/pull/786)
11
+
- feat(core): Add flag for disabling sourcemaps upload [#785](https://github.com/gestsentry/sentry-javascript-bundler-plugins/pull/785)
12
+
- fix(debugId): Add guards for injected code to avoid errors [#783](https://github.com/gestsentry/sentry-javascript-bundler-plugins/pull/783)
13
+
- docs(options): Improve JSDoc for options [#781](https://github.com/gestsentry/sentry-javascript-bundler-plugins/pull/781)
14
+
- feat(core): Expose method for injecting debug Ids from plugin manager [#784](https://github.com/gestsentry/sentry-javascript-bundler-plugins/pull/784)
15
+
8
16
## 4.0.2
9
17
10
18
- fix(core): Make `moduleMetadata` injection snippet ES5-compliant ([#774](https://github.com/getsentry/sentry-javascript-bundler-plugins/pull/774))
* This value can also be set via the `SENTRY_URL` environment variable.
29
31
*
30
-
* Defaults to https://sentry.io/, which is the correct value for SaaS customers.
32
+
* @default "https://sentry.io" (correct value for SaaS customers)
31
33
*/
32
34
url?: string;
33
35
34
36
/**
35
-
* Headers added to every outgoing network request.
37
+
* Additional headers to send with every outgoing request to Sentry.
36
38
*/
37
39
headers?: Record<string,string>;
38
40
39
41
/**
40
-
* Print useful debug information.
42
+
* Enable debug information logs during build-time.
43
+
* Enabling this will give you, for example, logs about source maps.
41
44
*
42
-
* Defaults to `false`.
45
+
* @defaultfalse
43
46
*/
44
47
debug?: boolean;
45
48
46
49
/**
47
-
* Suppresses all logs.
50
+
* Suppresses all build logs (all log levels, including errors).
48
51
*
49
-
* Defaults to `false`.
52
+
* @defaultfalse
50
53
*/
51
54
silent?: boolean;
52
55
@@ -68,14 +71,15 @@ export interface Options {
68
71
errorHandler?: (err: Error)=>void;
69
72
70
73
/**
71
-
* If set to true, internal plugin errors and performance data will be sent to Sentry.
74
+
* If this flag is `true`, internal plugin errors and performance data will be sent to Sentry.
75
+
* It will not collect any sensitive or user-specific data.
72
76
*
73
-
* At Sentry we like to use Sentry ourselves to deliver faster and more stable products.
77
+
* At Sentry, we like to use Sentry ourselves to deliver faster and more stable products.
74
78
* We're very careful of what we're sending. We won't collect anything other than error
75
79
* and high-level performance data. We will never collect your code or any details of the
76
80
* projects in which you're using this plugin.
77
81
*
78
-
* Defaults to `true`.
82
+
* @defaulttrue
79
83
*/
80
84
telemetry?: boolean;
81
85
@@ -87,35 +91,39 @@ export interface Options {
87
91
disable?: boolean;
88
92
89
93
/**
90
-
* Options for source maps uploading.
94
+
* Options related to source maps upload and processing.
91
95
*/
92
96
sourcemaps?: {
93
97
/**
94
-
* Disables all functionality related to sourcemaps.
98
+
* Disables all functionality related to sourcemaps if set to `true`.
95
99
*
96
-
* Defaults to `false`.
100
+
* If set to `"disable-upload"`, the plugin will not upload sourcemaps to Sentry, but will inject debug IDs into the build artifacts.
101
+
* This is useful if you want to manually upload sourcemaps to Sentry at a later point in time.
102
+
*
103
+
* @default false
97
104
*/
98
-
disable?: boolean;
105
+
disable?: boolean|"disable-upload";
99
106
100
107
/**
101
-
* A glob or an array of globs that specifies the build artifacts that should be uploaded to Sentry.
108
+
* A glob or an array of globs that specify the build artifacts and source maps that will be uploaded to Sentry.
102
109
*
103
-
* If this option is not specified, the plugin will try to upload all JavaScript files and source map files that are created during build.
110
+
* The globbing patterns must follow the implementation of the `glob` package: https://www.npmjs.com/package/glob#glob-primer
104
111
*
105
-
* The globbing patterns follow the implementation of the `glob` package. (https://www.npmjs.com/package/glob)
112
+
* If this option is not specified, the plugin will try to upload all JavaScript files and source map files that are created during build.
106
113
*
107
114
* Use the `debug` option to print information about which files end up being uploaded.
115
+
*
108
116
*/
109
117
assets?: string|string[];
110
118
111
119
/**
112
120
* A glob or an array of globs that specifies which build artifacts should not be uploaded to Sentry.
113
121
*
114
-
* Default: `[]`
115
-
*
116
-
* The globbing patterns follow the implementation of the `glob` package. (https://www.npmjs.com/package/glob)
122
+
* The globbing patterns must follow the implementation of the `glob` package: https://www.npmjs.com/package/glob#glob-primer
117
123
*
118
124
* Use the `debug` option to print information about which files end up being uploaded.
125
+
*
126
+
* @default []
119
127
*/
120
128
ignore?: string|string[];
121
129
@@ -150,11 +158,11 @@ export interface Options {
150
158
/**
151
159
* A glob or an array of globs that specifies the build artifacts that should be deleted after the artifact upload to Sentry has been completed.
152
160
*
153
-
* The globbing patterns follow the implementation of the `glob` package. (https://www.npmjs.com/package/glob)
154
-
*
155
-
* Note: If you pass in a promise that resolves to a string or array, the plugin will await the promise and use
161
+
* Note: If you pass in a Promise that resolves to a string or array, the plugin will await the Promise and use
156
162
* the resolved value globs. This is useful if you need to dynamically determine the files to delete. Some
157
-
* higher-level Sentry SDKs or options use this feature (e.g. SvelteKit).
163
+
* higher-level Sentry SDKs or options use this feature (e.g., SvelteKit).
164
+
*
165
+
* The globbing patterns must follow the implementation of the `glob` package: https://www.npmjs.com/package/glob#glob-primer
158
166
*
159
167
* Use the `debug` option to print information about which files end up being deleted.
160
168
*/
@@ -173,10 +181,10 @@ export interface Options {
173
181
* This value can also be specified via the `SENTRY_RELEASE` environment variable.
174
182
*
175
183
* Defaults to automatically detecting a value for your environment.
176
-
* This includes values for Cordova, Heroku, AWS CodeBuild, CircleCI, Xcode, and Gradle, and otherwise uses the git `HEAD`'s commit SHA.
177
-
* (the latter requires access to git CLI and for the root directory to be a valid repository)
184
+
* This includes values for Cordova, Heroku, AWS CodeBuild, CircleCI, Xcode, and Gradle, and otherwise uses the git `HEAD`'s commit SHA
185
+
* (the latter requires access to git CLI and for the root directory to be a valid repository).
178
186
*
179
-
* If you didn't provide a value and the plugin can't automatically detect one, no release will be created.
187
+
* If no `name` is provided and the plugin can't automatically detect one, no release will be created.
180
188
*/
181
189
name?: string;
182
190
@@ -189,44 +197,48 @@ export interface Options {
189
197
190
198
/**
191
199
* Whether the plugin should create a release on Sentry during the build.
192
-
* Note that a release may still appear in Sentry even if this is value is `false` because any Sentry event that has a release value attached will automatically create a release.
193
-
* (for example via the `inject` option)
194
200
*
195
-
* Defaults to `true`.
201
+
* Note that a release may still appear in Sentry even if this value is `false`. Any Sentry event that has a release value attached
202
+
* will automatically create a release (for example, via the `inject` option).
203
+
*
204
+
* @default true
196
205
*/
197
206
create?: boolean;
198
207
199
208
/**
200
-
* Whether the Sentry release should be automatically finalized (meaning an end timestamp is added) after the build ends.
209
+
* Whether to automatically finalize the release. The release is finalized by adding an end timestamp after the build ends.
201
210
*
202
-
* Defaults to `true`.
211
+
* @defaulttrue
203
212
*/
204
213
finalize?: boolean;
205
214
206
215
/**
207
-
* Unique identifier for the distribution, used to further segment your release.
216
+
* Unique distribution identifier for the release. Used to further segment the release.
217
+
*
208
218
* Usually your build number.
209
219
*/
210
220
dist?: string;
211
221
212
222
/**
213
-
* Version control system remote name.
223
+
* Version control system (VCS) remote name.
214
224
*
215
225
* This value can also be specified via the `SENTRY_VSC_REMOTE` environment variable.
216
226
*
217
-
* Defaults to 'origin'.
227
+
* @default "origin"
218
228
*/
219
229
vcsRemote?: string;
220
230
221
231
/**
222
-
* Associates the release with its commits in Sentry.
232
+
* Configuration for associating the release with its commits in Sentry.
233
+
*
234
+
* Set to `false` to disable commit association.
223
235
*
224
-
* Defaults to `{ auto: true }`. Set to `false` to disable commit association.
236
+
* @default{ auto: true }
225
237
*/
226
238
setCommits?: SetCommitsOptions|false;
227
239
228
240
/**
229
-
* Adds deployment information to the release in Sentry.
241
+
* Configuration for adding deployment information to the release in Sentry.
230
242
*/
231
243
deploy?: DeployOptions;
232
244
@@ -244,28 +256,34 @@ export interface Options {
244
256
};
245
257
246
258
/**
247
-
* Options related to bundle size optimizations.
259
+
* Options for bundle size optimizations by excluding certain features.
248
260
*/
249
261
bundleSizeOptimizations?: {
250
262
/**
251
-
* If set to `true`, the plugin will attempt to tree-shake (remove) any debugging code within the Sentry SDK.
252
-
* Note that the success of this depends on tree shaking being enabled in your build tooling.
263
+
* Exclude debug statements from the bundle, thus disabling features like the SDK's `debug` option.
253
264
*
254
-
* Setting this option to `true` will disable features like the SDK's `debug` option.
265
+
* If set to `true`, the plugin will attempt to tree-shake (remove) any debugging code within the Sentry SDK during the build.
266
+
* Note that the success of this depends on tree-shaking being enabled in your build tooling.
267
+
*
268
+
* @default false
255
269
*/
256
270
excludeDebugStatements?: boolean;
257
271
258
272
/**
273
+
* Exclude tracing functionality from the bundle, thus disabling features like performance monitoring.
274
+
*
259
275
* If set to `true`, the plugin will attempt to tree-shake (remove) code within the Sentry SDK that is related to tracing and performance monitoring.
260
-
* Note that the success of this depends on treeshaking being enabled in your build tooling.
276
+
* Note that the success of this depends on tree-shaking being enabled in your build tooling.
261
277
*
262
278
* **Notice:** Do not enable this when you're using any performance monitoring-related SDK features (e.g. `Sentry.startTransaction()`).
279
+
280
+
* @default false
263
281
*/
264
282
excludeTracing?: boolean;
265
283
266
284
/**
267
285
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay Canvas recording functionality.
268
-
* Note that the success of this depends on treeshaking being enabled in your build tooling.
286
+
* Note that the success of this depends on tree-shaking being enabled in your build tooling.
269
287
*
270
288
* You can safely do this when you do not want to capture any Canvas activity via Sentry Session Replay.
271
289
*
@@ -274,26 +292,38 @@ export interface Options {
274
292
excludeReplayCanvas?: boolean;
275
293
276
294
/**
295
+
* Exclude Replay Shadow DOM functionality from the bundle.
296
+
*
277
297
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay Shadow DOM recording functionality.
278
-
* Note that the success of this depends on treeshaking being enabled in your build tooling.
298
+
* Note that the success of this depends on tree-shaking being enabled in your build tooling.
279
299
*
280
300
* This option is safe to be used when you do not want to capture any Shadow DOM activity via Sentry Session Replay.
301
+
*
302
+
* @default false
281
303
*/
282
304
excludeReplayShadowDom?: boolean;
283
305
284
306
/**
285
-
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay `iframe` recording functionality.
286
-
* Note that the success of this depends on tree shaking being enabled in your build tooling.
307
+
* Exclude Replay iFrame functionality from the bundle.
308
+
*
309
+
* If set to `true`, the Sentry SDK will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay `iframe` recording functionality.
310
+
* Note that the success of this depends on tree-shaking being enabled in your build tooling.
287
311
*
288
312
* You can safely do this when you do not want to capture any `iframe` activity via Sentry Session Replay.
313
+
*
314
+
* @default false
289
315
*/
290
316
excludeReplayIframe?: boolean;
291
317
292
318
/**
293
-
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay's Compression Web Worker.
294
-
* Note that the success of this depends on tree shaking being enabled in your build tooling.
319
+
* Exclude Replay worker functionality from the bundle.
320
+
*
321
+
* If set to `true`, the Sentry SDK will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay's Compression Web Worker.
322
+
* Note that the success of this depends on tree-shaking being enabled in your build tooling.
295
323
*
296
324
* **Notice:** You should only use this option if you manually host a compression worker and configure it in your Sentry Session Replay integration config via the `workerUrl` option.
0 commit comments