- Bettter manage reset method;
- Compare collection values by value before setting its store;
- Avoid side-effect in derived store;
- Add
submitting
topredSpecable
status
- Allow adding to
collSpecable
when its value isundefined
; - Consider
fields
when choosing ifcollSpecable
;
- Consider spread in
getId
;
- Undefined
getChildren
throws ingetChild
;
getChild
now properly returns an actuel store;
- Prevent tracking of sub errors when collection is
undefined
; - Ensure
validate
doesn't validate sub stores when collection isundefined
;
- Allow setting a collection to
undefined
;
- Wrong usage of regex to determine number of ancestors;
getAncestor
is undefined onownSpecable
;
- Treat trailing ".." as "../" in ancestors path;
Feels like this package is ready for 1.0.0!
- Treat only
array
,map
andobject
as collections;
- Check equality of dates differently than objects;
- Allow defining a
changePred
function to evaluate if value has changed from initial value, with strong default. If value has not changed according to this pred, use initial value;
- Possibility to activate a specable store directly with the
set
method;
submit
method oncollSpecable
andpredSpecable
to activate then submit value while updating state tosubmitting
;
getChild
andgetChildren
methods oncollSpecable
to retrieve a child at a specified path;- Improve documentation in README;
- Fix documentation inconsistencies;
- When
collSpecable
allows spread children, add missing entries and remove deprecated children stores when using theset
method; - Properly define a
getFrom
function independant of child position;
- Do not validate
undefined
values if they are not required; - Allow setting non validated static values on collections;
- Return store initial value in subscription result.
- When
fields
is passed tocollSpecable
, use it to select fields on initial value withspecma.select
. This way of doing things ensure proper change detection between store value and initial value.
- Add missing
reset
method oncollSpecable
, advertised in the README.
- Fix dependencies issues with
npm audit fix
; - Cannot read property
spec
ofundefined
;
- Treat non-required values as valid if
undefined
,null
or""
;
set
method oncollSpecable
;- Associate a random id on array items stores by default, instead of using indexes (which varies too much when dealing with reordering, deletions, etc.);
- Allow passing
toValue
andtoInput
as additional arguments toregister
;
- Ensure promise is always returned from
activate
method; - Array store values not properly saved after removal;
Initial working code.