v2.0.0-rc.1 #40
rickypid
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Release candidate of 2.0.0: the API and the database schema are complete, feedback welcome before the stable release.
Moves the package to
flutter_chat_core/flutter_chat_ui2.x and redesignsthe database. The same SQL scripts create a fresh database or migrate a 1.x
one (maintenance window required).
Breaking changes
ChatRoom,ChatUserandflutter_chat_core'sMessagereplace theflutter_chat_typesmodels; dates areDateTime, ids are uuid strings.SupabaseChatControllerimplementsflutter_chat_core'sChatController;roomsUpdates()/updateRoomListbecomeroomsChanges()/applyRoomChange.SupabaseChatCoreConfigtakes named parameters;realtimeChatTypingUserPrefixChannelbecomesrealtimeRoomChannelPrefix.addMembers/removeMember/leaveRoom/setMemberRoleinstead ofupdateRoom;fetchUserandprocessRoomRow(s)are removed.SupabaseChatCoreExceptionsubtypes.timestamptzdates,chats.room_members, messagespartitioned by week (
pg_partman+pg_cron), rooms created through thechats.create_roomRPC, message changes over private Realtime Broadcastchannels (self-hosted Realtime >= v2.33).
Added
SupabaseChatRoomsController: paginated, searchable rooms list kept insync over Realtime, with unread counters.
reactions, editing, pinned messages, message search, pinned and muted
rooms, group roles, optimistic sending with retry.
SupabaseChatCoreConfigto keep the chats of differentworkspaces apart.
SupabaseChatCore(client:, config:)) anddispose().cleanup-mediaEdge Function to delete the files of deleted messages.migrate_storage_uuids.sh/.ps1: moves the 1.x attachments to the newroom folders.
platform.
Fixed
Broadcast.
Security
edits by the author, group management by admins only.
realtime.messages.authenticated, internal tables and trigger functionsclosed to clients (clean Supabase advisors).
Dependencies
flutter_chat_typesreplaced byflutter_chat_core: ^2.9.0.supabase_flutter: ^2.17.2; Dart>=3.8.0, Flutter>=3.32.0.flutter_chat_ui: '>=2.11.1 <2.12.0'(2.12.0 crashesinside a standard
Scaffold).This discussion was created from the release v2.0.0-rc.1.
All reactions