Repository navigation
Fix strict CI analysis with Equatable 2.1 - #323
Closed
nausharipov wants to merge 2 commits into
Closed
nausharipov wants to merge 2 commits into
nausharipov wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Equatable 2.1 deprecates
EquatableMixin, causing strict analysis to fail on eight editor models and blocking #322. This PR raises the dependency toequatable: ^2.1.0and migrates all eight models towith Equatable. They continue to compare by value using their existingprops.Consumer migration
Apps pinned to Equatable 2.0.x must allow 2.1.0 or later in the 2.x series. For affected models such as
FoldableBlock,InvalidFoldableBlock, andNamedSection, change type annotations, casts, andischecks fromEquatableMixintoEquatable. The changelog records this breaking change.Verification
Strict analysis (
dart analyze --fatal-infos), formatting, and all 285 tests passed locally with FVM Flutter 3.19.6 and Dart 3.3.4. A new regression test checks that the three exported models are assignable toEquatableand that equivalent instances can be found in a set.