Skip to content

Commit 66cfb25

Browse files
authored
Merge pull request #20838 from getsentry/prepare-release/10.53.1
meta(changelog): Update changelog for 10.53.1
2 parents 46aca45 + df8fd38 commit 66cfb25

15 files changed

Lines changed: 578 additions & 648 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@
44

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

7+
## 10.53.1
8+
9+
- fix(core): Don't gate user data for streamed spans at scope read time ([#20827](https://github.com/getsentry/sentry-javascript/pull/20827))
10+
- fix(core): Include subpath type shims in published package ([#20835](https://github.com/getsentry/sentry-javascript/pull/20835))
11+
- ref(hono): Consolidate route patching and add clarification comments ([#20829](https://github.com/getsentry/sentry-javascript/pull/20829))
12+
13+
<details>
14+
<summary> <strong>Internal Changes</strong> </summary>
15+
16+
- chore(deps): Bump next from 15.5.15 to 15.5.18 in /dev-packages/e2e-tests/test-applications/nextjs-15-intl ([#20821](https://github.com/getsentry/sentry-javascript/pull/20821))
17+
18+
</details>
19+
720
## 10.53.0
821

922
### Important Changes

dev-packages/e2e-tests/test-applications/nextjs-15-intl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@types/node": "^18.19.1",
1616
"@types/react": "18.0.26",
1717
"@types/react-dom": "18.0.9",
18-
"next": "15.5.15",
18+
"next": "15.5.18",
1919
"next-intl": "^4.3.12",
2020
"react": "latest",
2121
"react-dom": "latest",

packages/core/browser.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// This file is a compatibility shim for TypeScript compilers that do not
2+
// support the package.json `exports` field for resolving subpath exports.
3+
// Note: `typesVersions` in package.json may redirect this to the downleveled variant.
4+
export * from './build/types/browser';

packages/core/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"files": [
1313
"/build",
1414
"browser.js",
15-
"server.js"
15+
"browser.d.ts",
16+
"server.js",
17+
"server.d.ts"
1618
],
1719
"main": "build/cjs/index.js",
1820
"module": "build/esm/index.js",
@@ -54,6 +56,12 @@
5456
"<5.0": {
5557
"build/types/index.d.ts": [
5658
"build/types-ts3.8/index.d.ts"
59+
],
60+
"browser": [
61+
"build/types-ts3.8/browser.d.ts"
62+
],
63+
"server": [
64+
"build/types-ts3.8/server.d.ts"
5765
]
5866
}
5967
},

packages/core/server.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// This file is a compatibility shim for TypeScript compilers that do not
2+
// support the package.json `exports` field for resolving subpath exports.
3+
// Note: `typesVersions` in package.json may redirect this to the downleveled variant.
4+
export * from './build/types/server';

packages/core/src/semanticAttributes.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ export const SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME = 'sentry.sdk.name';
5353
/** The version of the Sentry SDK */
5454
export const SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION = 'sentry.sdk.version';
5555

56-
/** The user ID (gated by sendDefaultPii) */
56+
/** The user ID */
5757
export const SEMANTIC_ATTRIBUTE_USER_ID = 'user.id';
58-
/** The user email (gated by sendDefaultPii) */
58+
/** The user email */
5959
export const SEMANTIC_ATTRIBUTE_USER_EMAIL = 'user.email';
60-
/** The user IP address (gated by sendDefaultPii) */
60+
/** The user IP address */
6161
export const SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS = 'user.ip_address';
62-
/** The user username (gated by sendDefaultPii) */
62+
/** The user username */
6363
export const SEMANTIC_ATTRIBUTE_USER_USERNAME = 'user.name';
6464

6565
/**

packages/core/src/tracing/spans/captureSpan.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function applyCommonSpanAttributes(
125125
scopeData: ScopeData,
126126
): void {
127127
const sdk = client.getSdkMetadata();
128-
const { release, environment, sendDefaultPii } = client.getOptions();
128+
const { release, environment } = client.getOptions();
129129

130130
// avoid overwriting any previously set attributes (from users or potentially our SDK instrumentation)
131131
safeSetSpanJSONAttributes(spanJSON, {
@@ -135,14 +135,10 @@ function applyCommonSpanAttributes(
135135
[SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID]: serializedSegmentSpan.span_id,
136136
[SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME]: sdk?.sdk?.name,
137137
[SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION]: sdk?.sdk?.version,
138-
...(sendDefaultPii
139-
? {
140-
[SEMANTIC_ATTRIBUTE_USER_ID]: scopeData.user?.id,
141-
[SEMANTIC_ATTRIBUTE_USER_EMAIL]: scopeData.user?.email,
142-
[SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]: scopeData.user?.ip_address,
143-
[SEMANTIC_ATTRIBUTE_USER_USERNAME]: scopeData.user?.username,
144-
}
145-
: {}),
138+
[SEMANTIC_ATTRIBUTE_USER_ID]: scopeData.user?.id,
139+
[SEMANTIC_ATTRIBUTE_USER_EMAIL]: scopeData.user?.email,
140+
[SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]: scopeData.user?.ip_address,
141+
[SEMANTIC_ATTRIBUTE_USER_USERNAME]: scopeData.user?.username,
146142
...scopeData.attributes,
147143
});
148144
}

0 commit comments

Comments
 (0)