Releases: TankerHQ/sdk-js
v4.1.1
v4.1.0
- 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
This release is strictly speaking a major version bump, but does not introduce any major API changes.
- The
VerificationMethod
objects of typeoidcIdToken
now contain theprovider_id
andprovider_display_name
information corresponding to the verification method's OIDC provider.
v3.3.2
v3.3.1
v3.3.0
- 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()
andshare()
. Local storage errors were misleadingly converted intoInvalidArgument('could not find key for resource')
. Local storage errors are now forwarded as is. - Throw a
TooManyRequests
error when callingupload()
ordownload()
and being throttled by the underlying storage service (wasInternalError
).
v3.2.0
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
v3.0.0
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
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.