Releases: getsentry/sentry-javascript
Releases · getsentry/sentry-javascript
4.6.5
5.0.0-beta1
Migration from v4
This major bump brings a lot of internal improvements. If you were using the SDK without any special abilities,
basically, the way we describe it in the docs, you should be fine by just updating it. This is a breaking release
since we removed some methods from the public API and removed some classes from the default export.
- breaking [node] fix: Events created from exception shouldn't have top-level message attribute
- [utils] ref: Update wrap method to hide internal sentry flags
- [utils] fix: Make internal Sentry flags non-enumerable in fill utils
- [utils] ref: Move
SentryError+PromiseBufferto utils - breaking [core] ref: Use
SyncPromiseinternally, this reduces memory pressure by a lot. - breaking [browser] ref: Removed
BrowserBackendfrom default export. - breaking [node] ref: Removed
BrowserBackendfrom default export. - breaking [core] feat: Disable client once flushed using
closemethod - ref: Move internal
ExtendedErrorto a types package - breaking [core] ref: Pass
EventtosendEventinstead of already stringified data - [utils] feat: Introduce
isSyntheticEventutil - breaking [utils] ref: remove
isArrayutil in favor ofArray.isArray - breaking [utils] ref: Remove
isNaNutil in favor ofNumber.isNaN - breaking [utils] ref: Remove
isFunctionutil in favor oftypeof === 'function' - breaking [utils] ref: Remove
isUndefinedutil in favor of=== void 0 - breaking [utils] ref: Remove
assignutil in favor ofObject.assign - breaking [utils] ref: Remove
includesutil in favor of nativeincludes - breaking [utils] ref: Rename
serializeKeysToEventMessagetokeysToEventMessage - breaking [utils] ref: Rename
limitObjectDepthToSizetonormalizeToSizeand rewrite its internals - breaking [utils] ref: Rename
safeNormalizetonormalizeand rewrite its internals - breaking [utils] ref: Remove
serialize,deserialize,cloneandserializeObjectfunctions - breaking [utils] ref: Rewrite normalization functions by removing most of them and leaving just
normalizeand
normalizeToSize - breaking [core] ref: Extract all pluggable integrations into a separate
@sentry/integrationspackage - breaking [core] ref: Move
extraErrorDataintegration to@sentry/integrationspackage - [core] feat: Add
maxValueLengthoption to adjust max string length for values, default is 250. - [hub] feat: Introduce
setExtras,setTags,clearBreadcrumbs. - breaking [all] feat: Move
MechanismtoException - [browser/node] feat: Add
synthetictoMechanismin exception. - [browser/node] fix: Use
addExceptionTypeValuein helpers - [browser] ref: Remove unused TraceKit code
- breaking [all] build: Expose
moduleinpackage.jsonas entry point for esm builds. - breaking [all] build: Use
es6target instead of esnext for ESM builds - [all] feat: Prefix all private methods with
_ - [all] build: Use terser instead of uglify
- [opentracing] feat: Introduce
@sentry/opentracingproviding functions to attach opentracing data to Sentry Events - breaking [core] ref:
DedupeIntegration is now optional, it is no longer enabled by default. - breaking [core] ref: Removed default client fingerprinting for messages
- [node] ref: Remove stack-trace dependencies
4.6.4
- [utils] fix: Prevent decycling from referencing original objects
- [utils] fix: Preserve correct name when wrapping
- [raven-node] test: Update raven-node tests for new node version
4.6.3
- [utils] fix: Normalize value before recursively walking down the tree
- [browser] ref: Check whether client is enabled for reportDialog and log instead of throw
4.6.2
- [utils] fix: Preserve function prototype when filling
- [utils] fix: use a static object as fallback of the global object
- [node] feat: Read from
SENTRY_RELEASEandSENTRY_ENVIRONMENTif present
4.6.1
- [utils] fix: Patch
tslib_1__defaultregression and add additional tests around it
4.6.0
- [loader] fix: Detect if
inithas been called in an onload callback - [core] fix: Use correct frame for
inboundFiltermethods - [core] ref: Multiple
initcalls have been changed to "latest wins" instead of "ignore all after first" - [core] feat: Introduce
flushmethod which currently is an alias forclose - [node] feat: If
options.dsnis undefined when callinginitwe try to load it fromprocess.env.SENTRY_DSN - [node] feat: Expose
flushandcloseonSentry.* - [node] feat: Add
sentryto express error handler response which contains theevent_idof the error
4.5.4
- [browser] fix:
DOMErrorandDOMExceptionshould be error level events - [browser] ref: Log error if Ember/Vue instances are not provided
- [utils] fix: Dont mutate original input in
decycleutil function - [utils] fix: Skip non-enumerable properties in
decycleutil function - [utils] ref: Update
wrapmethod to hide internal Sentry flags - [utils] fix: Make internal Sentry flags non-enumerable in
fillutil