JavaScript error handling tool for BugSnag. Monitor and report JavaScript bugs & errors.
MIT License
Published by bengourley over 4 years ago
Published by bengourley over 4 years ago
This update contains some substantial changes to plugin type definitions. If you are using TypeScript alongside a framework, you may need to make changes to your app. Please refer to the upgrade guide.
Published by bengourley over 4 years ago
Published by bengourley over 4 years ago
This major version contains substantial changes. Please also refer to the upgrade guide.
onBreadcrumb
and onSession
callbacks. #665
pauseSession()
and resumeSession()
methods to Client
#666
Bugsnag
client interface #685
getUser()
and setUser()
methods to Session
#692
autoNotify
-> autoDetectErrors
, and add enabledErrorTypes
option for granularity #706
autoCaptureSessions
-> autoTrackSessions
and simplify validation logic #647
report
to event
#646
notifyReleaseStages
-> enabledReleaseStages
#649
beforeSend
-> onError
, remove event.ignore()
and refactor callback logic #654
notify(err, opts?, cb?)
-> notify(err, onError?, cb?)
for a canonical way to update events #655
client
and event
and updated via get/set methods #657
enabledBreadcrumbTypes
, rename breadcrumb.{ name -> message, metaData -> metadata }
, and update leaveBreadcrumb()
type signature to be more explicit #650
metaData
-> metadata
and add consistent add/get/clearMetadata()
methods to Client
/Event
for manipulating metadata explicitly, rather than mutating a property #658
leaveBreadcrumb()
type signature to return void
. #661
notify()
to not accept events (they go via _notify()
instead). Consolidate Event
static methods into a single .create()
utility, used by all automatic error detection components. #664
Session
method trackError()
-> _track()
#675
Event
to support multiple errors #680
Client
, and get/set via getContext()/setContext()
#681
@bugsnag/safe-json-stringify
to replace redacted values with [REDACTED]
#683
collectUserIp
option to use [REDACTED]
instead of [NOT COLLECTED]
for consistency #743
setContext(null)
has been called #694
filters
option to redactedKeys
#704
device.modelName
to device.model
#726
client.refresh()
to client.resetEventCount()
#727
client.use(plugin)
has been removed and plugins must now be passed in to configuration #759
apiKey
) now falls back to default values rather than throwing an error #759
Published by bengourley over 4 years ago
NetInfo
have their versions locked #796
Note, alongside this release, additional patches were made to previous minor versions of @bugsnag/expo
: 6.5.3
and 6.4.4
. This is to ensure the correct version of NetInfo
is depended on for SDK versions 36 and 34 respectively.
Published by bengourley almost 5 years ago
Published by bengourley about 5 years ago
clientIp
and referer
are properly collected #617 (fixes #615)Published by bengourley about 5 years ago
@bugsnag/expo
#610
WebDriverException: Message: Permission denied to access property "handleEvent"
errors when running in selenium #605
error-stack-parser
to ensure spaces in filenames are parsed correctly #612
Published by bengourley over 5 years ago
Published by bengourley over 5 years ago
_restore()
function from output bundle which is only used in tests #533
ctx.throw()
errors #541
Published by bengourley over 5 years ago
This release adds @bugsnag/expo
, a notifier for use on React Native apps that are built using Expo.
A small internal change was made to facilitate this new notifier, but there are no changes required for existing users of documented APIs.
@bugsnag/expo
including a whole bunch of packages:
@bugsnag/delivery-expo
- Expo-specific delivery mechanism which caches on disk when a crash happens, or the network is not available@bugsnag/plugin-expo-app
- gathers app information@bugsnag/plugin-expo-device
- gathers device information@bugsnag/plugin-react-native-app-state-breadcrumbs
- collects breadcrumbs when the app transitions to the foreground/background@bugsnag/plugin-react-native-connectivity-breadcrumbs
- collects breadcrumbs when the state of the network changes@bugsnag/plugin-react-native-global-error-handler
- reports unhandled errors@bugsnag/plugin-react-native-orientation-breadcrumbs
- collects breadcrumbs when the device orientation changes@bugsnag/plugin-react-native-unhandled-rejection
- reports unhandled promise rejectionsclient
it is attached to on creation, and the sendReport
/sendSession
methods are no longer passed the logger
and config
objects which can be accesses on the client #489 (Note: this was an undocumented internal API)Published by bengourley over 5 years ago
Published by bengourley over 5 years ago
request
is no longer used for sending error reports and sessions. This results in a much smaller dependency footprint. If you were using the proxy
option or http(s)_proxy
environment variables you will need to update your implementation to pass in a proxy agent. See the proxy guide on our docs for more information.