mediasoup-client 3.16.2 → 3.16.4

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/lib/Device.js CHANGED
@@ -391,7 +391,10 @@ function getChromiumMajorVersion(userAgent, userAgentData) {
391
391
  return undefined;
392
392
  }
393
393
  if (userAgentData) {
394
- const chromiumBrand = userAgentData.brands.find(b => b.brand === 'Chromium');
394
+ // Some nasty browser extensions define their own custom
395
+ // navigator.userAgentData without mandatory `brands` field, so let's be
396
+ // ready for it.
397
+ const chromiumBrand = (userAgentData.brands ?? []).find(b => b.brand === 'Chromium');
395
398
  if (chromiumBrand) {
396
399
  const majorVersion = Number(chromiumBrand.version);
397
400
  logger.debug(`getChromiumMajorVersion() | Chromium major version based on NavigatorUAData => ${majorVersion}`);
package/lib/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export * as types from './types';
6
6
  /**
7
7
  * Expose mediasoup-client version.
8
8
  */
9
- export declare const version = "3.16.2";
9
+ export declare const version = "3.16.4";
10
10
  /**
11
11
  * Expose Device class and device detector helpers.
12
12
  */
package/lib/index.js CHANGED
@@ -10,7 +10,7 @@ exports.types = require("./types");
10
10
  /**
11
11
  * Expose mediasoup-client version.
12
12
  */
13
- exports.version = '3.16.2';
13
+ exports.version = '3.16.4';
14
14
  /**
15
15
  * Expose Device class and device detector helpers.
16
16
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediasoup-client",
3
- "version": "3.16.2",
3
+ "version": "3.16.4",
4
4
  "description": "mediasoup client side TypeScript library",
5
5
  "contributors": [
6
6
  "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
@@ -76,18 +76,18 @@
76
76
  "awaitqueue": "^3.2.4",
77
77
  "debug": "^4.4.3",
78
78
  "events-alias": "npm:events@^3.3.0",
79
- "fake-mediastreamtrack": "^2.1.4",
79
+ "fake-mediastreamtrack": "^2.1.5",
80
80
  "h264-profile-level-id": "^2.2.3",
81
81
  "sdp-transform": "^2.15.0",
82
82
  "supports-color": "^10.2.2"
83
83
  },
84
84
  "devDependencies": {
85
- "@eslint/js": "^9.35.0",
85
+ "@eslint/js": "^9.36.0",
86
86
  "@types/jest": "^30.0.0",
87
87
  "@types/node": "^24.5.2",
88
88
  "@types/sdp-transform": "^2.15.0",
89
89
  "@types/ua-parser-js": "^0.7.39",
90
- "eslint": "^9.35.0",
90
+ "eslint": "^9.36.0",
91
91
  "eslint-config-prettier": "^10.1.8",
92
92
  "eslint-plugin-jest": "^29.0.1",
93
93
  "eslint-plugin-prettier": "^5.5.4",
@@ -95,7 +95,7 @@
95
95
  "jest": "^30.1.3",
96
96
  "open-cli": "^8.0.0",
97
97
  "prettier": "^3.6.2",
98
- "ts-jest": "^29.4.3",
98
+ "ts-jest": "^29.4.4",
99
99
  "typescript": "^5.9.2",
100
100
  "typescript-eslint": "^8.44.0"
101
101
  }