2.12.0
2.12.0 (August 26, 2024)
New Features
Call Message Events
The Call Message Events, originally released in 2.2.0, has been promoted to GA. This release includes the following breaking changes.
- Call.Message.messageType has been converted from
Call.MessageType
enum tostring
. - Call Message related errors are now emitted via call.on('error', handler(twilioError)) instead of device.on('error', handler(twilioError)).
- A new error, 31210, has been added to the SDK. This new error is emitted via call.on('error', handler(twilioError)) after calling the sendMessage API with an invalid Call.Message.messageType.
- Fixed an issue where the wrong error code
31209
is raised if the payload size of a Call Message Event exceeds the authorized limit. With this release,31212
is raised instead.