All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
3.0.0 (2017-10-28)
- index.js: export components (b702c2a)
- package.json: add
dom-helpers
to dependencies (66cb57f) - package.json: drop support for
react@^0.14
(e5fa767) - package.json: remove unused dependencies (fbe75e1)
- ToastContainer: rewrite (a3cd015)
- ToastMessage: rewrite (b8a3b29)
- ToastMessageAnimated: rewrite (9469454)
- ToastMessagejQuery: rewrite (f239dee)
- index.js: named exports changes for ToastMessage
Before:
import { ToastContainer, ToastMessage } from "react-toastr"
const ToastMessageFactory = React.createFactory(ToastMessage.animation);
const jQueryFactory = React.createFactory(ToastMessage.jQuery);
<ToastContainer toastMessageFactory={ToastMessageFactory} />
<ToastContainer toastMessageFactory={jQueryFactory} />
After:
import { ToastContainer, ToastMessageAnimated } from "react-toastr"
import ToastMessagejQuery from "react-toastr/lib/components/ToastMessage/ToastMessagejQuery";
const ToastMessageFactory = React.createFactory(ToastMessageAnimated);
const jQueryFactory = React.createFactory(ToastMessagejQuery);
<ToastContainer toastMessageFactory={ToastMessageFactory} />
<ToastContainer toastMessageFactory={jQueryFactory} />
2.9.5 (2017-10-06)
- package.json: keep peerDependencies for
react@^0.14.0
(eecf97f)
2.9.4 (2017-09-30)
2.9.3 (2017-08-23)
2.9.2 (2017-08-21)
2.9.1 (2017-08-21)
2.9.0 (2017-08-21)
- eslint warnings (2687c92)
- package.json: add
prop-types
andcreate-react-class
to dependencies (ee7d307), closes #94 #95 #97 - ToastContainer: switch to
prop-types
(1aac987), closes #94 - ToastMessage: switch to
create-react-class
(49aa141), closes #95
2.8.2 (2016-11-09)
2.8.1 (2016-09-21)
2.8.0 (2016-08-01)
2.7.0 (2016-06-14)
2.6.2 (2016-05-31)
2.6.1 (2016-04-28)
- package.json: make react and react-dom support both @^0.14.0 and @^15.0.0 (394ef07)
(Unpublished) 2.6.0 (2016-04-26)
- #49: react@^15.0.0 is required
- package.json: update to react@^15.0.0 (6d7e8a8)
2.4.0 (2016-01-28)
- package.json: bump dependencies (d74c217)
- ToastMessage: replace fbjs dependency with element-class (97c171b)
2.3.1 (2016-01-19)
2.3.0 (2016-01-03)
- package.json: bump fbjs to ^0.6.0 (ae96bee)
2.2.4 (2015-12-10)
- ToastContainer: add default value for optionsOverride (14f953a)
2.2.3 (2015-12-10)
2.2.2 (2015-11-02)
UNPLUBISHED FROM NPM 2.2.1 (2015-11-02)
This version has been unpublished from npm. The Bug Fixes here still applied but Features are removed. See #42.
- package.json: added react-dom as dependency (18c58d0), closes #41
- ToastMessage: use ReactDOM.findDOMNode instead of this.getDOMNode (d4f40b3)
- src: ES2015 (96aa073)
- ToastContainer: ES2015 (dce1279)
- ToastMessage: ES2015 + props naming convention changed (69c23db)
- ToastMessage.animation: ES2015 (69dbd7e)
- ToastMessage.jQuery: ES2015 + require jQuery as dependency (e0ff62b)
- ToastMessageList: add pure component to wrap toast list (db9fee6)
- ToastMessage: Props naming convention changed
Before: type,handleRemove, handleOnClick
After: toastType, onRemove, onClick
- ToastMessage.jQuery: use ES2015 import statement for jquery
Previously, we requires you to inject jQuery as global variable ($, jQuery). However, as people adoping module bundler such as webpack, it's more common to declare it as dependency.
2.2.0 (2015-10-28)
- src: [email protected] migration, add react-addons-update as a dep (e8b7152), closes #38
2.1.0 (2015-10-11)
2.0.0 (2015-10-08)
- package.json: upgrade to React@^0.14 (c1cfc28)
- React@^0.14: upgrade at peerDependencies
- move React@^0.14 and classnames@^2.1.5 from dependencies to peerDependencies
- also add fbjs^0.3.1 to peerDependencies
<a name"1.5.2">
<a name"1.5.1">
<a name"1.5.0">
- ToastMessage: × using dangerouslySetInnerHTML (af7e6059)
- package.json: move react from dependencies to devDependencies (07e1acf3)
- animationMixin: misuse typeof (8f504133)
- animationMixin: animate toasts using css transitions/animations (ed0d8b07)
- package.json: update to [email protected] and add peerDependencies (0e00b836)
- jQueryMixin: update jQuery calls to use jQuery rather than $ (d1d858b4)
- ToastContainer: toastMessageClass changed to toastMessageFactory (bdcbabac)
- lib: upgrade React to 0.12 (5a375ae8)
- propTypes renamed to toastMessageFactory
toastMessageFactory now only accepts the result of calling React.createFactory(ReactElementClass).
(bdcbabac)
- .travis.yml: remove 0.11 target for jest bug (09c9ab66)
- ToastContainer: add clear interface (29bef4c0)
- ToastMessage:
- ToastMessage.jQuery: with jQueryMixin (1fc06874)
- ToastMessage:
- export ToastContainer and ToastMessage (ea3d2ea3)
- add newestOnTop to props (1d7950d1)
- add onClick handler and hook toast callback (e71a0058)
- add preventDuplicates props (c9d548b8)
- add default container-id and move to top-right (30fa8264)
- add iconClassNames and toastType to props (3916c2ef)
- port from jsfiddle.net/tomchentw/x7m8wavf (bb87f99c)
- jQueryMixin:
- lib: compile src to lib (44f406dd)
- package.json: downgrade react to 0.11.0 (4f105dc7)