From 94bdbb7ce7bffcab16a6c06b9f01e67af423afda Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Thu, 20 Feb 2025 11:35:30 +0100 Subject: [PATCH 1/2] fix(nextjs): Remove outdated hideSourceMaps option --- CHANGELOG.md | 1 + src/nextjs/templates.ts | 3 --- src/sourcemaps/tools/nextjs.ts | 3 --- test/nextjs/templates.test.ts | 12 ------------ 4 files changed, 1 insertion(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef7cc7b0..72f889e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ## Unreleased - ref!: Bump main Node.js version to the earliest LTS v18 ([#793](https://github.com/getsentry/sentry-wizard/pull/793)) +- fix(nextjs): Remove outdated `hideSourceMaps` option (#798) ## 3.42.0 diff --git a/src/nextjs/templates.ts b/src/nextjs/templates.ts index f748e6ac..fd8d40bc 100644 --- a/src/nextjs/templates.ts +++ b/src/nextjs/templates.ts @@ -52,9 +52,6 @@ export function getWithSentryConfigOptionsTemplate({ // side errors will fail. ${tunnelRoute ? '' : '// '}tunnelRoute: "/monitoring", - // Hides source maps from generated client bundles - hideSourceMaps: true, - // Automatically tree-shake Sentry logger statements to reduce bundle size disableLogger: true, diff --git a/src/sourcemaps/tools/nextjs.ts b/src/sourcemaps/tools/nextjs.ts index bffb4101..d5bf94dc 100644 --- a/src/sourcemaps/tools/nextjs.ts +++ b/src/sourcemaps/tools/nextjs.ts @@ -33,9 +33,6 @@ const getCodeSnippet = (options: SourceMapUploadToolConfigurationOptions) => ${chalk.greenBright(`const sentryOptions = { // Upload additional client files (increases upload size) widenClientFileUpload: true, - - // Hides source maps from generated client bundles - hideSourceMaps: true, };`)} ${chalk.greenBright(`module.exports = withSentryConfig( diff --git a/test/nextjs/templates.test.ts b/test/nextjs/templates.test.ts index e7bdabd2..75f19d86 100644 --- a/test/nextjs/templates.test.ts +++ b/test/nextjs/templates.test.ts @@ -273,9 +273,6 @@ describe('Next.js code templates', () => { // side errors will fail. tunnelRoute: "/monitoring", - // Hides source maps from generated client bundles - hideSourceMaps: true, - // Automatically tree-shake Sentry logger statements to reduce bundle size disableLogger: true, @@ -322,9 +319,6 @@ describe('Next.js code templates', () => { // side errors will fail. tunnelRoute: "/monitoring", - // Hides source maps from generated client bundles - hideSourceMaps: true, - // Automatically tree-shake Sentry logger statements to reduce bundle size disableLogger: true, @@ -370,9 +364,6 @@ describe('Next.js code templates', () => { // side errors will fail. // tunnelRoute: "/monitoring", - // Hides source maps from generated client bundles - hideSourceMaps: true, - // Automatically tree-shake Sentry logger statements to reduce bundle size disableLogger: true, @@ -423,9 +414,6 @@ describe('Next.js code templates', () => { // side errors will fail. tunnelRoute: "/monitoring", - // Hides source maps from generated client bundles - hideSourceMaps: true, - // Automatically tree-shake Sentry logger statements to reduce bundle size disableLogger: true, From a737c7472518d2958d8de963deac44a9e6f0dbfe Mon Sep 17 00:00:00 2001 From: getsentry-bot Date: Thu, 20 Feb 2025 10:55:50 +0000 Subject: [PATCH 2/2] release: 3.42.1 fix newline in changelog --- CHANGELOG.md | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72f889e0..8a64cef0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ ## Unreleased - ref!: Bump main Node.js version to the earliest LTS v18 ([#793](https://github.com/getsentry/sentry-wizard/pull/793)) + +## 3.42.1 + - fix(nextjs): Remove outdated `hideSourceMaps` option (#798) ## 3.42.0 diff --git a/package.json b/package.json index 40938240..550369c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sentry/wizard", - "version": "3.42.0", + "version": "3.42.1", "homepage": "https://github.com/getsentry/sentry-wizard", "repository": "https://github.com/getsentry/sentry-wizard", "description": "Sentry wizard helping you to configure your project",