Repository navigation
Releases
Releases · sudoplatform/sudo-telephony-js
2.0.0
Breaking
deprovisionPhoneNumbernow removes the number's key pair from the device unlessenforceSingletonKeyPairis set. The service keeps a released number's messages, so they are now returned in a list'sfaileditems withUnsealingFailedErrorinstead of as plaintext.deprovisionPhoneNumbercan throw the newKeyPairRemovalFailedErrorwhen the number was released but its key pair couldn't be removed. The error's `deprovisioned` property holds the released number; treat the number as gone.SudoTelephonyClienthas a new method,createSingletonKeysIfAbsent(). Classes and mocks that implement the interface must add it.
New
sudoTelephonyClientConfig.enforceSingletonKeyPairclient option (defaultfalse). When set, every phone number is provisioned with one shared key pair, so a key backup holds a single key however many numbers there are. The shared key pair is never removed when a number is deprovisioned or fails to provision; onlyreset()removes it.createSingletonKeysIfAbsent()creates the shared key pair. Call it after the user signs in and before provisioning.
Fix
- A failed
provisionPhoneNumbernow removes the key pair generated for it when the service refused the request. After network or internal service errors the key is kept, because the number may have been provisioned. - A key pair is no longer left on the device after its number is deprovisioned.
1.0.1
Fix
- Fix initial public publish issue