Releases: VirgilSecurity/virgil-sdk-javascript
Releases · VirgilSecurity/virgil-sdk-javascript
v5.2.1
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
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
October 30, 2018
Fixed
- Valid indexedDB implementations in Safari being treated as invalid
v5.1.0
October 17, 2018
CachingJwtProvider
constructor
now accepts optional second parameter for the initial value of the JWT as a string or an instance ofJwt
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
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
Fixed
- Update
virgil-crypto
to v2.1.3, which fixes a critical memory leak issue.
Virgil JS SDK v4.5.1
Fixed
- Installation with
--production
flag with npm version < 3
Virgil JS SDK v4.5.0
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
Added
- Include signer id in metadata in
signThenEncrypt
method decryptThenVerify
method accepts array of possible signers' public keys
Virgil JS SDK v4.3.2
Fixed
- Fix
toArray
is not defined error inencryptFor
method