- Support
pkg:build
1.X
- Add support for final properties
- Add support to skip private properties
- Add support for constructor arguments
- Add support for getters
Breaking changes
DateTimeParser
is deprecated. The default is now thejson_serializable
implementation and it's no longer necessary to register a transformer at all.- Generator no longer create
_Dartson$impl
class instance and instead callsDartson
constructor directly
- Add replacement functionality
- Add
encodeList
anddecodeList
for de/serializing lists directly - Fix #51 by adding latest version constrain
- Add
extend
method toDartson
to extend a serializer - Fix bug where
codec
is always set to null
Breaking changes
- Codec usage is now different, please see
README.md
DartsonEntityNotExistsException
renamed toUnknownEntityException
NoDeserializeMethodOnTypeTransformer
renamed toMissingDecodeMethodException
NoSerializeMethodOnTypeTransformer
renamed toMissingEncodeMethodException
- Support dart 2.0 with
build_runner
- Add enum support (thanks to
json_serializable
)
Breaking changes
@Entity
is deprecated and ignored- See
README.md
for how to use dartson1.0.0
- Reflection implementation is currently not supported (still under evaluation if it will be supported in the future)
- Bump dependency versions in pubspec
- Support for "double" types
- Update of source_spans dependency
- Updated analyzer and test dependency (thanks to @rightisleft)
- Changed the default DateTime serialized format to ISO 8601 with Z notation.
- Added a transformer that generates static serialization rules and does not use mirrors.
- Breaking changes:
- You now have to instantiate a Dartson instance instead of relying on global functions.
- You now add custom transformer to the Dartson instance instead of adding them globally.
- Added dartson.fill function
- Compatible to dart 1.4+
- Added dartson.TypeTransformer see README.md
- Added package:dartson/default_transformers.dart
- Fixed @MirrorsUsed annotations
- Added map and mapList functions to use an already parsed map