Skip to content

2.0.0-nullsafety.8

Pre-release
Pre-release
Compare
Choose a tag to compare
@imtoori imtoori released this 29 Jun 11:37
· 2864 commits to master since this release
9d45641

stream_chat

2.0.0-nullsafety.7

πŸ›‘οΈ Breaking Changes from 2.0.0-nullsafety.6

  • ConnectUserWithProvider now requires tokenProvider as a required param. (Removed from the constructor)
  • client.disconnect() is now divided into two different functions
    • client.closeConnection() -> for closing user websocket connection.
    • client.disconnectUser() -> for disconnecting user and resetting client state.
  • client.devToken() now returns a Token model instead of String.
  • ApiError is removed in favor of StreamChatError
    • StreamChatError -> parent type for all the stream errors.
    • StreamWebSocketError -> for user websocket related errors.
    • StreamChatNetworkError -> for network related errors.
  • client.queryChannels(), channel.query() options param is removed in favor of individual params
    • option.state -> bool state
    • option.watch -> bool watch
    • option.presence -> bool presence
  • client.queryUsers() options param is removed in favor of individual params
    • option.presence -> bool presence

βœ… Added

  • New Location enum is introduced for easily changing the client location/baseUrl.
  • New client.openConnection() and client.closeConnection() is introduced to connect/disconnect user ws connection.

πŸ”„ Changed

  • baseURL is now deprecated in favor of using Location to change data location.

🐞 Fixed

  • #369: Client does not return without internet
    connection

stream_chat_flutter_core

2.0.0-nullsafety.8

πŸ›‘οΈ Breaking Changes from 2.0.0-nullsafety.7

  • channelsBloc.queryChannels(), ChannelListCore options param/property is removed in favor of individual
    params/properties
    • options.state -> bool state
    • options.watch -> bool watch
    • options.presence -> bool presence
  • usersBloc.queryUsers(), UserListCore options param/property is removed in favor of individual params/properties
    • options.presence -> bool presence

stream_chat_flutter

2.0.0-nullsafety.8

πŸ›‘οΈ Breaking Changes from 2.0.0-nullsafety.7

  • ChannelListCore options property is removed in favor of individual properties
    • options.state -> bool state
    • options.watch -> bool watch
    • options.presence -> bool presence
  • UserListView options property is removed in favor of individual properties
    • options.presence -> bool presence
  • MessageBuilder and ParentMessageBuilder signature is now
typedef MessageBuilder = Widget Function(
    BuildContext,
    MessageDetails,
    List<Message>,
    MessageWidget defaultMessageWidget,
    );

the last parameter is the default MessageWidget
You can call .copyWith to customize just a subset of properties

βœ… Added

  • TypingIndicator now has a property called parentId to show typing indicator specific to threads
  • #493: add support for messageListView header/footer
  • MessageWidget accepts a userAvatarBuilder

🐞 Fixed

  • #483: Keyboard covers input text box when editing
    message
  • Modals are shown using the nearest Navigator to make using the SDK easier in a nested navigator use case
  • #484: messages don't update without a reload
  • MessageListView not rendering if the user is not a member of the channel

stream_chat_persistence

2.0.0-nullsafety.7

  • Update llc dependency
  • Minor fixes and improvements