Skip to content

Releases: pongloongyeat/notification_dispatcher

0.4.0

10 May 13:59
Compare
Choose a tag to compare
0.4.0 Pre-release
Pre-release

0.4.0

Breaking

  • Removed support for Equatable.
  • Removed support for Future-based callbacks.
  • Removed MockNotificationDispatcher
  • remove has been renamed to removeObserverWith with the Object observer parameter made positional.

Documentation

  • Updated documentation for removeObserver and removeObserverWith (previously called remove).

0.3.2

08 May 02:40
Compare
Choose a tag to compare
0.3.2 Pre-release
Pre-release

0.3.2

Fix

  • Fix an issue where calling NotificationDispatcher.post could return earlier than intended.

Tests

  • Added tests for Future callbacks.

0.2.1

27 Jan 17:04
Compare
Choose a tag to compare
0.2.1 Pre-release
Pre-release

Others

  • Updated license.

0.2.0

26 Jan 12:35
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

Features

  • Added a NotificationDispatcherEquatableObserverMixin to ensure classes that extend Equatable are able to be differentiated when adding/removing observers. To use, make sure the mixin's instanceKey is part of the class's props property.

Fixes

  • Fixed an issue where notifications could not be differentiated between instances of the same class if its == operator and hashCode method were overriden.

Documentation

  • Updated documentation to reflect changes.

Tests

  • Added tests for observers that extend Equatable.

Others

  • Updated pubspec description.

0.1.0

18 Jan 03:26
Compare
Choose a tag to compare
0.1.0 Pre-release
Pre-release

Features

  • NotificationDispatcher.post now sends along a NotificationMessage to the observer.

Fixes

  • Fixed an issue where notifications could not be differentiated between instances of the same class.

Documentation

  • Added documentation for all NotificationDispatcher methods.

Workflow

  • Added CI to run tests on commit.
  • Added some linting options.

0.0.1

17 Jan 15:54
Compare
Choose a tag to compare
0.0.1 Pre-release
Pre-release

Initial pre-release