v2.2.4

Released on 2019-11-12.

Core

  • Internal performance improvements

No version 2.2.4 on Android

No version 2.2.4 on iOS

v2.2.3

Released on 2019-10-10.

Core

FileKit

  • Fixed a rendering issue on IE11

No version 2.2.3 on Android

No version 2.2.3 on iOS

v2.2.2

Released on 2019-10-04.

FileKit

  • Fixed calling filekit.start() before the document's body is ready

No version 2.2.2 on Android

No version 2.2.2 on iOS

v2.2.1

Released on 2019-09-16.

Bug fix

  • Fixed a bug where uploading empty files would deadlock

No version 2.2.1 on Android

No version 2.2.1 on iOS

v2.2.0

Released on 2019-09-06.

Core

  • New onProgress option in encryption and decryption methods to specify a progress handler
  • Fixed missing @tanker/* dependency declarations in internal packages
  • Fixed UMD file size in the @tanker/verification-ui package (1.1MB -> 280kB)
  • Slightly reduce overall package sizes

FileKit

  • New onProgress option in upload and download methods to specify a progress handler
  • Gracefully handle ExpiredVerification errors
  • Throw InvalidArgument instead of InternalError if obviously wrong fileId given in download()
  • Allow Chromium-based Edge (beta) to upload in chunks (RAM efficiency)

Released on 2019-10-29.

Released on 2019-10-29.

v2.1.4

Released on 2019-08-28.

Core

  • Deprecate constructor option trustchainId in favor of appId

No version 2.1.4 on Android

No version 2.1.4 on iOS

v2.1.3

Released on 2019-08-27.

Bug fix

  • Fix a visual bug for smaller screens in verification UI

No version 2.1.3 on Android

No version 2.1.3 on iOS

v2.1.2

Released on 2019-08-27.

FileKit

  • Allow sharing a file at any time after upload
  • Fix a visual bug on Edge in verification UI

No version 2.1.2 on Android

No version 2.1.2 on iOS

v2.1.1

Released on 2019-07-26.

FileKit support

FileKit is the latest Tanker product. It is an end-to-end encrypted file storage service for apps. See FileKit documentation for more details.

Two methods were added to support FileKit: upload and download files.

The Tanker SDK is now known as Tanker Core.

No version 2.1.1 on Android

No version 2.1.1 on iOS

v2.1.0

No version 2.1.0 on JavaScript

Released on 2019-08-21.

Encryption channels

This release adds a better way to encrypt large files: encryption channels. Their primary purpose is to greatly reduce memory footprint.

Two overloads were added: encrypt and decrypt.

Take a look at this section to learn more about channels.

Released on 2019-08-21.

Encryption streams

This release adds a better way to encrypt large files: encryption streams. Their primary purpose is to greatly reduce memory footprint.

Two methods were added: encryptStream and decryptStream.

v2.0.1

Tanker is now capable to start even if there is no network connection or if the Tanker server is not reachable, given the user already has validated their identity on the local device. This will still require the user to have their Tanker Identity.

When this happens, users will still be able to decrypt data for which the keys have already been downloaded on their local device. Actions requiring the Tanker server, like encrypting new data or verifying a user's identity will fail with a NetworkError.

Fixed deadlock when the SDK receives blocks from newer SDK versions.

Fixed deadlock when the SDK receives blocks from newer SDK versions.

v2.0.0

This is a major release with many backward incompatible changes. If you are using a SDK version in the 1.x series, make sure to read the migration guide before upgrading.

Table of contents:

Highlights

Pre-registration

The Tanker SDK now allows pre-registration sharing. This means you can share resources with users who do not have registered their identity with Tanker yet.

Multi-device support improvement

With a SDK version in the 1.x series, users could register an invalid email at account creation, thus making it impossible for them to recover access to their data in case of device loss.

This and similar problems have been fixed in this release:

  • It is no longer possible to register a device with Tanker without any verification method.
  • Once a verification method has been chosen it must be verified right away - this means you should adapt the UX flow of account creation in your application.

Renamed encryption methods

Some of the encryption methods' names were either tautological or confusing.

  • encryptDataFromData/decryptDataFromData have been shortened to encryptData/decryptData.
  • encryptDataFromString was confusing, it has been renamed to encryptString.

Improved asynchronous code handling

On iOS, the SDK used to depend on PromiseKit, which meant you had to integrate PromiseKit into your application if you decided to use Tanker.

This posed two problems:

  • One, we needed to be compatible with both Objective-C and Swift, so we depended on a pretty old version of PromiseKit (1.7)
  • Two, if you were already using a library for asynchronous code, you ended up with two different libraries for the same purpose in the same application.

So in the 2.0 version, the SDK no longer depends on PromiseKit and you can use any asynchronous library you like.

API revamp

In order to implement these changes, the Tanker API has changed significantly. See the migration guide for details.

New concepts

Identities

The SDK version 1.10.x required IDs and user tokens to identify users of your application.

In 2.0, a single concept named "identity" is used instead.

Those identities can be sorted on two axes:

Public/Secret

  • Public identity: used to share encrypted data (either directly or within a group).
  • Secret identity: used to match a user of the application with a user registered Tanker's servers. It should only be sent from the application server to the application after a successful authentication.

Permanent/Provisional

  • Permanent identity: represents a user who is registered on Tanker's servers.
  • Provisional identity: represents a user who is not yet registered Tanker's servers.

Verification

The concept of "unlock" has been renamed to "verification". For instance, instead of "unlock devices", we use the term "verify identities".

Please check the guide for more information.

Removal of deprecated features

ChunkEncryptor class

The ChunkEncryptor class was deprecated in 1.10 and thus has been removed in the 2.0 release.

toString(), fromString() functions

The toString() and fromString() functions have been removed. They were an implementation detail of the Tanker SDK that should not have been exposed. Note that toBase64 and fromBase64 are still available.

unlockRequired, waitingForValidation events

The unlockRequired and waitingForValidation events are gone. Instead of using a callback, use tanker.verifyIdentity() after checking the returned value of tanker.start().