Skip to content

[Gitflow] Merge master into develop #12004

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 13, 2024
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
116 changes: 115 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,120 @@

- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott

## 8.0.0

The Sentry JS SDK team is proud to announce the release of version `8.0.0` of Sentry's JavaScript SDKs - it's been a
long time coming! Thanks to everyone for your patience and a special shout out to the brave souls testing preview builds
and reporting issues - we appreciate your support!

---

### How to Upgrade to Version 8:

We recommend reading the
[migration guide docs](https://docs.sentry.io/platforms/javascript/migration/v7-to-v8/#migration-codemod) to find out
how to address any breaking changes in your code for your specific platform or framework.

To automate upgrading to v8 as much as possible, use our migration codemod `@sentry/migr8`:

```sh
npx @sentry/migr8@latest
```

All deprecations from the v7 cycle, with the exception of `getCurrentHub()`, have been removed and can no longer be used
in v8. If you have an advanced Sentry SDK setup, we additionally recommend reading the
[in-depth migration guide](./MIGRATION.md) in our repo which highlights all changes with additional details and
information.

The rest of this changelog highlights the most important (breaking) changes and links to more detailed information.

### Version Support

With v8, we dropped support for several old runtimes and browsers

**Node SDKs:** The Sentry JavaScript SDK v8 now supports **Node.js 14.8.0 or higher**. This applies to `@sentry/node`
and all of our node-based server-side sdks (`@sentry/nextjs`, `@sentry/remix`, etc.). Furthermore, version 8 now ships
with full support for ESM-based node apps using **Node.js 18.19.0 or higher**.

**Browser SDKs:** The browser SDKs now require
[**ES2018+**](https://caniuse.com/?feats=mdn-javascript_builtins_regexp_dotall,js-regexp-lookbehind,mdn-javascript_builtins_regexp_named_capture_groups,mdn-javascript_builtins_regexp_property_escapes,mdn-javascript_builtins_symbol_asynciterator,mdn-javascript_functions_method_definitions_async_generator_methods,mdn-javascript_grammar_template_literals_template_literal_revision,mdn-javascript_operators_destructuring_rest_in_objects,mdn-javascript_operators_destructuring_rest_in_arrays,promise-finally)
compatible browsers. New minimum browser versions:

- Chrome 63
- Edge 79
- Safari/iOS Safari 12
- Firefox 58
- Opera 50
- Samsung Internet 8.2

For more details, please see the
[version support section in our migration guide](./MIGRATION.md#1-version-support-changes).

### Initializing Server-side SDKs (Node, Bun, Deno, Serverless):

In v8, we support a lot more node-based packages than before. In order to ensure auto-instrumentation works, the SDK now
needs to be imported and initialized before any other import in your code.

We recommend creating a new file (e.g. `instrumentation.js`) to import and initialize the SDK. Then, import the file on
top of your entry file or detailed instructions, check our updated SDK setup docs
[initializing the SDK in v8](https://docs.sentry.io/platforms/javascript/guides/node/).

### Performance Monitoring Changes

The API around performance monitoring and tracing has been streamlined, and we've added support for more integrations
out of the box.

- [Performance Monitoring API](./MIGRATION.md#performance-monitoring-api)
- [Performance Monitoring Integrations](./MIGRATION.md#performance-monitoring-integrations)

### Functional Integrations

Integrations are now simple functions instead of classes. Class-based integrations
[have been removed](./MIGRATION.md#removal-of-class-based-integrations):

```javascript
// old (v7)
Sentry.init({
integrations: [new Sentry.BrowserTracing()],
});

// new (v8)
Sentry.init({
integrations: [Sentry.browserTracingIntegration()],
});
```

### Package removal

The following packages have been removed or replaced and will no longer be published:

- [`@sentry/hub`](./MIGRATION.md#sentryhub)
- [`@sentry/tracing`](./MIGRATION.md#sentrytracing)
- [`@sentry/integrations`](./MIGRATION.md#sentryintegrations)
- [`@sentry/serverless`](./MIGRATION.md#sentryserverless)
- [`@sentry/replay`](./MIGRATION.md#sentryreplay)

### Changes since `8.0.0-rc.3`

- **feat(nextjs): Remove `transpileClientSDK` (#11978)**

As we are dropping support for Internet Explorer 11 and other other older browser versions wih version `8.0.0`, we are
also removing the `transpileClientSDK` option from the Next.js SDK. If you need to support these browser versions,
please configure Webpack and Next.js to down-compile the SDK.

- **feat(serverless): Do not include performance integrations by default (#11998)**

To keep Lambda bundle size reasonable, the SDK no longer ships with all performance (database) integrations by
default. Add the Sentry integrations of the databases and other tools you're using manually to your `Sentry.init` call
by following
[this guide](https://docs.sentry.io/platforms/javascript/configuration/integrations/#modifying-default-integrations).
Note that this change does not apply if you use the SDK with the Sentry AWS Lambda layer.

- feat(feedback): Simplify public css configuration for feedback (#11985)
- fix(feedback): Check for empty user (#11993)
- fix(replay): Fix type for `replayCanvasIntegration` (#11995)
- fix(replay): Fix user activity not being updated in `start()` (#12001)

## 8.0.0-rc.3

### Important Changes
Expand Down Expand Up @@ -304,7 +418,7 @@ The following packages will no longer be published

### Initializing Server-side SDKs (Node, Bun, Next.js, SvelteKit, Astro, Remix):

Initializing the SDKs on the server-side has been simplified. See more details in our migration docs about
Initializing the SDKs on the server-side has been simplified. More details in our migration docs about
[initializing the SDK in v8](./MIGRATION.md/#initializing-the-node-sdk).

### Performance Monitoring Changes
Expand Down
4 changes: 2 additions & 2 deletions dev-packages/browser-integration-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/browser-integration-tests",
"version": "8.0.0-rc.3",
"version": "8.0.0",
"main": "index.js",
"license": "MIT",
"engines": {
Expand Down Expand Up @@ -42,7 +42,7 @@
"@babel/preset-typescript": "^7.16.7",
"@playwright/test": "^1.43.1",
"@sentry-internal/rrweb": "2.11.0",
"@sentry/browser": "8.0.0-rc.3",
"@sentry/browser": "8.0.0",
"axios": "1.6.7",
"babel-loader": "^8.2.2",
"html-webpack-plugin": "^5.5.0",
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/bundle-analyzer-scenarios/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/bundle-analyzer-scenarios",
"version": "8.0.0-rc.3",
"version": "8.0.0",
"description": "Scenarios to test bundle analysis with",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/dev-packages/bundle-analyzer-scenarios",
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/e2e-tests",
"version": "8.0.0-rc.3",
"version": "8.0.0",
"license": "MIT",
"private": true,
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions dev-packages/event-proxy-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"version": "8.0.0-rc.3",
"version": "8.0.0",
"name": "@sentry-internal/event-proxy-server",
"author": "Sentry",
"license": "MIT",
Expand Down Expand Up @@ -40,8 +40,8 @@
"clean": "rimraf -g ./node_modules ./build"
},
"devDependencies": {
"@sentry/types": "8.0.0-rc.3",
"@sentry/utils": "8.0.0-rc.3"
"@sentry/types": "8.0.0",
"@sentry/utils": "8.0.0"
},
"volta": {
"extends": "../../package.json"
Expand Down
6 changes: 3 additions & 3 deletions dev-packages/node-integration-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/node-integration-tests",
"version": "8.0.0-rc.3",
"version": "8.0.0",
"license": "MIT",
"engines": {
"node": ">=14.18"
Expand Down Expand Up @@ -31,8 +31,8 @@
"@nestjs/core": "^10.3.3",
"@nestjs/platform-express": "^10.3.3",
"@prisma/client": "5.9.1",
"@sentry/node": "8.0.0-rc.3",
"@sentry/types": "8.0.0-rc.3",
"@sentry/node": "8.0.0",
"@sentry/types": "8.0.0",
"@types/mongodb": "^3.6.20",
"@types/mysql": "^2.15.21",
"@types/pg": "^8.6.5",
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/overhead-metrics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"version": "8.0.0-rc.3",
"version": "8.0.0",
"name": "@sentry-internal/overhead-metrics",
"main": "index.js",
"author": "Sentry",
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/rollup-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/rollup-utils",
"version": "8.0.0-rc.3",
"version": "8.0.0",
"description": "Rollup utilities used at Sentry for the Sentry JavaScript SDK",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/rollup-utils",
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/size-limit-gh-action/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sentry-internal/size-limit-gh-action",
"description": "An internal Github Action to compare the current size of a PR against the one on develop.",
"version": "8.0.0-rc.3",
"version": "8.0.0",
"license": "MIT",
"engines": {
"node": ">=18"
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "8.0.0-rc.3",
"version": "8.0.0",
"npmClient": "yarn"
}
10 changes: 5 additions & 5 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/angular",
"version": "8.0.0-rc.3",
"version": "8.0.0",
"description": "Official Sentry SDK for Angular",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/angular",
Expand All @@ -21,10 +21,10 @@
"rxjs": "^6.5.5 || ^7.x"
},
"dependencies": {
"@sentry/browser": "8.0.0-rc.3",
"@sentry/core": "8.0.0-rc.3",
"@sentry/types": "8.0.0-rc.3",
"@sentry/utils": "8.0.0-rc.3",
"@sentry/browser": "8.0.0",
"@sentry/core": "8.0.0",
"@sentry/types": "8.0.0",
"@sentry/utils": "8.0.0",
"tslib": "^2.4.1"
},
"devDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions packages/astro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/astro",
"version": "8.0.0-rc.3",
"version": "8.0.0",
"description": "Official Sentry SDK for Astro",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/astro",
Expand Down Expand Up @@ -61,11 +61,11 @@
"astro": ">=3.x || >=4.0.0-beta"
},
"dependencies": {
"@sentry/browser": "8.0.0-rc.3",
"@sentry/core": "8.0.0-rc.3",
"@sentry/node": "8.0.0-rc.3",
"@sentry/types": "8.0.0-rc.3",
"@sentry/utils": "8.0.0-rc.3",
"@sentry/browser": "8.0.0",
"@sentry/core": "8.0.0",
"@sentry/node": "8.0.0",
"@sentry/types": "8.0.0",
"@sentry/utils": "8.0.0",
"@sentry/vite-plugin": "^2.14.2"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions packages/aws-serverless/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/aws-serverless",
"version": "8.0.0-rc.3",
"version": "8.0.0",
"description": "Official Sentry SDK for AWS Lambda and AWS Serverless Environments",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/serverless",
Expand Down Expand Up @@ -55,10 +55,10 @@
"dependencies": {
"@opentelemetry/instrumentation-aws-lambda": "0.40.0",
"@opentelemetry/instrumentation-aws-sdk": "0.40.0",
"@sentry/core": "8.0.0-rc.3",
"@sentry/node": "8.0.0-rc.3",
"@sentry/types": "8.0.0-rc.3",
"@sentry/utils": "8.0.0-rc.3",
"@sentry/core": "8.0.0",
"@sentry/node": "8.0.0",
"@sentry/types": "8.0.0",
"@sentry/utils": "8.0.0",
"@types/aws-lambda": "^8.10.62"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/browser-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/browser-utils",
"version": "8.0.0-rc.3",
"version": "8.0.0",
"description": "Browser Utilities for all Sentry JavaScript SDKs",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/browser-utils",
Expand Down Expand Up @@ -42,9 +42,9 @@
"access": "public"
},
"dependencies": {
"@sentry/core": "8.0.0-rc.3",
"@sentry/types": "8.0.0-rc.3",
"@sentry/utils": "8.0.0-rc.3"
"@sentry/core": "8.0.0",
"@sentry/types": "8.0.0",
"@sentry/utils": "8.0.0"
},
"scripts": {
"build": "run-p build:transpile build:types",
Expand Down
18 changes: 9 additions & 9 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/browser",
"version": "8.0.0-rc.3",
"version": "8.0.0",
"description": "Official Sentry SDK for browsers",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/browser",
Expand Down Expand Up @@ -42,16 +42,16 @@
"access": "public"
},
"dependencies": {
"@sentry-internal/browser-utils": "8.0.0-rc.3",
"@sentry-internal/feedback": "8.0.0-rc.3",
"@sentry-internal/replay": "8.0.0-rc.3",
"@sentry-internal/replay-canvas": "8.0.0-rc.3",
"@sentry/core": "8.0.0-rc.3",
"@sentry/types": "8.0.0-rc.3",
"@sentry/utils": "8.0.0-rc.3"
"@sentry-internal/browser-utils": "8.0.0",
"@sentry-internal/feedback": "8.0.0",
"@sentry-internal/replay": "8.0.0",
"@sentry-internal/replay-canvas": "8.0.0",
"@sentry/core": "8.0.0",
"@sentry/types": "8.0.0",
"@sentry/utils": "8.0.0"
},
"devDependencies": {
"@sentry-internal/integration-shims": "8.0.0-rc.3",
"@sentry-internal/integration-shims": "8.0.0",
"@types/md5": "2.1.33",
"btoa": "^1.2.1",
"fake-indexeddb": "^4.0.1",
Expand Down
12 changes: 6 additions & 6 deletions packages/bun/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/bun",
"version": "8.0.0-rc.3",
"version": "8.0.0",
"description": "Official Sentry SDK for bun",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/bun",
Expand Down Expand Up @@ -42,11 +42,11 @@
"access": "public"
},
"dependencies": {
"@sentry/core": "8.0.0-rc.3",
"@sentry/node": "8.0.0-rc.3",
"@sentry/opentelemetry": "8.0.0-rc.3",
"@sentry/types": "8.0.0-rc.3",
"@sentry/utils": "8.0.0-rc.3"
"@sentry/core": "8.0.0",
"@sentry/node": "8.0.0",
"@sentry/opentelemetry": "8.0.0",
"@sentry/types": "8.0.0",
"@sentry/utils": "8.0.0"
},
"devDependencies": {
"bun-types": "latest"
Expand Down
Loading
Loading