Open agrzegorzewski opened 17 hours ago
@bugsnag/browser
bundle size diffMinified | Minfied + Gzipped | |
---|---|---|
Before | 45.89 kB |
13.78 kB |
After | 45.89 kB |
13.78 kB |
± | No change | No change |
Generated by :no_entry_sign: dangerJS against 5c92566dadae052f2b515be90f98ee35d7edcfcb
Goal
The
setUser
method in the notifier can take null as a parameter to clear the value from the user object. The current TypeScript interface only allows forstring | undefined
, which causes type errors when trying to pass null as a parameter.BugSnag documentation mentions passing null to
setUser
as a possibility.Design
The type definition has been updated to accurately reflect the capabilities od the notifier.
Changeset
The type definition for
setUser
's arguments has been extended fromid?: string
toid?: string | null
.Testing
The change was tested manually.