Releases: VirgilSecurity/react-native-virgil-crypto
Actualize package
v0.5.0
February 11, 2020
Changes
✅ Add post-quantum cryptography.
✅ Add encryption with padding.
✅ Add pre-configured projects for React Native 0.59.x and React Native 0.61.x.
✅ CocoaPods everywhere! React Native doesn't support Carthage - facebook/react-native#13835.
✅ 👆This leads to a better developer experience.
Try it now
npm install react-native-virgil-crypto
# or
yarn add react-native-virgil-crypto
v0.4.0
October 29, 2019
What's new
- Group encryption primitives (meant as low-level building blocks for implementing group chats in E3kit).
- Autolinking on iOS with React Native > 0.61.0
- Unified error names between React Native and JS
BREAKING CHANGES
-
If you're on React Native v0.60.x, you'll need to explicitly disable autolinking of
react-native-virgil-crypto
. To do that, you'll need to update yourreact-native.config.js
'sdependencies
entry to look like this (create this file in the root of your project if you don't have it):// react-native.config.js module.exports = { dependencies: { 'react-native-virgil-crypto': { platforms: { ios: null // disable iOS platform, other platforms will still autolink if provided } } } };
-
If you relied on errors thrown by this library to have the
name
property equal to"RNVirgilCryptoError"
, you'll need to update your code because this is no longer the case. You can doinstanceof
check instead. So, if you had code like this:import { virgilCrypto } from 'react-native-virgil-crypto'; try { const decryptedMessage = virgilCrypto.decrypt(encryptedMessage); } catch (err) { if (err.name === 'RNVirgilCryptoError') { // decryption failed } }
It can be re-written like this:
-import { virgilCrypto } from 'react-native-virgil-crypto'; +import { virgilCrypto, RNVirgilCryptoError } from 'react-native-virgil-crypto'; try { const decryptedMessage = virgilCrypto.decrypt(encryptedMessage); } catch (err) { - if (err.name === 'RNVirgilCryptoError') { + if (err instanceof RNVirgilCryptoError) { // decryption failed } }
v0.3.2
October 11, 2019
- End-to-End tests
- Update
@virgilsecurity/crypto-types
to 0.2.0 (e3kit compatibility)
v0.3.1
v0.3.0
September 6, 2019
Added
- Crypto primitives for implementing Group Encryption in E3kit
v0.2.0
v0.1.0
August 8, 2019
Initial Release
Implemented virgil-crypto-javascript-v3-compatible API for React Native