Releases: arabold/serverless-sentry-lib
Releases · arabold/serverless-sentry-lib
v2.5.2
v2.5.1
v2.5.0
v2.4.0
v2.3.0
- Override existing
unhandledRejection
anduncaughtException
listeners whencaptureUnhandledRejections
orcaptureUncaughtExceptions
are enabled and invoke them after we handled them. At the same time we disable Sentry's default integrations for both to avoid duplicate reporting. This works around a custom listener registered by AWS Lambda internally that prevents proper automatic handling with Sentry. Thanks to ffxsam for reporting the original issue. By updating the execution order of the listeners we keep side effects to a minimum. Please report back if you encounter any weird or unexpected behavior! - Upgraded all dependencies, use Typescript 4.0
v2.2.0
- Reset the scope on every Lambda start (if no custom Sentry client instance is used). This should avoid breadcrumbs and extras from previous runs "bleed" into subsequent Lambda invocations. Thanks to demsey2 for reporting the original issue.
- Added a new
flushTimeout
option to control how long we want to wait for data being written to Sentry before the Lambda shuts down or between invocations. - Deprecated
captureMemoryWarnings
andcaptureTimeoutWarnings
in favor of new optionscaptureMemory
andcaptureTimeouts
which allow more customization. Thanks to keanolane for suggesting of custom timeouts. This only affects users invokingwithSentry
with custom options. If you're usingserverless-sentry-plugin
to set all options you won't have to change anything. - Fixed an issue with custom tags, extras and user traits not being set when passed as options to
withSentry
. Thanks to blelump for reporting and providing a pull request.
v2.0.0
- Rewrite using TypeScript. The use of TypeScript in your project is fully optional, but if you do, we got you covered!
- Added new default uncaught exception handler.
- Dropped support for Node.js 6 and 8. The only supported versions are Node.js 10 and 12.
- Upgrade from Sentry SDK
raven
to the Unified Node.js SDK@sentry/node
. - Simplified integration using
withSentry
higher order function. Passing the Sentry instance is now optional. - Thank you @aheissenberger and @Vadorequest for their contributions to this release! 🤗
v2.0.0-rc.1
- Changed code generation to ES5 with
commonjs
for better compatibility with legacy code
v2.0.0-rc.0
0- Rewrite using TypeScript. The use of TypeScript in your project is fully optional, but if you do, we got you covered!
- Dropped support for Node.js 6 and 8. The only supported versions are Node.js 10 and 12.
- Upgrade from sentry SDK
raven
to new Unified Node.js SDK@sentry/node
⚠️ ravenClient is now sentryClient⚠️ remove global sls_sentry for backward compatibility with oldserverless-sentry-plugin 0.2.x/0.3.x- Thank you @aheissenberger and @Vadorequest for their contributions to this release! 🤗