- Added annotation for ignoring value :
IgnoreValue
. - Bumped dependencies
- Updated dependency to work with the new code_transformers version. di.dart still depends on a old one, hence the git dependency.
- Fix transformer crash when encoding a Map or List without type parameters.
- Fix decode of Map values
- Fix: decode and encode of null value now returns null, instead of throwing an error.
- Fix: directly encoding or decoding core types (for example: decode(42, int);) does not work when compiled to javascript
- Fix decoding of inherited properties
- Updated dependencies.
Note: this version requires Dart 1.7 or above
This release includes fixes and improvements for the client-side support (thanks to prujohn for all the feedback):
- Fix: Compilation errors when using the
view
ormodel
parameters on fields. - Fix: When compiled to javascript, the mapper can't encode or decode objects with nested lists or maps.
- Added the
encodeJson()
anddecodeJson()
top-level functions. - Improved error handling.
- Improved documentation:
- Fixed some typos (thanks to sethladd)
- Added information about integration with polymer
- Widen the version constraint for
code_transformers
- Fix: When compiled to Javascript, redstone_mapper is not decoding DateTime objects properly.
- Fix: redstone_mapper should not suppress error messages from the mirrors api.
- Fix: when mapping json objects, redstone_mapper should handle DateTime objects as ISO 8601 strings.
- Widen the version constraint for
analyzer
- Fix: Properly handle setter methods.
- The
@Encode
annotation can now be used with groups. If a group is annotated with@Encode
, then redstone_mapper will encode the response of all routes within the group.
- Fix: transformer is generating broken code for validators.
- First release.