Skip to content

Releases: TankerHQ/sdk-js

v4.1.1

15 Jan 11:07
Compare
Choose a tag to compare
  • Fix an edge case where the Sentry integration could throw while handling an exception before session initialization

v4.1.0

09 Jan 14:31
Compare
Choose a tag to compare
  • The SDK will now enrich Sentry events by default if Sentry is defined in the page, see the Tanker constructor for options.
  • The minimum supported Node.js version is now Node.js 18
  • Upgraded the SDK to TypeScript 5

v4.0.0

20 Sep 12:53
Compare
Choose a tag to compare

This release is strictly speaking a major version bump, but does not introduce any major API changes.

  • The VerificationMethod objects of type oidcIdToken
    now contain the provider_id and provider_display_name information corresponding to the verification method's OIDC provider.

v3.3.2

25 May 15:06
Compare
Choose a tag to compare
  • The Status type is now a regular TypeScript enum instead of a const enum.
    This provides compatibility with the verbatimModuleSyntax TypeScript configuration flag.

v3.3.1

17 Apr 16:31
Compare
Choose a tag to compare
  • Add sanity check to differentiate internal errors from legitimate InvalidArgument('could not find key for resource') errors during decrypt() and share().
  • Replace default exports with named exports in internal @tanker/ packages

v3.3.0

03 Mar 14:25
Compare
Choose a tag to compare
  • Add support for SDK downgrade between compatible versions even in case of changes to the local storage schema, see manage sdk versions for more details.
  • Automatically try to re-open local storages in browsers. It mitigates UnknownError: DatabaseClosedError occurring after a schema upgrade.
  • Fix local storage errors handling in decrypt() and share(). Local storage errors were misleadingly converted into InvalidArgument('could not find key for resource'). Local storage errors are now forwarded as is.
  • Throw a TooManyRequests error when calling upload() or download() and being throttled by the underlying storage service (was InternalError).

v3.2.0

19 Dec 15:58
981be6f
Compare
Choose a tag to compare

This release enable the new "transparent session" encryption formats by default.

These formats optimize resource key usage. Encryption for the same recipients will reuse the same key for several hours.
As a result, performance of encrypt and decrypt operations should be improved, due to less network requests.

v3.1.0

22 Nov 13:36
Compare
Choose a tag to compare

This release adds forward compatibility for decrypting and sharing the upcoming "transparent session" encryption formats.

Please note that this release upgrades the storage format, so it cannot be rolled back to a previous version.

v3.0.0

02 Sep 13:42
b9ec131
Compare
Choose a tag to compare

Version v2.30.0 introduced forward compatibility for padded encryption scheme. Make sure your end users use at least v2.30.0 before upgrading to v3.0.0.

Padded Encryption

Tanker now uses a padded symmetric encryption scheme by default. Adding padding to encrypted data aims at hiding the length of the clear message, see the dedicated guide.

Remove UMD build

We no longer ship the fully bundled UMD build of the JS SDK for @tanker/client-browser.

Remove device APIs

  • Remove the deviceId() function
  • Remove the getDeviceList() function
  • Remove DeviceRevoked error

v2.32.2

19 Aug 09:28
c4bb7a5
Compare
Choose a tag to compare

Fix a browser compatibility issue introduced in v2.32.0 that triggers a TypeError: arrayBuffer is not a function on some platforms, specifically Safari < 14.1 and Chrome < 76.