v4.0.0
Breaking Changes
Exporting 3 components (AlertList, Alert, & AlertContainer) now instead of the original one default AlertList component.
If you were previously doing this:
import AlertList from "react-bs-notifier";You should now do this:
import { AlertList } from "react-bs-notifier";See the docs for more info on how to use the new Alert & AlertContainer components.
An onDismiss function is now required if you want the alert to be dismissable. Previously, the component would manage a separate copy of the alerts in its internal state if you didn't pass an onDismiss. It now will simply render the alert as undismissable if you don't pass the function. See the docs for more info.
Bug Fixes
Fixing issues with the AlertList leaking memory with too many alerts due to not cleaning up timeouts.