Releases: google/built_value.dart
Releases · google/built_value.dart
Reduced dynamic calls
- Reduce use of dynamic calls in generated
operator==when there are
functions: only use dynamic calls if the class also has type parameters.
Require `analyzer ^10.0.0`
- Require
analyzer ^10.0.0, stop using removed and deprecated methods from
earlier versions.
Allow analyzer 10.0.0
- Allow
analyzer 10.0.0.
Allow `analyzer 9.0.0`
- Allow
analyzer 9.0.0.
Update dependencies
- Require
analyzer ^8.0.0. - Allow
built_value_generatorto usebuild 4.0.0. - Allow
built_value_generatorto usesource_gen 4.0.0.
Use `build 3.0.0`
- Use
build ^3.0.0. - Use
source_gen ^3.0.0.
Use `build ^3.0.0-dev`
- Use
build ^3.0.0-dev. - Use
source_gen ^3.0.0-dev.
Serialize mutable collections
- Add mutable collection serializers so
built_valuecan serializeList,
SetandMap. It's still recommended to avoid mutable collections inside
value types as they break hashing, comparison and caching; the intended use
case is that you have one top level mutable collection of your immutable
value types.
Improvements to generation
- Stop generating unnecessary
newkeywords. - Stop generating explicit null checks in constructors: these are not needed
with sound null safety. - Stop generating checks for
dynamicin generics in constructors: accidental
use ofdynamicis better avoided with lints than a runtime check.
Improved build performance
- Generate code that formats faster with current "short" style. Both versions
are fast with the coming "tall" style. - Mark
@nullabledeprecated: it does nothing and should not be used.
The build is almost 2x faster than before.