Merge pull request #509 from GetStream/release/v2.0.0-nullsafety-8
chore: v2.0.0 nullsafety.8
This commit is contained in:
@@ -1,3 +1,42 @@
|
|||||||
|
## 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](https://github.com/GetStream/stream-chat-flutter/issues/369): Client does not return without internet
|
||||||
|
connection
|
||||||
|
|
||||||
|
## 2.0.0-nullsafety.6
|
||||||
|
|
||||||
|
- Fix thread reply not working with attachments
|
||||||
|
- Minor fixes
|
||||||
|
|
||||||
## 2.0.0-nullsafety.6
|
## 2.0.0-nullsafety.6
|
||||||
|
|
||||||
- Fix thread reply not working with attachments
|
- Fix thread reply not working with attachments
|
||||||
@@ -57,7 +96,8 @@
|
|||||||
- Save pinned messages in offline storage
|
- Save pinned messages in offline storage
|
||||||
- Minor fixes
|
- Minor fixes
|
||||||
- `StreamClient.QueryChannels` now returns a Stream and fetches the channels from storage before calling the api
|
- `StreamClient.QueryChannels` now returns a Stream and fetches the channels from storage before calling the api
|
||||||
- Added `StreamClient.QueryChannelsOnline` and `StreamClient.QueryChannelsOffline` to fetch channels only from online or offline
|
- Added `StreamClient.QueryChannelsOnline` and `StreamClient.QueryChannelsOffline` to fetch channels only from online or
|
||||||
|
offline
|
||||||
|
|
||||||
## 1.2.0-beta
|
## 1.2.0-beta
|
||||||
|
|
||||||
@@ -68,7 +108,8 @@
|
|||||||
## 1.1.0-beta
|
## 1.1.0-beta
|
||||||
|
|
||||||
- Fixed minor bugs
|
- Fixed minor bugs
|
||||||
- Add support for custom attachment upload [docs here](https://getstream.io/chat/docs/flutter-dart/file_uploads/?language=dart)
|
- Add support for custom attachment
|
||||||
|
upload [docs here](https://getstream.io/chat/docs/flutter-dart/file_uploads/?language=dart)
|
||||||
- Add support for asynchronous attachment upload
|
- Add support for asynchronous attachment upload
|
||||||
|
|
||||||
## 1.0.3-beta
|
## 1.0.3-beta
|
||||||
@@ -78,7 +119,8 @@
|
|||||||
|
|
||||||
## 1.0.2-beta
|
## 1.0.2-beta
|
||||||
|
|
||||||
- Deprecated `setUser`, `setGuestUser`, `setUserWithProvider` in favor of `connectUser`, `connectGuestUser`, `connectUserWithProvider`
|
- Deprecated `setUser`, `setGuestUser`, `setUserWithProvider` in favor of `connectUser`, `connectGuestUser`
|
||||||
|
, `connectUserWithProvider`
|
||||||
- Optimised reaction updates - i.e., Update first call Api later.
|
- Optimised reaction updates - i.e., Update first call Api later.
|
||||||
|
|
||||||
## 1.0.1-beta
|
## 1.0.1-beta
|
||||||
@@ -88,9 +130,11 @@
|
|||||||
## 1.0.0-beta
|
## 1.0.0-beta
|
||||||
|
|
||||||
- 🛑 **BREAKING** Renamed `Client` to less generic `StreamChatClient`
|
- 🛑 **BREAKING** Renamed `Client` to less generic `StreamChatClient`
|
||||||
- 🛑 **BREAKING** Segregated the persistence layer into separate package [stream_chat_persistence](https://pub.dev/packages/stream_chat_persistence)
|
- 🛑 **BREAKING** Segregated the persistence layer into separate
|
||||||
|
package [stream_chat_persistence](https://pub.dev/packages/stream_chat_persistence)
|
||||||
- 🛑 **BREAKING** Moved `Client.backgroundKeepAlive` to [core package](https://pub.dev/packages/stream_chat_core)
|
- 🛑 **BREAKING** Moved `Client.backgroundKeepAlive` to [core package](https://pub.dev/packages/stream_chat_core)
|
||||||
- 🛑 **BREAKING** Moved `Client.showLocalNotification` to [core package](https://pub.dev/packages/stream_chat_core) and renamed it to `StreamChatCore.onBackgroundEventReceived`
|
- 🛑 **BREAKING** Moved `Client.showLocalNotification` to [core package](https://pub.dev/packages/stream_chat_core) and
|
||||||
|
renamed it to `StreamChatCore.onBackgroundEventReceived`
|
||||||
- Removed `flutter` dependency. This is now a pure Dart package 🥳
|
- Removed `flutter` dependency. This is now a pure Dart package 🥳
|
||||||
- Minor improvements and bugfixes
|
- Minor improvements and bugfixes
|
||||||
|
|
||||||
@@ -145,7 +189,8 @@
|
|||||||
|
|
||||||
## 0.2.20
|
## 0.2.20
|
||||||
|
|
||||||
- Return offline data only if the backend is unreachable. This avoids the glitch of the ChannelListView because we cannot sort by custom properties.
|
- Return offline data only if the backend is unreachable. This avoids the glitch of the ChannelListView because we
|
||||||
|
cannot sort by custom properties.
|
||||||
|
|
||||||
## 0.2.19
|
## 0.2.19
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class StreamChatClient {
|
|||||||
LogHandlerFunction? logHandlerFunction,
|
LogHandlerFunction? logHandlerFunction,
|
||||||
RetryPolicy? retryPolicy,
|
RetryPolicy? retryPolicy,
|
||||||
Location? location,
|
Location? location,
|
||||||
String? baseURL,
|
@Deprecated('Use location to change baseUrl instead') String? baseURL,
|
||||||
Duration connectTimeout = const Duration(seconds: 6),
|
Duration connectTimeout = const Duration(seconds: 6),
|
||||||
Duration receiveTimeout = const Duration(seconds: 6),
|
Duration receiveTimeout = const Duration(seconds: 6),
|
||||||
StreamChatApi? chatApi,
|
StreamChatApi? chatApi,
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ import 'package:stream_chat/src/client/client.dart';
|
|||||||
/// Current package version
|
/// Current package version
|
||||||
/// Used in [StreamChatClient] to build the `x-stream-client` header
|
/// Used in [StreamChatClient] to build the `x-stream-client` header
|
||||||
// ignore: constant_identifier_names
|
// ignore: constant_identifier_names
|
||||||
const PACKAGE_VERSION = '2.0.0-nullsafety.6';
|
const PACKAGE_VERSION = '2.0.0-nullsafety.7';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat
|
name: stream_chat
|
||||||
homepage: https://getstream.io/
|
homepage: https://getstream.io/
|
||||||
description: The official Dart client for Stream Chat, a service for building chat applications.
|
description: The official Dart client for Stream Chat, a service for building chat applications.
|
||||||
version: 2.0.0-nullsafety.6
|
version: 2.0.0-nullsafety.7
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,41 @@
|
|||||||
|
## 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
|
||||||
|
|
||||||
|
```dart
|
||||||
|
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](https://github.com/GetStream/stream-chat-flutter/pull/493): add support for messageListView header/footer
|
||||||
|
- `MessageWidget` accepts a `userAvatarBuilder`
|
||||||
|
|
||||||
|
🐞 Fixed
|
||||||
|
|
||||||
|
- [#483](https://github.com/GetStream/stream-chat-flutter/issues/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](https://github.com/GetStream/stream-chat-flutter/issues/484): messages don't update without a reload
|
||||||
|
- `MessageListView` not rendering if the user is not a member of the channel
|
||||||
|
|
||||||
## 2.0.0-nullsafety.7
|
## 2.0.0-nullsafety.7
|
||||||
|
|
||||||
- Minor fixes and improvements
|
- Minor fixes and improvements
|
||||||
@@ -139,7 +177,8 @@
|
|||||||
|
|
||||||
## 0.2.20+2
|
## 0.2.20+2
|
||||||
|
|
||||||
- Added `shouldAddChannel` to ChannelsBloc in order to check if a channel has to be added to the list when a new message arrives
|
- Added `shouldAddChannel` to ChannelsBloc in order to check if a channel has to be added to the list when a new message
|
||||||
|
arrives
|
||||||
|
|
||||||
## 0.2.20+1
|
## 0.2.20+1
|
||||||
|
|
||||||
@@ -358,27 +397,27 @@
|
|||||||
|
|
||||||
## 0.2.1-alpha+1
|
## 0.2.1-alpha+1
|
||||||
|
|
||||||
- Removed the additional `Navigator` in `StreamChat` widget.
|
- Removed the additional `Navigator` in `StreamChat` widget. It was added to make the app have the `StreamChat` widget
|
||||||
It was added to make the app have the `StreamChat` widget as ancestor in every route.
|
as ancestor in every route. Now the recommended way to add `StreamChat` to your app is using the `builder` property of
|
||||||
Now the recommended way to add `StreamChat` to your app is using the `builder` property of your `MaterialApp` widget.
|
your `MaterialApp` widget. Otherwise you can use it in the usual way, but you need to add a `StreamChat` widget to
|
||||||
Otherwise you can use it in the usual way, but you need to add a `StreamChat` widget to every route of your app.
|
every route of your app. Read [this issue](https://github.com/GetStream/stream-chat-flutter/issues/47) for more
|
||||||
Read [this issue](https://github.com/GetStream/stream-chat-flutter/issues/47) for more information.
|
information.
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
theme: ThemeData.light(),
|
theme: ThemeData.light(),
|
||||||
darkTheme: ThemeData.dark(),
|
darkTheme: ThemeData.dark(),
|
||||||
themeMode: ThemeMode.system,
|
themeMode: ThemeMode.system,
|
||||||
builder: (context, widget) {
|
builder: (context, widget) {
|
||||||
return StreamChat(
|
return StreamChat(
|
||||||
child: widget,
|
child: widget,
|
||||||
client: client,
|
client: client,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
home: ChannelListPage(),
|
home: ChannelListPage(),
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
- Fix reaction bubble going below previous message on iOS
|
- Fix reaction bubble going below previous message on iOS
|
||||||
@@ -462,7 +501,8 @@
|
|||||||
|
|
||||||
- Add gesture (vertical drag down) to close the keyboard
|
- Add gesture (vertical drag down) to close the keyboard
|
||||||
|
|
||||||
- Add keyboard type parameters (set it to TextInputType.text to show the submit button that will even close the keyboard)
|
- Add keyboard type parameters (set it to TextInputType.text to show the submit button that will even close the
|
||||||
|
keyboard)
|
||||||
|
|
||||||
The property showVideoFullScreen was added mainly because of this issue brianegan/chewie#261
|
The property showVideoFullScreen was added mainly because of this issue brianegan/chewie#261
|
||||||
|
|
||||||
|
|||||||
@@ -375,7 +375,6 @@ class _MessageListViewState extends State<MessageListView> {
|
|||||||
(context, list) => _buildListView(list),
|
(context, list) => _buildListView(list),
|
||||||
messageListController: _messageListController,
|
messageListController: _messageListController,
|
||||||
parentMessage: widget.parentMessage,
|
parentMessage: widget.parentMessage,
|
||||||
showScrollToBottom: widget.showScrollToBottom,
|
|
||||||
errorWidgetBuilder: widget.errorWidgetBuilder ??
|
errorWidgetBuilder: widget.errorWidgetBuilder ??
|
||||||
(BuildContext context, Object error) => Center(
|
(BuildContext context, Object error) => Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ class UserListView extends StatefulWidget {
|
|||||||
/// Direction can be ascending or descending.
|
/// Direction can be ascending or descending.
|
||||||
final List<SortOption>? sort;
|
final List<SortOption>? sort;
|
||||||
|
|
||||||
///
|
/// If true you’ll receive user presence updates via the websocket events
|
||||||
final bool? presence;
|
final bool? presence;
|
||||||
|
|
||||||
/// Pagination parameters
|
/// Pagination parameters
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat_flutter
|
name: stream_chat_flutter
|
||||||
homepage: https://github.com/GetStream/stream-chat-flutter
|
homepage: https://github.com/GetStream/stream-chat-flutter
|
||||||
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
|
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
|
||||||
version: 2.0.0-nullsafety.7
|
version: 2.0.0-nullsafety.8
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ dependencies:
|
|||||||
scrollable_positioned_list: ^0.2.0-nullsafety.0
|
scrollable_positioned_list: ^0.2.0-nullsafety.0
|
||||||
share_plus: ^2.0.3
|
share_plus: ^2.0.3
|
||||||
shimmer: ^2.0.0
|
shimmer: ^2.0.0
|
||||||
stream_chat_flutter_core: ^2.0.0-nullsafety.7
|
stream_chat_flutter_core: ^2.0.0-nullsafety.8
|
||||||
substring_highlight: ^1.0.26
|
substring_highlight: ^1.0.26
|
||||||
synchronized: ^3.0.0
|
synchronized: ^3.0.0
|
||||||
url_launcher: ^6.0.3
|
url_launcher: ^6.0.3
|
||||||
|
|||||||
@@ -1,3 +1,15 @@
|
|||||||
|
## 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
|
||||||
|
|
||||||
## 2.0.0-nullsafety.7
|
## 2.0.0-nullsafety.7
|
||||||
|
|
||||||
* Fixed a bug with connectivity implementation
|
* Fixed a bug with connectivity implementation
|
||||||
|
|||||||
@@ -68,7 +68,6 @@ class MessageListCore extends StatefulWidget {
|
|||||||
required this.emptyBuilder,
|
required this.emptyBuilder,
|
||||||
required this.messageListBuilder,
|
required this.messageListBuilder,
|
||||||
required this.errorWidgetBuilder,
|
required this.errorWidgetBuilder,
|
||||||
this.showScrollToBottom = true,
|
|
||||||
this.parentMessage,
|
this.parentMessage,
|
||||||
this.messageListController,
|
this.messageListController,
|
||||||
this.messageFilter,
|
this.messageFilter,
|
||||||
@@ -94,10 +93,6 @@ class MessageListCore extends StatefulWidget {
|
|||||||
/// event of a connection failure.
|
/// event of a connection failure.
|
||||||
final ErrorBuilder errorWidgetBuilder;
|
final ErrorBuilder errorWidgetBuilder;
|
||||||
|
|
||||||
/// If true will show a scroll to bottom message when there are new messages
|
|
||||||
/// and the scroll offset is not zero.
|
|
||||||
final bool showScrollToBottom;
|
|
||||||
|
|
||||||
/// If the current message belongs to a `thread`, this property represents the
|
/// If the current message belongs to a `thread`, this property represents the
|
||||||
/// first message or the parent of the conversation.
|
/// first message or the parent of the conversation.
|
||||||
final Message? parentMessage;
|
final Message? parentMessage;
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ class UserListCore extends StatefulWidget {
|
|||||||
/// created_at or member_count. Direction can be ascending or descending.
|
/// created_at or member_count. Direction can be ascending or descending.
|
||||||
final List<SortOption>? sort;
|
final List<SortOption>? sort;
|
||||||
|
|
||||||
///
|
/// If true you’ll receive user presence updates via the websocket events
|
||||||
final bool? presence;
|
final bool? presence;
|
||||||
|
|
||||||
/// Pagination parameters
|
/// Pagination parameters
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat_flutter_core
|
name: stream_chat_flutter_core
|
||||||
homepage: https://github.com/GetStream/stream-chat-flutter
|
homepage: https://github.com/GetStream/stream-chat-flutter
|
||||||
description: Stream Chat official Flutter SDK Core. Build your own chat experience using Dart and Flutter.
|
description: Stream Chat official Flutter SDK Core. Build your own chat experience using Dart and Flutter.
|
||||||
version: 2.0.0-nullsafety.7
|
version: 2.0.0-nullsafety.8
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ dependencies:
|
|||||||
sdk: flutter
|
sdk: flutter
|
||||||
meta: ^1.3.0
|
meta: ^1.3.0
|
||||||
rxdart: ^0.27.0
|
rxdart: ^0.27.0
|
||||||
stream_chat: ^2.0.0-nullsafety.6
|
stream_chat: ^2.0.0-nullsafety.7
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
fake_async: ^1.2.0
|
fake_async: ^1.2.0
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
## 2.0.0-nullsafety.7
|
||||||
|
|
||||||
|
* Update llc dependency
|
||||||
|
* Minor fixes and improvements
|
||||||
|
|
||||||
## 2.0.0-nullsafety.5
|
## 2.0.0-nullsafety.5
|
||||||
|
|
||||||
* Update llc dependency
|
* Update llc dependency
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat_persistence
|
name: stream_chat_persistence
|
||||||
homepage: https://github.com/GetStream/stream-chat-flutter
|
homepage: https://github.com/GetStream/stream-chat-flutter
|
||||||
description: Official Stream Chat Persistence library. Build your own chat experience using Dart and Flutter.
|
description: Official Stream Chat Persistence library. Build your own chat experience using Dart and Flutter.
|
||||||
version: 2.0.0-nullsafety.5
|
version: 2.0.0-nullsafety.7
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ dependencies:
|
|||||||
path: ^1.8.0
|
path: ^1.8.0
|
||||||
path_provider: ^2.0.1
|
path_provider: ^2.0.1
|
||||||
sqlite3_flutter_libs: ^0.5.0
|
sqlite3_flutter_libs: ^0.5.0
|
||||||
stream_chat: ^2.0.0-nullsafety.5
|
stream_chat: ^2.0.0-nullsafety.7
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
build_runner: ^2.0.1
|
build_runner: ^2.0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user