Skip to content

Releases: google/built_value.dart

Fix serializer generation corner case

27 Apr 14:51

Choose a tag to compare

  • Bug fix: fix a corner case with generics that had incorrect serializer generation.

Fix build warning

27 Apr 08:24

Choose a tag to compare

  • Bug fix: remove a print from the enum generator.

Fix deps

26 Apr 13:44

Choose a tag to compare

  • Fix deps: allow built_value_generator to use built_value 8.2.0.

Generator improvements for lints, bump `analyzer`

15 Apr 04:49

Choose a tag to compare

  • 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_nullable lint.
  • Bump version of analyzer.

Bump version of `analyzer`

14 Jan 11:22

Choose a tag to compare

  • Bump version of analyzer.

Bump version of `analyzer`

28 Oct 06:30

Choose a tag to compare

  • Bump version of analyzer, fix deprecation warnings.

Bump version of `analyzer`

09 Aug 13:07

Choose a tag to compare

  • Bump version of analyzer.

Bug fix for constructor annotations

09 Jul 12:10

Choose a tag to compare

  • Bug fix: allow constructors to have annotations. Previously, annotations
    would cause codegen to fail.

Fixes, improvements and @BuiltValueHook

18 Jun 14:35

Choose a tag to compare

New features:

  • Add @BuiltValueHook annotation. It provides the same functionality as
    _initializeBuilder and _finalizeBuilder, but in a more visible way:
    annotate a static method on the value class with @BuiltValueHook to
    have it called on builder creation or finalization.
  • Add back serializeNulls to BuiltValueSerializer annotation. By default
    generated serializers skip null fields instead of writing them; set
    serializeNulls to write the nulls.

New minor functionality:

  • Support use of nulls in collections when the key or value types are
    explicitly nullable.
  • Allow JsonObject to be instantiated from a Map<dynamic, dynamic>.
  • Mark nested builder getters in instantiable: false classes not nullable,
    to match the implementations. Use autoCreateNestedBuilders: false to 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: false with instantiable: false.
  • Fix enum deserialization fallback for int.
  • Annotating a wrong type getter with @SerializersFor is 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.

06 May 10:26
a9e44b5

Choose a tag to compare

v8.0.6

Bump packages. Release 8.0.6. (#1031)