mediasoup-client 3.15.6 → 3.15.7

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/README.md CHANGED
@@ -138,7 +138,7 @@ const dataProducer = await sendTransport.produceData({
138
138
 
139
139
  ## Social
140
140
 
141
- - Twitter: [@mediasoup_sfu](https://twitter.com/mediasoup_sfu)
141
+ - Bluesky: [@mediasoup-sfu.bsky.social](https://bsky.app/profile/mediasoup-sfu.bsky.social)
142
142
 
143
143
  ## Sponsor
144
144
 
package/lib/Device.js CHANGED
@@ -340,7 +340,6 @@ function detectDeviceImpl(browserDetector) {
340
340
  const isSafari = parsed.isSafari;
341
341
  const isEdge = parsed.isEdge;
342
342
  const isElectron = parsed.isDesktop && parsed.name === browser_dtector_1.KnownBrowsers.electron;
343
- const isWebkit = parsed.isWebkit;
344
343
  // For logging purposes.
345
344
  const result = {
346
345
  browserMajorVersion,
@@ -349,7 +348,6 @@ function detectDeviceImpl(browserDetector) {
349
348
  isFirefox,
350
349
  isSafari,
351
350
  isElectron,
352
- isWebkit,
353
351
  };
354
352
  logger.debug('detectDeviceImpl() | detected browser [userAgent:%s, parsed:%o, result:%o]', parsed.userAgent, parsed, result);
355
353
  // Chrome, Chromium, and Edge.
@@ -382,7 +380,7 @@ function detectDeviceImpl(browserDetector) {
382
380
  return 'Safari12';
383
381
  }
384
382
  // Best effort for Chromium based browsers.
385
- else if (isWebkit) {
383
+ else {
386
384
  const match = browserDetector.userAgent?.match(/(?:(?:Chrome|Chromium))[ /](\w+)/i);
387
385
  if (match) {
388
386
  const version = Number(match[1]);
@@ -393,14 +391,11 @@ function detectDeviceImpl(browserDetector) {
393
391
  return 'Chrome74';
394
392
  }
395
393
  }
394
+ // Unsupported browser.
396
395
  else {
397
- return 'Chrome111';
396
+ logger.warn('detectDeviceImpl() | browser not supported [userAgent:%s, parsed:%o, result:%o]', parsed.userAgent, parsed, result);
397
+ return undefined;
398
398
  }
399
399
  }
400
- // Unsupported browser.
401
- else {
402
- logger.warn('detectDeviceImpl() | browser not supported [userAgent:%s, parsed:%o, result:%o]', parsed.userAgent, parsed, result);
403
- return undefined;
404
- }
405
400
  }
406
401
  }
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.15.6";
9
+ export declare const version = "3.15.7";
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.15.6';
13
+ exports.version = '3.15.7';
14
14
  /**
15
15
  * Expose Device class and device detector helpers.
16
16
  */
@@ -1 +1 @@
1
- {"version":3,"file":"uaTestCases.d.ts","sourceRoot":"","sources":["../../src/test/uaTestCases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEpD,KAAK,UAAU,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,EAkFnC,CAAC"}
1
+ {"version":3,"file":"uaTestCases.d.ts","sourceRoot":"","sources":["../../src/test/uaTestCases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEpD,KAAK,UAAU,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,EAuFnC,CAAC"}
@@ -83,4 +83,9 @@ exports.uaTestCases = [
83
83
  ua: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Electron/37.4.0 Chrome/138.0.7204.243 Safari/537.36',
84
84
  expect: 'Chrome111',
85
85
  },
86
+ {
87
+ desc: 'Samsung Browser (Android)',
88
+ ua: 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/28.0 Chrome/130.0.0.0 Mobile Safari/537.36',
89
+ expect: 'Chrome111',
90
+ },
86
91
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediasoup-client",
3
- "version": "3.15.6",
3
+ "version": "3.15.7",
4
4
  "description": "mediasoup client side TypeScript library",
5
5
  "contributors": [
6
6
  "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
@@ -75,29 +75,29 @@
75
75
  "@types/events-alias": "npm:@types/events@^3.0.3",
76
76
  "awaitqueue": "^3.2.4",
77
77
  "browser-dtector": "^4.1.0",
78
- "debug": "^4.4.1",
78
+ "debug": "^4.4.3",
79
79
  "events-alias": "npm:events@^3.3.0",
80
80
  "fake-mediastreamtrack": "^2.1.4",
81
81
  "h264-profile-level-id": "^2.2.3",
82
82
  "sdp-transform": "^2.15.0",
83
- "supports-color": "^10.2.0"
83
+ "supports-color": "^10.2.2"
84
84
  },
85
85
  "devDependencies": {
86
- "@eslint/js": "^9.34.0",
86
+ "@eslint/js": "^9.35.0",
87
87
  "@types/jest": "^30.0.0",
88
- "@types/node": "^24.3.0",
88
+ "@types/node": "^24.4.0",
89
89
  "@types/sdp-transform": "^2.15.0",
90
90
  "@types/ua-parser-js": "^0.7.39",
91
- "eslint": "^9.34.0",
91
+ "eslint": "^9.35.0",
92
92
  "eslint-config-prettier": "^10.1.8",
93
93
  "eslint-plugin-jest": "^29.0.1",
94
94
  "eslint-plugin-prettier": "^5.5.4",
95
- "globals": "^16.3.0",
95
+ "globals": "^16.4.0",
96
96
  "jest": "^30.1.3",
97
97
  "open-cli": "^8.0.0",
98
98
  "prettier": "^3.6.2",
99
99
  "ts-jest": "^29.4.1",
100
100
  "typescript": "^5.9.2",
101
- "typescript-eslint": "^8.42.0"
101
+ "typescript-eslint": "^8.43.0"
102
102
  }
103
103
  }