Skip to content

Fix strict CI analysis with Equatable 2.1 - #324

Open
nausharipov wants to merge 2 commits into
mainfrom
chore/equatable-ci-fix
Open

nausharipov wants to merge 2 commits into
mainfrom
chore/equatable-ci-fix

Conversation

@nausharipov

Copy link
Copy Markdown
Collaborator

Summary

Equatable 2.1 deprecates EquatableMixin, causing strict analysis to fail on eight editor models and blocking #322. This PR raises the dependency to equatable: ^2.1.0 and migrates those models to with Equatable. Their existing props continue 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, and NamedSection, update type annotations, casts, and is checks from EquatableMixin to Equatable. 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 Equatable and that a set can find an independently constructed equivalent instance.

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