This repository has been archived by the owner on May 8, 2019. It is now read-only.
Releases: onfido/onfido-sdk-core
Releases · onfido/onfido-sdk-core
1.1.0
1.0.1
0.7.1
0.7.0
Changed
- Events are only dispatched when condition has been met and also changed. Before events were getting dispatched every time the condition was met and the store changed (even if the condition hadn't changed).
- The events '(document|face)Capture' now gets called only when the capture has been confirmed.
0.6.0
Changed
- The action
validCapture
has been changed tovalidateCapture
. - The payload of the action
createCapture
has changed from{...data: object}
to{...capture: object}
. - All selectors have now been changed from having identical pairs of selectors for both
document
andface
to be capture type agnostic selectors, meaning they are now mapped into the captures hash which includes all capture types as keys. faceSelector|documentSelector:[Object]
changed tovalidCaptures:{string:[Object]}
documentCaptured|faceCaptured:boolean
changed toisThereAValidCapture:{string:boolean}
.faceValidAndConfirmed|documentValidAndConfirmed:boolean
changed toisThereAValidAndConfirmedCapture:{string:boolean}
Added
- The action
validateCapture
now also changes the value in the capture of the propertyprocessed
totrue
whenever the action is called. - The action
createCapture
can now accept a new optional parameter calledmaxCaptures: int
, which determines how many captures are stored. The default ofmaxCaptures
is3
. - The payload of the action
validateCapture
can have an extra parameter calledvalid: boolean
which is optional and defaults totrue
, this can be used to invalidate the capture. - There is a new selector called
unprocessedCaptures:{string:[Capture]}
which returns a list of captures which have not yet been been validated/invalidated for each capture type. - There is a new selector
hasUnprocessedCaptures:{string:boolean}
which returns a boolean on whether there are unprocessed Captures for each capture type. - There is a new selector
areAllCapturesInvalid:{string:boolean}
which returns a boolean on whether all of its captures are invalid for each capture type. - Events are now sent for any capture type.
- The selector
allCaptured
is now capture type agnostic, but still backwards compatible.
0.5.0
Added
- the action
CAPTURE_CONFIRM
is now available, it expects apayload.data.id
for determining which capture to confirm.
Changed
- selector
allCaptured
and consequentially eventcomplete
are now only triggered when the captures are both validated and confirmed.