redux_entity 1.2.0 redux_entity: ^1.2.0 copied to clipboard
Library for maintaining collections in a Redux store. Based on @ngrx/entity.
[1.2.0] #
What's Changed #
- Rename JSON deserializer functions by @borgoat in https://github.com/careapp-group/dart_redux_entity/pull/11
- fix: remote reducer many actions by @borgoat in https://github.com/careapp-group/dart_redux_entity/pull/12
- Update an entity with an ID and a supplied type by @trentCareApp in https://github.com/careapp-group/dart_redux_entity/pull/15
- Fail update one with supplied type and ID by @trentCareApp in https://github.com/careapp-group/dart_redux_entity/pull/16
New Contributors #
- @borgoat made their first contribution in https://github.com/careapp-group/dart_redux_entity/pull/11
- @trentCareApp made their first contribution in https://github.com/careapp-group/dart_redux_entity/pull/15
Full Changelog: https://github.com/careapp-group/dart_redux_entity/compare/v1.1.2...v1.2.0
[1.1.2] #
- Fix loading properties not being set when using
RequestCreateWith
andRequestUpdateWith
actions.
[1.1.1] #
- Fix a regression where
RequestCreateOne.entity
was renamed torequest
. Oops.
[1.1.0] #
-
Adds new Request actions for Create / Update that allows you to specify a request payload type that is different to the entity. This is useful for APIs where, for example, the payload required to create an object is a subset of the entity that is created. For example:
class RequestCreatePayload { String name; } class Entity { String id; String name; } final action = RequestCreateOneWith<Entity, RequestCreatePayload>(RequestCreatePayload()..name = 'Michael');
The way to read this is Request Create One
Entity
withRequestCreatePayload
[1.0.5] #
- Fixes pubspec to have test in dev dependencies
[1.0.4] #
- Changes FailCreateOne.entity to be optional
[1.0.3] #
- Fixes a type bug where RemoteEntityState.fromJson() would fail.
[1.0.2] #
- Further reduce version requirement for
test
package to 1.16.0, the first null-safe version
[1.0.1] #
- Reduce version requirement for
test
package
[0.1.1] #
- Relax type for Deserializer, makes possible to store list entities
[0.1.0] #
- Add caching support for the RetrieveAll actions
[0.0.1] - Initial Release #
- Initial Release!