genesys-cloud-streaming-client 20.0.1 → 20.0.2-STREAM-1874.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.
@@ -670,7 +670,7 @@ class Client extends events_1.default {
670
670
  return Client.version;
671
671
  }
672
672
  static get version() {
673
- return '20.0.1';
673
+ return '20.0.2';
674
674
  }
675
675
  }
676
676
  exports.Client = Client;
@@ -267,7 +267,11 @@ class WebrtcExtension extends events_1.EventEmitter {
267
267
  async handleGenesysTerminate(iq) {
268
268
  const message = iq.genesysWebrtc;
269
269
  const params = message.params;
270
- const session = this.getSessionById(params.sessionId);
270
+ const session = this.getSessionById(params.sessionId, true);
271
+ if (!session) {
272
+ this.logger.warn('Received terminate for session that does not exist', { sessionId: params.sessionId });
273
+ return;
274
+ }
271
275
  session.onSessionTerminate(params.reason);
272
276
  }
273
277
  getSessionById(id, nullIfNotFound = false) {
@@ -1,13 +1,13 @@
1
1
  {
2
- "version": "20.0.1",
3
- "build": "13",
4
- "buildDate": "2026-06-26T06:55:29.504Z",
2
+ "version": "STREAM-1874",
3
+ "build": "1",
4
+ "buildDate": "2026-07-08T16:57:31.674Z",
5
5
  "indexFiles": [
6
6
  {
7
- "file": "v20.0.1/streaming-client.browser.js"
7
+ "file": "v20.0.2/streaming-client.browser.js"
8
8
  },
9
9
  {
10
- "file": "v20.0.1/streaming-client.browser.js.LICENSE.txt"
10
+ "file": "v20.0.2/streaming-client.browser.js.LICENSE.txt"
11
11
  },
12
12
  {
13
13
  "file": "v20/streaming-client.browser.js"
package/dist/es/client.js CHANGED
@@ -684,6 +684,6 @@ export class Client extends EventEmitter {
684
684
  return Client.version;
685
685
  }
686
686
  static get version() {
687
- return '20.0.1';
687
+ return '20.0.2';
688
688
  }
689
689
  }
@@ -36166,7 +36166,11 @@ class WebrtcExtension extends EventEmitter {
36166
36166
  return __awaiter$4(this, void 0, void 0, function* () {
36167
36167
  const message = iq.genesysWebrtc;
36168
36168
  const params = message.params;
36169
- const session = this.getSessionById(params.sessionId);
36169
+ const session = this.getSessionById(params.sessionId, true);
36170
+ if (!session) {
36171
+ this.logger.warn('Received terminate for session that does not exist', { sessionId: params.sessionId });
36172
+ return;
36173
+ }
36170
36174
  session.onSessionTerminate(params.reason);
36171
36175
  });
36172
36176
  }
@@ -47590,7 +47594,7 @@ class Client extends EventEmitter {
47590
47594
  return Client.version;
47591
47595
  }
47592
47596
  static get version() {
47593
- return '20.0.1';
47597
+ return '20.0.2';
47594
47598
  }
47595
47599
  }
47596
47600
 
package/dist/es/webrtc.js CHANGED
@@ -269,7 +269,11 @@ export class WebrtcExtension extends EventEmitter {
269
269
  return __awaiter(this, void 0, void 0, function* () {
270
270
  const message = iq.genesysWebrtc;
271
271
  const params = message.params;
272
- const session = this.getSessionById(params.sessionId);
272
+ const session = this.getSessionById(params.sessionId, true);
273
+ if (!session) {
274
+ this.logger.warn('Received terminate for session that does not exist', { sessionId: params.sessionId });
275
+ return;
276
+ }
273
277
  session.onSessionTerminate(params.reason);
274
278
  });
275
279
  }
@@ -1,13 +1,13 @@
1
1
  {
2
- "version": "20.0.1",
3
- "build": "13",
4
- "buildDate": "2026-06-26T06:55:29.504Z",
2
+ "version": "STREAM-1874",
3
+ "build": "1",
4
+ "buildDate": "2026-07-08T16:57:31.674Z",
5
5
  "indexFiles": [
6
6
  {
7
- "file": "v20.0.1/streaming-client.browser.js"
7
+ "file": "v20.0.2/streaming-client.browser.js"
8
8
  },
9
9
  {
10
- "file": "v20.0.1/streaming-client.browser.js.LICENSE.txt"
10
+ "file": "v20.0.2/streaming-client.browser.js.LICENSE.txt"
11
11
  },
12
12
  {
13
13
  "file": "v20/streaming-client.browser.js"
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  # [Unreleased](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v20.0.1...HEAD)
8
+ ### Changed
9
+ * [STREAM-1784](https://inindca.atlassian.net/browse/STREAM-1784) - Properly handle session not found for terminate stanza
8
10
 
9
11
  # [v20.0.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v20.0.0...v20.0.1)
10
12
  ### Changed
@@ -670,7 +670,7 @@ class Client extends events_1.default {
670
670
  return Client.version;
671
671
  }
672
672
  static get version() {
673
- return '20.0.1';
673
+ return '20.0.2';
674
674
  }
675
675
  }
676
676
  exports.Client = Client;
@@ -267,7 +267,11 @@ class WebrtcExtension extends events_1.EventEmitter {
267
267
  async handleGenesysTerminate(iq) {
268
268
  const message = iq.genesysWebrtc;
269
269
  const params = message.params;
270
- const session = this.getSessionById(params.sessionId);
270
+ const session = this.getSessionById(params.sessionId, true);
271
+ if (!session) {
272
+ this.logger.warn('Received terminate for session that does not exist', { sessionId: params.sessionId });
273
+ return;
274
+ }
271
275
  session.onSessionTerminate(params.reason);
272
276
  }
273
277
  getSessionById(id, nullIfNotFound = false) {