Releases: google/built_value.dart
Releases · google/built_value.dart
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
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.
Null safety
- Stable null safe release.
- Add
toJson
andfromJson
convenience methods toSerializers
.
Private classes, enum `wireNumber`, memoizable `hashCode`
- Support private
Built
classes. Note that private classes cannot be made
serializable. - Support serializing enums to ints: add
wireNumber
to
@BuiltValueEnumConst
. - Support memoizing
hashCode
, so it's computed lazily once. Write an abstract
getterint get hashCode;
then annotate it with@memoized
to turn this on
for abuilt_value
class. - Trim
built_value_test
dependencies: depend onmatcher
instead oftest
. - Fix enum generator error messages when
value
andvalueOf
are missing.
Fix for dollars in field names
- Fix unescaped string usages while generating
ValueSourceClass
. - Fix analyzer use: don't rely on
toString
on types.
Fix `analyzer` lower bound
- Fix
analyzer
lower bound: was0.39.0
, needs to be0.39.3
.
Fix regressions mixin, tweak strict analysis compliance
- Fix regression in a corner case when determining which fields to generate
based on mixins. - Tweak generation changes for
implicit-casts: false
and
implicit-dynamic: false
. Relax casts again where possible.
Comply with strict-raw-types, implicit-casts: false, implicit-dynamic: false
- Make generated code comply with analyzer option
strict-raw-types
. - Allow
Serialiers
declaration to comply withstrict-raw-types
, or to
continue to use raw types as before. - Make generated code comply with analyzer options
implicit-casts: false
andimplicit-dynamic: false
.