fast_equatable 2.0.0
fast_equatable: ^2.0.0 copied to clipboard
A Dart mixin for value-based equality with optional hash caching for immutable objects.
2.0.0 #
- Breaking: Make
==value-based by comparinghashParametersdirectly instead of relying on hash equality or equality policy flags. - Breaking: Remove per-instance
hashEngineconfiguration fromEquatableValue. - Breaking: Stop treating
EquatableValue.immutableas part of semantic identity. - Deprecate
additionalEqualityCheck, which no longer affects equality. - Fix nested
FastEquatablecomparisons so later fields are no longer skipped. - Add a hash-mismatch fast reject before the final value comparison.
- Fix
TypedDatahashing to respect the view'soffsetInBytesandlengthInBytes. - Add regression tests for nested values, equality policy independence,
EquatableValue, andTypedDataviews.
1.3.1 #
- Fix compatibility issue of
xxh3for web
1.3.0 #
- Set
cacheHashdefault totruee.g. assuming immutability - Expose
EquatableValuewrapper
1.2.0 #
- Use
xxh3forTypedData - Export
secureHashthroughhash.dart - Refactored codebase
1.1.0 #
- Added
mustBeOverridenandmustCallSuperannotation - Potentially Breaking: Simplify codebase by removing internal
IFastEquatable
1.0.0 #
- Updated to Dart 3
- Switched from
lintstolint - Fixed lints
- Minor performance optimizations
0.9.1 #
- Added
metadependency - Annotated some members with
@protected
0.9.0 #
- Initial version.