Skip to content
Merged
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
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 @@ -1818,6 +1819,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