Releases: moseskarunia/cornerstone
Releases · moseskarunia/cornerstone
cornerstone-v2.0.0-nullsafety.1
[2.0.0-nullsafety.1] - 4 March 2021
- New: Null-safety! To use, update your dart version to >=2.12.0, or use flutter 2.0.0
- Update: [CornerstonePersistentRepositoryMixin] If load is called on empty storage, will return a nicer Failure.
cornerstone-v1.1.1
[1.1.1] - 24 February 2021
- Fix: Properly export
CornerstoneException
.
cornerstone-v1.1.0
- New:
CornerstoneException
, a common exception model to make repository layer even more decoupled. - Update: Bump
json_serialization
dependency to^3.1.1
cornerstone-v1.0.0
- Breaking:
CornerstonePersistentRepositoryMixin
'sloadData()
is now removed. You just need to add dependency ofconvertToSnapshot
to persistent repository withCornerstonePersistentRepositoryMixin
. The mixin now handles loading data, and assigning it torepo.snapshot
(Means less code to write!). The snapshot is now namedsnapshot
, and declared in the mixin (you can override it). If you want to use other names for snapshot, you need to overrideload
. You can overridesnapshot
if you want to assign default value to it (Seeauto_persistent_people_repository.dart
in example). - First stable release of cornerstone! From now on, breaking changes will only introduced with new major version.
cornerstone-v0.1.2
- New:
CornerstonePersistentRepositoryMixin
to easily add persistence functionality to your repos. Made possible usingHive
. - New:
Hive
as a dependency forCornerstonePersistentRepositoryMixin
. - New:
ConvertExceptionToFailure
. A mockable & reusable exception -> failure converter. This way if you have a lot of functions in a repo, doesn't need to keep testing each function for its error handling. - New:
CornerstoneSnapshot
. You can use it as base class for your repositories. It have built-in convenience like timestamp. - New: Example project has been updated to also includes
CornerstonePersistentRepositoryMixin
usage.