- Add missing
app
properties to session payload (#150)
- Make updated types compatible with
noImplicitAny
option (#147) (@jacobwgillespie)
- TypeScript definitions updated to match current configuration options (#144) (@amrocha)
Note: this release alters the behaviour of the notifier to track sessions automatically.
As part of this change, the way in which URLs are configured has been updated:
- useSSL: true,
- notifyHost: 'bugsnag-notify.example.com',
- notifyPort: 9876
- notifyPath: '/payloads'
- sessionEndpoint: 'https://bugsnag-sessions.example.com',
+ endpoints: {
+ notify: 'https://bugsnag-notify.example.com:9876/payloads',
+ sessions: 'https://bugsnag-sessions.example.com'
+ }
useSSL
, notifyHost
, notifyPort
, notifyPath
and sessionEndpoint
are now deprecated but still supported. Note that session tracking will be disabled if the notify endpoint is configured but the sessions endpoint is not – this is to avoid inadvertently sending session payloads to the wrong server.
- Unit tests have been added for
lib/configuration.js
(#143)
autoCaptureSessions
default value wasfalse
and is now true (#143)- The interval used to send periodic session summaries now has
unref()
called on it, to avoid keeping a process running that would otherwise terminate (#143)
useSSL
,notifyHost
,notifyPort
,notifyPath
andsessionEndpoint
have been deprecated and combined into a single new option:endpoints
(#143)
- Support configuration of appType #139, fixes #126
- Improve logging clarity for unhandled exceptions #137
- Improve serialization of class-based data structures which expose a
.toJSON()
method #134
- Apply
Configuation.filters
to all aspects of the payload that can contain custom data #131
- Don't call
req.connection.address()
inrequestInfo()
if it's not available (to support express-likeserverless-http
framework) Julien Guépin #132
- Reverted a payload change which made the notifier not backwards compatible with older versions of Bugsnag On-premise #128
- Migrate option name
sessionTrackingEnabled
->autoCaptureSessions
for consistency with other notifiers - Session reporting now respects the
notifyReleaseStages
and will only send if error reports will
- The runtime dependency "backo" was in
devDependencies
in package.json. It has been moved todependencies
(fixes #125).
- Support for tracking sessions and overall crash rate of web requests by setting
sessionTrackingEnabled
totrue
.
- Prevent duplicate logging when uncaught error report is not delivered (#124)
- Fix type annotations Dan Prince. #118
- Fix
autoNotifyUnhandledRejection
option
- Handle
process#unhandledRejection
by default. (#115) - Added support for detecting whether an error was handled or unhandled. (#116)
Bugsnag will shut down your process after reporting a process#unhandledRejection
event. This is the most sensible thing to do by default, and it will become the
default behaviour of a node process in the near future. However this is a breaking
change for the module, hence the major/breaking version bump.
If you want to do something else when process#unhandledRejection
happens, you
can set options.autoNotifyUnhandledRejection=false
.
- Stop swallowing errors when
shouldNotify() == false
Alex Moinet #113
-
Improved performance during filtering Patrick Lorio #106
-
Show metadata elements removed within circular reference checking as
[REDACTED]
#108 -
Add support for passing per-request metadata in Koa Jacob Marshall
-
Allow newer versions of
stack-trace
dependency Kevin Glowacz #100
- Update
request
minimum version to fixtunnel-agent
vulnerability Jacob Marshall #105
- Add the error which caused a report to be generated as a parameter to
beforeNotifyCallbacks
. #101 #103
- Add typescript definitions Iker Pérez Brunelli #97
- Fix premature return in configure, leading to
sendCode
not being updated Jacob Marshall #92
- Added
createErrorHandler
andcreateRequestHandler
express middleware factories Jonathan Samines #88
- Add option to set custom headers #83
- Use
error.name
instead oferror.constructor.name
where available Jyrki Laurila #77 - Invoke notify callback with errors Jacob Marshall #80
- Fix setting default project root when
require.main.filename
does not exist - Clone objects before filtering to avoid modifying referenced objects Percy Hatcherson #82
- Remove duplicated scrubbed metadata from request payloads #72
- Relax
request
andpromise
dependency requirements to allow patched updates Jakub Pawlowicz #70 #71
- Added support for sending code snippets Jacob Marshall #65 #67
- Fix for accidental global variables.
- Koa support
- Fix objectClone's use of obj.constructor
- Fix user.id coming in through requestData
- Expose bugsnag.requestData
- Support for hostname on more recent versions of express
- Fix out of memory error caused by bugsnag.requestHandler
- Convert source code to js
- Support for Bugsnag.onBeforeNotify
- Support for passing apiKey to notify
- Send correct content-length with utf8 strings
- Allow use of a proxy when communicating with bugsnag
- Don't send appVersion automatically
- Push yanked version
- Allow the filters to be configured
- Fix bug where null errors could cause bugsnag not to notify
- Fix iis issues on windows
- Detect oauth caused by errors
- Send 'severity' of error to Bugsnag
- Add 'payloadVersion'
- Add restify support
- Send hostname to Bugsnag
- Fix require.main.filename crash when requiring bugsnag from within cli.
- To allow groupingHash to be configured by users to change grouping programmatically.
- Fix node 0.8 bug where error.domainThrown is not supported.
- Fix bug with onUncaughtException not pulled from options properly
- Improve query string and express app processing.
- Exit on fatal errors by default, and allow people more control, by using onUncaughtError
- Protect against adding multiple uncaught error handlers
- Detect circular object references and deal with them before notifying bugsnag
- Complete rewrite using domains to track requests and other metadata.
- Change default notifyReleaseStages to notify in "development" as well as "production" by default.
- Execute onUncaughtErrorHandler in the callback from notifyBugsnag, in case exit is called in the handler.