Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies update: rxjs 7.3.0, TypeScript 4.4.2 #998

Merged
merged 2 commits into from
Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20,334 changes: 8,541 additions & 11,793 deletions package-lock.json

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,67 +79,67 @@
"dependencies": {
"next-tick": "1.1.0",
"pinkie": "2.0.4",
"rxjs": "7.1.0"
"rxjs": "7.3.0"
},
"devDependencies": {
"@babel/core": "7.14.3",
"@babel/plugin-transform-runtime": "7.14.3",
"@babel/preset-env": "7.14.4",
"@babel/preset-react": "7.13.13",
"@types/chai": "4.2.18",
"@types/jest": "26.0.23",
"@types/mocha": "8.2.2",
"@types/node": "15.12.2",
"@babel/core": "7.15.0",
"@babel/plugin-transform-runtime": "7.15.0",
"@babel/preset-env": "7.15.0",
"@babel/preset-react": "7.14.5",
"@types/chai": "4.2.21",
"@types/jest": "27.0.1",
"@types/mocha": "9.0.0",
"@types/node": "16.7.10",
"@types/sinon": "10.0.2",
"@typescript-eslint/eslint-plugin": "4.26.1",
"@typescript-eslint/eslint-plugin-tslint": "4.26.1",
"@typescript-eslint/parser": "4.26.1",
"@typescript-eslint/eslint-plugin": "4.30.0",
"@typescript-eslint/eslint-plugin-tslint": "4.30.0",
"@typescript-eslint/parser": "4.30.0",
"arraybuffer-loader": "1.0.8",
"babel-loader": "8.2.2",
"chai": "4.3.4",
"cheerio": "1.0.0-rc.10",
"core-js": "3.14.0",
"core-js": "3.17.1",
"cross-env": "7.0.3",
"css-loader": "5.2.6",
"eslint": "7.28.0",
"eslint-plugin-import": "2.23.4",
"eslint-plugin-jsdoc": "35.1.3",
"eslint-plugin-react": "7.24.0",
"css-loader": "6.2.0",
"eslint": "7.32.0",
"eslint-plugin-import": "2.24.2",
"eslint-plugin-jsdoc": "36.0.8",
"eslint-plugin-react": "7.25.1",
"esm": "3.2.25",
"express": "4.17.1",
"file-loader": "6.2.0",
"highlight.js": "11.0.1",
"highlight.js": "11.2.0",
"istanbul-instrumenter-loader": "3.0.1",
"jest": "27.0.4",
"karma": "6.3.3",
"jest": "27.1.0",
"karma": "6.3.4",
"karma-chrome-launcher": "3.1.0",
"karma-coverage-istanbul-reporter": "3.0.3",
"karma-firefox-launcher": "2.1.1",
"karma-mocha": "2.0.1",
"karma-mocha-reporter": "2.2.5",
"karma-webpack": "5.0.0",
"markdown-it": "12.0.6",
"markdown-it": "12.2.0",
"markdown-it-emoji": "2.0.0",
"mocha": "9.0.0",
"mocha": "9.1.1",
"mocha-loader": "5.1.5",
"raw-loader": "4.0.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"regenerator-runtime": "0.13.7",
"regenerator-runtime": "0.13.9",
"rimraf": "3.0.2",
"sanitize-html": "2.4.0",
"semver": "7.3.5",
"sinon": "11.1.1",
"style-loader": "2.0.0",
"terser-webpack-plugin": "5.1.3",
"ts-jest": "27.0.3",
"ts-loader": "9.2.3",
"sinon": "11.1.2",
"style-loader": "3.2.1",
"terser-webpack-plugin": "5.2.1",
"ts-jest": "27.0.5",
"ts-loader": "9.2.5",
"tslint": "6.1.3",
"typescript": "4.3.2",
"typescript": "4.4.2",
"url-loader": "4.1.1",
"webpack": "5.38.1",
"webpack": "5.51.2",
"webpack-bundle-analyzer": "4.4.2",
"webpack-cli": "4.7.2"
"webpack-cli": "4.8.0"
},
"scripts-list": {
"Build a demo page (e.g. to test a code change)": {
Expand Down
4 changes: 2 additions & 2 deletions src/compat/__tests__/make_vtt_cue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ describe("Compat - makeVTTCue", () => {
}));
const makeCue = require("../make_vtt_cue").default;
let result;
let error : Error|undefined;
let error;
try {
result = makeCue(5, 10, "toto");
} catch (e) {
} catch (e : unknown) {
error = e;
}
expect(error).toBeInstanceOf(Error);
Expand Down
1 change: 0 additions & 1 deletion src/compat/browser_compatibility_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ interface ICompatDocument extends Document {
msExitFullscreen? : () => void;
msFullscreenElement? : Element | null;
msHidden? : boolean;
pictureInPictureElement? : HTMLElement | null | undefined;
webkitExitFullscreen : () => void;
webkitFullscreenElement : Element | null;
webkitHidden? : boolean;
Expand Down
5 changes: 4 additions & 1 deletion src/compat/eme/close_session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ export default function closeSession$(
}
// The `closed` promise may resolve, even if `close()` result has not
// (it may happen on Firefox). Wait for it and timeout after 1 second.
const sessionIsClosed$ = castToObservable(session.closed);
// TODO There is a subtle TypeScript issue there that made casting to
// a type-compatible type mandatory. If a more elegant solution can
// be found, it should be preffered.
const sessionIsClosed$ = castToObservable(session.closed as Promise<unknown>);
return observableRace(
sessionIsClosed$,
observableTimer(1000).pipe(
Expand Down
6 changes: 5 additions & 1 deletion src/compat/eme/custom_media_keys/ie11_media_keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ import EventEmitter from "../../../utils/event_emitter";
import PPromise from "../../../utils/promise";
import { ICompatHTMLMediaElement } from "../../browser_compatibility_types";
import * as events from "../../event_listeners";
import { MSMediaKeysConstructor } from "./ms_media_keys_constructor";
import {
MSMediaKeysConstructor,
MSMediaKeys,
MSMediaKeySession,
} from "./ms_media_keys_constructor";
import {
ICustomMediaKeys,
ICustomMediaKeySession,
Expand Down
28 changes: 28 additions & 0 deletions src/compat/eme/custom_media_keys/ms_media_keys_constructor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,34 @@

import isNode from "../../is_node";

export interface MSMediaKeyError {
readonly code: number;
readonly systemCode: number;
readonly MS_MEDIA_KEYERR_CLIENT: number;
readonly MS_MEDIA_KEYERR_DOMAIN: number;
readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
readonly MS_MEDIA_KEYERR_OUTPUT: number;
readonly MS_MEDIA_KEYERR_SERVICE: number;
readonly MS_MEDIA_KEYERR_UNKNOWN: number;
}

export interface MSMediaKeySession extends EventTarget {
readonly error: MSMediaKeyError | null;
readonly keySystem: string;
readonly sessionId: string;
close(): void;
update(key: Uint8Array): void;
}

export interface MSMediaKeys {
readonly keySystem: string;
createSession(
type: string,
initData: Uint8Array,
cdmData?: Uint8Array | null
): MSMediaKeySession;
}

interface IMSMediaKeysConstructor {
new(keySystem: string): MSMediaKeys;
isTypeSupported(keySystem: string, type?: string | null): boolean;
Expand Down