cogo-toast v4.0.0 Release Notes

Release Date: 2019-09-24 // almost 3 years ago

    4.0.0

    ๐Ÿ’ฅ Breaking Change

    - Hide the toast on Click
    

    Now:

    const { hide } = cogoToast.success('This is a success message.', { onClick: () =\> { hide(); }, };
    

    Before:

    cogoToast.success('This is a success message.', { onClick: (hide) =\> { hide(); }, };
    
    - 
    

    ๐Ÿ‘€ Toast now always returns a promise, as opposed to before. See issue #28

    - 
    

    ๐Ÿ”ง Accessibility - Added a role of status by default. Configurable via options. Thanks @balazsorban44.