Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

Work in this release was contributed by @psh4607, @thijsw, @trinitiwowka, @nehaprasad-dev, @JealousGx, @Jxxunnn, @eddie333016, @davidmurdoch, @yashschandra, @atharv-sys32, @AG0708, @birkskyum, @mkly, @mcbbugu, @suhailopensource, @zkasuran, @mohd-akram, @RealBhupesh, @halillusion, @psang39, @hafzism, @JosephDoUrden, @Tyagiquamar, @Andarist, and @msnelling. Thank you for your contributions!

- ref(bundler-plugins)!: The webpack plugin now requires webpack 5.1 or newer and reads its plugin classes from `compiler.webpack` only, so the `webpack` peer dependency is now `>=5.1.0`. The `@sentry/bundler-plugins/webpack5` entry point was removed; import `sentryWebpackPlugin` from `@sentry/bundler-plugins/webpack` instead, which exports the same plugin.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- ref(bundler-plugins)!: The webpack plugin now requires webpack 5.1 or newer and reads its plugin classes from `compiler.webpack` only, so the `webpack` peer dependency is now `>=5.1.0`. The `@sentry/bundler-plugins/webpack5` entry point was removed; import `sentryWebpackPlugin` from `@sentry/bundler-plugins/webpack` instead, which exports the same plugin.

I think we can skip this entry

- feat(core): Add `createFetchIntegration`, the shared implementation behind the global-`fetch` integrations in `@sentry/bun`, `@sentry/cloudflare`, `@sentry/deno` and `@sentry/vercel-edge`. Those four packages carried four copies of it; they now share one. Two changes come out of that:
- All four gain a `tracePropagation` option (default `true`). Turn it off to stop injecting `sentry-trace` and `baggage` without also turning off spans. To scope propagation to specific URLs, keep using `tracePropagationTargets` in the client options.
- Integration options now follow the client. Previously a second `Sentry.init()` in the same process silently reused the options of the first one.
Expand Down
13 changes: 13 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ We raised the minimum supported versions of several frameworks and libraries:
- **Astro:** dropped Astro 3 (minimum is now 4).
- **React Router (framework mode):** minimum is now 7.15.
- **Fastify:** dropped Fastify 3.0 through 3.20 (minimum is now 3.21).
- **webpack (bundler plugin):** dropped webpack 5.0.x (minimum is now 5.1).

### AWS Lambda Layer Changes

Expand Down Expand Up @@ -1816,6 +1817,18 @@ The deprecated `sourceMapsUploadOptions` and other deprecated Vite/build plugin

Deploys that the bundler plugins create automatically on Vercel now use the value of `VERCEL_TARGET_ENV` (`production`, `preview`, or a custom environment name) as their environment instead of `vercel-production` / `vercel-preview`. This matches the new default runtime `environment` of `@sentry/nextjs`, and the `production` default of all other SDKs. If your events use a different environment, set `release.deploy.env` to the same value, or set `release.deploy` to `false` to opt out.

### Bundler plugins: `@sentry/bundler-plugins/webpack5` was removed

The `@sentry/bundler-plugins/webpack5` entry point was removed. It exported the same `sentryWebpackPlugin` as `@sentry/bundler-plugins/webpack`, minus a fallback that only mattered on webpack 4 and 5.0.x. The webpack plugin now requires webpack 5.1 or newer (the first version that exposes `compiler.webpack`), so there is nothing left to distinguish the two entry points.

```js
// before
import { sentryWebpackPlugin } from '@sentry/bundler-plugins/webpack5';

// after
import { sentryWebpackPlugin } from '@sentry/bundler-plugins/webpack';
```

### Removed `unstable_` bundler plugin options

The `unstable_sentry*PluginOptions` escape hatch was removed from every SDK. It existed because the Sentry
Expand Down
8 changes: 1 addition & 7 deletions packages/bundler-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
"import": "./build/esm/webpack/index.js",
"require": "./build/cjs/webpack/index.js"
},
"./webpack5": {
"types": "./build/types/webpack/webpack5.d.ts",
"import": "./build/esm/webpack/webpack5.js",
"require": "./build/cjs/webpack/webpack5.js"
},
"./rollup": {
"types": "./build/types/rollup/index.d.ts",
"import": "./build/esm/rollup/index.js",
Expand Down Expand Up @@ -121,7 +116,7 @@
},
"peerDependencies": {
"rollup": ">=3.2.0",
"webpack": ">=5.0.0"
"webpack": ">=5.1.0"
},
"peerDependenciesMeta": {
"rollup": {
Expand All @@ -135,7 +130,6 @@
"@babel/preset-react": "^7.23.3",
"@types/babel__core": "^7.20.5",
"@types/node": "^18.6.3",
"@types/webpack": "npm:@types/webpack@^4",
"premove": "^4.0.0",
"rolldown": "^1.0.0",
"vitest": "^3.2.7",
Expand Down
1 change: 0 additions & 1 deletion packages/bundler-plugins/rollup.npm.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default makeNPMConfigVariants(
'src/vite/index.ts',
'src/esbuild/index.ts',
'src/webpack/index.ts',
'src/webpack/webpack5.ts',
'src/webpack/component-annotation-transform.ts',
'src/babel-plugin/index.ts',
],
Expand Down
Loading
Loading