From cce6122a63bd7dd117adbb02ee62883c20931c30 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 01:40:58 +0800 Subject: [PATCH] chore: bump up @sentry/esbuild-plugin version to v4 (#14350) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@sentry/esbuild-plugin](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/esbuild-plugin) ([source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins)) | [`^3.0.0` → `^4.0.0`](https://renovatebot.com/diffs/npm/@sentry%2fesbuild-plugin/3.6.1/4.8.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@sentry%2fesbuild-plugin/4.8.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@sentry%2fesbuild-plugin/3.6.1/4.8.0?slim=true) | --- ### Release Notes
getsentry/sentry-javascript-bundler-plugins (@​sentry/esbuild-plugin) ### [`v4.8.0`](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#480) [Compare Source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.7.0...4.8.0) ##### New Features ✨ - Inject component annotations into HTML elements rather than React components by [@​timfish](https://redirect.github.com/timfish) in [#​851](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/851) - Combine injection snippets by [@​timfish](https://redirect.github.com/timfish) in [#​853](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/853) - Use Rolldown native `MagicString` by [@​timfish](https://redirect.github.com/timfish) in [#​846](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/846) ### [`v4.7.0`](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#470) [Compare Source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.6.2...4.7.0) - docs: Add RELEASE.md to document release process ([#​834](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/834)) - feat: Combine injection plugins ([#​844](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/844)) - fix(plugin-manager): Enable "rejectOnError" in debug ([#​837](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/837)) - fix(plugin-manager): Respect `sourcemap.ignore` values for injecting debugIDs ([#​836](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/836)) - fix(vite): Skip HTML injection for MPA but keep it for SPA ([#​843](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/843))
Internal Changes - chore: Use pull\_request\_target for changelog preview ([#​842](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/842)) - ci(release): Switch from action-prepare-release to Craft ([#​831](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/831)) - test: Ensure Debug IDs match ([#​840](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/840))
### [`v4.6.2`](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#462) [Compare Source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.6.1...4.6.2) - fix(vite): Ensure sentryVitePlugin always returns an array of plugins ([#​832](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/832)) - fix(vite): Skip code injection for HTML facade chunks ([#​830](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/830)) - fix(rollup): Prevent double-injection of debug ID ([#​827](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/827)) - fix(esbuild): fix debug ID injection when moduleMetadata or applicationKey is set ([#​828](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/828)) ### [`v4.6.1`](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#461) [Compare Source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.6.0...4.6.1) - chore(deps): Update glob to 10.5.0 ([#​823](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/823))
Internal Changes - chore(core): Log release output ([#​821](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/821))
### [`v4.6.0`](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#460) [Compare Source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.5.0...4.6.0) - fix(core): Stop awaiting build start telemetry to avoid breaking module federation builds ([#​818](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/818)) - feat(core): Bump [@​sentry/cli](https://redirect.github.com/sentry/cli) from 2.51.0 to 2.57.0 ([#​819](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/819)) ### [`v4.5.0`](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#450) [Compare Source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.4.0...4.5.0) - docs: added info on debug flag value precedence ([#​811](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/811)) - feat: add debug statements after sourcemap uploads ([#​812](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/812)) - feat(core): Allow multi-project sourcemaps upload ([#​813](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/813)) - fix: propagate the debug option to the cli ([#​810](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/810)) ### [`v4.4.0`](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#440) [Compare Source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.3.0...4.4.0) - feat(core): Explicitly allow `undefined` as value for `authToken` option ([#​805](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/805)) - fix(core): Strip query strings from asset paths ([#​806](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/806)) Work in this release was contributed by [@​aiktb](https://redirect.github.com/aiktb). Thank you for your contribution! ### [`v4.3.0`](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#430) [Compare Source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.2.0...4.3.0) - feat(core): Extend deploy option to allow opting out of automatic deploy creation ([#​801](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/801)) - feat(core): No asset globbing for direct upload ([#​800](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/800)) ### [`v4.2.0`](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#420) [Compare Source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.1.1...4.2.0) - feat(core): Add `prepareArtifacts` option for uploading sourcemaps ([#​794](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/794)) - perf: use premove for build clean ([#​792](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/792)) - fix(core): Forward headers option to sentry-cli ([#​797](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/797)) Work in this release contributed by [@​liAmirali](https://redirect.github.com/liAmirali). Thank you for your contribution! ### [`v4.1.1`](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#411) [Compare Source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.1.0...4.1.1) - fix(react-native): Enhance fragment detection for indirect references ([#​767](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/767)) ### [`v4.1.0`](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#410) [Compare Source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.0.2...4.1.0) - feat(deps): Bump [@​sentry/cli](https://redirect.github.com/sentry/cli) to 2.51.0 [#​786](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/786) - feat(core): Add flag for disabling sourcemaps upload [#​785](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/785) - fix(debugId): Add guards for injected code to avoid errors [#​783](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/783) - docs(options): Improve JSDoc for options [#​781](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/781) - feat(core): Expose method for injecting debug Ids from plugin manager [#​784](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/784) ### [`v4.0.2`](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#402) [Compare Source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.0.1...4.0.2) - fix(core): Make `moduleMetadata` injection snippet ES5-compliant ([#​774](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/774)) ### [`v4.0.1`](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#401) [Compare Source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/compare/4.0.0...4.0.1) - fix(core): Make plugin inject ES5-friendly code ([#​770](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/770)) - fix(core): Use `renderChunk` for release injection for Rollup/Rolldown/Vite ([#​761](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/761)) Work in this release was contributed by [@​grushetsky](https://redirect.github.com/grushetsky). Thank you for your contribution! ### [`v4.0.0`](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#400) [Compare Source](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/compare/3.6.1...4.0.0) ##### Breaking Changes - (Type change) Vite plugin now returns `VitePlugin` type instead of `any` - Deprecated function `getBuildInformation` has been removed ##### List of Changes - feat(core)!: Remove `getBuildInformation` export ([#​765](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/765)) - feat(vite)!: Update return type of vite plugin ([#​728](https://redirect.github.com/getsentry/sentry-javascript-bundler-plugins/pull/728))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/frontend/apps/electron/package.json | 2 +- yarn.lock | 39 ++++++++++++++++---- 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/packages/frontend/apps/electron/package.json b/packages/frontend/apps/electron/package.json index 9905b8ad98..98065eb986 100644 --- a/packages/frontend/apps/electron/package.json +++ b/packages/frontend/apps/electron/package.json @@ -49,7 +49,7 @@ "@electron-forge/shared-types": "^7.10.2", "@pengx17/electron-forge-maker-appimage": "^1.2.1", "@sentry/electron": "^7.0.0", - "@sentry/esbuild-plugin": "^3.0.0", + "@sentry/esbuild-plugin": "^4.0.0", "@sentry/react": "^9.47.1", "@toeverything/infra": "workspace:*", "@types/set-cookie-parser": "^2.4.10", diff --git a/yarn.lock b/yarn.lock index 2a524df73d..c9f70ad36a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -588,7 +588,7 @@ __metadata: "@electron-forge/shared-types": "npm:^7.10.2" "@pengx17/electron-forge-maker-appimage": "npm:^1.2.1" "@sentry/electron": "npm:^7.0.0" - "@sentry/esbuild-plugin": "npm:^3.0.0" + "@sentry/esbuild-plugin": "npm:^4.0.0" "@sentry/react": "npm:^9.47.1" "@toeverything/infra": "workspace:*" "@types/set-cookie-parser": "npm:^2.4.10" @@ -15135,6 +15135,13 @@ __metadata: languageName: node linkType: hard +"@sentry/babel-plugin-component-annotate@npm:4.8.0": + version: 4.8.0 + resolution: "@sentry/babel-plugin-component-annotate@npm:4.8.0" + checksum: 10/7cc62dfea3dd3d895e52624c2b27a81c7c641d42a3de05ff14bf0fede9d876a9cfec11962d33bacf42dfea59ec75c4271448a6c284dc63c2c0bb634002419867 + languageName: node + linkType: hard + "@sentry/browser@npm:10.29.0": version: 10.29.0 resolution: "@sentry/browser@npm:10.29.0" @@ -15177,6 +15184,22 @@ __metadata: languageName: node linkType: hard +"@sentry/bundler-plugin-core@npm:4.8.0": + version: 4.8.0 + resolution: "@sentry/bundler-plugin-core@npm:4.8.0" + dependencies: + "@babel/core": "npm:^7.18.5" + "@sentry/babel-plugin-component-annotate": "npm:4.8.0" + "@sentry/cli": "npm:^2.57.0" + dotenv: "npm:^16.3.1" + find-up: "npm:^5.0.0" + glob: "npm:^10.5.0" + magic-string: "npm:0.30.8" + unplugin: "npm:1.0.1" + checksum: 10/a19eaf1c118e273ed3383da0ede9365c23b5668871f21b89c22fb873ae29cf972464472d7c448f84afdea7e99e50dc5bf5f46579721f88696400cab994a2d123 + languageName: node + linkType: hard + "@sentry/cli-darwin@npm:2.58.4": version: 2.58.4 resolution: "@sentry/cli-darwin@npm:2.58.4" @@ -15233,7 +15256,7 @@ __metadata: languageName: node linkType: hard -"@sentry/cli@npm:^2.49.0": +"@sentry/cli@npm:^2.49.0, @sentry/cli@npm:^2.57.0": version: 2.58.4 resolution: "@sentry/cli@npm:2.58.4" dependencies: @@ -15303,14 +15326,14 @@ __metadata: languageName: node linkType: hard -"@sentry/esbuild-plugin@npm:^3.0.0": - version: 3.6.1 - resolution: "@sentry/esbuild-plugin@npm:3.6.1" +"@sentry/esbuild-plugin@npm:^4.0.0": + version: 4.8.0 + resolution: "@sentry/esbuild-plugin@npm:4.8.0" dependencies: - "@sentry/bundler-plugin-core": "npm:3.6.1" + "@sentry/bundler-plugin-core": "npm:4.8.0" unplugin: "npm:1.0.1" uuid: "npm:^9.0.0" - checksum: 10/b2b64e404d13589d98ff5ebc57a7e0a7cb9c3bada8aab20f9eb1beefb375deabf61658c96659f3a4f2a5dbd69e44ddf69fd1b5a17f31830a97ddbee8f589473a + checksum: 10/d5204896f1b2bc780ea9cac7e057746b9ac8a33591f16c754c03248e273e92a0bbaf46c66467d5300cb41f4763b2a82fa623bae3c853d5254dd6a68716017b2d languageName: node linkType: hard @@ -25085,7 +25108,7 @@ __metadata: languageName: node linkType: hard -"glob@npm:^10.0.0, glob@npm:^10.2.2, glob@npm:^10.3.10, glob@npm:^10.4.1, glob@npm:^10.4.5": +"glob@npm:^10.0.0, glob@npm:^10.2.2, glob@npm:^10.3.10, glob@npm:^10.4.1, glob@npm:^10.4.5, glob@npm:^10.5.0": version: 10.5.0 resolution: "glob@npm:10.5.0" dependencies: