Skip to content

docs(flutter): Chat SDK 5.1.2 changes and version bump - #628

Closed
adityagokula2210 wants to merge 3 commits into
mainfrom
docs/flutter-sdk-5.1.2
Closed

adityagokula2210 wants to merge 3 commits into
mainfrom
docs/flutter-sdk-5.1.2

Conversation

@adityagokula2210

@adityagokula2210 adityagokula2210 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Brings the Flutter Chat SDK v5 pages in line with SDK 5.1.2.

  • pin-message, save-message, pin-conversation, real-time-listeners: pin/unpin, save/unsave and conversation pin/unpin listener events no longer fire on the device that made the change; that device updates from the call's onSuccess. Flutter UI Kit 6.3.0-or-earlier users upgrade to 6.4.0 with SDK 5.1.2.
  • offline-sync, offline-reference, offline-encryption: new OfflineCacheResetReason.schemaReset (cache written by a newer SDK version, e.g. after an app rollback, rebuilt; not encryption-related), and a switch without default must handle it.
  • reactions, offline-cached-data, offline-reference: ReactionsRequest.fetchPrevious() takes an optional ReactionFetchListener (cached first, then server).
  • offline-send: a media send over the media budget first evicts least recently used cached media; it is refused with byteOverflow only if the file still cannot fit.
  • offline-reference: a fetchNext() on ConversationsRequest / BlockedUsersRequest started while one is loading completes at once with an empty list.
  • setup, overview: the package is WASM-compatible on Flutter web since 5.1.2.
  • offline-enable, setup, overview, upgrading-from-v4-guide: example pin ^5.1.2 (recommended; Flutter UI Kit 6.4.0 requires it). The 5.1.0 minimum is unchanged.

Merge when Flutter UI Kit 6.4.0 is published on pub.dev (Flutter Chat SDK 5.1.2 already is). These pages tell UI Kit users to upgrade to 6.4.0.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
cometchat 🟢 Ready View Preview Nov 23, 2026, 5:00 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ketanyekale
ketanyekale previously approved these changes Nov 23, 2026

@ketanyekale ketanyekale left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Approving. Hold the merge until Flutter Chat SDK 5.1.2 is on pub.dev, as the description says.

Checked:

  • Build is safe: no files removed or renamed, 0 unresolved nav refs, 0 broken internal links in the changed files. Mintlify deployment and link-rot checks pass.
  • No cometchat_sdk: ^5.1.0 pins left under sdk/flutter/. The 5.1.0 minimum is kept.
  • No "fired on the acting device" or "fans them out locally" wording left. Pin, save, conversation-pin and the real-time-listeners tables are consistent.
  • schemaReset was added to every list of reset reasons (offline-sync, offline-encryption, offline-reference). There are no switch samples in the docs that would now be non-exhaustive.
  • The fetchPrevious listener change matches across reactions, offline-cached-data and offline-reference. The old "fetchPrevious does not take a listener" lines are gone.

Non-blocking nits:

  1. pin-conversation.mdx:171: "They never fire because another user pinned their own list." now comes after the UI Kit upgrade sentence, so it reads as disconnected. Consider moving it up to follow the first sentence.
  2. offline-encryption.mdx:155 says how pendingMessagesLost is reported for encryptionChanged (exact count) and for key or corruption resets (null), but not for the new schemaReset. One clause would close that gap.
  3. The Flutter UI Kit pages still pin cometchat_chat_uikit: ^6.3.0, while these pages say 6.4.0 requires SDK 5.1.2. Worth a follow-up bump when UI Kit 6.4.0 ships.

@jitvarpatil jitvarpatil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Review Buddy (review-docs-pr)

Recommendation: request changes. This is an automated review; a maintainer makes the final decision.

TL;DR: The PR is structurally safe: it modifies 15 files and moves, renames or deletes none. No redirects are needed, all navigation refs resolve, and no links break. I checked every SDK behaviour change against the v5.1.2 tag of chat-sdk-flutter (its CHANGELOG and source), and all of them are accurate: the listener no longer fires on the device that made the change, schemaReset, the ReactionsRequest.fetchPrevious(listener:) addition, the media budget no longer counting queued media and evicting least recently used media before byteOverflow, the empty list from an in-flight fetchNext(), and WASM support. Flutter SDK 5.1.2 is live on pub.dev, so the PR's own merge condition is met. One thing blocks merge: four pages tell readers to upgrade to Flutter UI Kit 6.4.0, but pub.dev's latest version is 6.3.0.

P0

None.

P1

  • The pages point readers to a UI Kit version that isn't published yet. "upgrade it to 6.4.0" / "the Flutter UI Kit 6.4.0 requires it" appears at sdk/flutter/pin-message.mdx:175, sdk/flutter/pin-conversation.mdx:171, sdk/flutter/save-message.mdx:163, sdk/flutter/setup.mdx:46 and sdk/flutter/offline-enable.mdx:43. cometchat_chat_uikit on pub.dev is at 6.3.0. If this merges now, UI Kit users who move to SDK 5.1.2 lose the pin/save/conversation-pin updates on the device that made the change, and the version the docs tell them to install doesn't exist. Either hold the merge until UI Kit 6.4.0 is published (and add that to the PR's merge condition), or reword these lines to "upgrade to the UI Kit release that supports SDK 5.1.2 (6.4.0, coming soon)".

P2

  • sdk/flutter/offline-media-caching.mdx:162: the sentence "Because protected media is never evicted, the cache can briefly exceed maxMediaCacheSize" no longer fits the new wording. The same paragraph now says protected (queued or uploading) media doesn't count toward the budget, so the budget itself isn't exceeded; only the total on-disk size can be larger than it. Suggested wording: "…so the total media on disk can be larger than maxMediaCacheSize."
  • sdk/flutter/offline-send.mdx:188 and :290 describe byteOverflow as "its file is larger than maxMediaCacheSize". For a multi-file send, the SDK refuses when the files together exceed the budget (_copyOutgoingFiles in offline_runtime.dart). Suggested wording: "its file (or, for a multi-file message, its files together)".
  • sdk/flutter/pin-conversation.mdx:171: the UI Kit upgrade sentence sits between two statements about when the events fire. "They never fire because another user pinned their own list" now reads as a stray sentence. Move the UI Kit sentence to the end of the paragraph.

What passed

  • Redirects: 0 files removed or renamed, so none are needed (927 → 927).
  • Build: 0 dangling navigation refs.
  • In-content links: 0 broken across 113 scanned sdk/flutter/ files.
  • Version consistency: every v5 install snippet is ^5.1.2, the "5.1.0 minimum for offline" statements are unchanged and correct, and the v4 pages still pin ^4.0.33.
  • No stale text about the listener firing on the device that made the change remains anywhere in the repo.
  • schemaReset is documented the same way on all three pages (sync, encryption, reference).
  • Pre-existing, not from this PR: /sdk/flutter/llms-flutter-v5 is not in navigation.
  • Skipped: the Mintlify preview wasn't checked visually. The Mintlify bot reports the preview build as 🟢 Ready.

jitvarpatil
jitvarpatil previously approved these changes Nov 23, 2026

@jitvarpatil jitvarpatil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved via Review Buddy after an automated review (P0: 0 · P1: 1 · P2: 3).

Findings: #628 (review)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adityagokula2210

Copy link
Copy Markdown
Contributor Author

Combined into #635 now that Flutter Chat SDK 5.1.2 and UI Kit 6.4.0 are both live.

This branch was successfully deployed

1 active deployment
staging — 4e61f492 Deployed Nov 23, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants