Releases: google/built_value.dart
Releases · google/built_value.dart
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.
Improved build performance
- Improve build performance when there are lots of
built_valueclasses.
Fix for new `operator==` warning
- Fix for new warning about
operator==param type.
StandardJsonPlugin improvement, EnumClass fix
- In
StandardJsonPlugin, add support for specifying types that should be left asList. - Allow non alphanumeric characters in
EnumClassnames.
Allow serializing record fields
- Allow classes with record fields to be serialized if they use a typedef for
the record type and install a customSerializerfor it.