Packages

@sentry/typescript

11.10.0 · 28 Oct 2026MIT12.2k / weekRepositoryHomepagenpmAtom feed

Your version

5.0.0

major1 Apr 2019Where it was published

5.20.1 is the newest release of 5.x.

In short

27 breaking8 new7 fixed6 internal

  • breaking

    breaking [node] fix: Events created from exception shouldn't have top-level message attribute

  • breaking

    breaking [core] ref: Use SyncPromise internally, this reduces memory pressure by a lot.

  • breaking

    breaking [browser] ref: Removed BrowserBackend from default export.

  • breaking

    breaking [node] ref: Removed BrowserBackend from default export.

  • breaking

    breaking [core] feat: Disable client once flushed using close method

  • breaking

    breaking [core] ref: Pass Event to sendEvent instead of already stringified data

  • breaking

    breaking [utils] ref: remove isArray util in favor of Array.isArray

  • breaking

    breaking [utils] ref: Remove isNaN util in favor of Number.isNaN

Release note

This major bump brings a lot of internal improvements. Also, we extracted some integrations out of the SDKs and put them
in their own package called @sentry/integrations. For a detailed guide how to upgrade from 4.x to 5.x refer to our migration guide.

Migration from v4

If you were using the SDKs high level API, the way we describe it in the docs, you should be fine without any code
changes. This is a breaking release since we removed some methods from the public API and removed some classes from
the default export.

  • breaking

    breaking [node] fix: Events created from exception shouldn't have top-level message attribute

  • Make internal Sentry flags non-enumerable in fill utils

  • breaking

    breaking [core] ref: Use SyncPromise internally, this reduces memory pressure by a lot.

  • breaking

    breaking [browser] ref: Removed BrowserBackend from default export.

  • breaking

    breaking [node] ref: Removed BrowserBackend from default export.

  • breaking

    breaking [core] feat: Disable client once flushed using close method

  • breaking

    breaking [core] ref: Pass Event to sendEvent instead of already stringified data

  • Introduce isSyntheticEvent util

  • breaking

    breaking [utils] ref: remove isArray util in favor of Array.isArray

  • breaking

    breaking [utils] ref: Remove isNaN util in favor of Number.isNaN

  • breaking

    breaking [utils] ref: Remove isFunction util in favor of typeof === 'function'

  • breaking

    breaking [utils] ref: Remove isUndefined util in favor of === void 0

  • breaking

    breaking [utils] ref: Remove assign util in favor of Object.assign

  • breaking

    breaking [utils] ref: Remove includes util in favor of native includes

  • breaking

    breaking [utils] ref: Rename serializeKeysToEventMessage to keysToEventMessage

  • breaking

    breaking [utils] ref: Rename limitObjectDepthToSize to normalizeToSize and rewrite its internals

  • breaking

    breaking [utils] ref: Rename safeNormalize to normalize and rewrite its internals

  • breaking

    breaking [utils] ref: Remove serialize, deserialize, clone and serializeObject functions

  • breaking

    breaking [utils] ref: Rewrite normalization functions by removing most of them and leaving just normalize and
    normalizeToSize

  • breaking

    breaking [core] ref: Extract all pluggable integrations into a separate @sentry/integrations package

  • breaking

    breaking [core] ref: Move extraErrorData integration to @sentry/integrations package

  • Add maxValueLength option to adjust max string length for values, default is 250.

  • Introduce setExtras, setTags, clearBreadcrumbs.

  • breaking

    breaking [all] feat: Move Mechanism to Exception

  • Add synthetic to Mechanism in exception.

  • Use addExceptionTypeValue in helpers

  • breaking

    breaking [all] build: Expose module in package.json as entry point for esm builds.

  • breaking

    breaking [all] build: Use es6 target instead of esnext for ESM builds

  • Prefix all private methods with _

  • Introduce @sentry/opentracing providing functions to attach opentracing data to Sentry Events

  • breaking

    breaking [core] ref: Dedupe Integration is now optional, it is no longer enabled by default.

  • breaking

    breaking [core] ref: Removed default client fingerprinting for messages

  • breaking

    breaking [core] ref: Transport function captureEvent was renamed to sendEvent

  • Check if buffer isReady before sending/creating Promise for request.

  • Remove beacon transport.

  • Don't mangle names starting with two __

  • Ensure only one logger instance

  • Add esm build

  • Fix build and prepare upload to cdn

  • Bug in vue integration with attachProps

  • breaking

    breaking [core] ref: Remove SDK information integration

  • breaking

    breaking [core] ref: Remove install function on integration interface

  • Add esm build

  • Fix build and prepare upload to cdn

  • Bug in vue integration with attachProps