Skip to content

Releases: google/built_value.dart

Update analyzer and build dependencies

22 May 12:40
Compare
Choose a tag to compare
Merge pull request #167 from davidmorgan/release-1-1-1

Release 1.1.1

Allow quiver 0.25.

07 Apr 12:30
Compare
Choose a tag to compare
Merge pull request #163 from davidmorgan/allow-quiver-25

Allow quiver 0.25.

Customizable toString, improved generated output

31 Mar 11:20
Compare
Choose a tag to compare
  • Version bump to 1.0.0. Three minor features are marked as experimental and
    may change without a major version increase: BuiltValueToStringHelper,
    JsonObject and SerializerPlugin.
  • Made toString() output customizable.
  • Made the default toString() output use indentation and omit nulls.
  • Sort serializers in generated output.

Ignore nulls when deserializing with StandardJsonPlugin

22 Mar 14:33
Compare
Choose a tag to compare
  • Ignore nulls when deserializing with StandardJsonPlugin.

Serialize DateTime, JsonObject, convenience methods, doubles.

10 Mar 11:25
Compare
Choose a tag to compare
  • Add serializer for "DateTime" fields.
  • Add JsonObject class and serializer.
  • Add convenience methods Seralizers.serializeWith and deserializeWith.
  • Add example for using StandardJsonPlugin.
  • Support serializing NaN, INF and -INF for double and num.

Serializable "num", more flexible factory, bug fixes

03 Mar 15:39
Compare
Choose a tag to compare
  • Add serializer for "num" fields.
  • Better error message for missing serializer.
  • Fix generation when there are nested multi-parameter generics.
  • Use cascades in generated code as suggested by lint.
  • Allow users to define any factory that references the generated implementation.
  • Add example of a simpler factory for a one-field class.

Better checking, lintable generated code, faster ==

28 Feb 14:16
Compare
Choose a tag to compare

Note that with this change, serializer fields will need to be changed to getters if they are not already getters. The "build" or "watch" script will fail with an appropriate error message if this is the case.

  • Enforce that serializer declarations refer to the right generated name.
  • Streamline generation for classes with no fields.
  • Add identical check to generated operator==.
  • Make generated code compatible with strong mode implicit-dynamic:false and implicit-cast:false.

Better checking, update deps

31 Jan 10:38
Compare
Choose a tag to compare
  • Add null check to generated builder "replace" methods.
  • Fail with error on abstract enum classes.
  • Update to build 0.7.0, build_runner 0.3.0, and build_test 0.4.0.

Support "import ... as" for field types

17 Jan 15:26
Compare
Choose a tag to compare
Merge pull request #107 from davidmorgan/release-0-5-2

Release 0.5.2.

Memoization, generics, standard JSON

16 Jan 15:55
Compare
Choose a tag to compare
  • Add @memoized. Annotate getters on built_value classes with @memoized to memoize their result. That means it's computed on first access then stored in the instance.
  • Support generics, in value types and in serialization.
  • Add support for "standard" JSON via StandardJsonPlugin.