Skip to content

Commit bb55c25

Browse files
Merge pull request #14510 from getsentry/master
[Gitflow] Merge master into develop
2 parents c3c3910 + 12d5da6 commit bb55c25

File tree

48 files changed

+256
-164
lines changed

Some content is hidden

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

48 files changed

+256
-164
lines changed

CHANGELOG.md

Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,99 @@
1010

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

13-
Work in this release was contributed by @NEKOYASAN. Thank you for your contribution!
13+
## 8.41.0
14+
15+
### Important Changes
16+
17+
- **meta(nuxt): Require minimum Nuxt v3.7.0 ([#14473](https://github.com/getsentry/sentry-javascript/pull/14473))**
18+
19+
We formalized that the Nuxt SDK is at minimum compatible with Nuxt version 3.7.0 and above.
20+
Additionally, the SDK requires the implicit `nitropack` dependency to satisfy version `^2.6.1` and `ofetch` to satisfy `^1.3.3`.
21+
It is recommended to check your lock-files and manually upgrade these dependencies if they don't match the version ranges.
22+
23+
### Deprecations
24+
25+
We are deprecating a few APIs which will be removed in the next major.
26+
27+
The following deprecations will _potentially_ affect you:
28+
29+
- **feat(core): Update & deprecate `undefined` option handling ([#14450](https://github.com/getsentry/sentry-javascript/pull/14450))**
30+
31+
In the next major version we will change how passing `undefined` to `tracesSampleRate` / `tracesSampler` / `enableTracing` will behave.
32+
33+
Currently, doing the following:
34+
35+
```ts
36+
Sentry.init({
37+
tracesSampleRate: undefined,
38+
});
39+
```
40+
41+
Will result in tracing being _enabled_ (although no spans will be generated) because the `tracesSampleRate` key is present in the options object.
42+
In the next major version, this behavior will be changed so that passing `undefined` (or rather having a `tracesSampleRate` key) will result in tracing being disabled, the same as not passing the option at all.
43+
If you are currently relying on `undefined` being passed, and and thus have tracing enabled, it is recommended to update your config to set e.g. `tracesSampleRate: 0` instead, which will also enable tracing in v9.
44+
45+
The same applies to `tracesSampler` and `enableTracing`.
46+
47+
- **feat(core): Log warnings when returning `null` in `beforeSendSpan` ([#14433](https://github.com/getsentry/sentry-javascript/pull/14433))**
48+
49+
Currently, the `beforeSendSpan` option in `Sentry.init()` allows you to drop individual spans from a trace by returning `null` from the hook.
50+
Since this API lends itself to creating "gaps" inside traces, we decided to change how this API will work in the next major version.
51+
52+
With the next major version the `beforeSendSpan` API can only be used to mutate spans, but no longer to drop them.
53+
With this release the SDK will warn you if you are using this API to drop spans.
54+
Instead, it is recommended to configure instrumentation (i.e. integrations) directly to control what spans are created.
55+
56+
Additionally, with the next major version, root spans will also be passed to `beforeSendSpan`.
57+
58+
- **feat(utils): Deprecate `@sentry/utils` ([#14431](https://github.com/getsentry/sentry-javascript/pull/14431))**
59+
60+
With the next major version the `@sentry/utils` package will be merged into the `@sentry/core` package.
61+
It is therefore no longer recommended to use the `@sentry/utils` package.
62+
63+
- **feat(vue): Deprecate configuring Vue tracing options anywhere else other than through the `vueIntegration`'s `tracingOptions` option ([#14385](https://github.com/getsentry/sentry-javascript/pull/14385))**
64+
65+
Currently it is possible to configure tracing options in various places in the Sentry Vue SDK:
66+
67+
- In `Sentry.init()`
68+
- Inside `tracingOptions` in `Sentry.init()`
69+
- In the `vueIntegration()` options
70+
- Inside `tracingOptions` in the `vueIntegration()` options
71+
72+
Because this is a bit messy and confusing to document, the only recommended way to configure tracing options going forward is through the `tracingOptions` in the `vueIntegration()`.
73+
The other means of configuration will be removed in the next major version of the SDK.
74+
75+
- **feat: Deprecate `registerEsmLoaderHooks.include` and `registerEsmLoaderHooks.exclude` ([#14486](https://github.com/getsentry/sentry-javascript/pull/14486))**
76+
77+
Currently it is possible to define `registerEsmLoaderHooks.include` and `registerEsmLoaderHooks.exclude` options in `Sentry.init()` to only apply ESM loader hooks to a subset of modules.
78+
This API served as an escape hatch in case certain modules are incompatible with ESM loader hooks.
79+
80+
Since this API was introduced, a way was found to only wrap modules that there exists instrumentation for (meaning a vetted list).
81+
To only wrap modules that have instrumentation, it is recommended to instead set `registerEsmLoaderHooks.onlyIncludeInstrumentedModules` to `true`.
82+
83+
Note that `onlyIncludeInstrumentedModules: true` will become the default behavior in the next major version and the `registerEsmLoaderHooks` will no longer accept fine-grained options.
84+
85+
The following deprecations will _most likely_ not affect you unless you are building an SDK yourself:
86+
87+
- feat(core): Deprecate `arrayify` ([#14405](https://github.com/getsentry/sentry-javascript/pull/14405))
88+
- feat(core): Deprecate `flatten` ([#14454](https://github.com/getsentry/sentry-javascript/pull/14454))
89+
- feat(core): Deprecate `urlEncode` ([#14406](https://github.com/getsentry/sentry-javascript/pull/14406))
90+
- feat(core): Deprecate `validSeverityLevels` ([#14407](https://github.com/getsentry/sentry-javascript/pull/14407))
91+
- feat(core/utils): Deprecate `getNumberOfUrlSegments` ([#14458](https://github.com/getsentry/sentry-javascript/pull/14458))
92+
- feat(utils): Deprecate `memoBuilder`, `BAGGAGE_HEADER_NAME`, and `makeFifoCache` ([#14434](https://github.com/getsentry/sentry-javascript/pull/14434))
93+
- feat(utils/core): Deprecate `addRequestDataToEvent` and `extractRequestData` ([#14430](https://github.com/getsentry/sentry-javascript/pull/14430))
94+
95+
### Other Changes
96+
97+
- feat: Streamline `sentry-trace`, `baggage` and DSC handling ([#14364](https://github.com/getsentry/sentry-javascript/pull/14364))
98+
- feat(core): Further optimize debug ID parsing ([#14365](https://github.com/getsentry/sentry-javascript/pull/14365))
99+
- feat(node): Add `openTelemetryInstrumentations` option ([#14484](https://github.com/getsentry/sentry-javascript/pull/14484))
100+
- feat(nuxt): Add filter for not found source maps (devtools) ([#14437](https://github.com/getsentry/sentry-javascript/pull/14437))
101+
- feat(nuxt): Only delete public source maps ([#14438](https://github.com/getsentry/sentry-javascript/pull/14438))
102+
- fix(nextjs): Don't report `NEXT_REDIRECT` from browser ([#14440](https://github.com/getsentry/sentry-javascript/pull/14440))
103+
- perf(opentelemetry): Bucket spans for cleanup ([#14154](https://github.com/getsentry/sentry-javascript/pull/14154))
104+
105+
Work in this release was contributed by @NEKOYASAN and @fmorett. Thank you for your contributions!
14106

15107
## 8.40.0
16108

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-integration-tests",
3-
"version": "8.40.0",
3+
"version": "8.41.0",
44
"main": "index.js",
55
"license": "MIT",
66
"engines": {
@@ -43,7 +43,7 @@
4343
"@babel/preset-typescript": "^7.16.7",
4444
"@playwright/test": "^1.44.1",
4545
"@sentry-internal/rrweb": "2.29.0",
46-
"@sentry/browser": "8.40.0",
46+
"@sentry/browser": "8.41.0",
4747
"axios": "1.7.7",
4848
"babel-loader": "^8.2.2",
4949
"html-webpack-plugin": "^5.5.0",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/bundle-analyzer-scenarios",
3-
"version": "8.40.0",
3+
"version": "8.41.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/clear-cache-gh-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry-internal/clear-cache-gh-action",
33
"description": "An internal Github Action to clear GitHub caches.",
4-
"version": "8.40.0",
4+
"version": "8.41.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

dev-packages/e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/e2e-tests",
3-
"version": "8.40.0",
3+
"version": "8.41.0",
44
"license": "MIT",
55
"private": true,
66
"scripts": {

dev-packages/external-contributor-gh-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry-internal/external-contributor-gh-action",
33
"description": "An internal Github Action to add external contributors to the CHANGELOG.md file.",
4-
"version": "8.40.0",
4+
"version": "8.41.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/node-integration-tests",
3-
"version": "8.40.0",
3+
"version": "8.41.0",
44
"license": "MIT",
55
"engines": {
66
"node": ">=14.18"
@@ -31,10 +31,10 @@
3131
"@nestjs/core": "10.4.6",
3232
"@nestjs/platform-express": "10.4.6",
3333
"@prisma/client": "5.9.1",
34-
"@sentry/aws-serverless": "8.40.0",
35-
"@sentry/core": "8.40.0",
36-
"@sentry/node": "8.40.0",
37-
"@sentry/types": "8.40.0",
34+
"@sentry/aws-serverless": "8.41.0",
35+
"@sentry/core": "8.41.0",
36+
"@sentry/node": "8.41.0",
37+
"@sentry/types": "8.41.0",
3838
"@types/mongodb": "^3.6.20",
3939
"@types/mysql": "^2.15.21",
4040
"@types/pg": "^8.6.5",

dev-packages/rollup-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/rollup-utils",
3-
"version": "8.40.0",
3+
"version": "8.41.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

Lines changed: 1 addition & 1 deletion
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.40.0",
4+
"version": "8.41.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

dev-packages/test-utils/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"version": "8.40.0",
3+
"version": "8.41.0",
44
"name": "@sentry-internal/test-utils",
55
"author": "Sentry",
66
"license": "MIT",
@@ -45,8 +45,8 @@
4545
},
4646
"devDependencies": {
4747
"@playwright/test": "^1.44.1",
48-
"@sentry/core": "8.40.0",
49-
"@sentry/types": "8.40.0"
48+
"@sentry/core": "8.41.0",
49+
"@sentry/types": "8.41.0"
5050
},
5151
"volta": {
5252
"extends": "../../package.json"

lerna.json

Lines changed: 1 addition & 1 deletion
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.40.0",
3+
"version": "8.41.0",
44
"npmClient": "yarn"
55
}

packages/angular/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/angular",
3-
"version": "8.40.0",
3+
"version": "8.41.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,9 +21,9 @@
2121
"rxjs": "^6.5.5 || ^7.x"
2222
},
2323
"dependencies": {
24-
"@sentry/browser": "8.40.0",
25-
"@sentry/core": "8.40.0",
26-
"@sentry/types": "8.40.0",
24+
"@sentry/browser": "8.41.0",
25+
"@sentry/core": "8.41.0",
26+
"@sentry/types": "8.41.0",
2727
"tslib": "^2.4.1"
2828
},
2929
"devDependencies": {

packages/astro/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/astro",
3-
"version": "8.40.0",
3+
"version": "8.41.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",
@@ -56,10 +56,10 @@
5656
"astro": ">=3.x || >=4.0.0-beta"
5757
},
5858
"dependencies": {
59-
"@sentry/browser": "8.40.0",
60-
"@sentry/core": "8.40.0",
61-
"@sentry/node": "8.40.0",
62-
"@sentry/types": "8.40.0",
59+
"@sentry/browser": "8.41.0",
60+
"@sentry/core": "8.41.0",
61+
"@sentry/node": "8.41.0",
62+
"@sentry/types": "8.41.0",
6363
"@sentry/vite-plugin": "^2.22.6"
6464
},
6565
"devDependencies": {

packages/aws-serverless/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/aws-serverless",
3-
"version": "8.40.0",
3+
"version": "8.41.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",
@@ -66,9 +66,9 @@
6666
"dependencies": {
6767
"@opentelemetry/instrumentation-aws-lambda": "0.44.0",
6868
"@opentelemetry/instrumentation-aws-sdk": "0.45.0",
69-
"@sentry/core": "8.40.0",
70-
"@sentry/node": "8.40.0",
71-
"@sentry/types": "8.40.0",
69+
"@sentry/core": "8.41.0",
70+
"@sentry/node": "8.41.0",
71+
"@sentry/types": "8.41.0",
7272
"@types/aws-lambda": "^8.10.62"
7373
},
7474
"devDependencies": {

packages/browser-utils/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-utils",
3-
"version": "8.40.0",
3+
"version": "8.41.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",
@@ -39,8 +39,8 @@
3939
"access": "public"
4040
},
4141
"dependencies": {
42-
"@sentry/core": "8.40.0",
43-
"@sentry/types": "8.40.0"
42+
"@sentry/core": "8.41.0",
43+
"@sentry/types": "8.41.0"
4444
},
4545
"scripts": {
4646
"build": "run-p build:transpile build:types",

packages/browser/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/browser",
3-
"version": "8.40.0",
3+
"version": "8.41.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",
@@ -39,15 +39,15 @@
3939
"access": "public"
4040
},
4141
"dependencies": {
42-
"@sentry-internal/browser-utils": "8.40.0",
43-
"@sentry-internal/feedback": "8.40.0",
44-
"@sentry-internal/replay": "8.40.0",
45-
"@sentry-internal/replay-canvas": "8.40.0",
46-
"@sentry/core": "8.40.0",
47-
"@sentry/types": "8.40.0"
42+
"@sentry-internal/browser-utils": "8.41.0",
43+
"@sentry-internal/feedback": "8.41.0",
44+
"@sentry-internal/replay": "8.41.0",
45+
"@sentry-internal/replay-canvas": "8.41.0",
46+
"@sentry/core": "8.41.0",
47+
"@sentry/types": "8.41.0"
4848
},
4949
"devDependencies": {
50-
"@sentry-internal/integration-shims": "8.40.0",
50+
"@sentry-internal/integration-shims": "8.41.0",
5151
"fake-indexeddb": "^4.0.1"
5252
},
5353
"scripts": {

packages/bun/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/bun",
3-
"version": "8.40.0",
3+
"version": "8.41.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",
@@ -39,10 +39,10 @@
3939
"access": "public"
4040
},
4141
"dependencies": {
42-
"@sentry/core": "8.40.0",
43-
"@sentry/node": "8.40.0",
44-
"@sentry/opentelemetry": "8.40.0",
45-
"@sentry/types": "8.40.0"
42+
"@sentry/core": "8.41.0",
43+
"@sentry/node": "8.41.0",
44+
"@sentry/opentelemetry": "8.41.0",
45+
"@sentry/types": "8.41.0"
4646
},
4747
"devDependencies": {
4848
"bun-types": "latest"

packages/cloudflare/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/cloudflare",
3-
"version": "8.40.0",
3+
"version": "8.41.0",
44
"description": "Official Sentry SDK for Cloudflare Workers and Pages",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/cloudflare",
@@ -39,8 +39,8 @@
3939
"access": "public"
4040
},
4141
"dependencies": {
42-
"@sentry/core": "8.40.0",
43-
"@sentry/types": "8.40.0"
42+
"@sentry/core": "8.41.0",
43+
"@sentry/types": "8.41.0"
4444
},
4545
"optionalDependencies": {
4646
"@cloudflare/workers-types": "^4.x"

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/core",
3-
"version": "8.40.0",
3+
"version": "8.41.0",
44
"description": "Base implementation 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/core",
@@ -39,7 +39,7 @@
3939
"access": "public"
4040
},
4141
"dependencies": {
42-
"@sentry/types": "8.40.0"
42+
"@sentry/types": "8.41.0"
4343
},
4444
"TODO(v9):": "Remove these dependencies",
4545
"devDependencies": {

0 commit comments

Comments
 (0)