Releases: google/built_value.dart
Releases · google/built_value.dart
Fix serializer generation corner case
- Bug fix: fix a corner case with generics that had incorrect serializer generation.
Fix build warning
- Bug fix: remove a
printfrom the enum generator.
Fix deps
- Fix deps: allow
built_value_generatorto usebuilt_value 8.2.0.
Generator improvements for lints, bump `analyzer`
- Allow writing final parameters in EnumClass constructor and valueOf method.
- Make generator output additional explicit null checks so the generated code complies with the
cast_nullable_to_non_nullablelint. - Bump version of
analyzer.
Bump version of `analyzer`
- Bump version of
analyzer.
Bump version of `analyzer`
- Bump version of
analyzer, fix deprecation warnings.
Bump version of `analyzer`
- Bump version of
analyzer.
Bug fix for constructor annotations
- Bug fix: allow constructors to have annotations. Previously, annotations
would cause codegen to fail.
Fixes, improvements and @BuiltValueHook
New features:
- Add
@BuiltValueHookannotation. It provides the same functionality as
_initializeBuilderand_finalizeBuilder, but in a more visible way:
annotate a static method on the value class with@BuiltValueHookto
have it called on builder creation or finalization. - Add back
serializeNullstoBuiltValueSerializerannotation. By default
generated serializers skip null fields instead of writing them; set
serializeNullsto write the nulls.
New minor functionality:
- Support use of nulls in collections when the key or value types are
explicitly nullable. - Allow
JsonObjectto be instantiated from aMap<dynamic, dynamic>. - Mark nested builder getters in
instantiable: falseclasses not nullable,
to match the implementations. UseautoCreateNestedBuilders: falseto get
the old behaviour. - Allow explicit nulls in JSON for nullable fields when deserializing.
- Specify annotation targets; the analyzer will now hint if a
built_value
annotation is used where it has no effect. - Support polymorphism with mixed in parent value type: generated builder
now mixes in parent builder.
Bug fixes:
- Fix support for serializing and deserializing nulls.
- Fix
nestedBuilders: falsewithinstantiable: false. - Fix enum deserialization fallback for
int. - Annotating a wrong type getter with
@SerializersForis now an error,
instead of just generating nothing.
Cleanup:
- Removed Angular mixin from example, as this feature is no longer needed:
Angular now directly supports using static members in templates.
Bump versions of build_config and build_runner.
v8.0.6 Bump packages. Release 8.0.6. (#1031)