Releases: TankerHQ/sdk-js
Releases · TankerHQ/sdk-js
v2.26.0
Allow user enrollment server side through the new enrollUser()
API. Follow the user enrollment guide for more detail about its usage.
v2.25.0
v2.24.1
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 fromdevDependencies
todependencies
- Remove
@types/pouchdb-core
dependency from@tanker/types
and@tanker/stream-base
type definitions
- Move
v2.24.0
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 ofInternalError
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
orencryptData
and is relatively small (not encrypted using streams)
v2.23.1
v2.23.0
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
v2.21.0
v2.20.0
- It is now possible to remove users from groups with updateGroupMembers
- Fixed bug when sharing or creating groups with duplicate permanent identities