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
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,17 @@
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
+
## 4.0.2
8
+
9
+
- fix(core): Make `moduleMetadata` injection snippet ES5-compliant ([#774](https://github.com/getsentry/sentry-javascript-bundler-plugins/pull/774))
10
+
11
+
## 4.0.1
12
+
13
+
- fix(core): Make plugin inject ES5-friendly code ([#770](https://github.com/getsentry/sentry-javascript-bundler-plugins/pull/770))
14
+
- fix(core): Use `renderChunk` for release injection for Rollup/Rolldown/Vite ([#761](https://github.com/getsentry/sentry-javascript-bundler-plugins/pull/761))
15
+
16
+
Work in this release was contributed by @grushetsky. Thank you for your contribution!
17
+
7
18
## 4.0.0
8
19
9
20
### Breaking Changes
@@ -111,6 +122,10 @@ Work in this release was contributed by @thecodewarrior. Thank you for your cont
111
122
112
123
Work in this release contributed by @jdelStrother. Thank you for your contribution!
113
124
125
+
## 2.23.1
126
+
127
+
- fix(v2/core): Make `moduleMetadata` injection code ES5-compliant (#773)
128
+
114
129
## 2.23.0
115
130
116
131
- chore(deps): bump nanoid from 3.3.6 to 3.3.8 (#641)
exports[`generateGlobalInjectorCode generates code with release 1`] =`"!function(){vare=\\"undefined\\"!=typeofwindow?window:\\"undefined\\"!=typeofglobal?global:\\"undefined\\"!=typeofglobalThis?globalThis:\\"undefined\\"!=typeofself?self:{};e.SENTRY_RELEASE={id:\\"1.2.3\\"};}();"`;
4
+
5
+
exports[`generateGlobalInjectorCode generates code with release and build information 1`] =`"!function(){vare=\\"undefined\\"!=typeofwindow?window:\\"undefined\\"!=typeofglobal?global:\\"undefined\\"!=typeofglobalThis?globalThis:\\"undefined\\"!=typeofself?self:{};e.SENTRY_RELEASE={id:\\"1.2.3\\"};e.SENTRY_BUILD_INFO={\\"deps\\":[\\"myDep\\",\\"rollup\\"],\\"depsVersions\\":{\\"rollup\\":3},\\"nodeVersion\\":18};}();"`;
6
+
7
+
exports[`generateModuleMetadataInjectorCode generates code with empty metadata object 1`] =`"!function(){vare=\\"undefined\\"!=typeofwindow?window:\\"undefined\\"!=typeofglobal?global:\\"undefined\\"!=typeofglobalThis?globalThis:\\"undefined\\"!=typeofself?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(newe.Error).stack]=function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var t ina)a.hasOwnProperty(t)&&(e[t]=a[t])}returne}({},e._sentryModuleMetadata[(newe.Error).stack],{})}();"`;
8
+
9
+
exports[`generateModuleMetadataInjectorCode generates code with metadata object 1`] =`"!function(){vare=\\"undefined\\"!=typeofwindow?window:\\"undefined\\"!=typeofglobal?global:\\"undefined\\"!=typeofglobalThis?globalThis:\\"undefined\\"!=typeofself?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(newe.Error).stack]=function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var t ina)a.hasOwnProperty(t)&&(e[t]=a[t])}returne}({},e._sentryModuleMetadata[(newe.Error).stack],{\\"file1.js\\":{\\"foo\\":\\"bar\\"},\\"file2.js\\":{\\"bar\\":\\"baz\\"}})}();"`;
0 commit comments