Skip to content

v4.0.0

Choose a tag to compare

@chadly chadly released this 19 Oct 21:53
· 58 commits to master since this release

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.