Skip to content

Commit 6263271

Browse files
kamilogorekHazAT
authored andcommitted
fix: Events created from exception shouldnt have top-level message attribute (#1831)
1 parent eeab4c1 commit 6263271

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

CHANGELOG.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
# Changelog
22

3-
## Unreleased
3+
## v5
4+
5+
### Migration from v4
6+
7+
This major bump brings a lot of internal improvements. If you were using the SDK without any special abilities,
8+
basically, the way we describe it in the docs, you should be fine by just updating it. This is a **breaking** release
9+
since we removed some methods from the public API and removed some classes from the default export.
10+
11+
- **breaking** [node] fix: Events created from exception shouldn't have top-level message attribute
12+
- [utils] ref: Update wrap method to hide internal sentry flags
13+
- [utils] fix: Make internal Sentry flags non-enumerable in fill util
14+
- [utils] ref: Move `SentryError` + `PromiseBuffer` to utils
15+
- **breaking** [core] ref: Use `SyncPromise` internally, this reduces memory pressure by a lot.
16+
- **breaking** [browser] ref: Removed `BrowserBackend` from default export.
17+
- **breaking** [node] ref: Removed `BrowserBackend` from default export.
418

519
## 4.5.4
620

@@ -14,10 +28,10 @@
1428
## 4.5.3
1529

1630
- [browser]: fix: Fix UnhandledPromise: [object Object]
17-
- [core]: fix: Error in extraErrorData integration where event would not be send in case of non assignable object property.
31+
- [core]: fix: Error in extraErrorData integration where event would not be send in case of non assignable object
32+
property.
1833
- [hub]: feat: Support non async event processors
1934

20-
2135
## 4.5.2
2236

2337
- [utils] fix: Decycling for objects to no produce an endless loop

packages/node/src/parsers.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,11 @@ export async function getExceptionFromError(error: Error, options?: NodeOptions)
235235

236236
/** JSDoc */
237237
export async function parseError(error: ExtendedError, options?: NodeOptions): Promise<SentryEvent> {
238-
const name = error.name || error.constructor.name;
239238
const exception = await getExceptionFromError(error, options);
240239
return {
241240
exception: {
242241
values: [exception],
243242
},
244-
message: `${name}: ${error.message || '<no message>'}`,
245243
};
246244
}
247245

0 commit comments

Comments
 (0)