Releases: google/built_value.dart
Releases · google/built_value.dart
Dart 3 support, Uint8ListSerializer
- Add
Uint8ListSerializer. - Generate Dart-3-compatible code if needed.
- Stop using deprecated analyzer API.
- Fix codegen for optional fields with
$in the name.
Analyzer version, codegen fix
- Increase minimum version of
analyzer. - Fix generation with the type
Never.
Deserialization fix, minor improvements
- Fix generated deserialization code when there is a manually written builder
with nullable fields. - Drop dev dependency on
quiver. - Disable all linting of generated code.
- Change generated hash code implementation so it formats better when there are
many fields.
Bump version of `analyzer`
- Prepare for breaking analyzer changes.
- Bump version of
analyzer.
Bump version of `analyzer`
- Bump version of
analyzer.
Custom builder improvements; enum improvement
- Fix custom builders in null safe code: allow nested builder fields to be
nullable. - Improve custom builders for null safe code: allow abstract setter/getter
pairs instead of fields. This allows nested builders to have a setter that
acceptsnulland a getter that guarantees not to returnnull, which is
what auto instantiation of nested builders already provides. - Allow use of super field initialization in
EnumClass.
Fix codegen for generic bounds
- Fix erroneously generated null check for fields with generic bounds.
Null safe `built_value_test`
- Migrate
built_value_testto null safety.
Generator fixes, ignore lint
- Fix generation support for optional generic bounds, e.g.
class Foo<T extends Object?>. - Fix generation for classes with names starting
$. - Ignore lint
unnecessary_lambdasin generated code.
Generator improvements
- Change generated
buildmethods to return only public types, creating
_buildmethods that return the generated impl types. This means dartdoc
will no longer reference the generated types. - Ignore the
no_leading_underscores_for_local_identifierslint in generated
code. - Migrated
built_value_generatorto null safety. This is purely an internal
change, the generator can still generate legacy code as and when needed.