Releases: VirgilSecurity/virgil-keyknox-javascript
Releases · VirgilSecurity/virgil-keyknox-javascript
Update dependencies
v0.4.0-next.3
October 23, 2019
CloudGroupTicketStorage
throwsGroupTicketNoAccessError
if current user has no access to the group ticket
v0.4.0-next.2
October 16, 2019
- Add Virgil-Agent header to help us improve our services
- Fix custom errors in React Native
v0.3.3
October 15, 2019
Fix custom errors in React Native
v0.3.2
October 9, 2019
Fix TypeScript declaration files generation
v0.3.1
October 9, 2019
- Add
Virgil-Agent
header to library requests - Update
@virgilsecurity/crypto-types
tov0.2.0
v0.4.0-next.1
October 7, 2019
Breaking change
Updated internal dependency @virgilsecurity/crypto-types
to version 0.2.0, which reduces the amount of data serialization when saving \ retrieving group session tickets to \ from the Keyknox API.
As a result the CloudGroupTicketStorage#store
method's first parameter's data
property is now expected to be a string instead of Buffer
.
v0.4.0-next.0
September 24, 2019
Features
- Introducing
CloudGroupTicketStorage
- an easy way to store group tickets in Virgil Keyknox Service.
Breaking changes
KeyknoxManager
is no longer responsible for key management. Please note that method signatures were updated because of this:// Before constructor(accessTokenProvider: IAccessTokenProvider, privateKey: IPrivateKey, publicKeys: IPublicKey | IPublicKey[], keyknoxCrypto: IKeyknoxCrypto, keyknoxClient?: IKeyknoxClient) // After constructor(keyknoxCrypto: IKeyknoxCrypto, keyknoxClient: KeyknoxClient) // Before pushValue(value: string, previousHash?: string): Promise<DecryptedKeyknoxValue> // After v1Push(value: string, privateKey: IPrivateKey, publicKeys: IPublicKey | IPublicKey[], keyknoxHash?: string): Promise<DecryptedKeyknoxValueV1> // Before pullValue(): Promise<DecryptedKeyknoxValue> // After v1Pull(privateKey: IPrivateKey, publicKeys: IPublicKey | IPublicKey[]): Promise<DecryptedKeyknoxValueV1> // Before resetValue(): Promise<DecryptedKeyknoxValue> // After v1Reset(): Promise<DecryptedKeyknoxValueV1> // Before updateValue(options: { value: string; previousHash: string; newPrivateKey?: IPrivateKey; newPublicKeys?: IPublicKey | IPublicKey[]; }): Promise<DecryptedKeyknoxValue> // After v1Update(options: { value: string; privateKey: IPrivateKey; publicKeys: IPublicKey | IPublicKey[]; keyknoxHash: string; newPrivateKey?: IPrivateKey; newPublicKeys?: IPublicKey | IPublicKey[]; }): Promise<DecryptedKeyknoxValueV1> // Before updateRecipients(options: { newPrivateKey?: IPrivateKey; newPublicKeys?: IPublicKey | IPublicKey[]; }): Promise<DecryptedKeyknoxValue> // After v1UpdateRecipients(options: { privateKey: IPrivateKey; publicKeys: IPublicKey | IPublicKey[]; newPrivateKey?: IPrivateKey; newPublicKeys?: IPublicKey | IPublicKey[]; }): Promise<DecryptedKeyknoxValueV1>
IKeyknoxClient
was removed. Keyknox Service API is growing and we doubt that someone will roll out their own implementation.- Method signatures in
KeyknoxClient
were updated:// Before constructor(apiUrl?: string, axiosInstance?: AxiosInstance) // After constructor(accessTokenProvider: IAccessTokenProvider, apiUrl?: string, axiosInstance?: AxiosInstance) // Before pushValue(meta: string, value: string, token: string, previousHash?: string): Promise<EncryptedKeyknoxValue> // After v1Push(meta: string, value: string, keyknoxHash?: string): Promise<EncryptedKeyknoxValueV1> // Before pullValue(token: string): Promise<EncryptedKeyknoxValue> // After v1Pull(): Promise<EncryptedKeyknoxValueV1> // Before resetValue(token: string): Promise<DecryptedKeyknoxValue> // After v1Reset(): Promise<DecryptedKeyknoxValueV1>
- All error classes extend
Error
instead ofKeyknoxError
.
v0.3.0
September 17, 2019
v0.3.0-alpha.1
September 5, 2019
Use @virgilsecurity/crypto-types
and virgil-sdk@next