Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

Releases: pburtchaell/react-notification

Version 6.8.5

05 Nov 17:06
3eca28f
Compare
Choose a tag to compare
  • Fixes a bug with the action prop type to allow all types

Version 6.8.4

24 Aug 17:00
758fb74
Compare
Choose a tag to compare
  • Adds new TypeScript definitions.
  • Fixes installation error from the generate-lockfile npm script.
  • Updates examples to use Parcel.
  • Improves ESLint support for future versions (yet disabled for current version).

Version 6.8.3

18 Aug 16:51
Compare
Choose a tag to compare

Updates Typescript definitions.

Edit:
This release is deprecated due to an installation error. Please use v6.8.4.

Version 6.8.2

10 Oct 21:22
Compare
Choose a tag to compare

Adds TS definitions, thanks to @corydeppen.

Version 6.8.1

08 Oct 13:29
Compare
Choose a tag to compare

Adds support for React version 16.

Version 6.7.1

23 Jun 23:21
Compare
Choose a tag to compare

Adds support for using React elements as the title.

Version 6.7.0

10 May 01:10
Compare
Choose a tag to compare

This release enhances custom styles by passing the notification object as a parameter to barStyleFactory and activeBarStyleFactory.

This will enable you to add custom styles to different notifications—useful if you have to style different notification "types" with different colors, for example.

function defaultStyleFactory(index, style, notification) {
    return Object.assign(
      ....
    );
}

Version 6.6.2

07 May 14:57
Compare
Choose a tag to compare

Removes react-addons-test-utils from dependencies, which was erroneously added in version 6.6.1.

Version 6.6.1

17 Apr 15:04
Compare
Choose a tag to compare

Adds prop-types package as dependency, as per the discussion here.

Version 6.6.0

21 Dec 18:08
Compare
Choose a tag to compare

Changes to dismissAfter on notification

Perviously, if dismissAfter was set to false, it was impossible to switch the value back to a number and automatically dismiss the notification after timeout. Now, it is possible to set dismissAfter to a number after it was set to false.

Thanks to @kof for implementing this feature in #108. 🎉

onClick can be added to notification stack

Previously, onClick could only be fired locally for each component. Now, it is possible to have one global onClick handler on the notification stack itself. This handler will be called for each clicked notification.

Thanks to @Gargron for writing the initial code for this feature in #97. 🎉