Skip to content

Commit e10db30

Browse files
authored
chore(nextjs): Bump sentry webpack plugin to 3.1.2 (#15284)
1 parent 0c53293 commit e10db30

File tree

4 files changed

+38
-2
lines changed

4 files changed

+38
-2
lines changed

packages/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"@sentry/opentelemetry": "9.0.0-alpha.2",
8686
"@sentry/react": "9.0.0-alpha.2",
8787
"@sentry/vercel-edge": "9.0.0-alpha.2",
88-
"@sentry/webpack-plugin": "2.22.7",
88+
"@sentry/webpack-plugin": "3.1.2",
8989
"chalk": "3.0.0",
9090
"resolve": "1.22.8",
9191
"rollup": "3.29.5",

packages/nextjs/src/config/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,11 @@ export type SentryBuildOptions = {
363363
* Whether the component name annotate plugin should be enabled or not.
364364
*/
365365
enabled?: boolean;
366+
367+
/**
368+
* A list of strings representing the names of components to ignore. The plugin will not apply `data-sentry` annotations on the DOM element for these components.
369+
*/
370+
ignoredComponents?: string[];
366371
};
367372

368373
/**

packages/nextjs/test/config/webpack/webpackPluginOptions.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ describe('getWebpackPluginOptions()', () => {
3434
telemetry: false,
3535
reactComponentAnnotation: {
3636
enabled: true,
37+
ignoredComponents: ['myComponent'],
3738
},
3839
silent: false,
3940
debug: true,
@@ -65,6 +66,7 @@ describe('getWebpackPluginOptions()', () => {
6566
expect(generatedPluginOptions.org).toBe('my-org');
6667
expect(generatedPluginOptions.project).toBe('my-project');
6768
expect(generatedPluginOptions.reactComponentAnnotation?.enabled).toBe(true);
69+
expect(generatedPluginOptions.reactComponentAnnotation?.ignoredComponents).toStrictEqual(['myComponent']);
6870
expect(generatedPluginOptions.release?.create).toBe(false);
6971
expect(generatedPluginOptions.release?.deploy?.env).toBe('my-env');
7072
expect(generatedPluginOptions.release?.dist).toBe('my-dist');
@@ -88,6 +90,7 @@ describe('getWebpackPluginOptions()', () => {
8890
project: 'my-project',
8991
reactComponentAnnotation: {
9092
enabled: true,
93+
ignoredComponents: ['myComponent'],
9194
},
9295
release: {
9396
create: false,

yarn.lock

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6582,6 +6582,11 @@
65826582
resolved "https://registry.yarnpkg.com/@sentry/babel-plugin-component-annotate/-/babel-plugin-component-annotate-2.22.7.tgz#604c7e33d48528a13477e7af597c4d5fca51b8bd"
65836583
integrity sha512-aa7XKgZMVl6l04NY+3X7BP7yvQ/s8scn8KzQfTLrGRarziTlMGrsCOBQtCNWXOPEbtxAIHpZ9dsrAn5EJSivOQ==
65846584

6585+
6586+
version "3.1.2"
6587+
resolved "https://registry.yarnpkg.com/@sentry/babel-plugin-component-annotate/-/babel-plugin-component-annotate-3.1.2.tgz#5497ca5adbe775955e96c566511a0bed3ab0a3ce"
6588+
integrity sha512-5h2WXRJ6swKA0TwxHHryC8M2QyOfS9QhTAL6ElPfkEYe9HhJieXmxsDpyspbqAa26ccnCUcmwE5vL34jAjt4sQ==
6589+
65856590
65866591
version "2.22.6"
65876592
resolved "https://registry.yarnpkg.com/@sentry/bundler-plugin-core/-/bundler-plugin-core-2.22.6.tgz#a1ea1fd43700a3ece9e7db016997e79a2782b87d"
@@ -6610,6 +6615,20 @@
66106615
magic-string "0.30.8"
66116616
unplugin "1.0.1"
66126617

6618+
6619+
version "3.1.2"
6620+
resolved "https://registry.yarnpkg.com/@sentry/bundler-plugin-core/-/bundler-plugin-core-3.1.2.tgz#29e4e686c5893b41a0d98a1bef6f0315a610bd59"
6621+
integrity sha512-lqOCvmOPzKiQenIMhmm5/mwCntwFy0dPZbVD28Dnr3MXpT1rIBg1HXjfnqQWFlMRbL9haSsWiY/TQyR/6b30YA==
6622+
dependencies:
6623+
"@babel/core" "^7.18.5"
6624+
"@sentry/babel-plugin-component-annotate" "3.1.2"
6625+
"@sentry/cli" "2.41.1"
6626+
dotenv "^16.3.1"
6627+
find-up "^5.0.0"
6628+
glob "^9.3.2"
6629+
magic-string "0.30.8"
6630+
unplugin "1.0.1"
6631+
66136632
66146633
version "2.39.1"
66156634
resolved "https://registry.yarnpkg.com/@sentry/cli-darwin/-/cli-darwin-2.39.1.tgz#75c338a53834b4cf72f57599f4c72ffb36cf0781"
@@ -6699,7 +6718,7 @@
66996718
"@sentry/cli-win32-i686" "2.39.1"
67006719
"@sentry/cli-win32-x64" "2.39.1"
67016720

6702-
"@sentry/cli@^2.36.1", "@sentry/cli@^2.41.1":
6721+
"@sentry/cli@2.41.1", "@sentry/cli@^2.36.1", "@sentry/cli@^2.41.1":
67036722
version "2.41.1"
67046723
resolved "https://registry.yarnpkg.com/@sentry/cli/-/cli-2.41.1.tgz#a9467ca3ff4acfcdedec1565c9ff726b93758d29"
67056724
integrity sha512-0GVmDiTV7R1492wkVY4bGcfC0fSmRmQjuxaaPI8CIV9B2VP9pBVCUizi1mevXaaE4I3fM60LI+XYrKFEneuVog==
@@ -6743,6 +6762,15 @@
67436762
unplugin "1.0.1"
67446763
uuid "^9.0.0"
67456764

6765+
6766+
version "3.1.2"
6767+
resolved "https://registry.yarnpkg.com/@sentry/webpack-plugin/-/webpack-plugin-3.1.2.tgz#e7cf2b10b6d2fb2d6106e692469d02b6ab684bba"
6768+
integrity sha512-BTG1m+5c3PcuzjUphB7vQESo91VdT8FT+Ngzbf58OOTtiMDEJ35FtJX1ww36QE7G6vlSpdT/NyZKsY6t+mgJfg==
6769+
dependencies:
6770+
"@sentry/bundler-plugin-core" "3.1.2"
6771+
unplugin "1.0.1"
6772+
uuid "^9.0.0"
6773+
67466774
"@sigstore/protobuf-specs@^0.1.0":
67476775
version "0.1.0"
67486776
resolved "https://registry.yarnpkg.com/@sigstore/protobuf-specs/-/protobuf-specs-0.1.0.tgz#957cb64ea2f5ce527cc9cf02a096baeb0d2b99b4"

0 commit comments

Comments
 (0)