Skip to content

Releases: getyoti/yoti-node-sdk

v3.8.1

13 Feb 13:47
2820207
Compare
Choose a tag to compare

Fixed

  • Document details parsing: now accommodates more values (including redacted Aadhar numbers)
  • YotiDate.fromDateString() now supports microsecond accuracy
  • YotiDate.constructor() now supports signed microsecond timestamps
  • Rounding when converting microseconds to YotiDate

v3.8.0

10 Dec 15:48
a9390c2
Compare
Choose a tag to compare

Added

  • ActivityDetails.getExtraData()
    • Returns ExtraData
  • ExtraData.getAttributeIssuanceDetails()
    • Returns AttributeIssuanceDetails
    • This can be accessed once a share has been completed using ThirdPartyAttributeExtensionBuilder

Changed

  • AmlAddress countryCode, which cannot be null or empty, is now validated and will throw a TypeError
  • WantedAttribute name, which cannot be null or empty, is now validated and will throw a TypeError

v3.7.3

22 Oct 11:00
510df5d
Compare
Choose a tag to compare

Fixed

  • YotiDate.getMicrosecondTime() now conforms to ISO date format (minutes were not zero padded)

v3.7.2

03 Oct 13:47
bd5316a
Compare
Choose a tag to compare

Fixed

  • YotiResponse.getParsedResponse() returns
    • Buffer 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 a Buffer.
  • YotiResponse.getBody()
    • Returns string for text responses
    • Returns Buffer for binary responses

v3.7.1

26 Sep 09:38
54324aa
Compare
Choose a tag to compare

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

06 Aug 11:05
Compare
Choose a tag to compare

Added

  • ActivityDetails.getApplicationProfile()
  • ActivityDetails.getTimestamp()
  • Attribute.getAnchors()
  • YotiAnchor.getType()
  • Profile.getAttributes()
  • YotiDate extending Date, 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 returns YotiDate which extends Date
  • AnchorProcessor now processes all anchors. Unknown anchors have empty "" value and type UNKNOWN

Deprecated

  • AnchorProcessor.getAnchorByOid()
  • AnchorProcessor.getAnchorValueByOid()
  • AnchorProcessor.getAnchorsByCertificate()
  • AnchorProcessor.mergeAnchorsLists()
  • AnchorProcessor.processSingleAnchor()

v3.5.0

30 Apr 10:54
Compare
Choose a tag to compare

Added

  • ActivityDetails.getReceiptId()

Changed

  • Prefix version header with SDK identifier
  • Return undefined and unknown content types as string

v3.4.0

28 Mar 11:52
Compare
Choose a tag to compare

Added

  • Support for Document Images, accessible using ActivityDetails.getProfile().getDocumentImages()
  • Support for integer values

v3.3.0

04 Mar 11:59
Compare
Choose a tag to compare

Added

  • Parent Remember Me ID
  • X-Yoti-SDK-Version header
  • New Image object

Changed

  • ursa to node-rsa
  • base64-url from 1.3.3 to ^2.2.0
  • browser.js in example project

Deprecated

  • getUserId() (to be replaced by getRememberMeId())

v3.2.1

19 Feb 10:55
Compare
Choose a tag to compare

Fixed

  • Unpinned dependencies in package.json