Skip to content

Commit d651f13

Browse files
Merge pull request #12004 from getsentry/master
[Gitflow] Merge master into develop
2 parents 945c19e + 03a9f22 commit d651f13

File tree

43 files changed

+275
-161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+275
-161
lines changed

CHANGELOG.md

+115-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,120 @@
44

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

7+
## 8.0.0
8+
9+
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
10+
long time coming! Thanks to everyone for your patience and a special shout out to the brave souls testing preview builds
11+
and reporting issues - we appreciate your support!
12+
13+
---
14+
15+
### How to Upgrade to Version 8:
16+
17+
We recommend reading the
18+
[migration guide docs](https://docs.sentry.io/platforms/javascript/migration/v7-to-v8/#migration-codemod) to find out
19+
how to address any breaking changes in your code for your specific platform or framework.
20+
21+
To automate upgrading to v8 as much as possible, use our migration codemod `@sentry/migr8`:
22+
23+
```sh
24+
npx @sentry/migr8@latest
25+
```
26+
27+
All deprecations from the v7 cycle, with the exception of `getCurrentHub()`, have been removed and can no longer be used
28+
in v8. If you have an advanced Sentry SDK setup, we additionally recommend reading the
29+
[in-depth migration guide](./MIGRATION.md) in our repo which highlights all changes with additional details and
30+
information.
31+
32+
The rest of this changelog highlights the most important (breaking) changes and links to more detailed information.
33+
34+
### Version Support
35+
36+
With v8, we dropped support for several old runtimes and browsers
37+
38+
**Node SDKs:** The Sentry JavaScript SDK v8 now supports **Node.js 14.8.0 or higher**. This applies to `@sentry/node`
39+
and all of our node-based server-side sdks (`@sentry/nextjs`, `@sentry/remix`, etc.). Furthermore, version 8 now ships
40+
with full support for ESM-based node apps using **Node.js 18.19.0 or higher**.
41+
42+
**Browser SDKs:** The browser SDKs now require
43+
[**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)
44+
compatible browsers. New minimum browser versions:
45+
46+
- Chrome 63
47+
- Edge 79
48+
- Safari/iOS Safari 12
49+
- Firefox 58
50+
- Opera 50
51+
- Samsung Internet 8.2
52+
53+
For more details, please see the
54+
[version support section in our migration guide](./MIGRATION.md#1-version-support-changes).
55+
56+
### Initializing Server-side SDKs (Node, Bun, Deno, Serverless):
57+
58+
In v8, we support a lot more node-based packages than before. In order to ensure auto-instrumentation works, the SDK now
59+
needs to be imported and initialized before any other import in your code.
60+
61+
We recommend creating a new file (e.g. `instrumentation.js`) to import and initialize the SDK. Then, import the file on
62+
top of your entry file or detailed instructions, check our updated SDK setup docs
63+
[initializing the SDK in v8](https://docs.sentry.io/platforms/javascript/guides/node/).
64+
65+
### Performance Monitoring Changes
66+
67+
The API around performance monitoring and tracing has been streamlined, and we've added support for more integrations
68+
out of the box.
69+
70+
- [Performance Monitoring API](./MIGRATION.md#performance-monitoring-api)
71+
- [Performance Monitoring Integrations](./MIGRATION.md#performance-monitoring-integrations)
72+
73+
### Functional Integrations
74+
75+
Integrations are now simple functions instead of classes. Class-based integrations
76+
[have been removed](./MIGRATION.md#removal-of-class-based-integrations):
77+
78+
```javascript
79+
// old (v7)
80+
Sentry.init({
81+
integrations: [new Sentry.BrowserTracing()],
82+
});
83+
84+
// new (v8)
85+
Sentry.init({
86+
integrations: [Sentry.browserTracingIntegration()],
87+
});
88+
```
89+
90+
### Package removal
91+
92+
The following packages have been removed or replaced and will no longer be published:
93+
94+
- [`@sentry/hub`](./MIGRATION.md#sentryhub)
95+
- [`@sentry/tracing`](./MIGRATION.md#sentrytracing)
96+
- [`@sentry/integrations`](./MIGRATION.md#sentryintegrations)
97+
- [`@sentry/serverless`](./MIGRATION.md#sentryserverless)
98+
- [`@sentry/replay`](./MIGRATION.md#sentryreplay)
99+
100+
### Changes since `8.0.0-rc.3`
101+
102+
- **feat(nextjs): Remove `transpileClientSDK` (#11978)**
103+
104+
As we are dropping support for Internet Explorer 11 and other other older browser versions wih version `8.0.0`, we are
105+
also removing the `transpileClientSDK` option from the Next.js SDK. If you need to support these browser versions,
106+
please configure Webpack and Next.js to down-compile the SDK.
107+
108+
- **feat(serverless): Do not include performance integrations by default (#11998)**
109+
110+
To keep Lambda bundle size reasonable, the SDK no longer ships with all performance (database) integrations by
111+
default. Add the Sentry integrations of the databases and other tools you're using manually to your `Sentry.init` call
112+
by following
113+
[this guide](https://docs.sentry.io/platforms/javascript/configuration/integrations/#modifying-default-integrations).
114+
Note that this change does not apply if you use the SDK with the Sentry AWS Lambda layer.
115+
116+
- feat(feedback): Simplify public css configuration for feedback (#11985)
117+
- fix(feedback): Check for empty user (#11993)
118+
- fix(replay): Fix type for `replayCanvasIntegration` (#11995)
119+
- fix(replay): Fix user activity not being updated in `start()` (#12001)
120+
7121
## 8.0.0-rc.3
8122

9123
### Important Changes
@@ -304,7 +418,7 @@ The following packages will no longer be published
304418

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

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

310424
### Performance Monitoring Changes

dev-packages/browser-integration-tests/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-integration-tests",
3-
"version": "8.0.0-rc.3",
3+
"version": "8.0.0",
44
"main": "index.js",
55
"license": "MIT",
66
"engines": {
@@ -42,7 +42,7 @@
4242
"@babel/preset-typescript": "^7.16.7",
4343
"@playwright/test": "^1.43.1",
4444
"@sentry-internal/rrweb": "2.11.0",
45-
"@sentry/browser": "8.0.0-rc.3",
45+
"@sentry/browser": "8.0.0",
4646
"axios": "1.6.7",
4747
"babel-loader": "^8.2.2",
4848
"html-webpack-plugin": "^5.5.0",

dev-packages/bundle-analyzer-scenarios/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/bundle-analyzer-scenarios",
3-
"version": "8.0.0-rc.3",
3+
"version": "8.0.0",
44
"description": "Scenarios to test bundle analysis with",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/dev-packages/bundle-analyzer-scenarios",

dev-packages/e2e-tests/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/e2e-tests",
3-
"version": "8.0.0-rc.3",
3+
"version": "8.0.0",
44
"license": "MIT",
55
"private": true,
66
"scripts": {

dev-packages/event-proxy-server/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"version": "8.0.0-rc.3",
3+
"version": "8.0.0",
44
"name": "@sentry-internal/event-proxy-server",
55
"author": "Sentry",
66
"license": "MIT",
@@ -40,8 +40,8 @@
4040
"clean": "rimraf -g ./node_modules ./build"
4141
},
4242
"devDependencies": {
43-
"@sentry/types": "8.0.0-rc.3",
44-
"@sentry/utils": "8.0.0-rc.3"
43+
"@sentry/types": "8.0.0",
44+
"@sentry/utils": "8.0.0"
4545
},
4646
"volta": {
4747
"extends": "../../package.json"

dev-packages/node-integration-tests/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/node-integration-tests",
3-
"version": "8.0.0-rc.3",
3+
"version": "8.0.0",
44
"license": "MIT",
55
"engines": {
66
"node": ">=14.18"
@@ -31,8 +31,8 @@
3131
"@nestjs/core": "^10.3.3",
3232
"@nestjs/platform-express": "^10.3.3",
3333
"@prisma/client": "5.9.1",
34-
"@sentry/node": "8.0.0-rc.3",
35-
"@sentry/types": "8.0.0-rc.3",
34+
"@sentry/node": "8.0.0",
35+
"@sentry/types": "8.0.0",
3636
"@types/mongodb": "^3.6.20",
3737
"@types/mysql": "^2.15.21",
3838
"@types/pg": "^8.6.5",

dev-packages/overhead-metrics/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"version": "8.0.0-rc.3",
3+
"version": "8.0.0",
44
"name": "@sentry-internal/overhead-metrics",
55
"main": "index.js",
66
"author": "Sentry",

dev-packages/rollup-utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/rollup-utils",
3-
"version": "8.0.0-rc.3",
3+
"version": "8.0.0",
44
"description": "Rollup utilities used at Sentry for the Sentry JavaScript SDK",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/rollup-utils",

dev-packages/size-limit-gh-action/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry-internal/size-limit-gh-action",
33
"description": "An internal Github Action to compare the current size of a PR against the one on develop.",
4-
"version": "8.0.0-rc.3",
4+
"version": "8.0.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "8.0.0-rc.3",
3+
"version": "8.0.0",
44
"npmClient": "yarn"
55
}

packages/angular/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/angular",
3-
"version": "8.0.0-rc.3",
3+
"version": "8.0.0",
44
"description": "Official Sentry SDK for Angular",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/angular",
@@ -21,10 +21,10 @@
2121
"rxjs": "^6.5.5 || ^7.x"
2222
},
2323
"dependencies": {
24-
"@sentry/browser": "8.0.0-rc.3",
25-
"@sentry/core": "8.0.0-rc.3",
26-
"@sentry/types": "8.0.0-rc.3",
27-
"@sentry/utils": "8.0.0-rc.3",
24+
"@sentry/browser": "8.0.0",
25+
"@sentry/core": "8.0.0",
26+
"@sentry/types": "8.0.0",
27+
"@sentry/utils": "8.0.0",
2828
"tslib": "^2.4.1"
2929
},
3030
"devDependencies": {

packages/astro/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/astro",
3-
"version": "8.0.0-rc.3",
3+
"version": "8.0.0",
44
"description": "Official Sentry SDK for Astro",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/astro",
@@ -61,11 +61,11 @@
6161
"astro": ">=3.x || >=4.0.0-beta"
6262
},
6363
"dependencies": {
64-
"@sentry/browser": "8.0.0-rc.3",
65-
"@sentry/core": "8.0.0-rc.3",
66-
"@sentry/node": "8.0.0-rc.3",
67-
"@sentry/types": "8.0.0-rc.3",
68-
"@sentry/utils": "8.0.0-rc.3",
64+
"@sentry/browser": "8.0.0",
65+
"@sentry/core": "8.0.0",
66+
"@sentry/node": "8.0.0",
67+
"@sentry/types": "8.0.0",
68+
"@sentry/utils": "8.0.0",
6969
"@sentry/vite-plugin": "^2.14.2"
7070
},
7171
"devDependencies": {

packages/aws-serverless/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/aws-serverless",
3-
"version": "8.0.0-rc.3",
3+
"version": "8.0.0",
44
"description": "Official Sentry SDK for AWS Lambda and AWS Serverless Environments",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/serverless",
@@ -55,10 +55,10 @@
5555
"dependencies": {
5656
"@opentelemetry/instrumentation-aws-lambda": "0.40.0",
5757
"@opentelemetry/instrumentation-aws-sdk": "0.40.0",
58-
"@sentry/core": "8.0.0-rc.3",
59-
"@sentry/node": "8.0.0-rc.3",
60-
"@sentry/types": "8.0.0-rc.3",
61-
"@sentry/utils": "8.0.0-rc.3",
58+
"@sentry/core": "8.0.0",
59+
"@sentry/node": "8.0.0",
60+
"@sentry/types": "8.0.0",
61+
"@sentry/utils": "8.0.0",
6262
"@types/aws-lambda": "^8.10.62"
6363
},
6464
"devDependencies": {

packages/browser-utils/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-utils",
3-
"version": "8.0.0-rc.3",
3+
"version": "8.0.0",
44
"description": "Browser Utilities for all Sentry JavaScript SDKs",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/browser-utils",
@@ -42,9 +42,9 @@
4242
"access": "public"
4343
},
4444
"dependencies": {
45-
"@sentry/core": "8.0.0-rc.3",
46-
"@sentry/types": "8.0.0-rc.3",
47-
"@sentry/utils": "8.0.0-rc.3"
45+
"@sentry/core": "8.0.0",
46+
"@sentry/types": "8.0.0",
47+
"@sentry/utils": "8.0.0"
4848
},
4949
"scripts": {
5050
"build": "run-p build:transpile build:types",

packages/browser/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/browser",
3-
"version": "8.0.0-rc.3",
3+
"version": "8.0.0",
44
"description": "Official Sentry SDK for browsers",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/browser",
@@ -42,16 +42,16 @@
4242
"access": "public"
4343
},
4444
"dependencies": {
45-
"@sentry-internal/browser-utils": "8.0.0-rc.3",
46-
"@sentry-internal/feedback": "8.0.0-rc.3",
47-
"@sentry-internal/replay": "8.0.0-rc.3",
48-
"@sentry-internal/replay-canvas": "8.0.0-rc.3",
49-
"@sentry/core": "8.0.0-rc.3",
50-
"@sentry/types": "8.0.0-rc.3",
51-
"@sentry/utils": "8.0.0-rc.3"
45+
"@sentry-internal/browser-utils": "8.0.0",
46+
"@sentry-internal/feedback": "8.0.0",
47+
"@sentry-internal/replay": "8.0.0",
48+
"@sentry-internal/replay-canvas": "8.0.0",
49+
"@sentry/core": "8.0.0",
50+
"@sentry/types": "8.0.0",
51+
"@sentry/utils": "8.0.0"
5252
},
5353
"devDependencies": {
54-
"@sentry-internal/integration-shims": "8.0.0-rc.3",
54+
"@sentry-internal/integration-shims": "8.0.0",
5555
"@types/md5": "2.1.33",
5656
"btoa": "^1.2.1",
5757
"fake-indexeddb": "^4.0.1",

packages/bun/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/bun",
3-
"version": "8.0.0-rc.3",
3+
"version": "8.0.0",
44
"description": "Official Sentry SDK for bun",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/bun",
@@ -42,11 +42,11 @@
4242
"access": "public"
4343
},
4444
"dependencies": {
45-
"@sentry/core": "8.0.0-rc.3",
46-
"@sentry/node": "8.0.0-rc.3",
47-
"@sentry/opentelemetry": "8.0.0-rc.3",
48-
"@sentry/types": "8.0.0-rc.3",
49-
"@sentry/utils": "8.0.0-rc.3"
45+
"@sentry/core": "8.0.0",
46+
"@sentry/node": "8.0.0",
47+
"@sentry/opentelemetry": "8.0.0",
48+
"@sentry/types": "8.0.0",
49+
"@sentry/utils": "8.0.0"
5050
},
5151
"devDependencies": {
5252
"bun-types": "latest"

0 commit comments

Comments
 (0)