Skip to content

Fix strict CI analysis with Equatable 2.1 - #323

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

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

Conversation

@nausharipov

@nausharipov nausharipov commented Dec 4, 2026 •

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 all eight models to with Equatable. They continue to compare by value using their existing props.

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, change type annotations, casts, and is checks from EquatableMixin to Equatable. 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 to Equatable and that equivalent instances can be found in a set.

@nausharipov nausharipov closed this Dec 4, 2026
@nausharipov
nausharipov deleted the codex/equatable-ci-fix branch December 4, 2026 13:09
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