Releases: google/built_value.dart
Releases · google/built_value.dart
Null safety
- Stable null safe release.
- Add
toJsonandfromJsonconvenience methods toSerializers.
Private classes, enum `wireNumber`, memoizable `hashCode`
- Support private
Builtclasses. Note that private classes cannot be made
serializable. - Support serializing enums to ints: add
wireNumberto
@BuiltValueEnumConst. - Support memoizing
hashCode, so it's computed lazily once. Write an abstract
getterint get hashCode;then annotate it with@memoizedto turn this on
for abuilt_valueclass. - Trim
built_value_testdependencies: depend onmatcherinstead oftest. - Fix enum generator error messages when
valueandvalueOfare missing.
Fix for dollars in field names
- Fix unescaped string usages while generating
ValueSourceClass. - Fix analyzer use: don't rely on
toStringon types.
Fix `analyzer` lower bound
- Fix
analyzerlower 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: falseand
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
Serialiersdeclaration 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.
Add `example` folders
- Add
examplefolders withREADME.mdpointing to examples.
Internal cleanup
Internal: cleanup for pedantic v1.9.0 lints.
Internal cleanup
- Internal: cleanup for pedantic v1.9.0 lints.
Deps cleanup
- Internal: clean up
built_value_generator->built_valuedependency;
depend on minor instead of major version so we can in future handle tight
coupling between the two without a major version bump tobuilt_value.