Skip to content

Releases: VirgilSecurity/virgil-sdk-javascript

v5.2.1

20 Dec 11:44
Compare
Choose a tag to compare

December 20, 2018

Fixed

Bug in JWT parsing from string where it would change the string representation of the token. This caused compatibility issues with other Virgil SDKs where serializing an object as JSON does not produce the same result as JSON.stringify in JavaScript. The Virgil Cloud would reject such a token as invalid.
The following now returns true regardless of how the tokenString was serialized.

Jwt.fromString(tokenString).toString() === tokenString

v5.2.0

10 Dec 12:02
Compare
Choose a tag to compare

December 10, 2018

Added

  • Ability to search by multiple identities. CardManager#searchCards method now accepts array of identities as well as single identity to search for as its only argument.

Changed

  • Type of errorCode property of VirgilHttpError from string to number

v5.1.1

30 Oct 19:04
Compare
Choose a tag to compare

October 30, 2018

Fixed

  • Valid indexedDB implementations in Safari being treated as invalid

v5.1.0

17 Oct 11:17
Compare
Choose a tag to compare

October 17, 2018

CachingJwtProvider

  • constructor now accepts optional second parameter for the initial value of the JWT as a string or an instance of Jwt class:
const jwtProvider = new CachingJwtProvider(getJwtCallback, "xxxx.yyyy.zzzz");

HTTP Error Handling

  • Body of 5xx HTTP responses won't be read, because it can be an html text, which causes errors when we expect json.

Virgil JS SDK v4.5.3

22 Feb 18:34
Compare
Choose a tag to compare

Added

  • Support for node.js versions 7, 8 and 9

Fixed

  • Argument validation in crypto#verify
  • TypeError in client#searchCards when null is returned form server

Virgil JS SDK v4.5.2

02 Feb 14:29
Compare
Choose a tag to compare

Fixed

  • Update virgil-crypto to v2.1.3, which fixes a critical memory leak issue.

Virgil JS SDK v4.5.1

11 Jul 16:09
Compare
Choose a tag to compare

Fixed

  • Installation with --production flag with npm version < 3

Virgil JS SDK v4.5.0

30 May 21:25
Compare
Choose a tag to compare

Added

  • Ability to store private key without password
  • Ability to check if private key exists in storage with VirgilKey#exists method
  • Resolving the Promise returned from VirgilKey#save method with the instance of the key

Fixed

  • VirgilKey#decryptThenVerify throws when passed multiple signer cards

Virgil JS SDK v4.4.0

05 May 16:19
Compare
Choose a tag to compare

Added

  • Include signer id in metadata in signThenEncrypt method
  • decryptThenVerify method accepts array of possible signers' public keys

Virgil JS SDK v4.3.2

05 May 16:13
Compare
Choose a tag to compare

Fixed

  • Fix toArray is not defined error in encryptFor method