NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev, #654 most downloaded on pub.dev
Value types with builders, Dart classes as enums, and serialization. This library is the dev dependency.
Latest stable
8.13.0
Last release 2 months ago
02 Sep 2026
Ships fairly regularly
a new release about every 5 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
163 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Fixes some corner cases in generation.
Fixes some corner cases in generation.
Generated code ignores more lints.
Generated code now has ignore_for_file for a few lints.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Improved annotation handling for corner cases.
This release requires minor tweaks to your build.dart and watcher.dart, hence the major version bump. Please follow the examples:
This release requires minor tweaks to your build.dart and watcher.dart, hence the major version bump. Please follow the examples:
https://github.com/google/built_value.dart/blob/master/example/tool/build.dart https://github.com/google/built_value.dart/blob/master/example/tool/watch.dart
Use build ^3.0.0 . Use source_gen ^3.0.0 .
build ^3.0.0.source_gen ^3.0.0.This release contains two breaking changes to serialization.
First, DateTime serialization is fixed. Previously, it discarded microseconds. This is an incompatible change to the data format. If you need help adapting data using the old format, please file an issue.
Second, the way classes to serialize are discovered has changed. Previously, they were found by searching all available Dart libraries. This was slow and hard to control. Instead, there is a new annotation, @SerializersFor, which needs to be added to your serializers declaration. See the example.
Add "nestedBuilders" setting. Defaults to true; set to false to stop using nested builders by default in fully generated builders.
Please make the following trivial update to your build.dart and watch.dart: replace the string GeneratorBuilder with PartBuilder.
build.dart and
watch.dart: replace the string GeneratorBuilder with PartBuilder.Nothing published for this version
Fix depending on a fully generated builder from a manually maintained builder.
@override them.Add a dependency on SDK 1.21 so the non-comment generic syntax is allowed.
Add a dependency on SDK 1.21 so the non-comment generic syntax is allowed.
Removed dependency on now-unneeded package:meta.
1.1.4 will be released next, restoring the non-comment syntax for generics and adding a dependency on SDK 1.21.
Prior to this release, the built_value code generator did unnecessary work for non-built_value files.
Prior to this release, the built_value code generator did unnecessary work for non-built_value files.
It should now be much faster when generating code for large projects containing many non-built_value files.
The actual code generated and runtime are the same.
Nothing published for this version
Nothing published for this version
Version bump to 1.0.0. Three minor features are marked as experimental and may change without a major version increase: BuiltValueToStringHelper, Json
Ignore nulls when deserializing with StandardJsonPlugin.
Add serializer for "DateTime" fields.
Add serializer for "num" fields.
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 f
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.
Add null check to generated builder "replace" methods.
Nothing published for this version
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
@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.Update dependency on analyzer, build, quiver. Breaking change: your build.dart and watch.dart now need to import build_runner/build_runner.dart instea…
Update dependency on analyzer, build, quiver. Breaking change: your build.dart and watch.dart now need to import build_runner/build_runner.dart instead of build/build.dart.
Before this fix, they would return null until a setter was used.
Before this fix, they would return null until a setter was used.
Fix lints, fix lints in generated code.
Fix lints, fix lints in generated code.
Allow you to write "void updates" in the builder factory instead of just "updates".
Fix exception from serializer generator if builder field is incorrect.
Breaking change: if you hand-code the builder then you must mark the fields @virtual so they can be overriden in the generated code.
Merge built_json into built_value, built_json_generator into built_value_generator.
Merge built_json into built_value, built_json_generator into built_value_generator.
Fix generation for classes that implement multiple interfaces.
Add support for serializing multimaps.
Merged enum_class and enum_class_generator into built_value and built_value_generator. These are intended to be used together, and make more sense as
Merged enum_class and enum_class_generator into built_value and built_value_generator. These are intended to be used together, and make more sense as a single package.
Add checking for correct type arguments for Built and Builder interfaces. Generate empty constructor with semicolon instead of {}. Use ArgumentError.n
Add checking for correct type arguments for Built and Builder interfaces. Generate empty constructor with semicolon instead of {}. Use ArgumentError.notNull for null errors. Reject dynamic fields. Add simple benchmark for hashing. Improve hashing performance.
Nothing published for this version
Nothing published for this version
Generate builder if it's not written by hand. Make toString append commas for improved clarity. Improve examples and tests. Fix double null checking.
Generate builder if it's not written by hand. Make toString append commas for improved clarity. Improve examples and tests. Fix double null checking.
Internal refactoring, no visible changes.
Internal refactoring, no visible changes.
Nothing published for this version
Breaking change; see example for required changes to build.dart.
Breaking change; see example for required changes to build.dart.
Move null checks to "build" method for compatibility with Strong Mode analyzer. Allow (and ignore) setters. Allow custom factories on value classes.
Move null checks to "build" method for compatibility with Strong Mode analyzer. Allow (and ignore) setters. Allow custom factories on value classes.
Fixed for changes to analyzer library, changed pubspec to avoid future breakage.
Fixed for changes to analyzer library, changed pubspec to avoid future breakage.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.