Releases: google/built_value.dart
Releases · google/built_value.dart
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)
Bump `analyzer` dependency
v8.0.5 Release 8.0.5. (#1026)
Bump `source_gen` dependency
v8.0.4 Release 8.0.4. (#1010)
Fix error message, bump `package:build`
- Fix error message for builder factory not installed.
- Bump version of
build.
Bump analyzer, quiver versions
v8.0.2 Bump packages, release 8.0.2. (#1001)
Sound null safety fix, other fixes
8.0.1
- Update
chatexample to webdev. - Allow nulls when serializing/deserializing for better JSON interop.
- Fix generation bugs around enum wire name and polymorphism.
- Fix generation with generics for analysis with
strict-raw-types. - Add test coverage around generation for generic serialization.
- Add test coverage around initialization with generics.
Note that you are unlikely to be able to use this version due to version issues; 8.0.2 will be released next for that.