@twilio/conversations 1.3.0-rc7 → 2.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +201 -0
- package/README.md +5 -5
- package/dist/browser.js +7866 -0
- package/dist/browser.js.map +1 -0
- package/dist/docs/assets/css/main.css +2660 -0
- package/dist/docs/assets/images/icons.png +0 -0
- package/dist/docs/assets/images/icons@2x.png +0 -0
- package/dist/docs/assets/images/widgets.png +0 -0
- package/dist/docs/assets/images/widgets@2x.png +0 -0
- package/dist/docs/assets/js/main.js +248 -0
- package/dist/docs/assets/js/search.js +1 -0
- package/dist/docs/classes/AggregatedDeliveryReceipt.html +3286 -0
- package/dist/docs/classes/Client.html +4181 -0
- package/dist/docs/classes/Conversation.html +4397 -0
- package/dist/docs/classes/DetailedDeliveryReceipt.html +3265 -0
- package/dist/docs/classes/Media.html +3295 -0
- package/dist/docs/classes/Message.html +3713 -0
- package/dist/docs/classes/MessageBuilder.html +3280 -0
- package/dist/docs/classes/Participant.html +3517 -0
- package/dist/docs/classes/PushNotification.html +3232 -0
- package/dist/docs/classes/RestPaginator.html +3262 -0
- package/dist/docs/classes/UnsentMessage.html +3144 -0
- package/dist/docs/classes/User.html +3451 -0
- package/dist/docs/index.html +3387 -212
- package/dist/docs/interfaces/ClientOptions.html +3136 -0
- package/dist/docs/interfaces/ConversationState.html +3152 -0
- package/dist/docs/interfaces/CreateConversationOptions.html +3168 -0
- package/dist/docs/interfaces/LastMessage.html +3152 -0
- package/dist/docs/interfaces/Paginator.html +3243 -0
- package/dist/docs/interfaces/PushNotificationData.html +3168 -0
- package/dist/docs/interfaces/SendEmailOptions.html +3136 -0
- package/dist/docs/interfaces/SendMediaOptions.html +3169 -0
- package/dist/docs/modules.html +3418 -0
- package/dist/lib.d.ts +1944 -0
- package/dist/lib.js +7866 -0
- package/dist/lib.js.map +1 -0
- package/dist/post-install.js +29 -0
- package/dist/react-native.js +4031 -0
- package/dist/react-native.js.map +1 -0
- package/dist/twilio-conversations.js +40905 -0
- package/dist/twilio-conversations.min.js +156 -0
- package/package.json +59 -48
- package/.circleci/config.yml +0 -650
- package/.deepsource.toml +0 -6
- package/.env.example +0 -13
- package/browser/aggregateddeliveryreceipt.js +0 -152
- package/browser/client.js +0 -991
- package/browser/configuration.js +0 -80
- package/browser/conversation.js +0 -1826
- package/browser/data/conversations.js +0 -665
- package/browser/data/messages.js +0 -522
- package/browser/data/participants.js +0 -411
- package/browser/data/users.js +0 -281
- package/browser/detaileddeliveryreceipt.js +0 -44
- package/browser/index.js +0 -4
- package/browser/interfaces/limits.js +0 -3
- package/browser/interfaces/notificationtypes.js +0 -21
- package/browser/interfaces/paginator.js +0 -53
- package/browser/interfaces/responsecodes.js +0 -20
- package/browser/interfaces/transport.js +0 -3
- package/browser/logger.js +0 -141
- package/browser/media.js +0 -198
- package/browser/message.js +0 -685
- package/browser/participant.js +0 -415
- package/browser/pushnotification.js +0 -49
- package/browser/restpaginator.js +0 -74
- package/browser/services/network.js +0 -223
- package/browser/services/readhorizon.js +0 -181
- package/browser/services/typingindicator.js +0 -142
- package/browser/session.js +0 -505
- package/browser/sessionerror.js +0 -93
- package/browser/sri.json +0 -1
- package/browser/synclist.js +0 -90
- package/browser/synclistdescriptor.js +0 -29
- package/browser/syncpaginator.js +0 -63
- package/browser/user.js +0 -431
- package/browser/util/deferred.js +0 -56
- package/browser/util/index.js +0 -108
- package/dist/@twilio/conversations.js +0 -35565
- package/dist/@twilio/conversations.min.js +0 -204
- package/dist/docs/AggregatedDeliveryReceipt.html +0 -948
- package/dist/docs/Client.html +0 -5075
- package/dist/docs/Conversation.html +0 -6018
- package/dist/docs/DetailedDeliveryReceipt.html +0 -641
- package/dist/docs/Media.html +0 -694
- package/dist/docs/Message.html +0 -1934
- package/dist/docs/Paginator.html +0 -605
- package/dist/docs/Participant.html +0 -1510
- package/dist/docs/PushNotification.html +0 -836
- package/dist/docs/SessionError.html +0 -379
- package/dist/docs/User.html +0 -1315
- package/dist/docs/classes.list.html +0 -4431
- package/dist/docs/fonts/glyphicons-halflings-regular.eot +0 -0
- package/dist/docs/fonts/glyphicons-halflings-regular.svg +0 -288
- package/dist/docs/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/dist/docs/fonts/glyphicons-halflings-regular.woff +0 -0
- package/dist/docs/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/dist/docs/img/glyphicons-halflings-white.png +0 -0
- package/dist/docs/img/glyphicons-halflings.png +0 -0
- package/dist/docs/quicksearch.html +0 -31
- package/dist/docs/scripts/docstrap.lib.js +0 -11
- package/dist/docs/scripts/fulltext-search-ui.js +0 -89
- package/dist/docs/scripts/fulltext-search.js +0 -36
- package/dist/docs/scripts/lunr.min.js +0 -6
- package/dist/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
- package/dist/docs/scripts/prettify/jquery.min.js +0 -6
- package/dist/docs/scripts/prettify/lang-css.js +0 -21
- package/dist/docs/scripts/prettify/prettify.js +0 -496
- package/dist/docs/scripts/sunlight.js +0 -1157
- package/dist/docs/scripts/toc.js +0 -203
- package/dist/docs/styles/darkstrap.css +0 -960
- package/dist/docs/styles/prettify-tomorrow.css +0 -132
- package/dist/docs/styles/site.cerulean.css +0 -7008
- package/dist/docs/styles/site.cosmo.css +0 -7061
- package/dist/docs/styles/site.cyborg.css +0 -7048
- package/dist/docs/styles/site.darkly.css +0 -7171
- package/dist/docs/styles/site.darkstrap.css +0 -5638
- package/dist/docs/styles/site.dibs-bootstrap.css +0 -5899
- package/dist/docs/styles/site.flatly.css +0 -7147
- package/dist/docs/styles/site.journal.css +0 -6973
- package/dist/docs/styles/site.lumen.css +0 -7298
- package/dist/docs/styles/site.paper.css +0 -7623
- package/dist/docs/styles/site.readable.css +0 -6997
- package/dist/docs/styles/site.sandstone.css +0 -7035
- package/dist/docs/styles/site.simplex.css +0 -7023
- package/dist/docs/styles/site.slate.css +0 -7343
- package/dist/docs/styles/site.spacelab.css +0 -7055
- package/dist/docs/styles/site.superhero.css +0 -7131
- package/dist/docs/styles/site.united.css +0 -6895
- package/dist/docs/styles/site.yeti.css +0 -7195
- package/dist/docs/styles/sunlight.dark.css +0 -345
- package/dist/docs/styles/sunlight.default.css +0 -344
- package/dist/sri.json +0 -1
- package/lib/aggregateddeliveryreceipt.d.ts +0 -98
- package/lib/aggregateddeliveryreceipt.js +0 -112
- package/lib/client.d.ts +0 -317
- package/lib/client.js +0 -633
- package/lib/configuration.d.ts +0 -21
- package/lib/configuration.js +0 -41
- package/lib/conversation.d.ts +0 -460
- package/lib/conversation.js +0 -940
- package/lib/data/conversations.d.ts +0 -57
- package/lib/data/conversations.js +0 -318
- package/lib/data/messages.d.ts +0 -75
- package/lib/data/messages.js +0 -208
- package/lib/data/participants.d.ts +0 -94
- package/lib/data/participants.js +0 -204
- package/lib/data/users.d.ts +0 -42
- package/lib/data/users.js +0 -113
- package/lib/detaileddeliveryreceipt.d.ts +0 -45
- package/lib/detaileddeliveryreceipt.js +0 -34
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -3
- package/lib/interfaces/limits.d.ts +0 -8
- package/lib/interfaces/limits.js +0 -2
- package/lib/interfaces/notificationtypes.d.ts +0 -8
- package/lib/interfaces/notificationtypes.js +0 -11
- package/lib/interfaces/paginator.d.ts +0 -52
- package/lib/interfaces/paginator.js +0 -28
- package/lib/interfaces/responsecodes.d.ts +0 -8
- package/lib/interfaces/responsecodes.js +0 -10
- package/lib/interfaces/transport.d.ts +0 -13
- package/lib/interfaces/transport.js +0 -2
- package/lib/logger.d.ts +0 -18
- package/lib/logger.js +0 -35
- package/lib/media.d.ts +0 -52
- package/lib/media.js +0 -69
- package/lib/message.d.ts +0 -136
- package/lib/message.js +0 -305
- package/lib/participant.d.ts +0 -142
- package/lib/participant.js +0 -219
- package/lib/pushnotification.d.ts +0 -48
- package/lib/pushnotification.js +0 -39
- package/lib/restpaginator.d.ts +0 -19
- package/lib/restpaginator.js +0 -36
- package/lib/services/network.d.ts +0 -22
- package/lib/services/network.js +0 -87
- package/lib/services/readhorizon.d.ts +0 -28
- package/lib/services/readhorizon.js +0 -112
- package/lib/services/typingindicator.d.ts +0 -50
- package/lib/services/typingindicator.js +0 -102
- package/lib/session.d.ts +0 -63
- package/lib/session.js +0 -213
- package/lib/sessionerror.d.ts +0 -12
- package/lib/sessionerror.js +0 -24
- package/lib/sri.json +0 -1
- package/lib/synclist.d.ts +0 -24
- package/lib/synclist.js +0 -28
- package/lib/synclistdescriptor.d.ts +0 -27
- package/lib/synclistdescriptor.js +0 -19
- package/lib/syncpaginator.d.ts +0 -22
- package/lib/syncpaginator.js +0 -37
- package/lib/user.d.ts +0 -98
- package/lib/user.js +0 -219
- package/lib/util/deferred.d.ts +0 -12
- package/lib/util/deferred.js +0 -22
- package/lib/util/index.d.ts +0 -28
- package/lib/util/index.js +0 -82
- package/tools/rtd-sdk-cdn-pin/.gitrepo +0 -12
- package/tools/rtd-sdk-cdn-pin/README.md +0 -54
- package/tools/rtd-sdk-cdn-pin/bintray-settings.xml.template +0 -16
- package/tools/rtd-sdk-cdn-pin/cdn-common/cdn-prepare.sh +0 -67
- package/tools/rtd-sdk-cdn-pin/cdn-pin-latest.sh +0 -19
- package/tools/rtd-sdk-cdn-pin/cdn-pin.sh +0 -19
- package/tools/rtd-sdk-cdn-pin/cdn-upload.sh +0 -13
- package/tools/rtd-sdk-cdn-pin/fetch/common/fetch-bintray-android.sh +0 -34
- package/tools/rtd-sdk-cdn-pin/fetch/common/fetch-npm.sh +0 -18
- package/tools/rtd-sdk-cdn-pin/fetch/twilio-chat-android.sh +0 -5
- package/tools/rtd-sdk-cdn-pin/fetch/twilio-chat-js.sh +0 -5
- package/tools/rtd-sdk-cdn-pin/fetch/twilio-conversations-android.sh +0 -6
- package/tools/rtd-sdk-cdn-pin/fetch/twilio-conversations-js.sh +0 -5
- package/tools/rtd-sdk-cdn-pin/fetch/twilio-sync-android.sh +0 -5
- package/tools/rtd-sdk-cdn-pin/fetch/twilio-sync-js.sh +0 -5
- package/tools/rtd-sdk-cdn-pin/fetch-artifact.sh +0 -26
- package/tools/sdk-release-tool/.gitrepo +0 -12
- package/tools/sdk-release-tool/Makefile +0 -49
- package/tools/sdk-release-tool/README.md +0 -275
- package/tools/sdk-release-tool/delete +0 -3
- package/tools/sdk-release-tool/download +0 -3
- package/tools/sdk-release-tool/get-cors +0 -3
- package/tools/sdk-release-tool/list +0 -3
- package/tools/sdk-release-tool/pin +0 -3
- package/tools/sdk-release-tool/pin-latest +0 -3
- package/tools/sdk-release-tool/requirements.txt +0 -4
- package/tools/sdk-release-tool/sdk-release-tool +0 -3
- package/tools/sdk-release-tool/sdk_release_tools/__init__.py +0 -0
- package/tools/sdk-release-tool/sdk_release_tools/__main__.py +0 -110
- package/tools/sdk-release-tool/sdk_release_tools/aws.py +0 -70
- package/tools/sdk-release-tool/sdk_release_tools/cli.py +0 -181
- package/tools/sdk-release-tool/sdk_release_tools/log.py +0 -24
- package/tools/sdk-release-tool/sdk_release_tools/ops.py +0 -295
- package/tools/sdk-release-tool/sdk_release_tools/rpm.py +0 -28
- package/tools/sdk-release-tool/sdk_release_tools/util.py +0 -186
- package/tools/sdk-release-tool/sdk_release_tools/versions.py +0 -362
- package/tools/sdk-release-tool/signal-sdk-js.json +0 -28
- package/tools/sdk-release-tool/tests/test_versions.py +0 -94
- package/tools/sdk-release-tool/twilio-accessmanager-android.json +0 -19
- package/tools/sdk-release-tool/twilio-accessmanager-ios.json +0 -26
- package/tools/sdk-release-tool/twilio-auth-ios.json +0 -29
- package/tools/sdk-release-tool/twilio-authenticator-ios.json +0 -29
- package/tools/sdk-release-tool/twilio-chat-android-2.json +0 -19
- package/tools/sdk-release-tool/twilio-chat-android.json +0 -22
- package/tools/sdk-release-tool/twilio-chat-ios.json +0 -26
- package/tools/sdk-release-tool/twilio-chat-js.json +0 -27
- package/tools/sdk-release-tool/twilio-client-android-aar.json +0 -22
- package/tools/sdk-release-tool/twilio-client-android.json +0 -22
- package/tools/sdk-release-tool/twilio-client-ios.json +0 -20
- package/tools/sdk-release-tool/twilio-client-js.json +0 -17
- package/tools/sdk-release-tool/twilio-client-sounds-js.json +0 -14
- package/tools/sdk-release-tool/twilio-common-android-maven.json +0 -16
- package/tools/sdk-release-tool/twilio-common-android.json +0 -22
- package/tools/sdk-release-tool/twilio-common-ios-rtc.json +0 -25
- package/tools/sdk-release-tool/twilio-common-ios.json +0 -25
- package/tools/sdk-release-tool/twilio-common-js.json +0 -19
- package/tools/sdk-release-tool/twilio-conversations-android.json +0 -22
- package/tools/sdk-release-tool/twilio-conversations-ios.json +0 -26
- package/tools/sdk-release-tool/twilio-conversations-js.json +0 -27
- package/tools/sdk-release-tool/twilio-flex-js.json +0 -20
- package/tools/sdk-release-tool/twilio-flex-webchat-js.json +0 -16
- package/tools/sdk-release-tool/twilio-frame-chat-android.json +0 -22
- package/tools/sdk-release-tool/twilio-frame-chat-ios.json +0 -23
- package/tools/sdk-release-tool/twilio-frame-chat-js.json +0 -23
- package/tools/sdk-release-tool/twilio-ip-messaging-android-maven.json +0 -16
- package/tools/sdk-release-tool/twilio-ip-messaging-android.json +0 -22
- package/tools/sdk-release-tool/twilio-ip-messaging-ios.json +0 -25
- package/tools/sdk-release-tool/twilio-ip-messaging-js.json +0 -21
- package/tools/sdk-release-tool/twilio-sync-android.json +0 -22
- package/tools/sdk-release-tool/twilio-sync-ios.json +0 -26
- package/tools/sdk-release-tool/twilio-sync-js.json +0 -39
- package/tools/sdk-release-tool/twilio-taskrouter-js.json +0 -17
- package/tools/sdk-release-tool/twilio-video-android.json +0 -22
- package/tools/sdk-release-tool/twilio-video-cpp-linux-cross-rootfs.json +0 -13
- package/tools/sdk-release-tool/twilio-video-cpp.json +0 -33
- package/tools/sdk-release-tool/twilio-video-ios.json +0 -25
- package/tools/sdk-release-tool/twilio-video-js.json +0 -19
- package/tools/sdk-release-tool/twilio-video-jsdocs.json +0 -14
- package/tools/sdk-release-tool/twilio-voice-android.json +0 -22
- package/tools/sdk-release-tool/twilio-voice-ios.json +0 -29
- package/tools/sdk-release-tool/unpin +0 -3
- package/tools/sdk-release-tool/unpin-latest +0 -3
- package/tools/sdk-release-tool/upload +0 -3
- package/twilio-chat.js.iml +0 -9
package/CHANGELOG.md
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
|
+
|
6
|
+
## [2.0.0-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.0-rc.2...@twilio/conversations@2.0.0-rc.3) (2021-10-13)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @twilio/conversations
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [2.0.0-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.0-rc.1...@twilio/conversations@2.0.0-rc.2) (2021-10-13)
|
15
|
+
|
16
|
+
|
17
|
+
### ⚠ BREAKING CHANGES
|
18
|
+
|
19
|
+
* Disallow null Conversation.updateFriendlyName
|
20
|
+
* Disallow null for client options
|
21
|
+
* Remove default exports from Conversations
|
22
|
+
* Client.reachabilityEnabled can now throw an error.
|
23
|
+
|
24
|
+
### Bug Fixes
|
25
|
+
|
26
|
+
* Add missing exports ([74d08ce](https://github.com/twilio/rtd-sdk-monorepo-js/commit/74d08ce00a8a4cf0b961dde3570f5c7bd7a1e1f9))
|
27
|
+
* Allow all JSON values as properties in addNonChatParticipant ([ddbea1c](https://github.com/twilio/rtd-sdk-monorepo-js/commit/ddbea1c0d0d26b488661ef123883316f7926b456))
|
28
|
+
* Disallow null Conversation.updateFriendlyName ([7e4b556](https://github.com/twilio/rtd-sdk-monorepo-js/commit/7e4b5563e2a016f1904d9b37cfc063592712f0a6))
|
29
|
+
* Disallow null for client options ([c5435f9](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c5435f9fb9dadf11483e2c7884c334a040c06330))
|
30
|
+
* Fix client user initialization problem ([043546d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/043546d872300fda4db70d9c04461f944dfa5936))
|
31
|
+
* Remove default exports from Conversations ([38e2e24](https://github.com/twilio/rtd-sdk-monorepo-js/commit/38e2e24512425da4ba0f1670dcf37d8ccf1ac67e))
|
32
|
+
* Reset currentState on push unregister ([590991c](https://github.com/twilio/rtd-sdk-monorepo-js/commit/590991c841a78b3c7e88a05629090a2de5a8f9da))
|
33
|
+
* Resubscribe to push notification on re-register ([709847f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/709847f8462890214197cf1af769f41b56bfbccc))
|
34
|
+
* Throw an error if reachabilityEnabled was accessed before client init ([3fd3293](https://github.com/twilio/rtd-sdk-monorepo-js/commit/3fd32937d7e42d6df815efab35ded3b93a671556))
|
35
|
+
* UnsentMessage.send now returns a proper value ([c71a0a9](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c71a0a9a9618c09f5d02dbee6bc2d122d9008383))
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
## [2.0.0-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.0-rc.0...@twilio/conversations@2.0.0-rc.1) (2021-10-04)
|
40
|
+
|
41
|
+
|
42
|
+
### ⚠ BREAKING CHANGES
|
43
|
+
|
44
|
+
* User.updateFriendlyName no longer accepts
|
45
|
+
null as the value.
|
46
|
+
* Passing null to Conversation.sendMessage
|
47
|
+
will result with the message body being empty.
|
48
|
+
|
49
|
+
### Features
|
50
|
+
|
51
|
+
* Add getCachedTemporaryUrl() ([c453e70](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c453e70d0e0bc8bb6f0cd80ef0e2a3309b5ba804))
|
52
|
+
* Add limits support ([b471295](https://github.com/twilio/rtd-sdk-monorepo-js/commit/b4712954bf6f0cf82c47c77b96a98ed1ebe9c158))
|
53
|
+
* Add Media category field ([0672c20](https://github.com/twilio/rtd-sdk-monorepo-js/commit/0672c202d000736dda37be66387692e2befe24bd))
|
54
|
+
* Add mediaSet GET operation support ([424bd4a](https://github.com/twilio/rtd-sdk-monorepo-js/commit/424bd4abe42312ea01740bc142ed1c6ec3b1913d))
|
55
|
+
* Add multiple media accessors ([99e78e6](https://github.com/twilio/rtd-sdk-monorepo-js/commit/99e78e6239b87d36b23e6bbbd0bc68f19b869f85))
|
56
|
+
* Add sendMessageV2 and prepareMessage() builder ([fd5ae39](https://github.com/twilio/rtd-sdk-monorepo-js/commit/fd5ae39816e45cce83a37120bfff3f2d530f09d3))
|
57
|
+
* Allow specifying filename when uploading media file ([abd6126](https://github.com/twilio/rtd-sdk-monorepo-js/commit/abd61266135b14c27c3d076c009a3fd331a0f810))
|
58
|
+
* Dispose of session in favour of the sessionless protocol ([8b46fbd](https://github.com/twilio/rtd-sdk-monorepo-js/commit/8b46fbdac04d7e2cf55a74fb13b3016661f869b8))
|
59
|
+
* Do not filter out body for media messages ([3eeeabc](https://github.com/twilio/rtd-sdk-monorepo-js/commit/3eeeabc7c32b2798bef40e50466610d155aa68e5))
|
60
|
+
|
61
|
+
|
62
|
+
### Bug Fixes
|
63
|
+
|
64
|
+
* Add token update for notificationClient ([5cda351](https://github.com/twilio/rtd-sdk-monorepo-js/commit/5cda3513c0df4aac8df01034d2764bb0e970a476))
|
65
|
+
* Default addNonChatParticipant options to empty if not provided ([84e205b](https://github.com/twilio/rtd-sdk-monorepo-js/commit/84e205b7e4c4c2faebce6fe79521751765dde8c5))
|
66
|
+
* Deprecate unsetPushRegistrationId and add removePushRegistrations ([82ef892](https://github.com/twilio/rtd-sdk-monorepo-js/commit/82ef892537942efd1e47302dad33086a2d8a5f22))
|
67
|
+
* Fix setPushRegistrationId and unsetPushRegistrationId impls ([9120a65](https://github.com/twilio/rtd-sdk-monorepo-js/commit/9120a65834c9fb38c184c55bfa961d2e1cddb8ca))
|
68
|
+
* Return correct type from function ([5353810](https://github.com/twilio/rtd-sdk-monorepo-js/commit/5353810e32de201415f1e93d25d1b679eac2d974))
|
69
|
+
* Streamline Message state initialization ([a29331f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a29331f3d7e75ed85d4919efd67a5766482af06b))
|
70
|
+
|
71
|
+
|
72
|
+
### Code Refactoring
|
73
|
+
|
74
|
+
* Migrate to Sessionless EditUser command ([060b96b](https://github.com/twilio/rtd-sdk-monorepo-js/commit/060b96b5019311a47e7fdb71b12cbdd4996f3e44))
|
75
|
+
* Migrate to Sessionless SendMessage command ([997e17f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/997e17fd04426aebe04e1fa734752aee4ddecaf5))
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
## [2.0.0-rc.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.12...@twilio/conversations@2.0.0-rc.0) (2021-09-23)
|
80
|
+
|
81
|
+
|
82
|
+
### ⚠ BREAKING CHANGES
|
83
|
+
|
84
|
+
* Add init registrations
|
85
|
+
* Use twilsock connection state
|
86
|
+
|
87
|
+
### Features
|
88
|
+
|
89
|
+
* Add init registrations ([d09c52d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/d09c52d2b1894fb0db2e3a084937350ee1a73f01))
|
90
|
+
* Export Telemetry from Twilsock ([eb261ec](https://github.com/twilio/rtd-sdk-monorepo-js/commit/eb261ecdb366b6381462c377431735c5c09f1094))
|
91
|
+
* Use twilsock connection state ([2a6a4be](https://github.com/twilio/rtd-sdk-monorepo-js/commit/2a6a4be6384037ca80f1a02663cb126cbff3797a))
|
92
|
+
|
93
|
+
|
94
|
+
### Bug Fixes
|
95
|
+
|
96
|
+
* Fix getMessages()' usage of sync pagination ([4563227](https://github.com/twilio/rtd-sdk-monorepo-js/commit/45632271337affeb3af7dcf8bec78b555b5db6b1))
|
97
|
+
* Start client connection state in 'unknown' ([a78acd1](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a78acd1e5dde7532cfd64ed6ed09178d5009399e))
|
98
|
+
* Use Transport from Twilsock ([7f0ce1e](https://github.com/twilio/rtd-sdk-monorepo-js/commit/7f0ce1e8e74b39d38cb4feff685e19807cba5ff0))
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
### [1.2.4-rc.12](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.11...@twilio/conversations@1.2.4-rc.12) (2021-09-12)
|
103
|
+
|
104
|
+
**Note:** Version bump only for package @twilio/conversations
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
### [1.2.4-rc.11](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.10...@twilio/conversations@1.2.4-rc.11) (2021-09-12)
|
111
|
+
|
112
|
+
**Note:** Version bump only for package @twilio/conversations
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
### [1.2.4-rc.10](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.9...@twilio/conversations@1.2.4-rc.10) (2021-09-12)
|
119
|
+
|
120
|
+
**Note:** Version bump only for package @twilio/conversations
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
### [1.2.4-rc.9](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.8...@twilio/conversations@1.2.4-rc.9) (2021-09-12)
|
127
|
+
|
128
|
+
**Note:** Version bump only for package @twilio/conversations
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
### [1.2.4-rc.8](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.7...@twilio/conversations@1.2.4-rc.8) (2021-09-12)
|
135
|
+
|
136
|
+
**Note:** Version bump only for package @twilio/conversations
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
### [1.2.4-rc.7](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.5...@twilio/conversations@1.2.4-rc.7) (2021-09-12)
|
143
|
+
|
144
|
+
**Note:** Version bump only for package @twilio/conversations
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
### [1.2.4-rc.6](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.5...@twilio/conversations@1.2.4-rc.6) (2021-09-12)
|
151
|
+
|
152
|
+
**Note:** Version bump only for package @twilio/conversations
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
### [1.2.4-rc.5](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.4...@twilio/conversations@1.2.4-rc.5) (2021-09-10)
|
159
|
+
|
160
|
+
**Note:** Version bump only for package @twilio/conversations
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
### [1.2.4-rc.4](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.3...@twilio/conversations@1.2.4-rc.4) (2021-09-10)
|
167
|
+
|
168
|
+
**Note:** Version bump only for package @twilio/conversations
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
### [1.2.4-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.2...@twilio/conversations@1.2.4-rc.3) (2021-09-09)
|
175
|
+
|
176
|
+
|
177
|
+
### Bug Fixes
|
178
|
+
|
179
|
+
* Fix Rollup type export issue ([02f9d73](https://github.com/twilio/rtd-sdk-monorepo-js/commit/02f9d7307ce982afbd1a8e92f8e8bdd6646b74f0))
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
### [1.2.4-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.3-rc.1...@twilio/conversations@1.2.4-rc.2) (2021-09-07)
|
184
|
+
|
185
|
+
**Note:** Version bump only for package @twilio/conversations
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
### [1.2.3-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.3-rc.0...@twilio/conversations@1.2.3-rc.1) (2021-08-23)
|
192
|
+
|
193
|
+
**Note:** Version bump only for package @twilio/conversations
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
### 1.2.3-rc.0 (2021-08-23)
|
200
|
+
|
201
|
+
**Note:** Version bump only for package @twilio/conversations
|
package/README.md
CHANGED
@@ -16,7 +16,7 @@ npm install --save @twilio/conversations
|
|
16
16
|
|
17
17
|
Using this method, you can `require` `twilio-conversations` and then use the client:
|
18
18
|
```
|
19
|
-
const Conversations = require('twilio
|
19
|
+
const Conversations = require('@twilio/conversations');
|
20
20
|
Conversations.Client.create(token).then(client => {
|
21
21
|
// Use client
|
22
22
|
});
|
@@ -24,14 +24,14 @@ Conversations.Client.create(token).then(client => {
|
|
24
24
|
|
25
25
|
Or, if you prefer `async`/`await` syntax:
|
26
26
|
```
|
27
|
-
const Conversations = require('twilio
|
27
|
+
const Conversations = require('@twilio/conversations');
|
28
28
|
const client = await Conversations.Client.create(token);
|
29
29
|
// Use client
|
30
30
|
```
|
31
31
|
|
32
32
|
The SDK could also be imported using the ES module syntax:
|
33
33
|
```
|
34
|
-
import Conversations from '@twilio/conversations';
|
34
|
+
import { Conversations } from '@twilio/conversations';
|
35
35
|
const client = await Conversations.Client.create(token);
|
36
36
|
// Use client
|
37
37
|
```
|
@@ -41,7 +41,7 @@ const client = await Conversations.Client.create(token);
|
|
41
41
|
Releases of `twilio-conversations.js` are hosted on a CDN, and you can include these
|
42
42
|
directly in your web app using a `<script>` tag.
|
43
43
|
```html
|
44
|
-
<script src="https://media.twiliocdn.com/sdk/js/conversations/
|
44
|
+
<script src="https://media.twiliocdn.com/sdk/js/conversations/v2.0/twilio-conversations.min.js"></script>
|
45
45
|
```
|
46
46
|
Using this method, `twilio-conversations.js` will set a browser global `Twilio.Conversations` through which you can use the client :
|
47
47
|
```
|
@@ -67,7 +67,7 @@ number. While less flexible it is significantly more secure, which is required b
|
|
67
67
|
To consume securely use the following script snippet format:
|
68
68
|
|
69
69
|
```html
|
70
|
-
<script src="https://media.twiliocdn.com/sdk/js/conversations/releases/
|
70
|
+
<script src="https://media.twiliocdn.com/sdk/js/conversations/releases/2.0.0/twilio-conversations.min.js"
|
71
71
|
integrity="sha256-<HASH FROM THE CHANGELOGS PAGE>"
|
72
72
|
crossorigin="anonymous"></script>
|
73
73
|
```
|