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
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,29 @@
4
4
5
5
- "You know what they say ‘Fool me once, strike one, but fool me twice… strike three.’" — Michael Scott
6
6
7
+
## 2.0.0
8
+
9
+
Version 2.0.0 marks the official release of the `@sentry/vite-plugin`, `@sentry/esbuild-plugin` and `@sentry/rollup-plugin` packages.
10
+
They are now considered stable.
11
+
12
+
For the `@sentry/webpack-plugin` this is a major release with breaking changes.
13
+
Please refer to the [migration guide](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/main/MIGRATION.md) for instructions on how to upgrade.
Copy file name to clipboardExpand all lines: MIGRATION.md
+8-28Lines changed: 8 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,16 @@
2
2
3
3
This document serves as a migration guide, documenting all breaking changes between major versions of the Sentry bundler plugins.
4
4
5
-
## Unreleased
5
+
## Upgrading to 2.x
6
6
7
7
- Removed `injectReleasesMap` option. If you need to inject values based on the build, please use your bundler's way of injecting values ([rollup](https://www.npmjs.com/package/@rollup/plugin-replace), [vite](https://vitejs.dev/config/shared-options.html#define), [webpack](https://webpack.js.org/plugins/define-plugin/), [esbuild](https://esbuild.github.io/api/#define)).
8
8
- The minimum compatible version of rollup is version `3.2.0`.
9
9
- Removed functionality for the `releaseInjectionTargets` option.
10
10
-`@sentry/bundler-plugin-core` will no longer export the individual plugins but a factory function to create them.
11
+
- Removed `customHeader` option in favor of `headers` option which allows for multiple headers to be attached to outgoing requests.
12
+
- The `cliBinaryExists` function was renamed to `sentryCliBinaryExists`
11
13
12
-
## [Unreleased]Upgrading from 1.x to 2.x (Webpack Plugin Only)
14
+
## Upgrading from 1.x to 2.x (Webpack Plugin Only)
13
15
14
16
Version 2 of `@sentry/webpack-plugin` is a complete rewrite of version 1, relying on bundler-agnostic code (based on [unjs/unplugin](https://github.com/unjs/unplugin)). While we tried to keep changes to v1 of the webpack plugin minimal, a adjustments are nevertheless necessary:
15
17
@@ -20,13 +22,15 @@ In version 2, you simply need to call a function and pass the initialization opt
### Replacing `entries` option with `releaseInjectionTargets`
62
-
63
-
Previously, the `entries` option was used to filter for _entrypoints_ that the plugin should inject the release into.
64
-
Releases were only injected into entrypoint files of a bundle.
65
-
In version 2, releases are injected into every module that is part of a bundle.
66
-
Don't worry, your bundler will only include the injected release code once.
67
-
Instead of using the `entries` option to filter for _entrypoints_, the `releaseInjectionTargets` option can now be used to filter for _modules_ that the plugin should inject the release into.
68
-
Matching behaviour stays the same.
69
-
70
-
### Injecting `SENTRY_RELEASES` Map
71
-
72
-
Previously, the webpack plugin always injected a `SENTRY_RELEASES` variable into the global object which would map from `project@org` to the `release` value. In version 2, we made this behaviour opt-in by setting the `injectReleasesMap` option in the plugin options to `true`.
73
-
74
-
The purpose of this option is to support module-federated projects or micro frontend setups where multiple projects would want to access the global release variable. However, Sentry SDKs by default never accessed this variable so it would require manual user-intervention to make use of it. Making this behaviour opt-in decreases the bundle size impact of our plugin for the majority of users.
75
-
76
-
### Removal of the `customHeader` option
77
-
78
-
The `customHeader` was used to attach an additional header to outgoing requests to Sentry when uploading source maps.
79
-
This option has been removed in favor of the `headers` option which allows for attaching multiple headers.
80
-
81
-
### Renaming of `cliBinaryExists` to `sentryCliBinaryExists`
82
-
83
-
The `cliBinaryExists` function was renamed to `sentryCliBinaryExists`.
0 commit comments