@ohos-ports/genesys-cloud-streaming-client 20.1.0-beta.1

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.
Files changed (176) hide show
  1. package/README.md +47 -0
  2. package/dist/cjs/alerting-leader.d.ts +29 -0
  3. package/dist/cjs/alerting-leader.js +163 -0
  4. package/dist/cjs/client.d.ts +84 -0
  5. package/dist/cjs/client.js +680 -0
  6. package/dist/cjs/connection-manager.d.ts +18 -0
  7. package/dist/cjs/connection-manager.js +120 -0
  8. package/dist/cjs/connection-transfer.d.ts +7 -0
  9. package/dist/cjs/connection-transfer.js +20 -0
  10. package/dist/cjs/http-client.d.ts +18 -0
  11. package/dist/cjs/http-client.js +230 -0
  12. package/dist/cjs/index.d.ts +10 -0
  13. package/dist/cjs/index.js +31 -0
  14. package/dist/cjs/messenger.d.ts +37 -0
  15. package/dist/cjs/messenger.js +54 -0
  16. package/dist/cjs/notifications.d.ts +94 -0
  17. package/dist/cjs/notifications.js +495 -0
  18. package/dist/cjs/ping.d.ts +21 -0
  19. package/dist/cjs/ping.js +60 -0
  20. package/dist/cjs/polyfills.d.ts +0 -0
  21. package/dist/cjs/polyfills.js +6 -0
  22. package/dist/cjs/server-monitor.d.ts +16 -0
  23. package/dist/cjs/server-monitor.js +44 -0
  24. package/dist/cjs/stanza-definitions/webrtc-signaling.d.ts +29 -0
  25. package/dist/cjs/stanza-definitions/webrtc-signaling.js +113 -0
  26. package/dist/cjs/stanza-definitions/xep0051.d.ts +19 -0
  27. package/dist/cjs/stanza-definitions/xep0051.js +28 -0
  28. package/dist/cjs/stats-formatter.d.ts +6 -0
  29. package/dist/cjs/stats-formatter.js +63 -0
  30. package/dist/cjs/types/genesys-cloud-media-session.d.ts +64 -0
  31. package/dist/cjs/types/genesys-cloud-media-session.js +353 -0
  32. package/dist/cjs/types/interfaces.d.ts +310 -0
  33. package/dist/cjs/types/interfaces.js +22 -0
  34. package/dist/cjs/types/libs.d.ts +32 -0
  35. package/dist/cjs/types/libs.js +1 -0
  36. package/dist/cjs/types/media-session.d.ts +76 -0
  37. package/dist/cjs/types/media-session.js +2 -0
  38. package/dist/cjs/types/named-agent.d.ts +13 -0
  39. package/dist/cjs/types/named-agent.js +2 -0
  40. package/dist/cjs/types/offline-error.d.ts +2 -0
  41. package/dist/cjs/types/offline-error.js +5 -0
  42. package/dist/cjs/types/sasl-error.d.ts +8 -0
  43. package/dist/cjs/types/sasl-error.js +12 -0
  44. package/dist/cjs/types/stanza-media-session.d.ts +56 -0
  45. package/dist/cjs/types/stanza-media-session.js +255 -0
  46. package/dist/cjs/types/streaming-client-extension.d.ts +14 -0
  47. package/dist/cjs/types/streaming-client-extension.js +2 -0
  48. package/dist/cjs/types/timeout-error.d.ts +3 -0
  49. package/dist/cjs/types/timeout-error.js +9 -0
  50. package/dist/cjs/types/user-cancelled-error.d.ts +2 -0
  51. package/dist/cjs/types/user-cancelled-error.js +5 -0
  52. package/dist/cjs/utils.d.ts +34 -0
  53. package/dist/cjs/utils.js +202 -0
  54. package/dist/cjs/webrtc.d.ts +126 -0
  55. package/dist/cjs/webrtc.js +891 -0
  56. package/dist/deploy-info.json +21 -0
  57. package/dist/es/alerting-leader.d.ts +29 -0
  58. package/dist/es/alerting-leader.js +177 -0
  59. package/dist/es/client.d.ts +84 -0
  60. package/dist/es/client.js +699 -0
  61. package/dist/es/connection-manager.d.ts +18 -0
  62. package/dist/es/connection-manager.js +124 -0
  63. package/dist/es/connection-transfer.d.ts +7 -0
  64. package/dist/es/connection-transfer.js +16 -0
  65. package/dist/es/http-client.d.ts +18 -0
  66. package/dist/es/http-client.js +194 -0
  67. package/dist/es/index.bundle.js +39629 -0
  68. package/dist/es/index.d.ts +10 -0
  69. package/dist/es/index.js +10 -0
  70. package/dist/es/messenger.d.ts +37 -0
  71. package/dist/es/messenger.js +62 -0
  72. package/dist/es/notifications.d.ts +94 -0
  73. package/dist/es/notifications.js +507 -0
  74. package/dist/es/ping.d.ts +21 -0
  75. package/dist/es/ping.js +68 -0
  76. package/dist/es/polyfills.d.ts +0 -0
  77. package/dist/es/polyfills.js +6 -0
  78. package/dist/es/server-monitor.d.ts +16 -0
  79. package/dist/es/server-monitor.js +41 -0
  80. package/dist/es/stanza-definitions/webrtc-signaling.d.ts +29 -0
  81. package/dist/es/stanza-definitions/webrtc-signaling.js +110 -0
  82. package/dist/es/stanza-definitions/xep0051.d.ts +19 -0
  83. package/dist/es/stanza-definitions/xep0051.js +25 -0
  84. package/dist/es/stats-formatter.d.ts +6 -0
  85. package/dist/es/stats-formatter.js +54 -0
  86. package/dist/es/types/genesys-cloud-media-session.d.ts +64 -0
  87. package/dist/es/types/genesys-cloud-media-session.js +379 -0
  88. package/dist/es/types/interfaces.d.ts +310 -0
  89. package/dist/es/types/interfaces.js +19 -0
  90. package/dist/es/types/libs.d.ts +32 -0
  91. package/dist/es/types/libs.js +1 -0
  92. package/dist/es/types/media-session.d.ts +76 -0
  93. package/dist/es/types/media-session.js +1 -0
  94. package/dist/es/types/named-agent.d.ts +13 -0
  95. package/dist/es/types/named-agent.js +1 -0
  96. package/dist/es/types/offline-error.d.ts +2 -0
  97. package/dist/es/types/offline-error.js +2 -0
  98. package/dist/es/types/sasl-error.d.ts +8 -0
  99. package/dist/es/types/sasl-error.js +9 -0
  100. package/dist/es/types/stanza-media-session.d.ts +56 -0
  101. package/dist/es/types/stanza-media-session.js +264 -0
  102. package/dist/es/types/streaming-client-extension.d.ts +14 -0
  103. package/dist/es/types/streaming-client-extension.js +1 -0
  104. package/dist/es/types/timeout-error.d.ts +3 -0
  105. package/dist/es/types/timeout-error.js +5 -0
  106. package/dist/es/types/user-cancelled-error.d.ts +2 -0
  107. package/dist/es/types/user-cancelled-error.js +2 -0
  108. package/dist/es/utils.d.ts +34 -0
  109. package/dist/es/utils.js +192 -0
  110. package/dist/es/webrtc.d.ts +126 -0
  111. package/dist/es/webrtc.js +917 -0
  112. package/dist/manifest.json +19 -0
  113. package/dist/npm/CHANGELOG.md +637 -0
  114. package/dist/npm/README.md +47 -0
  115. package/dist/npm/alerting-leader.d.ts +29 -0
  116. package/dist/npm/alerting-leader.js +163 -0
  117. package/dist/npm/client.d.ts +84 -0
  118. package/dist/npm/client.js +680 -0
  119. package/dist/npm/connection-manager.d.ts +18 -0
  120. package/dist/npm/connection-manager.js +120 -0
  121. package/dist/npm/connection-transfer.d.ts +7 -0
  122. package/dist/npm/connection-transfer.js +20 -0
  123. package/dist/npm/http-client.d.ts +18 -0
  124. package/dist/npm/http-client.js +230 -0
  125. package/dist/npm/index.d.ts +10 -0
  126. package/dist/npm/index.js +31 -0
  127. package/dist/npm/messenger.d.ts +37 -0
  128. package/dist/npm/messenger.js +54 -0
  129. package/dist/npm/module.js +10 -0
  130. package/dist/npm/notifications.d.ts +94 -0
  131. package/dist/npm/notifications.js +495 -0
  132. package/dist/npm/ping.d.ts +21 -0
  133. package/dist/npm/ping.js +60 -0
  134. package/dist/npm/polyfills.d.ts +0 -0
  135. package/dist/npm/polyfills.js +6 -0
  136. package/dist/npm/server-monitor.d.ts +16 -0
  137. package/dist/npm/server-monitor.js +44 -0
  138. package/dist/npm/stanza-definitions/webrtc-signaling.d.ts +29 -0
  139. package/dist/npm/stanza-definitions/webrtc-signaling.js +113 -0
  140. package/dist/npm/stanza-definitions/xep0051.d.ts +19 -0
  141. package/dist/npm/stanza-definitions/xep0051.js +28 -0
  142. package/dist/npm/stats-formatter.d.ts +6 -0
  143. package/dist/npm/stats-formatter.js +63 -0
  144. package/dist/npm/types/genesys-cloud-media-session.d.ts +64 -0
  145. package/dist/npm/types/genesys-cloud-media-session.js +353 -0
  146. package/dist/npm/types/interfaces.d.ts +310 -0
  147. package/dist/npm/types/interfaces.js +22 -0
  148. package/dist/npm/types/libs.d.ts +32 -0
  149. package/dist/npm/types/libs.js +1 -0
  150. package/dist/npm/types/media-session.d.ts +76 -0
  151. package/dist/npm/types/media-session.js +2 -0
  152. package/dist/npm/types/named-agent.d.ts +13 -0
  153. package/dist/npm/types/named-agent.js +2 -0
  154. package/dist/npm/types/offline-error.d.ts +2 -0
  155. package/dist/npm/types/offline-error.js +5 -0
  156. package/dist/npm/types/sasl-error.d.ts +8 -0
  157. package/dist/npm/types/sasl-error.js +12 -0
  158. package/dist/npm/types/stanza-media-session.d.ts +56 -0
  159. package/dist/npm/types/stanza-media-session.js +255 -0
  160. package/dist/npm/types/streaming-client-extension.d.ts +14 -0
  161. package/dist/npm/types/streaming-client-extension.js +2 -0
  162. package/dist/npm/types/timeout-error.d.ts +3 -0
  163. package/dist/npm/types/timeout-error.js +9 -0
  164. package/dist/npm/types/user-cancelled-error.d.ts +2 -0
  165. package/dist/npm/types/user-cancelled-error.js +5 -0
  166. package/dist/npm/utils.d.ts +34 -0
  167. package/dist/npm/utils.js +207 -0
  168. package/dist/npm/webrtc.d.ts +126 -0
  169. package/dist/npm/webrtc.js +893 -0
  170. package/dist/streaming-client.browser.js +2 -0
  171. package/dist/streaming-client.browser.js.LICENSE.txt +12 -0
  172. package/dist/v20/streaming-client.browser.js +2 -0
  173. package/dist/v20/streaming-client.browser.js.LICENSE.txt +12 -0
  174. package/dist/v20.1.0/streaming-client.browser.js +2 -0
  175. package/dist/v20.1.0/streaming-client.browser.js.LICENSE.txt +12 -0
  176. package/package.json +132 -0
