|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## 5.0.0 |
| 4 | + |
| 5 | +This major bump brings a lot of internal improvements. Also we extracted some integrations out of their packages and put |
| 6 | +them in their own package called `@sentry/integrations`. For a detailed guide how to upgrade from `4.x` to `5.x` |
| 7 | +consider our [migration guide](https://github.com/getsentry/sentry-javascript/blob/master/MIGRATION.md). |
| 8 | + |
| 9 | +**Migration from v4** |
| 10 | + |
| 11 | +If you were using the SDK without any special abilities, basically, the way we describe it in the docs, you should be |
| 12 | +fine by just updating it. This is a **breaking** release since we removed some methods from the public API and removed |
| 13 | +some classes from the default export. |
| 14 | + |
| 15 | +- **breaking** [node] fix: Events created from exception shouldn't have top-level message attribute |
| 16 | +- [utils] ref: Update wrap method to hide internal sentry flags |
| 17 | +- [utils] fix: Make internal Sentry flags non-enumerable in fill utils |
| 18 | +- [utils] ref: Move `SentryError` + `PromiseBuffer` to utils |
| 19 | +- **breaking** [core] ref: Use `SyncPromise` internally, this reduces memory pressure by a lot. |
| 20 | +- ref: Move internal `ExtendedError` to a types package |
| 21 | +- **breaking** [browser] ref: Removed `BrowserBackend` from default export. |
| 22 | +- **breaking** [node] ref: Removed `BrowserBackend` from default export. |
| 23 | +- **breaking** [core] feat: Disable client once flushed using `close` method |
| 24 | +- **breaking** [core] ref: Pass `Event` to `sendEvent` instead of already stringified data |
| 25 | +- [utils] feat: Introduce `isSyntheticEvent` util |
| 26 | +- **breaking** [utils] ref: remove `isArray` util in favor of `Array.isArray` |
| 27 | +- **breaking** [utils] ref: Remove `isNaN` util in favor of `Number.isNaN` |
| 28 | +- **breaking** [utils] ref: Remove `isFunction` util in favor of `typeof === 'function'` |
| 29 | +- **breaking** [utils] ref: Remove `isUndefined` util in favor of `=== void 0` |
| 30 | +- **breaking** [utils] ref: Remove `assign` util in favor of `Object.assign` |
| 31 | +- **breaking** [utils] ref: Remove `includes` util in favor of native `includes` |
| 32 | +- **breaking** [utils] ref: Rename `serializeKeysToEventMessage` to `keysToEventMessage` |
| 33 | +- **breaking** [utils] ref: Rename `limitObjectDepthToSize` to `normalizeToSize` and rewrite its internals |
| 34 | +- **breaking** [utils] ref: Rename `safeNormalize` to `normalize` and rewrite its internals |
| 35 | +- **breaking** [utils] ref: Remove `serialize`, `deserialize`, `clone` and `serializeObject` functions |
| 36 | +- **breaking** [utils] ref: Rewrite normalization functions by removing most of them and leaving just `normalize` and |
| 37 | + `normalizeToSize` |
| 38 | +- **breaking** [core] ref: Extract all pluggable integrations into a separate `@sentry/integrations` package |
| 39 | +- **breaking** [core] ref: Move `extraErrorData` integration to `@sentry/integrations` package |
| 40 | +- [core] feat: Add `maxValueLength` option to adjust max string length for values, default is 250. |
| 41 | +- [hub] feat: Introduce `setExtras`, `setTags`, `clearBreadcrumbs`. |
| 42 | +- **breaking** [all] feat: Move `Mechanism` to `Exception` |
| 43 | +- [browser/node] feat: Add `synthetic` to `Mechanism` in exception. |
| 44 | +- [browser/node] fix: Use `addExceptionTypeValue` in helpers |
| 45 | +- [browser] ref: Remove unused TraceKit code |
| 46 | +- **breaking** [all] build: Expose `module` in `package.json` as entry point for esm builds. |
| 47 | +- **breaking** [all] build: Use `es6` target instead of esnext for ESM builds |
| 48 | +- [all] feat: Prefix all private methods with `_` |
| 49 | +- [all] build: Use terser instead of uglify |
| 50 | +- [opentracing] feat: Introduce `@sentry/opentracing` providing functions to attach opentracing data to Sentry Events |
| 51 | +- **breaking** [core] ref: `Dedupe` Integration is now optional, it is no longer enabled by default. |
| 52 | +- **breaking** [core] ref: Removed default client fingerprinting for messages |
| 53 | +- [node] ref: Remove stack-trace dependencies |
| 54 | +- **breaking** [core] ref: Transport function `captureEvent` was renamed to `sendEvent` |
| 55 | +- [node] fix: Check if buffer isReady before sending/creating Promise for request. |
| 56 | +- [browser] fix: Remove beacon transport. |
| 57 | +- [browser] fix: Don't mangle names starting with two `__` |
| 58 | +- [utils] fix: Ensure only one logger instance |
| 59 | +- [node] feat: Add esm build |
| 60 | +- [integrations] feat: Fix build and prepare upload to cdn |
| 61 | +- [integrations] fix: Bug in vue integration with `attachProps` |
| 62 | +- **breaking** [core] ref: Remove SDK information integration |
| 63 | +- **breaking** [core] ref: Remove `install` function on integration interface |
| 64 | + |
3 | 65 | ## 5.0.0-rc.4
|
4 | 66 |
|
5 | 67 | - [node] feat: Add esm build
|
@@ -74,6 +136,7 @@ since we removed some methods from the public API and removed some classes from
|
74 | 136 | - **breaking** [core] ref: `Dedupe` Integration is now optional, it is no longer enabled by default.
|
75 | 137 | - **breaking** [core] ref: Removed default client fingerprinting for messages
|
76 | 138 | - [node] ref: Remove stack-trace dependencies
|
| 139 | +- **breaking** [core] ref: Transport function `captureEvent` was renamed to `sendEvent` |
77 | 140 |
|
78 | 141 | ## 4.6.4
|
79 | 142 |
|
|
0 commit comments