Repository navigation
Fix strict CI analysis with Equatable 2.1 - #324
Open
nausharipov wants to merge 2 commits into
Open
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 those models towith Equatable. Their existingpropscontinue to determine equality.This replaces #323 and contains the same commits.
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, update type annotations, casts, andischecks fromEquatableMixintoEquatable. The changelog documents this breaking change.Verification
Strict analysis, formatting, and all 285 tests passed with FVM Flutter 3.19.6 and Dart 3.3.4. The new regression test verifies that the three exported models are assignable to
Equatableand that a set can find an independently constructed equivalent instance.