Skip to content

v0.7.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@sachaarbonel sachaarbonel released this 25 Feb 22:10
· 11 commits to master since this release
dd139b0

faye_dart

0.1.1+1

Changelog

  • FIX: implement Equatable on FayeClient. With this change, if you fetch your client from an InheritedWidget for example, updateShouldNotify doesn't trigger every time.
  • NEW: expose connexion status stream Stream<FayeClientState> via the Subscription class to check if the Faye client is unconnected, connecting, connected or disconnected, and act accordingly.

stream_feed

0.5.1

Changelog

  • UPSTREAM(realtime): version bump. You can now listen to connexion status in the Subscription class. For example:
final subscription = await feed.subscribe();
final subscriptionStatus = subscription.stateStream;
  • NEW(realtime): you can now adjust log level when subscribing
  • FIX: implement Equatable on StreamFeedClient. With this change, if you fetch your client from an InheritedWidget for example, updateShouldNotify doesn't trigger every time.

stream_feed_flutter_core

0.7.0

Changelog

  • FIX: FeedProvider inherited widget had an issue with the updateShouldNotify being triggered everytime. This has been fixed via the llc, being bumped to 0.5.1.
  • UPSTREAM(realtime): version bump
  • BREAKING: onAddActivity signature changed. The named parameter datachanged from Map<String, String>? to Map<String, Object>?.
  • BREAKING: Refactors all of our builder methods to return data and not be opinionated about widgets in Core package
    new: Various additional code documentation added
  • NEW: new model and convenient extensions for the UploadController
    An Attachment model to convert a MediaUri TO a Map<String, Object?> to send as an
    extraData along an activity or a reaction. For example:
final bloc = FeedProvider.of(context).bloc;
final uploadController = bloc.uploadController;
final extraData = uploadController.getMediaUris()?.toExtraData();
await bloc.onAddReaction( kind: 'comment', data: extraData, activity: parentActivity, feedGroup: feedGroup );

The attachment model is also useful to convert FROM extraData in an activity or reaction via the toAttachments extension. For example:

final attachments = activity.extraData?.toAttachments()