Skip to content

chore(repo): remove deprecated classes, methods, and properties #2306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: v10.0.0
Choose a base branch
from

Conversation

xsahil03x
Copy link
Member

@xsahil03x xsahil03x commented Jul 14, 2025

Submit a pull request

Linear: FLU-199

Summary by CodeRabbit

  • New Features

    • None.
  • Bug Fixes

    • None.
  • Refactor

    • Removed numerous deprecated APIs, classes, properties, and methods across SDK and UI packages, including call-related APIs, voice recording widgets, permission types, and legacy reaction fields.
    • Simplified and modernized sorting option usage throughout sample app and SDK.
    • Updated permission checks to use new boolean getters instead of legacy constants.
    • Consolidated message reaction data handling to use reactionGroups exclusively.
    • Replaced boolean compression flags with integer quality parameters in attachment pickers.
    • Removed deprecated parameters and properties related to send buttons, attachment pickers, and unread indicators.
  • Chores

    • Updated and consolidated changelogs to reflect all breaking changes and removals for the upcoming major release.
    • Cleaned up and removed deprecated test files, fixtures, and unused exports.
  • Style

    • Minor updates to use const constructors where applicable.
  • Documentation

    • Changelog entries now clearly list all breaking changes and removals for users upgrading to the next major version.

Copy link
Contributor

coderabbitai bot commented Jul 14, 2025

Walkthrough

This change removes a wide range of deprecated APIs, widgets, classes, and parameters across both the core stream_chat and the Flutter UI package stream_chat_flutter in preparation for a major v10 release. The update eliminates legacy constructors, properties, and files, consolidates reaction and permission logic, and updates test and sample code accordingly.

Changes

