Skip to content

Releases: google/built_value.dart

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)

Bump `analyzer` dependency

22 Apr 13:52
42b93da

Choose a tag to compare

v8.0.5

Release 8.0.5. (#1026)

Bump `source_gen` dependency

22 Mar 08:19
c161995

Choose a tag to compare

v8.0.4

Release 8.0.4. (#1010)

Fix error message, bump `package:build`

17 Mar 09:37
6174198

Choose a tag to compare

  • Fix error message for builder factory not installed.
  • Bump version of build.

Bump analyzer, quiver versions

09 Mar 10:39
d6841f4

Choose a tag to compare

v8.0.2

Bump packages, release 8.0.2. (#1001)

Sound null safety fix, other fixes

09 Mar 10:32
73a3847

Choose a tag to compare

8.0.1

  • Update chat example 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.