Releases: Rainbow-CPaaS/Rainbow-Node-SDK
### SDK for Node.JS 1.53 - March 2018
3-Release SDK Breaking Changes
- Warning: Starting January 2019, the LTS active version of Node.js migrated to version 10. This version of SDK Node.js is only compliant with this LTS active version.
Consequently, you need to update your Node.js version to 10.x in order to use this release of the SDK Node.js.
API Breaking Changes
- None.
API Changes
Others Changes
- Add event
rainbow_onbubblepresencechanged
when a bubble presence change. It is also raised when a bubble change isActive from true to false (and reverse) - Add a method
until
in Utils to wait for a while to condition to be done. - Update errors return by HttpService, to have a json object.
- Add the isActive propertie in
Bubble
object, and the method/events to update it. - Improve the
bubble::createBubble
to wait for a while (5s) the success of creation on server side. - Update
im::sendMessageToBubbleJid
to take care of isActive value of the bubble. So if it is archived, then sendInitialPresence to wake it up, and wait for a while (5s) for the resumed event, before sending message in it. - Add the method
conversations::sendCorrectedChatMessage
to send a corrected message to a conversation. This method works for sending messages to a one-to-one conversation or to a bubble conversation.
! Note ! : only the last sent message on the conversation can be changed. The connected user must be the sender of the original message.` - Add treatment of the replace last message event.
- Add event
rainbow_onownbubbledeleted
when a bubble own bythe connected user is deleted. - Refactor improve of xmpp reconnection for the new xmpp lib
### SDK for Node.JS 1.52 - February 2018
3-Release SDK Breaking Changes
- None.
API Breaking Changes
- None.
API Changes
- Add event fired when a channel is updated : rainbow_channelupdated
Others Changes
- Improve the XMPP reconnect process
- Fix error in HttpService get method
- Fix Messages list in conversation when SDK sent or received a message in it. Message is add to conversation when the server received it and send back a Receipt.
- Fix error return when an HttpService put or post failed
- Fix event listener life to avoid memoryleak
- Fix lastMessageText when retrieve history.
- Fix remove from in markAsReadMessage
- Fix logs
- Fix reconnection when network is lost or when the server reboot.
- Fix issue in HttpService when remote server is unavailable
### SDK for Node.JS 1.51 - January 2018
3-Release SDK Breaking Changes
- None.
API Breaking Changes
- None.
API Changes
- None.
Others Changes
- Fix property conversation.lastMessageText which was undefined
- Remove the unirest library (security issue)
- Fix updateChannel topic value
- Fix the start/stop of the SDK. These processes has been improved to avoid multiple
start()
at the same time, and also to have a better flow life. - Add event
rainbow_onpresencechanged
fired when the presence of the connected user changes. - Fix decode of status in xmpp event when presence changed is received.
### SDK for Node.JS 1.50 - Decembre 2018
3-Release SDK Breaking Changes
- None.
API Breaking Changes
- None.
API Changes
- In service channels the method
publishToChannel
has been updated to follow the new channel api on server side. Now it is possible to define thetype
of data published in a channel (could bebasic
,markdown
,html
ordata
).
Others Changes
- NodeJS 8.x end of active LTS period has been announced to 2019-01-01. Starting January, 31th 2019, we will no more support development done with that version. We encourage you to migrate your development to the current active LTS version of NodeJS which is now the 10.x version.
- Fix parsing of stanza event
message is deleted in a channel
when the number of messages limit is reached and then raises the eventrainbow_onchannelmessagedeletedreceived
.
SDK for Node.JS 1.49 - November 2018
3-Release SDK Breaking Changes
- None.
API Breaking Changes
- None.
API Changes
- None.
Others Changes
- Refactor Events emitter to produce better logs in dev mode.
- Correction of contact's
phonenumbers
filling. Now ContactphoneNumbers
should be synchronised with individual splitted phones numbers. - Fix: Typo correction in Contacts
firstName
andlastName
case - Fix: In service channels, correction of parsing of the result data from server in method
getMessagesFromChannel
- In service channels, add images property in messages retrieved from channels with method
getMessagesFromChannel
and also when eventrainbow_onchannelmessagereceived
is fired - In service channels, add a method to delete message in a channel
deleteMessageFromChannel
. - Add event
rainbow_onchannelmessagedeletedreceived
fired when a message is delete in a channel.
- Add event
rainbow_onchannelcreated
fired when a channel is created. - Add event
rainbow_channeldeleted
fired when a channel is deleted.
SDK for Node.JS 1.48 - October 2018
3-Release SDK Breaking Changes
- None.
API Breaking Changes
- None.
API Changes
- In config parameter a log level at root level of logs in config : config.logs.level has been added for set the level of logs. Note: The value in file section will erase it, if the file logging is enabled.
Others Changes
- In service channels the method
publishMessageToChannel
has been updated to allow post of files. - A correction of
stop
andreconnection
processes has been done - Logs has been updated to follow the GPRD law and then hide private data.
SDK for Node.JS 1.47 - October 2018
3-Release SDK Breaking Changes
- None.
API Breaking Changes
- None.
API Changes
- In service FileStorage, new method
retrieveFileDescriptorsListPerOwner()
has been added to get the File descriptors owned by logged in user. - In service FileStorage, new method
downloadFile()
has been added to download a file from the server). - In service FileStorage, new method
getUserQuotaConsumption()
has been added to get the current file storage quota and consumption for the connected user. - In service FileStorage, new method
uploadFileToConversation()
has been added to upload a file and share it in a conversation. - In service FileStorage, new method
uploadFileToBubble()
has been added to upload a file and share it in a bubble. - In service FileStorage, new method
removeFile()
has been added to Remove an uploaded file. - In service FileStorage, new method
getFileDescriptorFromId()
has been added to get the file descriptor the user own by it's id. - In service FileStorage, new method
getFilesReceivedInConversation()
has been added to get the list of all files received in a conversation with a contact . - In service FileStorage, new method
getFilesReceivedInBubble()
has been added to get the list of all files received in a bubble. - In service FileStorage, new method
getFilesSentInConversation()
has been added to get the list of all files sent in a conversation with a contact. - In service FileStorage, new method
getFilesSentInBubble()
has been added to get the list of all files sent in a bubble. - In service FileStorage, new method
getAllFilesSent()
has been added to get the list of files (represented using an array of File Descriptor objects) created and owned by the connected which is the list of file sent to all of his conversations and bubbles. - In service FileStorage, new method
getAllFilesReceived()
has been added to get the list of files (represented using an array of File Descriptor objects) received by the connected user from all of his conversations and bubbles. - In service Events new files management event handler
rainbow_filecreated
from server when a file is uploaded - In service Events new files management event handler
rainbow_fileupdated
from server when the description of the file is updated - In service Events new files management event handler
rainbow_filedeleted
from server when the file is deleted - In service Events new files management event handler
rainbow_thumbnailcreated
from server when a thumbnail is created.
Others Changes
- Fix FileStorage::orderByFilter method.
- Support for typescript is added in sources, in folder ./src/. see README.md file to compil it. (It is only needed is you use the sources, and not if you use the version from npm registry )
v1.46.0
SDK for Node.JS 1.46 - September 2018
3-Release SDK Breaking Changes
- None.
API Breaking Changes
- None.
API Changes
- In service Conversations, new method
getConversationByBubbleJid()
has been added to retrieve a conversation associated to a bubble using the JID information.
Others Changes
- Fix : Token expiration
- Fix : Conversations::getBubbleConversation
SDK for Node.JS 1.45 - August 2018
SDK for Node.JS 1.45 - August 2018
3-Release SDK Breaking Changes
- None.
API Breaking Changes
- None.
API Changes
-
Change
Bubbles.getBubbleById()
API to Get a bubble by its ID in memory and if it is not found in server
and then return a promise with The bubble {Bubble} found or null. -
Change
Bubbles.getBubbleByJid()
API to Get a bubble by its JID in memory and if it is not found in server. It return a promise.
Others Changes
SDK for Node.JS v1.44
3-Release SDK Breaking Changes
-
GPRD: Contacts fields loginEmail and roles have to be deprecated and removed from contact object. We are working with Legals and Architects, in order to offers the best appropriate alternative.
-
Due to data privacy improvements and compliances, Rainbow platform will introduce breaking changes in the way data associated to users are located around the world in one hand and the way users connect to the platform in other hand. Consequently, any SDK for Node.JS prior to version 1.44 are entered deprecation period and will no more work once Rainbow platform 1.47 will be deployed on production (starting Sept, 30th)”. Before Sept’30, your application has to migrate to SDK for Node.JS version 1.44 at least in order for your application to continue to work after this date.
API Breaking Changes
- None.
API Changes
- None
Others Changes