From 8a9cf0345b93700d867aceb67631b94f183e9a1e Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Thu, 5 May 2022 11:09:31 +0000 Subject: [PATCH 1/4] docs(migration): Add TLDR to v7 migration docs --- MIGRATION.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MIGRATION.md b/MIGRATION.md index 950a8ce6cea1..3bb10ea7d155 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -3,6 +3,13 @@ The main goal of version 7 is to reduce bundle size. This version is breaking because we removed deprecated APIs, upgraded our build tooling, and restructured npm package contents. Below we will outline all the breaking changes you should consider when upgrading. +TL;DR if you copy & pasted the basic examples from our docs: +- Our CDN bundles are now ES6 - you will need to [reconfigure your script tags](#renaming-of-cdn-bundles) if you want to keep supporting ES5 and IE11 on the new SDK version. +- Distributed CommonJS files will be ES6. Use a transpiler if you need to support old node versions. +- We bumped the TypeScript version we generate our types with to 3.8.3. Please check if your TypeScript projects using TypeScript version 3.7 or lower still compile. Otherwise upgrade your TypeScript version. +- `whitelistUrls` and `blacklistUrls` have been renamed to `allowUrls` and `denyUrls` in the `Sentry.init()` options. +- The `UserAgent` integration is now called `HttpContext`. + ## Dropping Support for Node.js v6 Node.js version 6 has reached end of life in April 2019. For Sentry JavaScript SDK version 7, we will no longer be supporting version 6 of Node.js. @@ -252,7 +259,6 @@ favor of string literals. ### Removed Enums * The previously deprecated enum `Status` was removed (see [#4891](https://github.com/getsentry/sentry-javascript/pull/4891)). - [This example](#status) explains how to migrate. * The previously deprecated internal-only enum `RequestSessionStatus` was removed (see [#4889](https://github.com/getsentry/sentry-javascript/pull/4889)) in favor of string literals. * The previously deprecated internal-only enum `SessionStatus` was removed (see From 206b7dc9fd4f76b4d117f20f916438004384defd Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Thu, 5 May 2022 11:10:51 +0000 Subject: [PATCH 2/4] Add comma --- MIGRATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MIGRATION.md b/MIGRATION.md index 3bb10ea7d155..df242ac352f6 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -6,7 +6,7 @@ Below we will outline all the breaking changes you should consider when upgradin TL;DR if you copy & pasted the basic examples from our docs: - Our CDN bundles are now ES6 - you will need to [reconfigure your script tags](#renaming-of-cdn-bundles) if you want to keep supporting ES5 and IE11 on the new SDK version. - Distributed CommonJS files will be ES6. Use a transpiler if you need to support old node versions. -- We bumped the TypeScript version we generate our types with to 3.8.3. Please check if your TypeScript projects using TypeScript version 3.7 or lower still compile. Otherwise upgrade your TypeScript version. +- We bumped the TypeScript version we generate our types with to 3.8.3. Please check if your TypeScript projects using TypeScript version 3.7 or lower still compile. Otherwise, upgrade your TypeScript version. - `whitelistUrls` and `blacklistUrls` have been renamed to `allowUrls` and `denyUrls` in the `Sentry.init()` options. - The `UserAgent` integration is now called `HttpContext`. From 6f4435700c76af9b439dc07b9ed2a1866659cd22 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Thu, 5 May 2022 12:13:49 +0000 Subject: [PATCH 3/4] Add removal of eventStatusFromHttpCode --- MIGRATION.md | 1 + 1 file changed, 1 insertion(+) diff --git a/MIGRATION.md b/MIGRATION.md index df242ac352f6..ce8edfc27096 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -290,6 +290,7 @@ For our efforts to reduce bundle size of the SDK we had to remove and refactor p - Remove support for Opera browser pre v15. - Rename `UserAgent` integration to `HttpContext`. (see [#5027](https://github.com/getsentry/sentry-javascript/pull/5027)) - Remove `SDK_NAME` export from `@sentry/browser`, `@sentry/node`, `@sentry/tracing` and `@sentry/vue` packages. +- Removed `eventStatusFromHttpCode` to save on bundle size. ## Sentry Angular SDK Changes From 88dbdfc716546363f359c43838d0b57bc841fc3d Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Thu, 5 May 2022 12:34:23 +0000 Subject: [PATCH 4/4] Change wording to clarify who the tldr section applies to --- MIGRATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MIGRATION.md b/MIGRATION.md index ce8edfc27096..cac9ad2feb96 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -3,7 +3,7 @@ The main goal of version 7 is to reduce bundle size. This version is breaking because we removed deprecated APIs, upgraded our build tooling, and restructured npm package contents. Below we will outline all the breaking changes you should consider when upgrading. -TL;DR if you copy & pasted the basic examples from our docs: +**TL;DR** If you only use basic features of Sentry, or you simply copy & pasted the setup examples from our docs, here's what changed for you: - Our CDN bundles are now ES6 - you will need to [reconfigure your script tags](#renaming-of-cdn-bundles) if you want to keep supporting ES5 and IE11 on the new SDK version. - Distributed CommonJS files will be ES6. Use a transpiler if you need to support old node versions. - We bumped the TypeScript version we generate our types with to 3.8.3. Please check if your TypeScript projects using TypeScript version 3.7 or lower still compile. Otherwise, upgrade your TypeScript version.