Skip to content

Releases: google/built_value.dart

Advanced features, formatting and fixes

09 Apr 11:53
a0c36f8
Compare
Choose a tag to compare
  • Add @BuiltValue(generateBuilderOnSetField: true) which provides a way to
    listen for set calls on generated builders.
  • Add @BuiltValueEnumConst(fallback: true) as a way to mark an enum const
    as the fallback when valueOf or deserialization fails.
  • Add @BuiltValueSerializer(serializeNulls: true as a way to modify the wire
    format to explicitly contain null values.
  • Make it possible to merge Serializers instances: add a builderFactories
    getter that returns installed builder factories.
  • Use new Function syntax everywhere.
  • Bug fix: only generate builder factories for fields that are Built
    types or built_collection collections.

Allow `analyzer` 0.35.0

08 Mar 12:33
c39a807
Compare
Choose a tag to compare
Merge pull request #602 from davidmorgan/release-6-3-2

Release 6.3.2.

Fix serialization corner case

28 Feb 15:10
d191775
Compare
Choose a tag to compare
  • Fix BuiltList serialization when using StandardJsonPlugin with unspecified type and when list length is 1.

Builder flexibility and minor features

21 Jan 16:37
71464cd
Compare
Choose a tag to compare
  • Allow custom builders to use setter/getter pairs instead of normal fields.
  • Add an option to @BuiltValue to turn off auto instantiation of nested
    builders.
  • Add @BuiltValueSerializer annotation which gives the option to specify a
    custom serializer for a class.
  • Make it possible to merge Serializers instances: add a serializers
    getter that returns the installed serializers.
  • Add serializer for RegExp fields.
  • Allow analyzer 0.34.0.

Comparable builders; serializable `Duration`; fixes

12 Dec 10:27
c354860
Compare
Choose a tag to compare

New features:

  • Add an option to @BuiltValue to generate comparable builders.
  • Add serializer for Duration fields.
  • Add serializerForType and serializerForWireName methods to Serializers.

Improvements:

  • Add ignore for avoid_as lint to generated code.
  • Put ignored lints on a single line at the end of the generated output.
  • Stop checking for import of built_value.dart when EnumClass is used; this
    was expensive.

Fixes:

  • Fix tests following changes to source_gen error output.
  • Fix generation when new mixin declarations are used.
  • Support dollar signs in enum value names.
  • Fix nested collections when using a custom builder.

Switch to new analyzer API in version `0.33.3`.

08 Nov 10:40
9161418
Compare
Choose a tag to compare
Merge pull request #530 from davidmorgan/analyzer-patch

Update for analyzer 0.33.3.

Bump versions of `analyzer`, `analyzer_plugin`, `build`, `build_runner`

29 Oct 14:12
0dc560a
Compare
Choose a tag to compare
Merge pull request #526 from davidmorgan/release-6-1-5

Release 6.1.5.

Minor fixes, `build` version

27 Sep 14:25
50a3849
Compare
Choose a tag to compare
  • Allow polymorphic base classes to omit implementing Built while still
    implementing any other interface(s).
  • Allow the dollar character in wireName settings.
  • Allow build version 1.0.

Improvements to built_value_test

13 Sep 12:45
ec4c3d9
Compare
Choose a tag to compare
  • Add built_value_test support for remaining built collections.

Minor fixes

04 Sep 07:08
b1ce2b5
Compare
Choose a tag to compare
  • Fix generated operator== when a type uses generic functions.
  • Fix generated code for curly_braces_in_control_flow lint.