twilio-video 2.28.1 → 2.28.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 +8 -0
- package/README.md +1 -1
- package/dist/twilio-video.js +13 -4
- package/dist/twilio-video.min.js +15 -15
- package/es5/signaling/localtrackpublication.js +8 -1
- package/es5/signaling/localtrackpublication.js.map +1 -1
- package/lib/signaling/localtrackpublication.js +9 -1
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@ The Twilio Programmable Video SDKs use [Semantic Versioning](http://www.semver.o
|
|
|
2
2
|
|
|
3
3
|
**Version 1.x reached End of Life on September 8th, 2021.** See the changelog entry [here](https://www.twilio.com/changelog/end-of-life-complete-for-unsupported-versions-of-the-programmable-video-sdk). Support for the 1.x version ended on December 4th, 2020.
|
|
4
4
|
|
|
5
|
+
2.28.2 (November 22, 2024)
|
|
6
|
+
========================
|
|
7
|
+
|
|
8
|
+
Bug Fixes
|
|
9
|
+
---------
|
|
10
|
+
|
|
11
|
+
- Fixed a bug in Desktop Safari 18 and all iOS browsers on iOS 18 where cloning a disabled `MediaStreamTrack` would incorrectly set the `enabled` property to `true` instead of preserving the original disabled state. This ensures track cloning behavior matches the MediaStreamTrack specification and works consistently across browsers. Bug report: https://bugs.webkit.org/show_bug.cgi?id=281758
|
|
12
|
+
|
|
5
13
|
2.28.1 (October 3, 2023)
|
|
6
14
|
========================
|
|
7
15
|
|
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ Releases of twilio-video.js are hosted on a CDN, and you can include these
|
|
|
74
74
|
directly in your web app using a <script> tag.
|
|
75
75
|
|
|
76
76
|
```html
|
|
77
|
-
<script src="//sdk.twilio.com/js/video/releases/2.28.
|
|
77
|
+
<script src="//sdk.twilio.com/js/video/releases/2.28.2/twilio-video.min.js"></script>
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
Using this method, twilio-video.js will set a browser global:
|
package/dist/twilio-video.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! twilio-video.js 2.28.
|
|
1
|
+
/*! twilio-video.js 2.28.2
|
|
2
2
|
|
|
3
3
|
The following license applies to all parts of this software except as
|
|
4
4
|
documented below.
|
|
@@ -10958,7 +10958,14 @@ var LocalTrackPublicationSignaling = /** @class */ (function (_super) {
|
|
|
10958
10958
|
*/
|
|
10959
10959
|
function LocalTrackPublicationSignaling(trackSender, name, priority) {
|
|
10960
10960
|
var _this = this;
|
|
10961
|
-
|
|
10961
|
+
// NOTE(lrivas): Safely clone a media stream track while preserving the original
|
|
10962
|
+
// enabled state. This is needed because Safari 18 incorrectly enables tracks
|
|
10963
|
+
// during cloning. Bug report: https://bugs.webkit.org/show_bug.cgi?id=281758
|
|
10964
|
+
var clonedTrackSender = trackSender.clone();
|
|
10965
|
+
if (trackSender.kind !== 'data') {
|
|
10966
|
+
clonedTrackSender.track.enabled = trackSender.track.enabled;
|
|
10967
|
+
}
|
|
10968
|
+
trackSender = clonedTrackSender;
|
|
10962
10969
|
var enabled = trackSender.kind === 'data' ? true : trackSender.track.enabled;
|
|
10963
10970
|
_this = _super.call(this, name, trackSender.kind, enabled, priority) || this;
|
|
10964
10971
|
_this.setTrackTransceiver(trackSender);
|
|
@@ -30175,7 +30182,7 @@ module.exports={
|
|
|
30175
30182
|
"name": "twilio-video",
|
|
30176
30183
|
"title": "Twilio Video",
|
|
30177
30184
|
"description": "Twilio Video JavaScript Library",
|
|
30178
|
-
"version": "2.28.
|
|
30185
|
+
"version": "2.28.2",
|
|
30179
30186
|
"homepage": "https://twilio.com",
|
|
30180
30187
|
"author": "Mark Andrus Roberts <mroberts@twilio.com>",
|
|
30181
30188
|
"contributors": [
|
|
@@ -30247,6 +30254,7 @@ module.exports={
|
|
|
30247
30254
|
"node-http-server": "^8.1.2",
|
|
30248
30255
|
"npm-run-all": "^4.0.2",
|
|
30249
30256
|
"nyc": "^15.1.0",
|
|
30257
|
+
"regex-replace": "^2.3.1",
|
|
30250
30258
|
"requirejs": "^2.3.3",
|
|
30251
30259
|
"rimraf": "^2.6.1",
|
|
30252
30260
|
"simple-git": "^1.126.0",
|
|
@@ -30272,6 +30280,7 @@ module.exports={
|
|
|
30272
30280
|
"lint:js": "eslint ./lib ./test/*.js ./docker/**/*.js ./test/framework/*.js ./test/lib/*.js ./test/integration/** ./test/unit/** ",
|
|
30273
30281
|
"lint:ts": "eslint ./tsdef/*.ts ./lib/**/*.ts",
|
|
30274
30282
|
"lint": "npm-run-all lint:js lint:ts",
|
|
30283
|
+
"patch-linkifyit-111": "regex-replace \"readonly linkify: LinkifyIt.LinkifyIt;\" \"readonly linkify: typeof LinkifyIt;\" \"node_modules/@types/markdown-it/lib/index.d.ts\" --filecontents",
|
|
30275
30284
|
"printVersion": "node --version && npm --version",
|
|
30276
30285
|
"test:unit": "npm-run-all printVersion build:es5 && nyc --report-dir=./coverage --include=lib/**/* --reporter=html --reporter=lcov --reporter=text mocha -r ts-node/register ./test/unit/*",
|
|
30277
30286
|
"test:unit:quick": "nyc --report-dir=./coverage --include=lib/**/* --reporter=html --reporter=lcov mocha -r ts-node/register",
|
|
@@ -30310,7 +30319,7 @@ module.exports={
|
|
|
30310
30319
|
"test:framework:install": "npm install chromedriver && npm install selenium-webdriver && npm install geckodriver && npm install puppeteer",
|
|
30311
30320
|
"test:framework": "npm-run-all test:framework:install test:framework:no-framework test:framework:react",
|
|
30312
30321
|
"test": "npm-run-all test:unit test:integration",
|
|
30313
|
-
"build:es5": "rimraf ./es5 && mkdir -p es5 && tsc tsdef/twilio-video-tests.ts --noEmit --lib es2018,dom && tsc",
|
|
30322
|
+
"build:es5": "rimraf ./es5 && mkdir -p es5 && npm run patch-linkifyit-111 && tsc tsdef/twilio-video-tests.ts --noEmit --lib es2018,dom && tsc",
|
|
30314
30323
|
"build:js": "node ./scripts/build.js ./src/twilio-video.js ./LICENSE.md ./dist/twilio-video.js",
|
|
30315
30324
|
"build:min.js": "uglifyjs ./dist/twilio-video.js -o ./dist/twilio-video.min.js --comments \"/^! twilio-video.js/\" -b beautify=false,ascii_only=true",
|
|
30316
30325
|
"build": "npm-run-all clean lint docs test:unit test:integration build:es5 build:js build:min.js test:umd",
|