Files/Paths (grouped) Change Summary
packages/stream_chat/CHANGELOG.md, packages/stream_chat_flutter/CHANGELOG.md Added changelog entries describing removal of deprecated APIs for v10.
lib/src/permission_type.dart, lib/src/core/api/call_api.dart, lib/src/core/models/call_payload.dart, test/src/core/api/call_api_test.dart, test/src/core/models/call_payload_test.dart Removed deprecated classes/files: PermissionType, CallApi, CallPayload, and related test files.
lib/src/client/channel.dart, lib/src/client/client.dart, lib/src/core/api/stream_chat_api.dart Removed deprecated methods, properties, and fields from core classes (e.g., cooldownStartedAt, call-related APIs).
lib/src/core/models/message.dart, lib/src/core/models/message.g.dart, test/src/core/models/message_test.dart Removed deprecated reaction fields (reactionCounts, reactionScores) and updated tests to use reactionGroups.
lib/src/core/api/sort_order.dart, lib/src/core/api/sort_order.g.dart, test/src/core/api/sort_order_test.dart, sample_app/lib/pages/*.dart Removed deprecated SortOption constructor and JSON factory; updated usage to SortOption.asc/desc.
lib/stream_chat.dart, lib/src/core/api/responses.dart, lib/src/core/api/responses.g.dart Removed exports and deserialization for deleted/deprecated entities.
lib/src/attachment/builder/voice_recording_attachment_builder/*.dart, lib/src/attachment/handler/stream_attachment_handler_base.dart, lib/src/attachment/handler/stream_attachment_handler_html.dart, lib/src/attachment/handler/stream_attachment_handler_io.dart, lib/src/message_input/attachment_picker/options/stream_file_picker.dart, lib/src/message_input/attachment_picker/stream_attachment_picker_bottom_sheet.dart Removed deprecated voice recording attachment builders, updated file picker compression parameter, and removed deprecated attachment picker flags.
lib/src/message_input/dm_checkbox.dart, test/src/message_input/dm_checkbox_test.dart Deleted deprecated DmCheckbox widget and its tests.
lib/src/message_input/stream_message_input.dart, lib/src/message_input/stream_message_send_button.dart Removed deprecated parameters/properties for send buttons and attachment picker flags.
lib/src/indicators/unread_indicator.dart, sample_app/lib/pages/channel_list_page.dart Removed deprecated cid parameter from StreamUnreadIndicator and updated usages to const constructors.
lib/src/theme/stream_chat_theme.dart, lib/src/theme/themes.dart, lib/src/theme/voice_attachment_theme.dart Removed deprecated theme properties/classes for voice recording and reaction icons.
lib/src/utils/extensions.dart, test/src/utils/extension_test.dart Removed deprecated extension method lastUnreadMessage and its tests.
lib/src/video/video_thumbnail_image.dart, lib/stream_chat_flutter.dart Renamed and updated image loading method and callback type; removed exports for deleted/legacy voice recording and video thumbnail widgets.
test/fixtures/message.json Updated test fixture to use reaction_groups instead of deprecated fields.
test/src/core/api/responses_test.dart Removed tests for deprecated call-related APIs and models.

Sequence Diagram(s)

Not generated: The changes are broad API removals and refactors, not introducing new control flow or features.

Assessment against linked issues

Objective Addressed Explanation
Remove deprecated widgets and classes from v10 (FLU-199)

Assessment against linked issues: Out-of-scope changes

No out-of-scope changes detected. All modifications are directly related to the removal of deprecated APIs and classes as described in the linked issue.

Possibly related PRs

  • GetStream/stream-chat-flutter#2295: Marks the SortOption constructor as deprecated and introduces named constructors, which this PR now fully removes, completing the transition.

Suggested reviewers

  • renefloor

Poem

In the warren of code, old widgets retire,
Deprecated bunnies hop off the wire.
With v10’s bright dawn, the garden is neat—
No more legacy carrots for rabbits to eat!
New icons and themes, a streamlined delight,
The codebase is lighter, and hopping feels right.
🐇✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ad73734 and 012e47d.

📒 Files selected for processing (1)
  • packages/stream_chat/lib/src/core/models/message.dart (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/stream_chat/lib/src/core/models/message.dart

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@xsahil03x
Copy link
Member Author

@coderabbitai review

Copy link
Contributor

coderabbitai bot commented Jul 15, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
packages/stream_chat_flutter/lib/src/message_input/stream_message_send_button.dart (1)

7-9: Update constructor documentation comment.

The documentation comment still references deprecated parameters (isCommandEnabled, isEditEnabled, idleSendButton, activeSendButton) that have been removed from the constructor.

  /// Returns a [StreamMessageSendButton] with the given [timeOut], [isIdle],
- /// [isCommandEnabled], [isEditEnabled], [idleSendButton], [activeSendButton],
- /// [onSendMessage].
+ /// [idleSendIcon], [activeSendIcon], and [onSendMessage].
packages/stream_chat_flutter/CHANGELOG.md (1)

5-10: Use 4-space indentation for the nested bullet list to guarantee correct rendering on pub.dev

Markdown parsers on pub.dev/CommonMark occasionally mis-interpret 2-space indents, causing the sub-bullets to collapse back to the top level. Shifting the nested list to a 4-space indent (or one tab) keeps the hierarchy intact everywhere.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 74188e3 and 79a54c7.

📒 Files selected for processing (54)
  • packages/stream_chat/CHANGELOG.md (1 hunks)
  • packages/stream_chat/lib/src/client/channel.dart (0 hunks)
  • packages/stream_chat/lib/src/client/client.dart (0 hunks)
  • packages/stream_chat/lib/src/core/api/call_api.dart (0 hunks)
  • packages/stream_chat/lib/src/core/api/responses.dart (0 hunks)
  • packages/stream_chat/lib/src/core/api/responses.g.dart (0 hunks)
  • packages/stream_chat/lib/src/core/api/sort_order.dart (0 hunks)
  • packages/stream_chat/lib/src/core/api/stream_chat_api.dart (0 hunks)
  • packages/stream_chat/lib/src/core/models/call_payload.dart (0 hunks)
  • packages/stream_chat/lib/src/core/models/call_payload.g.dart (0 hunks)
  • packages/stream_chat/lib/src/core/models/message.dart (2 hunks)
  • packages/stream_chat/lib/src/core/models/message.g.dart (0 hunks)
  • packages/stream_chat/lib/src/permission_type.dart (0 hunks)
  • packages/stream_chat/lib/stream_chat.dart (0 hunks)
  • packages/stream_chat/test/fixtures/message.json (1 hunks)
  • packages/stream_chat/test/src/core/api/call_api_test.dart (0 hunks)
  • packages/stream_chat/test/src/core/api/responses_test.dart (0 hunks)
  • packages/stream_chat/test/src/core/models/call_payload_test.dart (0 hunks)
  • packages/stream_chat/test/src/core/models/message_test.dart (2 hunks)
  • packages/stream_chat_flutter/CHANGELOG.md (1 hunks)
  • packages/stream_chat_flutter/lib/src/attachment/builder/attachment_widget_builder.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/stream_voice_recording_list_player.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/stream_voice_recording_loading.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/stream_voice_recording_player.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/stream_voice_recording_slider.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/voice_recording_attachment_builder.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/attachment/handler/stream_attachment_handler_base.dart (1 hunks)
  • packages/stream_chat_flutter/lib/src/attachment/handler/stream_attachment_handler_html.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/attachment/handler/stream_attachment_handler_io.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/icons/stream_svg_icon.dart (2 hunks)
  • packages/stream_chat_flutter/lib/src/indicators/unread_indicator.dart (1 hunks)
  • packages/stream_chat_flutter/lib/src/message_input/attachment_picker/options/stream_file_picker.dart (3 hunks)
  • packages/stream_chat_flutter/lib/src/message_input/attachment_picker/stream_attachment_picker_bottom_sheet.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/message_input/dm_checkbox.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/message_input/stream_message_input.dart (2 hunks)
  • packages/stream_chat_flutter/lib/src/message_input/stream_message_send_button.dart (1 hunks)
  • packages/stream_chat_flutter/lib/src/message_list_view/floating_date_divider.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/misc/back_button.dart (1 hunks)
  • packages/stream_chat_flutter/lib/src/theme/stream_chat_theme.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/theme/themes.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/theme/voice_attachment_theme.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/utils/extensions.dart (0 hunks)
  • packages/stream_chat_flutter/lib/src/video/video_thumbnail_image.dart (2 hunks)
  • packages/stream_chat_flutter/lib/stream_chat_flutter.dart (0 hunks)
  • packages/stream_chat_flutter/test/src/indicators/unread_indicator_test.dart (1 hunks)
  • packages/stream_chat_flutter/test/src/message_input/dm_checkbox_test.dart (0 hunks)
  • packages/stream_chat_flutter/test/src/utils/extension_test.dart (0 hunks)
  • sample_app/lib/pages/channel_file_display_screen.dart (1 hunks)
  • sample_app/lib/pages/channel_list_page.dart (1 hunks)
  • sample_app/lib/pages/channel_media_display_screen.dart (1 hunks)
  • sample_app/lib/pages/chat_info_screen.dart (1 hunks)
  • sample_app/lib/pages/group_info_screen.dart (6 hunks)
  • sample_app/lib/pages/new_chat_screen.dart (1 hunks)
  • sample_app/lib/pages/pinned_messages_screen.dart (1 hunks)
💤 Files with no reviewable changes (33)
  • packages/stream_chat_flutter/lib/src/theme/themes.dart
  • packages/stream_chat/lib/src/core/models/message.g.dart
  • packages/stream_chat_flutter/lib/src/attachment/builder/attachment_widget_builder.dart
  • packages/stream_chat/lib/stream_chat.dart
  • packages/stream_chat_flutter/test/src/utils/extension_test.dart
  • packages/stream_chat_flutter/lib/src/attachment/handler/stream_attachment_handler_html.dart
  • packages/stream_chat_flutter/lib/src/message_input/attachment_picker/stream_attachment_picker_bottom_sheet.dart
  • packages/stream_chat_flutter/lib/src/message_list_view/floating_date_divider.dart
  • packages/stream_chat/test/src/core/models/call_payload_test.dart
  • packages/stream_chat/lib/src/core/api/sort_order.dart
  • packages/stream_chat/lib/src/core/api/stream_chat_api.dart
  • packages/stream_chat_flutter/lib/src/attachment/handler/stream_attachment_handler_io.dart
  • packages/stream_chat/test/src/core/api/call_api_test.dart
  • packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/stream_voice_recording_loading.dart
  • packages/stream_chat_flutter/lib/src/utils/extensions.dart
  • packages/stream_chat/lib/src/client/channel.dart
  • packages/stream_chat/test/src/core/api/responses_test.dart
  • packages/stream_chat/lib/src/client/client.dart
  • packages/stream_chat_flutter/lib/stream_chat_flutter.dart
  • packages/stream_chat_flutter/test/src/message_input/dm_checkbox_test.dart
  • packages/stream_chat/lib/src/core/api/responses.g.dart
  • packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/voice_recording_attachment_builder.dart
  • packages/stream_chat/lib/src/permission_type.dart
  • packages/stream_chat/lib/src/core/api/responses.dart
  • packages/stream_chat/lib/src/core/models/call_payload.g.dart
  • packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/stream_voice_recording_player.dart
  • packages/stream_chat_flutter/lib/src/message_input/dm_checkbox.dart
  • packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/stream_voice_recording_slider.dart
  • packages/stream_chat_flutter/lib/src/attachment/builder/voice_recording_attachment_builder/stream_voice_recording_list_player.dart
  • packages/stream_chat/lib/src/core/api/call_api.dart
  • packages/stream_chat/lib/src/core/models/call_payload.dart
  • packages/stream_chat_flutter/lib/src/theme/voice_attachment_theme.dart
  • packages/stream_chat_flutter/lib/src/theme/stream_chat_theme.dart
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: build (android)
  • GitHub Check: build (ios)
  • GitHub Check: test
  • GitHub Check: format
  • GitHub Check: analyze
🔇 Additional comments (25)
packages/stream_chat_flutter/lib/src/video/video_thumbnail_image.dart (2)

90-92: LGTM! Proper API migration from deprecated to current Flutter image decoding.

The method name change from loadBuffer to loadImage is more descriptive and the parameter type update from DecoderBufferCallback to ImageDecoderCallback correctly aligns with Flutter's current image decoding API. This change maintains the same functionality while using the non-deprecated API.


107-107: Parameter type correctly updated to match the public method signature.

The _loadAsync method parameter has been properly updated to use ImageDecoderCallback, maintaining consistency with the public loadImage method signature.

packages/stream_chat_flutter/lib/src/indicators/unread_indicator.dart (1)

10-12: LGTM! Clean removal of deprecated parameter.

The constructor change properly removes the deprecated cid parameter and makes the default constructor const. Users who need channel-specific unread counts can use the .channels() named constructor instead.

packages/stream_chat_flutter/test/src/indicators/unread_indicator_test.dart (1)

41-41: Good use of const optimization.

Adding const to the Scaffold aligns with the StreamUnreadIndicator const constructor change and provides compile-time optimization.

packages/stream_chat_flutter/lib/src/misc/back_button.dart (1)

45-45: Correct const usage.

Properly updated to use the new const constructor of StreamUnreadIndicator.

sample_app/lib/pages/new_chat_screen.dart (1)

32-32: Proper migration to new SortOption API.

The change from the deprecated SortOption constructor to SortOption.asc('name') is correct and more explicit about the sort direction.

sample_app/lib/pages/pinned_messages_screen.dart (1)

28-28: Correct migration to new SortOption API.

The change from the deprecated constructor to SortOption.asc('created_at') properly migrates to the new API while maintaining the same sorting behavior.

sample_app/lib/pages/channel_list_page.dart (1)

50-54: LGTM! Proper const optimization.

Adding const to the PositionedDirectional widget aligns with the StreamUnreadIndicator becoming a const constructor. This improves performance by allowing Flutter to reuse the widget instance.

sample_app/lib/pages/channel_file_display_screen.dart (1)

34-34: LGTM! Correct migration to new SortOption API.

The change properly migrates from the deprecated SortOption constructor to the new SortOption.asc('created_at') named constructor, maintaining the same sorting behavior.

sample_app/lib/pages/channel_media_display_screen.dart (1)

36-36: LGTM! Consistent migration to new SortOption API.

This change maintains consistency with other files in the codebase by migrating to the new SortOption.asc('created_at') named constructor.

sample_app/lib/pages/chat_info_screen.dart (1)

54-54: LGTM! Improved API simplifies permission checking.

The migration from the verbose channel.ownCapabilities.contains(PermissionType.deleteChannel) to the concise channel.canDeleteChannel improves readability while maintaining the same functionality.

packages/stream_chat/test/fixtures/message.json (1)

51-58: LGTM! Test fixture correctly updated for new reaction data model.

The new reaction_groups structure consolidates reaction data more effectively than the deprecated separate reaction_counts and reaction_scores fields. The fixture includes the proper schema with count, sum_scores, and timestamp metadata.

packages/stream_chat_flutter/lib/src/attachment/handler/stream_attachment_handler_base.dart (1)

34-34: LGTM: Improved API with granular compression control.

The replacement of the deprecated boolean allowCompression parameter with an integer compressionQuality parameter provides better control over file compression settings.

sample_app/lib/pages/group_info_screen.dart (2)

108-108: LGTM: Modern factory method for sort options.

Using SortOption.asc('name') factory method provides a cleaner and more readable API compared to the deprecated constructor.


194-194: LGTM: Improved permission checking with channel-level methods.

The migration from deprecated PermissionType constants to high-level boolean getters on the channel object (canUpdateChannelMembers, canUpdateChannel, canMuteChannel, canLeaveChannel) provides a more intuitive and encapsulated API for permission checks.

Also applies to: 219-219, 412-412, 478-478, 564-564

packages/stream_chat_flutter/lib/src/message_input/attachment_picker/options/stream_file_picker.dart (1)

22-22: LGTM: Consistent API migration for compression control.

The replacement of the deprecated allowCompression boolean with compressionQuality integer parameter is consistent with the handler base class changes and provides better granular control over file compression settings.

Also applies to: 46-47, 76-76

packages/stream_chat/test/src/core/models/message_test.dart (2)

27-28: LGTM: Proper migration to reactionGroups API.

The test correctly updates from deprecated reactionCounts and reactionScores properties to the new reactionGroups approach, accessing count and sum scores through the reaction group objects.


290-316: LGTM: Comprehensive test coverage for reactionGroups.

The test method properly validates the new reactionGroups functionality, ensuring that reaction data is correctly stored and accessible through the updated API structure.

packages/stream_chat_flutter/lib/src/message_input/stream_message_input.dart (1)

127-128: LGTM! Successful deprecation cleanup.

The removal of deprecated parameters (idleSendButton, activeSendButton, useNativeAttachmentPickerOnMobile) and retention of their current equivalents (idleSendIcon, activeSendIcon, useSystemAttachmentPicker) successfully simplifies the API surface. This change eliminates the need for parameter validation and merging logic between deprecated and current parameters.

Also applies to: 159-159, 163-163

packages/stream_chat/lib/src/core/models/message.dart (2)

37-37: LGTM! Reaction system successfully consolidated.

The removal of deprecated reactionCounts and reactionScores constructor parameters in favor of the unified reactionGroups approach simplifies the reaction data model. This eliminates the complexity of managing separate reaction counts and scores while maintaining all necessary reaction functionality through the reaction groups.


417-417: LGTM! Clean copyWith implementation.

The direct assignment of reactionGroups without fallback logic to deprecated reaction fields correctly implements the simplified reaction model. This removes the complexity of merging deprecated reactionCounts and reactionScores data, ensuring consistent use of the unified reaction system.

packages/stream_chat/CHANGELOG.md (1)

1-10: LGTM! Well-documented breaking changes for v10 cleanup.

The changelog properly documents the deprecated API removal with clear migration guidance. The format follows established conventions and provides users with the information needed to upgrade.

packages/stream_chat_flutter/lib/src/message_input/stream_message_send_button.dart (1)

14-17: Clean removal of deprecated constructor parameters.

The constructor has been properly simplified to only include the current parameters, maintaining a clean API surface for v10.

packages/stream_chat_flutter/lib/src/icons/stream_svg_icon.dart (2)

16-24: Clean simplification of constructor parameters.

The constructor has been properly simplified by removing deprecated parameters while maintaining all essential functionality for icon rendering.


102-110: Simplified build method with direct icon usage.

The build method is now cleaner with direct icon parameter usage, eliminating legacy code paths and deprecated parameter handling.

@xsahil03x
Copy link
Member Author

@coderabbitai review

Copy link
Contributor

coderabbitai bot commented Jul 15, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@xsahil03x xsahil03x requested a review from renefloor July 15, 2025 00:40
Copy link

codecov bot commented Jul 15, 2025

Codecov Report

Attention: Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (v10.0.0@74188e3). Learn more about missing BASE report.

Files with missing lines Patch % Lines
.../attachment_picker/options/stream_file_picker.dart 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             v10.0.0    #2306   +/-   ##
==========================================
  Coverage           ?   64.43%           
==========================================
  Files              ?      410           
  Lines              ?    25222           
  Branches           ?        0           
==========================================
  Hits               ?    16251           
  Misses             ?     8971           
  Partials           ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xsahil03x
Copy link
Member Author

@coderabbitai review

Copy link
Contributor

coderabbitai bot commented Jul 15, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant