Skip to content

Releases: TankerHQ/sdk-js

v2.26.0

13 Jan 14:58
Compare
Choose a tag to compare

Allow user enrollment server side through the new enrollUser() API. Follow the user enrollment guide for more detail about its usage.

v2.25.0

15 Dec 16:12
Compare
Choose a tag to compare
  • Improved error reporting when using invalid identities
  • Bump dependencies:
    • typescript ^4.3.5 -> ^4.5.2
  • Improve internal typing

v2.24.1

30 Nov 10:55
Compare
Choose a tag to compare

Bug Fix

  • Correctly reject public identities issued from other Tanker applications than the current one selected through new Tanker().

Browser compatibility

  • A new version of a dependency (dexie) was released and may require additional processing before serving to Internet Explorer 11.

The Compatibility with Internet Explorer 11 guide has been updated accordingly.

TypeScript

  • Use new readable-stream type definition
  • Fix @types/* dependencies:
    • Move @types/* dependencies from devDependencies to dependencies
    • Remove @types/pouchdb-core dependency from @tanker/types and @tanker/stream-base type definitions

v2.24.0

17 Nov 14:49
Compare
Choose a tag to compare

Pre-verified verification methods

It is now possible to use pre-verified verification methods with setVerificationMethod, see the dedicated guide.

Error Handling

  • Correctly throw PreconditionFailed instead of InternalError when using 2FA without activating the feature beforehand.

Bug Fix

  • Correctly catch and forward error during DecryptionStream initialisation. The error was shadowed when the resource to decrypt:
    • Is valid (result of an encryption from any Core SDK)
    • Is decrypted using a DecryptionStream explicitly
    • Was encrypted by calling encrypt or encryptData and is relatively small (not encrypted using streams)

v2.23.1

25 Oct 16:41
Compare
Choose a tag to compare

v2.23.0

13 Oct 14:49
Compare
Choose a tag to compare

TypeScript

  • The code base has been migrated from Flow to TypeScript for static typing
  • Type files are now available in every module, making it even easier and safer to use the Core SDK in any TypeScript project:
    • TypeScript is supported by many integrated development environments (IDE), offering quality-of-life features such as auto-completion, signature information, and syntax highlighting
    • Type errors are reported at compile time, which prevents the use of ill-typed arguments or misuse of returned values
  • The Core SDK reference has been updated with Typescript annotations
  • New build toolchain using tsc in replacement of Babel

Note that this change requires additional work to maintain support of Internet Explorer 11, as explained below.

Browser Support

  • Add new polyfills required for Internet Explorer 11 to the UMD file

Babel added some polyfills automatically when targeting Internet Explorer 11. Those polyfill must be added manually when solely relying on tsc to compile TypeScript.

The Compatibility with Internet Explorer 11 guide has been updated accordingly.

v2.22.0

29 Sep 15:13
Compare
Choose a tag to compare

The client-node SDK package now requires Node.js >= 12. Unmaintained Node.js versions are no longer supported.

v2.21.0

20 Aug 14:22
Compare
Choose a tag to compare

Phone number verification

The SDK now supports provisional identities based on phone numbers.

See the identity SDKs to create such provisional identities. You can use them just like provisional identities based on email, see the dedicated guide.

v2.20.0

28 Jul 15:34
Compare
Choose a tag to compare
  • It is now possible to remove users from groups with updateGroupMembers
  • Fixed bug when sharing or creating groups with duplicate permanent identities

v2.19.1

22 Jul 11:17
Compare
Choose a tag to compare
  • Handle empty strings in the fromBase64 function