Skip to content

Commit 4f9a568

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

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
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.6.4
620

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)