@@ -0,0 +1,637 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ # [Unreleased](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v20.1.0...HEAD)
8
+
9
+ # [v20.1.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v20.1.0...HEAD)
10
+ ### Added
11
+ * [STREAM-2176](https://inindca.atlassian.net/browse/STREAM-2176) - Allow `userId` to be passed in as a client option so it doesn't need to be fetched again
12
+
13
+ ### Changed
14
+ * [STREAM-1992](https://inindca.atlassian.net/browse/STREAM-1992) - Upgraded axios to v1.18.0 to fix Snyk vulnerabilities
15
+ * [STREAM-1784](https://inindca.atlassian.net/browse/STREAM-1784) - Properly handle session not found for terminate stanza
16
+ * [STREAM-2184](https://inindca.atlassian.net/browse/STREAM-2184) - Update stanza to v12.22.1
17
+ * [STREAM-2207](https://inindca.atlassian.net/browse/STREAM-2207) - Debounce `claimAlertingLeader` to prevent hammering the endpoint
18
+ * [STREAM-1095](https://inindca.atlassian.net/browse/STREAM-1095) - Set `connected` just before emitting the `connected` event to avoid a gap where an extension might see `connected` as `true` but not have the current stanza instance internally yet.
19
+
20
+ # [v20.0.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v20.0.0...v20.0.1)
21
+ ### Changed
22
+ * [STREAM-1362](https://inindca.atlassian.net/browse/STREAM-1362) - Retry notification subscription
23
+ * [STREAM-1711](https://inindca.atlassian.net/browse/STREAM-1711) - Fetch current alerting leader status sooner and add retry; upgrade `axios` to v1.17.0 and `ws` to v8.21.0.
24
+
25
+ # [v20.0.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.8.0...v20.0.0)
26
+ ### Breaking Changes
27
+ * [STREAM-1604](https://inindca.atlassian.net/browse/STREAM-1604) - Replace `uuid` with native `globalThis.crypto.randomUUID()`. `randomUUID()` has been widely available in browsers since 2022, so this should only affect you if you use streaming-client in an older browser. Also update `genesys-cloud-client-logger` from v4.2.18 to v5. Bump genesys-cloud-client-logger to v5.0.0.
28
+
29
+ # [v19.8.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.7.1...v19.8.0)
30
+ ### Added
31
+ * [STREAM-1661](https://inindca.atlassian.net/browse/STREAM-1661) - Expose current alerting leader status rather than exposing a snapshot of the value. The previous property is now deprecated.
32
+
33
+ # [v19.7.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.7.0...v19.7.1)
34
+ ### Changed
35
+ * [STREAM-1488](https://inindca.atlassian.net/browse/STREAM-1488) - Update `axios` to v1.15.2
36
+
37
+ ### Fixed
38
+ * [STREAM-1322](https://inindca.atlassian.net/browse/STREAM-1322) - Fix `logLevel` option being ignored. The value was not copied from `IClientOptions` into the internal config, so the logger always defaulted to `'info'`.
39
+
40
+ # [v19.7.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.6.0...v19.7.0)
41
+ ### Added
42
+ * [STREAM-1155](https://inindca.atlassian.net/browse/STREAM-1155) - Allow clients to become the alerting leader and listen for alerting leader events.
43
+ * [STREAM-1003](https://inindca.atlassian.net/browse/STREAM-1003) - Update and modernize documentation.
44
+
45
+ # [v19.6.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.5.0...v19.6.0)
46
+ ### Added
47
+ * [STREAM-949](https://inindca.atlassian.net/browse/STREAM-949) - Catch errors and emit them as a `disconnected` event and include error.
48
+ * [STREAM-1201](https://inindca.atlassian.net/browse/STREAM-1201) - Add ability to track internally-used subscriptions.
49
+ * [STREAM-1179](https://inindca.atlassian.net/browse/STREAM-1179) - Add a config option to allow a streaming-client instance to be marked as alertable (internal-use only).
50
+
51
+ ### Changed
52
+ * [STREAM-1208](https://inindca.atlassian.net/browse/STREAM-1208) - Update axios to 1.13.5 to address vulnerability.
53
+ * [STREAM-838](https://inindca.atlassian.net/browse/STREAM-838) - Add API based connectivity check for Auth Token clients
54
+ * [STREAM-1422](https://inindca.atlassian.net/browse/STREAM-1422) - Update axios to 1.15.0 to address vulnerability.
55
+
56
+ ### Fixed
57
+ * [STREAM-1271](https://inindca.atlassian.net/browse/STREAM-1271) - Fix unhandled errors during hard reconnect resubscribe in `handleStanzaInstanceChange`
58
+
59
+ # [v19.5.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.4.1...v19.5.0)
60
+ ### Added
61
+ * [STREAM-995](https://inindca.atlassian.net/browse/STREAM-995) - Include `missingPermissions` on topic subscribe Error.
62
+
63
+ ### Changed
64
+ * [STREAM-997](https://inindca.atlassian.net/browse/STREAM-997) - Updated requestWithApiRetry to retry on network error codes. Added maxAttempts option to requestApiWithRetry.
65
+ * [STREAM-1006](https://inindca.atlassian.net/browse/STREAM-1006) - Added ECONNRESET to the list of network error codes to retry on.
66
+
67
+ ### Fixed
68
+ * [STREAM-1026](https://inindca.atlassian.net/browse/STREAM-1026) - Filter out all IP addresses (local, remote, and related) from stats event details before sending to New Relic. See [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidatePairStats) for more details on potential IP address exposure.
69
+
70
+ # [v19.4.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.4.0...v19.4.1)
71
+ ### Changed
72
+ * [STREAM-941](https://inindca.atlassian.net/browse/STREAM-941) - Fix an issue where notifications.subscribe() with `enablePartialBulkResubscribe` would not resolve/reject based on API result when the requested topic was internally combined with others, e.g. "topic.a" and "topic.b" individually subscribed and bulk resubscribe combines them as "topic?a&b"
73
+ * [STREAM-950](https://inindca.atlassian.net/browse/STREAM-950) - Update genesys-cloud-client-logger to pick up change moving from `unload` to `visibilitychange`.
74
+ * [STREAM-824](https://inindca.atlassian.net/browse/STREAM-824) - Handle new SDP offer for live screen-monitoring.
75
+ * [STREAM-643](https://inindca.atlassian.net/browse/STREAM-643) - Bumped webpack dependency to 5.94.0
76
+
77
+ # [v19.4.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.3.1...v19.4.0)
78
+ ### Added
79
+ * [STREAM-865](https://inindca.atlassian.net/browse/STREAM-865) - Generate a test report in JUnit.xml format.
80
+ * [STREAM-892](https://inindca.atlassian.net/browse/STREAM-892) - Add `enablePartialBulkResubscribe` client option to make notifications bulk subscription changes succeed or fail each topic independently rather than a single failed topic causing the whole bulk operation to fail.
81
+
82
+ ### Changed
83
+ * [STREAM-865](https://inindca.atlassian.net/browse/STREAM-865) - Remove the SDP payload from SDP answer logs.
84
+
85
+ # [v19.3.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.3.0...v19.3.1)
86
+ * [STREAM-801](https://inindca.atlassian.net/browse/STREAM-801) - Update genesys-cloud-client-logger and axios to address Snyk vulnerability.
87
+
88
+ # [v19.3.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.2.2...v19.3.0)
89
+ ### Changed
90
+ * [STREAM-631](https://inindca.atlassian.net/browse/STREAM-631) - Remove pipeline infra from open-source.
91
+
92
+ ### Fixed
93
+ * [STREAM-154](https://inindca.atlassian.net/browse/STREAM-154) - Track StanzaMediaSessions so events can still be processed if streaming-client is disconnected and reconnected.
94
+ * [STREAM-155](https://inindca.atlassian.net/browse/STREAM-155) - Calling `disconnect` will now stop any in-progress connection attempts.
95
+
96
+ ### Added
97
+ * [STREAM-653](https://inindca.atlassian.net/browse/STREAM-653) - Added fields to upgradeMediaPresence stanza definition.
98
+ * [STREAM-85](https://inindca.atlassian.net/browse/STREAM-85) - Handle connection transfer (`v2.system.socket_closing`) message from Hawk signaling a reconnect is necessary
99
+ * [STREAM-652](https://inindca.atlassian.net/browse/STREAM-652) - Added GitHub Actions for linting, testing, and building in an effort to make the build process more transparent and reliable.
100
+
101
+ # [v19.2.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.2.1...v19.2.2)
102
+ ### Fixed
103
+ * [STREAM-262](https://inindca.atlassian.net/browse/STREAM-262) - Set the state of a GenesysCloudMediaSession to `ended` when a `terminate` is received (or we determine a hard closure of the PeerConnection is needed)
104
+ * [STREAM-582](https://inindca.atlassian.net/browse/STREAM-582) - Fix issue where `session-initiate` was not ignored when SDP-over-XMPP was turned on for a session.
105
+
106
+ # [v19.2.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.2.0...v19.2.1)
107
+ ### Fixed
108
+ * [STREAM-534](https://inindca.atlassian.net/browse/STREAM-534) - Fix issue where sdpOverXmpp flag could be overridden by a subsequent propose.
109
+
110
+ ### Added
111
+ * [STREAM-63](https://inindca.atlassian.net/browse/STREAM-63) - Added in check to ensure customHeaders is passed in for every API request call
112
+
113
+ # [v19.2.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.1.0...v19.2.0)
114
+ ### Changed
115
+ * [STREAM-462](https://inindca.atlassian.net/browse/STREAM-462) - Update Stanza timeout timer to 35 seconds to align with the updated server timeout.
116
+ * [STREAM-461](https://inindca.atlassian.net/browse/STREAM-461) - Remove support for conferenceId in JWT auth (not breaking change, never released).
117
+
118
+ ### Added
119
+ * [STREAM-461](https://inindca.atlassian.net/browse/STREAM-461) - Allow for conferenceId or JID to be used in JWT auth.
120
+ * [STREAM-523](https://inindca.atlassian.net/browse/STREAM-523) - Properly emit `connectionState` event while using SDP over XMPP
121
+
122
+ # [v19.1.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.0.1...v19.1.0)
123
+ * [STREAM-357](https://inindca.atlassian.net/browse/STREAM-357) - Maintain the same JID resource across hard reconnects/websockets/stanza instances so that reinvites can be sent to the new WS/stanza instance.
124
+
125
+ # [v19.0.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.0.0...v19.0.1)
126
+ ### Fixed
127
+ * [STREAM-380](https://inindca.atlassian.net/browse/STREAM-380) - Including line break for ice candidate SDP to follow the spec
128
+
129
+ # [v19.0.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v18.0.0...v19.0.0)
130
+ ### Breaking Changes
131
+ * Lru-cache was upgraded from v6 to v11, which uses newer language features. Depending on your language target version, you may need to configure a transpiler accordingly. For example, we added `plugin-proposal-class-properties` and `plugin-transform-private-methods` to our Babel config for streaming-client.
132
+ * Support for IE has been removed.
133
+
134
+ ### Changed
135
+ * [STREAM-313](https://inindca.atlassian.net/browse/STREAM-313) - Streaming-client will ignore duplicate reinvite offers.
136
+ * [PCM-2081](https://inindca.atlassian.net/browse/PCM-2081) - Set meetingId when initializing GenesysCloudMediaSessions and only delete pending sessions when processed for the right session type.
137
+ * [STREAM-324](https://inindca.atlassian.net/browse/STREAM-324) - Support for IE has been removed.
138
+
139
+ ### Fixed
140
+ * [STREAM-207](https://inindca.atlassian.net/browse/STREAM-207) - [STREAM-207] handle ice candidates received before the offer (sdpOverXmpp only)
141
+ * [STREAM-326](https://inindca.atlassian.net/browse/STREAM-326) - Track SDP over XMPP differently so we can handle Jingle session-initiate and SDP offers in any order.
142
+
143
+ # [v18.0.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.2.7...v18.0.0)
144
+ ### Breaking Changes
145
+ * The `connnect` method will now throw a StreamingClientError with a type indicated, rather than the passing through the underlying error. The error that was previously thrown will still be available via the `details` property.
146
+
147
+ ### Changed
148
+ * [STREAM-162](https://inindca.atlassian.net/browse/STREAM-162) - Streaming-client should trigger re-auth for some SASL errors (and 401s) - this will be indicated by a StreamingClientError of type `.invalid-token`.
149
+
150
+ # [v17.2.7](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.2.6..v17.2.7)
151
+ ### Fixed
152
+ * [STREAM-218](https://inindca.atlassian.net/browse/STREAM-218) - update the conversationId on sessions with reinvites
153
+
154
+ # [v17.2.6](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.2.5..v17.2.6)
155
+ ### Fixed
156
+ * [STREAM-212](https://inindca.atlassian.net/browse/STREAM-212) - Log the session id rather than the whole session to prevent logging a large object
157
+
158
+ # [v17.2.5](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.2.4..v17.2.5)
159
+ ### Changed
160
+ * [NO-JIRA] - Bump stats-gatherer and client-logger to pick up fixes
161
+
162
+ ### Fixed
163
+ * [STREAM-178](https://inindca.atlassian.net/browse/STREAM-178) - Clean up session with dead peerConnections on them after system wake.
164
+
165
+ # [v17.2.4](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.2.3...v17.2.4)
166
+ ### Fixed
167
+ * [STREAM-69](https://inindca.atlassian.net/browse/STREAM-69) - Don't send stats when offline and start sending stats again when online.
168
+
169
+ ### Changed
170
+ * [STREAM-146](https://inindca.atlassian.net/browse/STREAM-146) - Update logging for new JSON-RPC commands.
171
+ * [STREAM-172](https://inindca.atlassian.net/browse/STREAM-172) - Update axios to address Snyk vulnerability
172
+ * [STREAM-153](https://inindca.atlassian.net/browse/STREAM-153) - Don't stop sending stats when stopping server logging.
173
+
174
+ # [v17.2.3](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.2.2...v17.2.3)
175
+ ### Fixed
176
+ * [STREAM-134](https://inindca.atlassian.net/browse/STREAM-134) Isolate streaming client backoff delays by app name
177
+ ### Changed
178
+ * [no-jira] Fix string interpolation for log message and update docs for `useServerSidePings` default
179
+
180
+ # [v17.2.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.2.1...v17.2.2)
181
+ ### Fixed
182
+ * [STREAM-108](https://inindca.atlassian.net/browse/STREAM-108) Update ws to address Snyk vulnerability
183
+ ### Added
184
+ * [STREAM-71](https://inindca.atlassian.net/browse/STREAM-71) - proxy the priv-answer-mode param on the propose to the pendingSession (used for internal purposes)
185
+
186
+ # [v17.2.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.2.0...v17.2.1)
187
+ ### Changed
188
+ * [STREAM-96](https://inindca.atlassian.net/browse/STREAM-96) - Forcefully disconnect the WebSocket when missed pings are detected to help reconnect faster
189
+
190
+ # [v17.2.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.1.3...v17.2.0)
191
+ ### Added
192
+ * [WEBRTCS-1106](https://inindca.atlassian.net/browse/WEBRTCS-1106) - update client to support renegotiations between persistent connection calls and ice restarts
193
+
194
+ # [v17.1.3](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.1.2...v17.1.3)
195
+ ### Changed
196
+ * [PCM-2352](https://inindca.atlassian.net/browse/PCM-2352) - Use a timeout when using server-side pinging to detect when a connection has dropped
197
+
198
+ # [v17.1.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.1.1...v17.1.2)
199
+ * [NO-JIRA] - Removed Spigot testing from Jenkins build step.
200
+
201
+ # [v17.1.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.1.0...v17.1.1)
202
+ ### Fixed
203
+ * [NO-JIRA] - Reverted PCM-2321, server-side pinging.
204
+ * [PCM-2347](https://inindca.atlassian.net/browse/PCM-2347) - Updated client-logger to fix critical Snyk vulnerability.
205
+
206
+ ### Added
207
+ * [PCM-2344](https://inindca.atlassian.net/browse/PCM-2344) - Added ability to pass in custom headers for telemetry purposes (internal use only).
208
+
209
+ # [v17.1.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.0.3...v17.1.0)
210
+ ### Added
211
+ * [PCM-2191](https://inindca.atlassian.net/browse/PCM-2191) - add meetingId property to the pendingSession and the mediaSession objects
212
+
213
+ # [v17.0.3](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.0.2...v17.0.3)
214
+ ### Changed
215
+ * [PCM-2321](https://inindca.atlassian.net/browse/PCM-2321) default to server-side pinging, fallback to client side pinging
216
+
217
+ # [v17.0.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.0.1...v17.0.2)
218
+ ### Changed
219
+ * [PCM-2312](https://inindca.atlassian.net/browse/PCM-2312) bump logger version
220
+
221
+ ### Fixed
222
+ * [PCM-2304](https://inindca.atlassian.net/browse/PCM-2304) Made connection backoff semi-persistent through the sessionStore. Updated stanza to circumvent browser intensive throttling on connection attempts.
223
+ * [PCM-2314](https://inindca.atlassian.net/browse/PCM-2314) Fix softphone calls with users' emails beginning with "acd-"
224
+
225
+ # [v17.0.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.0.0...v17.0.1)
226
+ ### Added
227
+ * [PCM-2295](https://inindca.atlassian.net/browse/PCM-2295) New relic stat for when navigator.onLine changes
228
+
229
+ ### Fixed
230
+ * [no-jira] Fix snyk vulns: axios and follow-redirects
231
+
232
+ # [v17.0.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v16.2.0...v17.0.0)
233
+ ### Breaking Changes
234
+ * The `_eventTimestamp` on the InsightActionDetails type has been changed to a `number` from a `string`. If proxying stats, you should be supplying a number representing ms since epoch, e.g. `new Date().getTime()`.
235
+
236
+ ### Changed
237
+ * [PCM-2276](https://inindca.atlassian.net/browse/PCM-2276) Change to nr timestamp from string to number
238
+
239
+ # [v16.2.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v16.1.3...v16.2.0)
240
+ ### Added
241
+ * [PCM-2276](https://inindca.atlassian.net/browse/PCM-2276) Added an function to proxy stats to nr from other apps like the webrtc sdk; Fixed some issues with nr stats gathering.
242
+
243
+ # [v16.1.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v16.1.1...v16.1.2)
244
+ ### Fixed
245
+ * [PCM-2223](https://inindca.atlassian.net/browse/PCM-2223) Fix unintentional breaking change with types
246
+
247
+ # [v16.1.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v16.1.0...v16.1.1)
248
+ ### Added
249
+ * [PCM-2262](https://inindca.atlassian.net/browse/PCM-2262) Fixed snyk vulnerability SNYK-JS-AXIOS-6032459
250
+
251
+ # [v16.1.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v16.0.2...v16.1.0)
252
+ ### Added
253
+ * [PCM-2223](https://inindca.atlassian.net/browse/PCM-2223) - Add broadcast messaging capability between instances of a given user
254
+
255
+ # [v16.0.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v16.0.1...v16.0.2)
256
+ ### Added
257
+ * [PCM-2091](https://inindca.atlassian.net/browse/PCM-2091) - Be able to handle a duplicate channel message from hawk signaling a mandatory hard reconnect
258
+
259
+ ### Fixed
260
+ * [PCM-2163](https://inindca.atlassian.net/browse/PCM-2163) - don't log turn server creds
261
+
262
+ # [v16.0.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v16.0.0...v16.0.1)
263
+ ### Fixed
264
+ * [PCM-2114](https://inindca.atlassian.net/browse/PCM-2114) - fix false-positive timeout error for ending reinvited sessions
265
+
266
+ # [v16.0.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.1.7...v16.0.0)
267
+ ### Breaking Changes
268
+ * `session.end()` now returns a `Promise<void>` instead of `void`
269
+ * `session.sid` no longer exists. Use `session.id` instead.
270
+
271
+ ### Added
272
+ * [PCM-2114](https://inindca.atlassian.net/browse/PCM-2114) - proxy the reinvite property through for the offer (sdp over xmpp)
273
+
274
+ # [v15.1.7](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.1.6...v15.1.7)
275
+ ### Fixed
276
+ * [PCM-2141]((https://inindca.atlassian.net/browse/PCM-2141) - Sanitize auth token from error responses
277
+
278
+ # [v15.1.6](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.1.5...v15.1.6)
279
+
280
+ ### Fixed
281
+ * [PCM-2100]((https://inindca.atlassian.net/browse/PCM-2093) - Removed overly noisy data channel message logs.
282
+
283
+ # [v15.1.5](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.1.4...v15.1.5)
284
+ ### Fixed
285
+ * [PCM-2093](https://inindca.atlassian.net/browse/PCM-2093) - Fixed error that occurs when connection is disconnected remotely before it has finished connecting
286
+
287
+ # [v15.1.4](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.1.3...v15.1.4)
288
+ ### Fixed
289
+ * [PCM-2089](https://inindca.atlassian.net/browse/PCM-2089) - fixed another case for connection fan-out
290
+
291
+ # [v15.1.3](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.1.2...v15.1.3)
292
+ ### Fixed
293
+ * [PCM-2089](https://inindca.atlassian.net/browse/PCM-2089) - fixed a case where we timeout the connection attempt then it connects anyway
294
+
295
+ # [v15.1.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.1.1...v15.1.2)
296
+ ### Fixed
297
+ * [PCM-2089](https://inindca.atlassian.net/browse/PCM-2089) - [CRITICAL FIX] fixed issue where failing the initial service discover request causes connection instance fan out. We now clean up the websocket if an error happens *after* the socket is connected, but *before* the rest of the connection setup is completed. We also added a fixed number of attempts a client will reuse a channelId. Adjusted max exponential backoff to 90 seconds now that we have a concrete solution to the spamming connection attempts.
298
+
299
+ # [v15.1.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.1.0...v15.1.1)
300
+ ### Deprecated
301
+ * We deprecated the `StreamingClientConnectOptions.keepTryingOnFailure` property which is passed into `StreamingClient.connect(...)`. Please use `StreamingClientConnectOptions.maxConnectionAttempts` instead.
302
+
303
+ ### Changed
304
+ * [PCM-2082](https://inindca.atlassian.net/browse/PCM-2082) - Deprecated the `StreamingClientConnectOptions.keepTryingOnFailure`. Changed the default maxConnectionAttempts to 15, and increased the default exponential-backoff delay for connection attempts from 10 seconds to 3 minutes.
305
+
306
+ # [v15.1.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.0.4...v15.1.0)
307
+ ### Added
308
+ * [PCM-2042](https://inindca.atlassian.net/browse/PCM-2042) - add the ability to handle/manage sessions via sdp over xmpp rather than jingle. We will default to jingle unless the propose says to use sdp over xmpp in which case we will spin up a dummy session for jingle (since we can't stop jingle from handling a session-init) and terminate it immediately, silently.
309
+
310
+ ### Fixed
311
+ * [PCM-2075](https://inindca.atlassian.net/browse/PCM-2075) - Fix requestApiWithRetry to respect the retry-after response header; retryPromise now allows a number in the retry handler to override the future delay.
312
+
313
+ # [v15.0.4](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.0.3...v15.0.4)
314
+ ### Changed
315
+ * [PCM-2058](https://inindca.atlassian.net/browse/PCM-2058) - bump stats gatherer
316
+
317
+ # [v15.0.3](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.0.2...v15.0.3)
318
+ ### Changed
319
+ * [no-jira] bump stats gatherer
320
+
321
+ # [v15.0.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.0.1...v15.0.2)
322
+ ### Fixed
323
+ * [PCM-2045](https://inindca.atlassian.net/browse/PCM-2045) - increased timeout for disconnecting
324
+
325
+ # [v15.0.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v15.0.0...v15.0.1)
326
+ ### Fixed
327
+ * [PCM-2045](https://inindca.atlassian.net/browse/PCM-2045) - fixed various issues with the latest release. 1) error in the streaming-client bundle when sending stats. This was due to a bad import syntax in webrtc.ts. 2) race condition for setting up spigot tests. This is happening because spigot is trying to setup a session before the ice servers have come back during bootstrap. 3) jid issues in webrtc.ts. We used to rely on the client.config.jid for the jid, but now we will pull it directly from the stanzaInstance, or it will be null.
328
+
329
+ # [v15.0.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v14.2.4...v15.0.0)
330
+ ### Breaking Changes
331
+ * `client.reconnect()` no longer exists because it doesn't really make sense. If you need the reconnect functionality
332
+ for some reason, you'll have to manually call `disconnect()` and `connect()`.
333
+ * If you are interacting with the stanza instance itself, e.g. `streamingClient._stanzaio`, then you will have issues.
334
+
335
+ ### Fixed
336
+ * [PCM-2031](https://inindca.atlassian.net/browse/PCM-2031) - Allow specifying response type to fix the "No root element" error when firefox tries to parse empty XHR responses.
337
+ * [PCM-2024](https://inindca.atlassian.net/browse/PCM-2024) - Redo connection and reconnection logic
338
+ * This shouldn't have any blatantly breaking changes unless you are reaching through the streaming-client to get a hold of the stanza/jingle
339
+ instance. Essentially we've changed the connection logic in a way that *every single connection attempt* is made using a brand new instance
340
+ of stanza. The reason for this is now we can guarantee we are not confusing events from old stanza sessions with new stanza sessions. The
341
+ major driver of this methodology change is because stanza's `connect()` function is not atomic and it is possible to receive a mismatched
342
+ number of `connected` and `disconnected` events from stanza.
343
+
344
+ # [v14.2.4](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v14.2.3...v14.2.4)
345
+ * [PCM-2020](https://inindca.atlassian.net/browse/PCM-2020) - Remove data-channel logs to reduce console clutter.
346
+
347
+ # [v14.2.3](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v14.2.2...v14.2.3)
348
+ * [PCM-1968](https://inindca.atlassian.net/browse/PCM-1968) - More verbose logging around interruption states
349
+
350
+ # [v14.2.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v14.2.1...v14.2.2)
351
+ * [PCM-1993](https://inindca.atlassian.net/browse/PCM-1993) - Handled `reject` messages and treat the corresponding session as handled
352
+
353
+
354
+ # [v14.2.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v14.2.0...v14.2.1)
355
+ * [PCM-1988](https://inindca.atlassian.net/browse/PCM-1988) – Add jidResource support for jwt tokens.
356
+ * [PCM-1992](https://inindca.atlassian.net/browse/PCM-1992) – Update to the latest logger so unsent logs get preserved.
357
+
358
+ ### Added
359
+ * [PCM-1972](https://inindca.atlassian.net/browse/PCM-1972) – Added support for data channel messages if initially offered in the sdp
360
+
361
+ ### Fixed
362
+ * [PCM-1963](https://inindca.atlassian.net/browse/PCM-1963) - Added missing error text from switch to Axios from SuperAgent.
363
+
364
+
365
+ # [v14.2.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v14.1.2...v14.2.0)
366
+ ### Added
367
+ * [PCM-1944](https://inindca.atlassian.net/browse/PCM-1944) – Added reconnect options to the `streamingClient.connect` so it will continue to try to connect at a given interval. This is separate from the reconnection logic in the case where the client connected but disconnected unexpectedly.
368
+
369
+ # [v14.1.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v14.1.1...v14.1.2)
370
+ ### Fixed
371
+ * [PCM-1955](https://inindca.atlassian.net/browse/PCM-1955) – Fix the requestApiWithRetry fn so that it will actually retry
372
+
373
+ # [v14.1.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v14.1.0...v14.1.1)
374
+
375
+ ### Fixed
376
+ * [PCM-1943](https://inindca.atlassian.net/browse/PCM-1943) – Reverted faulty connect/retry logic introduced with [PCM-1908](https://inindca.atlassian.net/browse/PCM-1908) (v14.0.0)
377
+
378
+ ### Added
379
+ * [PCM-1935](https://inindca.atlassian.net/browse/PCM-1935) – added build, deploy, and publish notifications to the Jenkinsfile
380
+
381
+ # [v14.1.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v14.0.1...v14.1.0)
382
+ ### Added
383
+ * [PCM-1819](https://inindca.atlassian.net/browse/PCM-1819) Added separate backgroundassistant endpoints that will be used when using a screen recording jwt
384
+
385
+ # [v14.0.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v14.0.0...v14.0.1)
386
+
387
+ ### Fixed
388
+ * [PCM-1926](https://inindca.atlassian.net/browse/PCM-1926) – make sure that the `data` (ie. body) is sent with HTTP post & put requests.
389
+
390
+ ### Added
391
+ * Added instance level version property. The streaming-client version can now be accessed statically or on constructed instances.
392
+
393
+ # [v14.0.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.4.1...v14.0.0)
394
+ ### Breaking Changes
395
+ * HttpClient response objects now use `data` instead of `body`. For example, if you make a request like this:
396
+ ```ts
397
+ const response = await HttpClient.requestApi('/users/', { method: 'get' })
398
+
399
+ // old way which is no longer valid:
400
+ const users = response.body;
401
+
402
+ // new way:
403
+ const users = response.data;
404
+ ```
405
+ ### Added
406
+ * [PCM-1837](https://inindca.atlassian.net/browse/PCM-1837) – add `setAccessToken(token)` function
407
+ * [PCM-1844](https://inindca.atlassian.net/browse/PCM-1844) – stop sending logs on disconnect:
408
+ * add `stopServerLogging()` & `startServerLogging()` functions to allow consumers to stop sending server
409
+ logs that are sent via the client-logger.
410
+ * on `client.disconnect()`, logs will stop being sent to the server.
411
+ * on `client.connect()`, logs will start being sent to the server again.
412
+
413
+ ### Changed
414
+ * [PCM-1842](https://inindca.atlassian.net/browse/PCM-1842) – migrate to the new pipeline. Also versioning cdn urls with major and exact versions. For example:
415
+ * `/v13.5.0/streaming-client.browser.js` (exact version)
416
+ * `/v13/streaming-client.browser.js` (locked to latest for a specific major version)
417
+ * [PCM-1842](https://inindca.atlassian.net/browse/PCM-1842)/[PCM-1560](https://inindca.atlassian.net/browse/PCM-1560) – Upgrade to new pipeline
418
+
419
+ ### Fixed
420
+ * [ACE-2053](https://inindca.atlassian.net/browse/ACE-2053) – Remove superagent which is no longer maintained in order to get away from the 'formidable' snyke vulnerability.
421
+ * [PCM-1908](https://inindca.atlassian.net/browse/PCM-1908) – fixing some `.connect()` functionality:
422
+ * `autoReconnect` no longer default to `true` but will be set to true after successfully connecting once
423
+ * when `connect()` times out, it will call through to stop any pending WS connect that stanza my still be attempting
424
+ * `connect()` will now reject when stanza emits a `--transport-disconnected` event which is what stanza emits when there
425
+ was a WS connection that failed or terminated. Note that stanza does not surface the error, so we will be rejecting
426
+ with a generic error.
427
+ * Addressed snyk and npm audit issues
428
+ * [PCM-1862](https://inindca.atlassian.net/browse/PCM-1862) - remove individual topics from the tracked lists (subscriptions) after their last handlers have been removed. Fixed `_notifications.resubscribe()` to not treat individual topics as bulk topics
429
+
430
+ # [v13.4.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.4.0...v13.4.1)
431
+ ### Added
432
+ * [PCM-1773](https://inindca.atlassian.net/browse/PCM-1773) – Added an es bundle for consumers that cannot bundle mixed node_modules.
433
+ `package.json` entry point is `rollup:bundle` as to not coflict with the SDK's `es:bundle`. This is effectively not "turning on" this feature.
434
+ But can still be opt-in. Generally, if this is needed, consumers should be utilizing the SDK's bundled es modules.
435
+ * [PCM-1770](https://inindca.atlassian.net/browse/PCM-1770) – Converted `SessionTypes` to an `enum` but still left the union type as to not break consumers' typings.
436
+ * Renamed `ISessionInfo` to `IPendingSession` (but kept `ISessionInfo` for backwards compatibility).
437
+ # [v13.4.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.3.7...v13.4.0)
438
+ ### Added
439
+ * [PCM-1753](https://inindca.atlassian.net/browse/PCM-1753) – Add an option for log formatters
440
+
441
+ # [v13.3.7](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.3.6...v13.3.7)
442
+ ### Fixed
443
+ * [PCM-1760](https://inindca.atlassian.net/browse/PCM-1760) – GenesysCloudMediaSessions are now passed the correct sessionType
444
+ # [v13.3.6](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.3.5...v13.3.6)
445
+ * repeat of 13.3.5
446
+ # [v13.3.5](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.3.4...v13.3.5)
447
+ ### Changed
448
+ * [PCM-1758](https://inindca.atlassian.net/browse/PCM-1758) – Auto send proceeds after the initial proceed when we get proposes
449
+
450
+
451
+ # [v13.3.4](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.3.3...v13.3.4)
452
+ ### Changed
453
+ * [PCM-1754](https://inindca.atlassian.net/browse/PCM-1754) – Added several webrtc related logs
454
+
455
+ # [v13.3.3](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.3.2...v13.3.3)
456
+ ### Fixed
457
+ * [PCM-1752](https://inindca.atlassian.net/browse/PCM-1752) - Tag all the messages from the webrtc sessions with conversationId, sessionType, and sessionId.
458
+ * [PCM-1749](https://inindca.atlassian.net/browse/PCM-1749) - Streaming client will now automatically update ice servers every 6 hours. Also added some minor logging enhancements.
459
+
460
+ # [v13.3.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.3.1...v13.3.2)
461
+ ### Fixed
462
+ * [PCM-1749](https://inindca.atlassian.net/browse/PCM-1749) - Periodically refresh the ice servers so the turn creds are up to date.
463
+
464
+ ### Added
465
+ * Bumped from stanza `^12.13.x` to `^12.17.x`
466
+ * [PCM-1737](https://inindca.atlassian.net/browse/PCM-1737) – Pulled in [GenesysCloudClientLogger](https://github.com/purecloudlabs/genesys-cloud-client-logger/).
467
+ * Streaming-client will now construct its own logger to send logs to the server. Opt out of this by using `optOutOfWebrtcStatsTelemetry = true`.
468
+ * Added the following options to constructor config: `logLevel`, `appId`, and `logger`. `appId` should be a unique identifier of the parent app to be able to tie individual clients to each other in the logs.
469
+
470
+ # [v13.3.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.3.0...v13.3.1)
471
+ ### Fixed
472
+ * [PCM-1726](https://inindca.atlassian.net/browse/PCM-1726) - Removed `package.json#browser` (it still gets built and is available at `dist/streaming-client.browser.js`) since streaming-client is only designed for the web anyway. Keeping the build to `commonJS` and `ES Modules` (`cjs` & `es` in `dist/`). Also, corrected `package.json#module` to point to the built file (previously was pointing at the incorrect file name).
473
+ ### Added
474
+ * [PCM-1727](https://inindca.atlassian.net/browse/PCM-1727) – Added optional config options `appName` and `appVersion` to pass into the constructor. Streaming-client will send these values to the stats pushed to new relic.
475
+
476
+ # [v13.3.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.2.9...v13.3.0)
477
+ ### Added
478
+ * [PCM-1715](https://inindca.atlassian.net/browse/PCM-1715) - Updated to override how `stanza` currently ends sessions to prevent race condition. Now sending `session-terminate` and if after two seconds the peer connection is still open, manually closing it.
479
+
480
+ ### Fixed
481
+ * [PCM-1722](https://inindca.atlassian.net/browse/PCM-1722) - Fixed issue where file path in `package.json` did not match the actual built file path and where file path for `module` pointed to a file that did not exist.
482
+
483
+ # [v13.2.9](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.2.8...v13.2.9)
484
+ ### Fixed
485
+ * [PCM-1712](https://inindca.atlassian.net/browse/PCM-1712) - Fixed more cases of browser throttling due to setTimeout
486
+
487
+ # [v13.2.8](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.2.7...v13.2.8)
488
+ ### Fixed
489
+ * [PCM-1692](https://inindca.atlassian.net/browse/PCM-1692) - Bump `async` to `3.2.1` (dep of `stanza`) to fix background tab throttling of WebSocket messages. This is causing webrtc sessions to not connect because `transport-info`s were being throttled.
490
+ * [PCM-1701](https://inindca.atlassian.net/browse/PCM-1701) - Do not add/use Google STUN servers by default (ie. override `stanza`'s default behavior of adding these to the config).
491
+ * [PCM-1529](https://inindca.atlassian.net/browse/PCM-1529) - Soft reconnects will actually attempt to connect a WebSocket
492
+
493
+ # [v13.2.7](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.2.6...v13.2.7)
494
+ ### Added
495
+ * [PCM-1624](https://inindca.atlassian.net/browse/PCM-1624) - Added logging for failed HTTP requests to console - not sending to Sumo.
496
+
497
+ # [v13.2.6](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.2.5...v13.2.6)
498
+ ### Fixed
499
+ * fixed unit tests in later versions of node
500
+ ### Added
501
+ * added more logging around webrtc signaling
502
+
503
+ # [v13.2.5](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.2.4...v13.2.5)
504
+ * [PCM-1615](https://inindca.atlassian.net/browse/PCM-1615) – Fixed Force TURN for Firefox browser
505
+
506
+ # [v13.2.4](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.2.3...v13.2.4)
507
+ * [PCM-1547](https://inindca.atlassian.net/browse/PCM-1547) - Fixed 1:1 video alert toast hanging after answer timeout and fixed invites hanging when accepting 1:1 video call with two clients open.
508
+ * [PCM-1561](https://inindca.atlassian.net/browse/PCM-1561) - Added logging for ICE and connection state changes.
509
+
510
+ # [v13.2.3](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.2.2...v13.2.3)
511
+ ### Fixed
512
+ * [PCM-1572](https://inindca.atlassian.net/browse/PCM-1572) – changed http request to `subscriptions` to not retry on failures.
513
+ * Removed PII logging from failed HTTP requests
514
+
515
+ # [v13.2.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.2.1...v13.2.2)
516
+ ### Fixed
517
+ * [PCM-1552](https://inindca.atlassian.net/browse/PCM-1552) – reworked ping timer logic to avoid chrome v88 timer throttling (read here: https://developer.chrome.com/blog/timer-throttling-in-chrome-88/)
518
+ * [PCM-1558](https://inindca.atlassian.net/browse/PCM-1558) – removed IP addresses from stats sent to New Relic. Removed `fromJid` from being logged.
519
+ * [PCM-1557](https://inindca.atlassian.net/browse/PCM-1557) – set `iceTransportPolicy` to use force TURN if only TURN servers are received
520
+
521
+ ### Added
522
+ * [PCM-1560](https://inindca.atlassian.net/browse/PCM-1560) – added spigot tests to replace valve
523
+
524
+ # [v13.2.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.2.0...v13.2.1)
525
+ ### Fixed
526
+ * [PCM-1518](https://inindca.atlassian.net/browse/PCM-1518) – optimize stats to not send as often
527
+ ### Added
528
+ * `noAuthHeader` to `HttpClient.requestApi`'s `RequestApiOptions` so callers can opt-out of using an `authorization` header.
529
+
530
+ # [v13.2.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.1.1...v13.2.0)
531
+ ### Changed
532
+ * [PCM-1540](https://inindca.atlassian.net/browse/PCM-1540) - formatting http errors from superagent better
533
+
534
+ # [v13.1.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.1.0...v13.1.1)
535
+ ### Fixed
536
+ * [PCM-1516](https://inindca.atlassian.net/browse/PCM-1516) – hard reconnects were not retried making network losses fatal
537
+ * [PCM-1525](https://inindca.atlassian.net/browse/PCM-1525) - fix xml attr for conversationId for upgrademedia stanza
538
+
539
+ # [v13.1.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.0.5...v13.1.0)
540
+ ### Added
541
+ * Added the ability to specific the jid resource as a config option
542
+
543
+ # [v13.0.5](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.0.4...v13.0.5)
544
+ ### Fixed
545
+ * fix the main and module references in package.json
546
+
547
+ # [v13.0.4](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.0.3...v13.0.4)
548
+ ### Fixed
549
+ * notifications.unsubscribe will clean up all handlers if a handler isn't provided
550
+
551
+ # [v13.0.3](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.0.2...v13.0.3)
552
+ ### Fixed
553
+ * Fixed iceTransportPolicy (forced turn) on webrtc-sessions
554
+
555
+ # [v13.0.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v13.0.1...v13.0.2)
556
+ ### Fixed
557
+ * Fixed the screenstart and screenstop stanzas
558
+
559
+ # [v13.0.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v12.0.1...v13.0.1)
560
+ ### Breaking Changes
561
+ * xmppSubscribe and xmppUnsubscribe now return a promise and no longer take a callback
562
+ * most of the methods in webrtcSessions have changed to return promises
563
+ * wild-card event listeners are no longer a thing
564
+
565
+ ### Added
566
+ * For improvement metrics, we now send time series stats data to Genesys Cloud API. Added `optOutOfWebrtcStatsTelemetry` property to client config
567
+
568
+ ### Changed
569
+ * genesys-cloud-webrtc-sessions is no more. A replacement now exists directly in streaming-client
570
+ * upgraded to stanza12
571
+ * streaming-client is now in typescript
572
+
573
+ # [v12.0.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v12.0.1...v12.0.2)
574
+ ### Changed
575
+ * update webrtc-session library
576
+ * put in a hack to handle to webpack weirdness for angular builds
577
+
578
+ # [v12.0.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v12.0.0...v12.0.1)
579
+ ### Changed
580
+ * modified commonjs webpack build/transpile to a commonjs compatible file
581
+ * fixed package.json main field to point to new commonjs built file
582
+ * updates some dependencies
583
+
584
+
585
+ # [v12.0.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v11.3.1...v12.0.0)
586
+ ### Breaking Changes
587
+ * package and library renamed to genesys-cloud-streaming-client
588
+ * changed package.json main field to point to es6 source file
589
+
590
+ ### Added
591
+ * debug level logging on ajax requests
592
+
593
+ ### Changed
594
+ * updated auth failure log to pass channelId into the details object - [PR#57](https://github.com/purecloudlabs/purecloud-streaming-client/pull/57)
595
+ * updated to use genesys-cloud-streaming-client-webrtc-sessions
596
+
597
+ # [v11.3.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v11.3.0...v11.3.1)
598
+ ### Changed
599
+ * version bump of purecloud-streaming-client-webrtc-sessions to 7.2.81
600
+
601
+ # [v11.3.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v11.2.0...v11.3.0)
602
+ ### Added
603
+ * [ENGAGEUI-3797] add functionality for optionally setting topic priorities and prioritizing topic list
604
+
605
+ # [v11.2.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v11.1.3...v11.2.0)
606
+ ### Added
607
+ * Limit topic subscriptions and log dropped topics
608
+ * Log more info with missed pings/pongs
609
+ ### Changed
610
+ * version bump of purecloud-streaming-client-webrtc-sessions to 7.2.80
611
+
612
+ # [v11.1.3](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v11.1.2...v11.1.3)
613
+ ### Added
614
+ * add logging for explicit actions
615
+
616
+ # [v11.1.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v11.0.2...v11.1.2)
617
+ ### Added
618
+ * bump genesys-cloud-streaming-client-webrtc-sessions to 7.2.29
619
+ * Added a config option to disable reconnecting when receiving a no_longer_subscribed message
620
+
621
+ # [v11.0.2](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v11.0.1...v11.0.2)
622
+ ### Added
623
+ * Included channelId in error logs
624
+
625
+ # [v11.0.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v11.0.0...v11.0.1)
626
+ ### Added
627
+ * Added changelog file
628
+ ### Fixed
629
+ * Fixed an issue with topics not being combined correctly - [PR #43](https://github.com/purecloudlabs/genesys-cloud-streaming-client/pull/43)
630
+
631
+ # [v11.0.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v10.0.1...v11.0.0)
632
+ #### Breaking Changes
633
+ * In previous versions, calling `acceptRtcSession` on the `webrtcsessions` extension would send both a 'proceed' and 'accept' stanza in one call. This caused race a condition when multiple clients using autoAnswer were open. They would call `acceptRtcSession` at the same time which sent the other client an 'accept' stanza, resulting in neither client actually handling the incoming session. As a result, we recommend not calling `rtcSessionAccepted` until the session has actually been received.
634
+ ### Added
635
+ * Added a new function `rtcSessionAccepted` to send an 'accept' event
636
+ ### Changed
637
+ * No longer sending 'proceed' and 'accept' in the same call to `acceptRtcSession`