@stream-io/video-client 1.12.1 → 1.12.2

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 CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.12.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.12.1...@stream-io/video-client-1.12.2) (2024-12-11)
6
+
7
+
8
+ * drop docusaurus docs ([#1613](https://github.com/GetStream/stream-video-js/issues/1613)) ([8743c8d](https://github.com/GetStream/stream-video-js/commit/8743c8d221191759266010c6cd053480da1d71a5))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * pre-built timer worker ([#1617](https://github.com/GetStream/stream-video-js/issues/1617)) ([94dacef](https://github.com/GetStream/stream-video-js/commit/94dacef1c2b1e8794a42657ddab29a3b584eb0b4)), closes [#1557](https://github.com/GetStream/stream-video-js/issues/1557)
14
+
5
15
  ## [1.12.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.12.0...@stream-io/video-client-1.12.1) (2024-12-11)
6
16
 
7
17
 
@@ -3299,7 +3299,7 @@ const retryable = async (rpc, signal) => {
3299
3299
  return result;
3300
3300
  };
3301
3301
 
3302
- const version = "1.12.1";
3302
+ const version = "1.12.2";
3303
3303
  const [major, minor, patch] = version.split('.');
3304
3304
  let sdkInfo = {
3305
3305
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -6448,14 +6448,16 @@ function lazy(factory) {
6448
6448
  };
6449
6449
  }
6450
6450
 
6451
+ // Do not modify this file manually. Instead, edit worker.ts
6452
+ // and the run ./generate-timer-worker.sh
6451
6453
  const timerWorker = {
6452
- src: `var timerIdMapping = new Map();
6453
- self.addEventListener('message', function (event) {
6454
- var request = event.data;
6454
+ src: `const timerIdMapping = new Map();
6455
+ self.addEventListener('message', (event) => {
6456
+ const request = event.data;
6455
6457
  switch (request.type) {
6456
6458
  case 'setTimeout':
6457
6459
  case 'setInterval':
6458
- timerIdMapping.set(request.id, (request.type === 'setTimeout' ? setTimeout : setInterval)(function () {
6460
+ timerIdMapping.set(request.id, (request.type === 'setTimeout' ? setTimeout : setInterval)(() => {
6459
6461
  tick(request.id);
6460
6462
  if (request.type === 'setTimeout') {
6461
6463
  timerIdMapping.delete(request.id);
@@ -6470,7 +6472,7 @@ self.addEventListener('message', function (event) {
6470
6472
  }
6471
6473
  });
6472
6474
  function tick(id) {
6473
- var message = { type: 'tick', id: id };
6475
+ const message = { type: 'tick', id };
6474
6476
  self.postMessage(message);
6475
6477
  }`,
6476
6478
  };
@@ -12802,7 +12804,7 @@ class StreamClient {
12802
12804
  return await this.wsConnection.connect(this.defaultWSTimeout);
12803
12805
  };
12804
12806
  this.getUserAgent = () => {
12805
- const version = "1.12.1";
12807
+ const version = "1.12.2";
12806
12808
  return (this.userAgent ||
12807
12809
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
12808
12810
  };
@@ -13223,13 +13225,13 @@ class StreamVideoClient {
13223
13225
  if (typeof apiKeyOrArgs === 'string') {
13224
13226
  logLevel = opts?.logLevel || logLevel;
13225
13227
  logger = opts?.logger || logger;
13226
- if (opts?.expertimental_enableTimerWorker)
13228
+ if (opts?.enableTimerWorker)
13227
13229
  enableTimerWorker();
13228
13230
  }
13229
13231
  else {
13230
13232
  logLevel = apiKeyOrArgs.options?.logLevel || logLevel;
13231
13233
  logger = apiKeyOrArgs.options?.logger || logger;
13232
- if (apiKeyOrArgs.options?.expertimental_enableTimerWorker)
13234
+ if (apiKeyOrArgs.options?.enableTimerWorker)
13233
13235
  enableTimerWorker();
13234
13236
  }
13235
13237
  setLogger(logger, logLevel);