Releases: getyoti/yoti-node-sdk
Releases · getyoti/yoti-node-sdk
v3.8.1
Fixed
- Document details parsing: now accommodates more values (including redacted Aadhar numbers)
YotiDate.fromDateString()
now supports microsecond accuracyYotiDate.constructor()
now supports signed microsecond timestamps- Rounding when converting microseconds to
YotiDate
v3.8.0
Added
ActivityDetails.getExtraData()
- Returns
ExtraData
- Returns
ExtraData.getAttributeIssuanceDetails()
- Returns
AttributeIssuanceDetails
- This can be accessed once a share has been completed using
ThirdPartyAttributeExtensionBuilder
- Returns
Changed
AmlAddress
countryCode, which cannot be null or empty, is now validated and will throw aTypeError
WantedAttribute
name, which cannot be null or empty, is now validated and will throw aTypeError
v3.7.3
v3.7.2
Fixed
YotiResponse.getParsedResponse()
returnsBuffer
for binary responses- Parsed JSON for JSON responses
null
for empty responses
Added
YotiRequest.execute(buffer = false)
- Optional
buffer
argument (default value:false
). - Set
true
to return binary content types as aBuffer
.
- Optional
YotiResponse.getBody()
- Returns string for text responses
- Returns Buffer for binary responses
v3.7.1
Added
Signed Request Builder
RequestBuilder
YotiRequest
YotiResponse
(now exported)buildConnectApiRequest()
(in ./request/index.js) for use by connect API services.
Age Verifications
AgeVerification
.getCheckType()
.getAge()
.getResult()
.getAttribute()
BaseProfile
.findAttributesStartingWith()
Profile
.getAgeVerifications()
.findAgeOverVerification(age)
.findAgeUnderVerification(age)
.findAgeVerification(type, age)
.findAllAgeVerifications()
Document Details
DocumentDetails.getIssuingAuthority()
Deprecated
makeRequest()
(in ./request/index.js)Profile.getAgeVerified()
Age
found at yoti_common/age
Fixed
- Updated example project to run in Node 6
v3.6.0
Added
ActivityDetails.getApplicationProfile()
ActivityDetails.getTimestamp()
Attribute.getAnchors()
YotiAnchor.getType()
Profile.getAttributes()
YotiDate
extendingDate
, providing methods:getMicroseconds()
- Number between 0 and 999999, representing the microseconds.getMicrosecondTimestamp()
- Returns ISO 8601 UTC timestamp with microseconds.getMicrosecondTime()
- Time with microseconds.
- Support for dynamic scenarios, including:
YotiClient.createShareUrl()
DynamicScenarioBuilder
DynamicPolicyBuilder
WantedAttributeBuilder
ExtensionBuilder
LocationConstraintExtensionBuilder
TransactionalFlowExtensionBuilder
ApplicationProfile
providing methods:getName()
getUrl()
getLogo()
getReceiptBgColor()
Changed
YotiSignedTimeStamp.getTimestamp()
now returnsYotiDate
which extendsDate
AnchorProcessor
now processes all anchors. Unknown anchors have empty "" value and typeUNKNOWN
Deprecated
AnchorProcessor.getAnchorByOid()
AnchorProcessor.getAnchorValueByOid()
AnchorProcessor.getAnchorsByCertificate()
AnchorProcessor.mergeAnchorsLists()
AnchorProcessor.processSingleAnchor()
v3.5.0
Added
ActivityDetails.getReceiptId()
Changed
- Prefix version header with SDK identifier
- Return undefined and unknown content types as string
v3.4.0
Added
- Support for Document Images, accessible using
ActivityDetails.getProfile().getDocumentImages()
- Support for integer values
v3.3.0
Added
- Parent Remember Me ID
X-Yoti-SDK-Version
header- New Image object
Changed
ursa
tonode-rsa
base64-url
from1.3.3
to^2.2.0
browser.js
in example project
Deprecated
getUserId()
(to be replaced bygetRememberMeId()
)
v3.2.1
Fixed
- Unpinned dependencies in
package.json