Skip to content

Breaking changes to serialization

Choose a tag to compare

@davidmorgan davidmorgan released this 06 Sep 12:20
· 845 commits to master since this release

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.