1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-02 06:32:07 +02:00

fix: remove deprecated tsml dependency (#6174)

This commit is contained in:
Brandon Casey 2019-08-19 14:56:16 -04:00 committed by Gary Katsevman
parent 977cd4a27d
commit 549552ed43
5 changed files with 628 additions and 578 deletions

1186
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -85,7 +85,6 @@
"global": "4.3.2",
"keycode": "^2.2.0",
"safe-json-parse": "4.0.0",
"tsml": "1.0.1",
"videojs-font": "3.2.0",
"videojs-vtt.js": "^0.14.1",
"xhr": "2.4.0"

View File

@ -7,7 +7,6 @@ import Component from './component.js';
import {version} from '../../package.json';
import document from 'global/document';
import window from 'global/window';
import tsml from 'tsml';
import evented from './mixins/evented';
import {isEvented, addEventedCallback} from './mixins/evented';
import * as Events from './utils/events.js';
@ -1211,10 +1210,8 @@ class Player extends Component {
*/
tech(safety) {
if (safety === undefined) {
log.warn(tsml`
Using the tech directly can be dangerous. I hope you know what you're doing.
See https://github.com/videojs/video.js/issues/2617 for more info.
`);
log.warn('Using the tech directly can be dangerous. I hope you know what you\'re doing.\n' +
'See https://github.com/videojs/video.js/issues/2617 for more info.\n');
}
return this.tech_;

View File

@ -5,7 +5,6 @@ import Tech from './tech.js';
import * as Dom from '../utils/dom.js';
import * as Url from '../utils/url.js';
import log from '../utils/log.js';
import tsml from 'tsml';
import * as browser from '../utils/browser.js';
import document from 'global/document';
import window from 'global/window';
@ -91,8 +90,8 @@ class Html5 extends Tech {
this.proxyNativeTracks_();
if (this.featuresNativeTextTracks && crossoriginTracks) {
log.warn(tsml`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
This may prevent text tracks from loading.`);
log.warn('Text Tracks are being loaded from another origin but the crossorigin attribute isn\'t used.\n' +
'This may prevent text tracks from loading.');
}
// prevent iOS Safari from disabling metadata text tracks during native playback

View File

@ -5,7 +5,6 @@
import document from 'global/document';
import window from 'global/window';
import log from './log.js';
import tsml from 'tsml';
import {isObject} from './obj';
import computedStyle from './computed-style';
@ -151,9 +150,9 @@ export function createEl(tagName = 'div', properties = {}, attributes = {}, cont
// We originally were accepting both properties and attributes in the
// same object, but that doesn't work so well.
if (propName.indexOf('aria-') !== -1 || propName === 'role' || propName === 'type') {
log.warn(tsml`Setting attributes in the second argument of createEl()
has been deprecated. Use the third argument instead.
createEl(type, properties, attributes). Attempting to set ${propName} to ${val}.`);
log.warn('Setting attributes in the second argument of createEl()\n' +
'has been deprecated. Use the third argument instead.\n' +
`createEl(type, properties, attributes). Attempting to set ${propName} to ${val}.`);
el.setAttribute(propName, val);
// Handle textContent since it's not supported everywhere and we have a