From acffc130b89f74811c4c468d5a3d949edd09190a Mon Sep 17 00:00:00 2001 From: Gordon Smith Date: Wed, 6 Nov 2019 12:09:25 +0000 Subject: [PATCH] chore(build): Bump typescript to version 3.6.4 Signed-off-by: Gordon Smith --- examples/example-datagrid/package.json | 2 +- examples/example-datagrid/tsconfig.json | 2 +- examples/example-datastore/package.json | 2 +- examples/example-datastore/src/index.ts | 4 ++-- examples/example-datastore/tsconfig.json | 2 +- examples/example-dockpanel/package.json | 2 +- examples/example-dockpanel/tsconfig.json | 2 +- packages/algorithm/package.json | 6 +++--- packages/application/package.json | 4 ++-- packages/application/tsconfig.json | 1 + packages/collections/package.json | 6 +++--- packages/commands/package.json | 6 +++--- packages/commands/src/index.ts | 2 +- packages/commands/tests/tsconfig.json | 1 + packages/commands/tsconfig.json | 1 + packages/coreutils/package.json | 6 +++--- packages/coreutils/tests/tsconfig.json | 3 ++- packages/coreutils/tsconfig.json | 3 ++- packages/datagrid/package.json | 6 +++--- packages/datagrid/src/cellrenderer.ts | 2 +- packages/datagrid/src/graphicscontext.ts | 18 +++++++++--------- packages/datastore/package.json | 4 ++-- packages/datastore/tests/package.json | 2 +- packages/disposable/package.json | 6 +++--- packages/domutils/package.json | 6 +++--- packages/domutils/src/selector.ts | 2 +- packages/dragdrop/package.json | 6 +++--- packages/dragdrop/tsconfig.json | 1 + packages/keyboard/package.json | 6 +++--- packages/messaging/package.json | 6 +++--- packages/messaging/src/index.ts | 2 ++ packages/messaging/tests/src/index.spec.ts | 1 + packages/polling/tests/tsconfig.json | 3 ++- packages/polling/tsconfig.json | 3 ++- packages/properties/package.json | 6 +++--- packages/signaling/package.json | 6 +++--- packages/virtualdom/package.json | 6 +++--- packages/widgets/package.json | 6 +++--- .../widgets/tests/src/commandpalette.spec.ts | 1 + packages/widgets/tsconfig.json | 1 + yarn.lock | 10 +++++----- 41 files changed, 89 insertions(+), 76 deletions(-) diff --git a/examples/example-datagrid/package.json b/examples/example-datagrid/package.json index 2984409aa..9d049f545 100644 --- a/examples/example-datagrid/package.json +++ b/examples/example-datagrid/package.json @@ -18,7 +18,7 @@ "file-loader": "^0.11.1", "rimraf": "^2.5.2", "style-loader": "^0.13.1", - "typescript": "~3.0.3", + "typescript": "~3.6.4", "webpack": "^2.2.1" } } diff --git a/examples/example-datagrid/tsconfig.json b/examples/example-datagrid/tsconfig.json index a3ba6ecf4..7eafd685f 100644 --- a/examples/example-datagrid/tsconfig.json +++ b/examples/example-datagrid/tsconfig.json @@ -9,7 +9,7 @@ "moduleResolution": "node", "target": "ES5", "outDir": "./build", - "lib": ["ES5", "ES2015.Promise", "DOM"], + "lib": ["ES5", "ES2015.Promise", "ES2015.Iterable", "DOM"], "types": [] }, "include": ["src/*"] diff --git a/examples/example-datastore/package.json b/examples/example-datastore/package.json index 88df8c8f2..aa5d3d7d5 100644 --- a/examples/example-datastore/package.json +++ b/examples/example-datastore/package.json @@ -19,7 +19,7 @@ "file-loader": "^0.11.1", "rimraf": "^2.5.2", "style-loader": "^0.13.1", - "typescript": "~3.3.1", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "scripts": { diff --git a/examples/example-datastore/src/index.ts b/examples/example-datastore/src/index.ts index c833f3a0f..e1fc33a95 100644 --- a/examples/example-datastore/src/index.ts +++ b/examples/example-datastore/src/index.ts @@ -88,7 +88,7 @@ async function init(): Promise { commands.addCommand('undo', { label: 'Undo', execute: () => { - let editor = ArrayExt.findFirstValue([e1, e2, e3], e => e.hasFocus()); + let editor = ArrayExt.findFirstValue([e1, e2, e3], (e: CodeMirrorEditor) => e.hasFocus()); if (editor) { editor.undo(); } @@ -97,7 +97,7 @@ async function init(): Promise { commands.addCommand('redo', { label: 'Redo', execute: () => { - let editor = ArrayExt.findFirstValue([e1, e2, e3], e => e.hasFocus()); + let editor = ArrayExt.findFirstValue([e1, e2, e3], (e: CodeMirrorEditor) => e.hasFocus()); if (editor) { editor.redo(); } diff --git a/examples/example-datastore/tsconfig.json b/examples/example-datastore/tsconfig.json index cc16c11c6..fcefba0c5 100644 --- a/examples/example-datastore/tsconfig.json +++ b/examples/example-datastore/tsconfig.json @@ -9,7 +9,7 @@ "moduleResolution": "node", "target": "ES5", "outDir": "./build", - "lib": ["ES5", "es2015.collection", "DOM", "ES2015.Promise"], + "lib": ["ES5", "es2015.collection", "DOM", "ES2015.Promise","ES2015.Iterable"], "types": [] }, "include": ["src/*"] diff --git a/examples/example-dockpanel/package.json b/examples/example-dockpanel/package.json index 4f7a8489d..490464928 100644 --- a/examples/example-dockpanel/package.json +++ b/examples/example-dockpanel/package.json @@ -19,7 +19,7 @@ "file-loader": "^0.11.1", "rimraf": "^2.5.2", "style-loader": "^0.13.1", - "typescript": "~3.0.3", + "typescript": "~3.6.4", "webpack": "^2.2.1" } } diff --git a/examples/example-dockpanel/tsconfig.json b/examples/example-dockpanel/tsconfig.json index a3ba6ecf4..7eafd685f 100644 --- a/examples/example-dockpanel/tsconfig.json +++ b/examples/example-dockpanel/tsconfig.json @@ -9,7 +9,7 @@ "moduleResolution": "node", "target": "ES5", "outDir": "./build", - "lib": ["ES5", "ES2015.Promise", "DOM"], + "lib": ["ES5", "ES2015.Promise", "ES2015.Iterable", "DOM"], "types": [] }, "include": ["src/*"] diff --git a/packages/algorithm/package.json b/packages/algorithm/package.json index 6d7bba2fe..8e586bc65 100644 --- a/packages/algorithm/package.json +++ b/packages/algorithm/package.json @@ -31,7 +31,7 @@ "api": "api-extractor run --local --verbose", "build": "tsc --build", "build:test": "tsc --build tests && cd tests && webpack", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "clean:test": "rimraf tests/build", "docs": "typedoc --options tdoptions.json src", "test": "npm run test:firefox", @@ -52,8 +52,8 @@ "karma-mocha-reporter": "^2.2.2", "mocha": "^3.2.0", "rimraf": "^2.5.2", - "typedoc": "~0.12.0", - "typescript": "~3.0.3", + "typedoc": "~0.15.0", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "publishConfig": { diff --git a/packages/application/package.json b/packages/application/package.json index 8e14363fe..10f772d8f 100644 --- a/packages/application/package.json +++ b/packages/application/package.json @@ -57,8 +57,8 @@ "karma-mocha-reporter": "^2.2.2", "mocha": "^3.2.0", "rimraf": "^2.5.2", - "typedoc": "~0.12.0", - "typescript": "~3.0.3", + "typedoc": "~0.15.0", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "publishConfig": { diff --git a/packages/application/tsconfig.json b/packages/application/tsconfig.json index 54a7f0611..3cbb0c0de 100644 --- a/packages/application/tsconfig.json +++ b/packages/application/tsconfig.json @@ -14,6 +14,7 @@ "ES5", "ES2015.Collection", "ES2015.Promise", + "ES2015.Iterable", "DOM" ], "types": [], diff --git a/packages/collections/package.json b/packages/collections/package.json index 7dada3551..5af5400ba 100644 --- a/packages/collections/package.json +++ b/packages/collections/package.json @@ -31,7 +31,7 @@ "api": "api-extractor run --local --verbose", "build": "tsc --build", "build:test": "tsc --build tests && cd tests && webpack", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "clean:test": "rimraf tests/build", "docs": "typedoc --options tdoptions.json src", "test": "npm run test:firefox", @@ -56,8 +56,8 @@ "karma-mocha-reporter": "^2.2.2", "mocha": "^3.2.0", "rimraf": "^2.5.2", - "typedoc": "~0.12.0", - "typescript": "~3.0.3", + "typedoc": "~0.15.0", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "publishConfig": { diff --git a/packages/commands/package.json b/packages/commands/package.json index dbd66ef7b..54b6edae8 100644 --- a/packages/commands/package.json +++ b/packages/commands/package.json @@ -31,7 +31,7 @@ "api": "api-extractor run --local --verbose", "build": "tsc --build", "build:test": "tsc --build tests && cd tests && webpack", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "clean:test": "rimraf tests/build", "docs": "typedoc --options tdoptions.json src", "test": "npm run test:firefox", @@ -63,8 +63,8 @@ "mocha": "^3.2.0", "rimraf": "^2.5.2", "simulate-event": "^1.4.0", - "typedoc": "~0.12.0", - "typescript": "~3.0.3", + "typedoc": "~0.15.0", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "publishConfig": { diff --git a/packages/commands/src/index.ts b/packages/commands/src/index.ts index fe3f84394..b1d8d76a9 100644 --- a/packages/commands/src/index.ts +++ b/packages/commands/src/index.ts @@ -1333,7 +1333,7 @@ namespace Private { return dfault; } if (typeof value === 'function') { - return value; + return value as CommandFunc; } return () => value; } diff --git a/packages/commands/tests/tsconfig.json b/packages/commands/tests/tsconfig.json index 6fe9fde73..85246f265 100644 --- a/packages/commands/tests/tsconfig.json +++ b/packages/commands/tests/tsconfig.json @@ -12,6 +12,7 @@ "lib": [ "ES5", "ES2015.Promise", + "ES2015.Iterable", "DOM" ], "types": [ diff --git a/packages/commands/tsconfig.json b/packages/commands/tsconfig.json index b2cb5aba4..4720810f0 100644 --- a/packages/commands/tsconfig.json +++ b/packages/commands/tsconfig.json @@ -13,6 +13,7 @@ "lib": [ "ES5", "ES2015.Promise", + "ES2015.Iterable", "DOM" ], "types": [], diff --git a/packages/coreutils/package.json b/packages/coreutils/package.json index 681dc6c7e..191a39d47 100644 --- a/packages/coreutils/package.json +++ b/packages/coreutils/package.json @@ -31,7 +31,7 @@ "api": "api-extractor run --local --verbose", "build": "tsc --build", "build:test": "tsc --build tests && cd tests && webpack", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "clean:test": "rimraf tests/build", "docs": "typedoc --options tdoptions.json src", "test": "npm run test:firefox", @@ -54,8 +54,8 @@ "karma-mocha-reporter": "^2.2.2", "mocha": "^3.2.0", "rimraf": "^2.5.2", - "typedoc": "~0.12.0", - "typescript": "~3.0.3", + "typedoc": "~0.15.0", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "publishConfig": { diff --git a/packages/coreutils/tests/tsconfig.json b/packages/coreutils/tests/tsconfig.json index 38b425a42..04afc545d 100644 --- a/packages/coreutils/tests/tsconfig.json +++ b/packages/coreutils/tests/tsconfig.json @@ -11,7 +11,8 @@ "outDir": "build", "lib": [ "ES5", - "ES2015.Promise" + "ES2015.Promise", + "ES2015.Iterable" ], "types": [ "chai", diff --git a/packages/coreutils/tsconfig.json b/packages/coreutils/tsconfig.json index ad978439f..d01c40258 100644 --- a/packages/coreutils/tsconfig.json +++ b/packages/coreutils/tsconfig.json @@ -12,7 +12,8 @@ "outDir": "lib", "lib": [ "ES5", - "ES2015.Promise" + "ES2015.Promise", + "ES2015.Iterable" ], "types": [], "rootDir": "src" diff --git a/packages/datagrid/package.json b/packages/datagrid/package.json index f1d4026a7..40b48fb4e 100644 --- a/packages/datagrid/package.json +++ b/packages/datagrid/package.json @@ -29,7 +29,7 @@ "scripts": { "api": "api-extractor run --local --verbose", "build": "tsc --build", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "docs": "typedoc --options tdoptions.json src", "watch": "tsc --build --watch" }, @@ -45,8 +45,8 @@ }, "devDependencies": { "rimraf": "^2.5.2", - "typedoc": "~0.12.0", - "typescript": "~3.0.3" + "typedoc": "~0.15.0", + "typescript": "~3.6.4" }, "publishConfig": { "access": "public" diff --git a/packages/datagrid/src/cellrenderer.ts b/packages/datagrid/src/cellrenderer.ts index 78abcdbf7..e4638846f 100644 --- a/packages/datagrid/src/cellrenderer.ts +++ b/packages/datagrid/src/cellrenderer.ts @@ -133,6 +133,6 @@ namespace CellRenderer { */ export function resolveOption(option: ConfigOption, config: CellConfig): T { - return typeof option === 'function' ? option(config) : option; + return typeof option === 'function' ? (option as ConfigFunc)(config) : option; } } diff --git a/packages/datagrid/src/graphicscontext.ts b/packages/datagrid/src/graphicscontext.ts index 82eb80170..1c9542434 100644 --- a/packages/datagrid/src/graphicscontext.ts +++ b/packages/datagrid/src/graphicscontext.ts @@ -94,33 +94,33 @@ class GraphicsContext implements IDisposable { } } - get textAlign(): string { + get textAlign(): CanvasTextAlign { return this._context.textAlign; } - set textAlign(value: string) { + set textAlign(value: CanvasTextAlign) { if (this._state.textAlign !== value) { this._state.textAlign = value; this._context.textAlign = value; } } - get textBaseline(): string { + get textBaseline(): CanvasTextBaseline { return this._context.textBaseline; } - set textBaseline(value: string) { + set textBaseline(value: CanvasTextBaseline) { if (this._state.textBaseline !== value) { this._state.textBaseline = value; this._context.textBaseline = value; } } - get lineCap(): string { + get lineCap(): CanvasLineCap { return this._context.lineCap; } - set lineCap(value: string) { + set lineCap(value: CanvasLineCap) { if (this._state.lineCap !== value) { this._state.lineCap = value; this._context.lineCap = value; @@ -138,11 +138,11 @@ class GraphicsContext implements IDisposable { } } - get lineJoin(): string { + get lineJoin(): CanvasLineJoin { return this._context.lineJoin; } - set lineJoin(value: string) { + set lineJoin(value: CanvasLineJoin) { if (this._state.lineJoin !== value) { this._state.lineJoin = value; this._context.lineJoin = value; @@ -415,7 +415,7 @@ class GraphicsContext implements IDisposable { return this._context.createRadialGradient(x0, y0, r0, x1, y1, r1); } - createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern { + createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern | null { return this._context.createPattern(image, repetition); } diff --git a/packages/datastore/package.json b/packages/datastore/package.json index c6ac2ddea..44e522858 100644 --- a/packages/datastore/package.json +++ b/packages/datastore/package.json @@ -31,7 +31,7 @@ "scripts": { "api": "api-extractor run --local --verbose", "build": "tsc --build", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "docs": "typedoc --options tdoptions.json src", "test": "npm run test:firefox", "test:chrome": "cd tests && karma start --browsers=Chrome", @@ -51,7 +51,7 @@ "devDependencies": { "rimraf": "^2.5.2", "typedoc": "~0.15.0", - "typescript": "~3.5.1" + "typescript": "~3.6.4" }, "publishConfig": { "access": "public" diff --git a/packages/datastore/tests/package.json b/packages/datastore/tests/package.json index 6cb6feede..d85cb38e7 100644 --- a/packages/datastore/tests/package.json +++ b/packages/datastore/tests/package.json @@ -22,7 +22,7 @@ "karma-mocha": "^1.3.0", "karma-mocha-reporter": "^2.2.2", "rimraf": "^2.5.2", - "typescript": "~3.0.3", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "scripts": { diff --git a/packages/disposable/package.json b/packages/disposable/package.json index bfc3038ba..8731b90ec 100644 --- a/packages/disposable/package.json +++ b/packages/disposable/package.json @@ -31,7 +31,7 @@ "api": "api-extractor run --local --verbose", "build": "tsc --build", "build:test": "tsc --build tests && cd tests && webpack", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "clean:test": "rimraf tests/build", "docs": "typedoc --options tdoptions.json src", "test": "npm run test:firefox", @@ -57,8 +57,8 @@ "karma-mocha-reporter": "^2.2.2", "mocha": "^3.2.0", "rimraf": "^2.5.2", - "typedoc": "~0.12.0", - "typescript": "~3.0.3", + "typedoc": "~0.15.0", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "publishConfig": { diff --git a/packages/domutils/package.json b/packages/domutils/package.json index e0ad7eea3..499f453b9 100644 --- a/packages/domutils/package.json +++ b/packages/domutils/package.json @@ -31,7 +31,7 @@ "api": "api-extractor run --local --verbose", "build": "tsc --build", "build:test": "tsc --build tests && cd tests && webpack", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "clean:test": "rimraf tests/build", "docs": "typedoc --options tdoptions.json src", "test": "npm run test:firefox", @@ -53,8 +53,8 @@ "karma-mocha-reporter": "^2.2.2", "mocha": "^3.2.0", "rimraf": "^2.5.2", - "typedoc": "~0.12.0", - "typescript": "~3.0.3", + "typedoc": "~0.15.0", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "publishConfig": { diff --git a/packages/domutils/src/selector.ts b/packages/domutils/src/selector.ts index 808a9f25e..a06f024e3 100644 --- a/packages/domutils/src/selector.ts +++ b/packages/domutils/src/selector.ts @@ -136,7 +136,7 @@ namespace Private { proto.webkitMatchesSelector || (function(selector: string) { let elem = this as Element; - let matches = elem.ownerDocument.querySelectorAll(selector); + let matches = elem.ownerDocument ? elem.ownerDocument.querySelectorAll(selector) : []; return Array.prototype.indexOf.call(matches, elem) !== -1; }) ); diff --git a/packages/dragdrop/package.json b/packages/dragdrop/package.json index 2d610ecab..318be05a5 100644 --- a/packages/dragdrop/package.json +++ b/packages/dragdrop/package.json @@ -33,7 +33,7 @@ "api": "api-extractor run --local --verbose", "build": "tsc --build", "build:test": "tsc --build tests && cd tests && webpack", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "clean:test": "rimraf tests/build", "docs": "typedoc --options tdoptions.json src", "test": "npm run test:firefox", @@ -63,8 +63,8 @@ "rimraf": "^2.5.2", "simulate-event": "^1.4.0", "style-loader": "^0.13.1", - "typedoc": "~0.12.0", - "typescript": "~3.0.3", + "typedoc": "~0.15.0", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "publishConfig": { diff --git a/packages/dragdrop/tsconfig.json b/packages/dragdrop/tsconfig.json index 50c58b61b..a32eeb9d4 100644 --- a/packages/dragdrop/tsconfig.json +++ b/packages/dragdrop/tsconfig.json @@ -13,6 +13,7 @@ "lib": [ "ES5", "ES2015.Promise", + "ES2015.Iterable", "DOM" ], "types": [], diff --git a/packages/keyboard/package.json b/packages/keyboard/package.json index fa17d093e..e3ea4c836 100644 --- a/packages/keyboard/package.json +++ b/packages/keyboard/package.json @@ -31,7 +31,7 @@ "api": "api-extractor run --local --verbose", "build": "tsc --build", "build:test": "tsc --build tests && cd tests && webpack", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "clean:test": "rimraf tests/build", "docs": "typedoc --options tdoptions.json src", "test": "npm run test:firefox", @@ -54,8 +54,8 @@ "mocha": "^3.2.0", "rimraf": "^2.5.2", "simulate-event": "^1.4.0", - "typedoc": "~0.12.0", - "typescript": "~3.0.3", + "typedoc": "~0.15.0", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "publishConfig": { diff --git a/packages/messaging/package.json b/packages/messaging/package.json index d86afb1bf..b16fb6e12 100644 --- a/packages/messaging/package.json +++ b/packages/messaging/package.json @@ -31,7 +31,7 @@ "api": "api-extractor run --local --verbose", "build": "tsc --build", "build:test": "tsc --build tests && cd tests && webpack", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "clean:test": "rimraf tests/build", "docs": "typedoc --options tdoptions.json src", "test": "npm run test:firefox", @@ -57,8 +57,8 @@ "karma-mocha-reporter": "^2.2.2", "mocha": "^3.2.0", "rimraf": "^2.5.2", - "typedoc": "~0.12.0", - "typescript": "~3.0.3", + "typedoc": "~0.15.0", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "publishConfig": { diff --git a/packages/messaging/src/index.ts b/packages/messaging/src/index.ts index f9588692e..4b50771c7 100644 --- a/packages/messaging/src/index.ts +++ b/packages/messaging/src/index.ts @@ -494,6 +494,7 @@ namespace MessageLoop { */ const schedule = (() => { let ok = typeof requestAnimationFrame === 'function'; + // @ts-ignore setImmediate is valid for NodeJS return ok ? requestAnimationFrame : setImmediate; })(); @@ -502,6 +503,7 @@ namespace MessageLoop { */ const unschedule = (() => { let ok = typeof cancelAnimationFrame === 'function'; + // @ts-ignore clearImmediate is valid for NodeJS return ok ? cancelAnimationFrame : clearImmediate; })(); diff --git a/packages/messaging/tests/src/index.spec.ts b/packages/messaging/tests/src/index.spec.ts index 3bab33fc4..dd784afc9 100644 --- a/packages/messaging/tests/src/index.spec.ts +++ b/packages/messaging/tests/src/index.spec.ts @@ -64,6 +64,7 @@ class LogHook implements IMessageHook { const defer = (() => { let ok = typeof requestAnimationFrame === 'function'; + // @ts-ignore setImmediate is valid for NodeJS return ok ? requestAnimationFrame : setImmediate; })(); diff --git a/packages/polling/tests/tsconfig.json b/packages/polling/tests/tsconfig.json index 9d29a1db4..cae7d4871 100644 --- a/packages/polling/tests/tsconfig.json +++ b/packages/polling/tests/tsconfig.json @@ -13,7 +13,8 @@ "lib": [ "DOM", "ES5", - "ES2015.Promise" + "ES2015.Promise", + "ES2015.Iterable" ], "types": [ "chai", diff --git a/packages/polling/tsconfig.json b/packages/polling/tsconfig.json index 4b07c641e..598ee705e 100644 --- a/packages/polling/tsconfig.json +++ b/packages/polling/tsconfig.json @@ -13,7 +13,8 @@ "lib": [ "DOM", "ES5", - "ES2015.Promise" + "ES2015.Promise", + "ES2015.Iterable" ], "types": [], "rootDir": "src" diff --git a/packages/properties/package.json b/packages/properties/package.json index 77a47d046..ee1fde9dd 100644 --- a/packages/properties/package.json +++ b/packages/properties/package.json @@ -31,7 +31,7 @@ "api": "api-extractor run --local --verbose", "build": "tsc --build", "build:test": "tsc --build tests && cd tests && webpack", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "clean:test": "rimraf tests/build", "docs": "typedoc --options tdoptions.json src", "test": "npm run test:firefox", @@ -53,8 +53,8 @@ "karma-mocha-reporter": "^2.2.2", "mocha": "^3.2.0", "rimraf": "^2.5.2", - "typedoc": "~0.12.0", - "typescript": "~3.0.3", + "typedoc": "~0.15.0", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "publishConfig": { diff --git a/packages/signaling/package.json b/packages/signaling/package.json index 56800b205..a7e871810 100644 --- a/packages/signaling/package.json +++ b/packages/signaling/package.json @@ -31,7 +31,7 @@ "api": "api-extractor run --local --verbose", "build": "tsc --build", "build:test": "tsc --build tests && cd tests && webpack", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "clean:test": "rimraf tests/build", "docs": "typedoc --options tdoptions.json src", "test": "npm run test:firefox", @@ -56,8 +56,8 @@ "karma-mocha-reporter": "^2.2.2", "mocha": "^3.2.0", "rimraf": "^2.5.2", - "typedoc": "~0.12.0", - "typescript": "~3.0.3", + "typedoc": "~0.15.0", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "publishConfig": { diff --git a/packages/virtualdom/package.json b/packages/virtualdom/package.json index 3a6e3d4d6..70b4340f3 100644 --- a/packages/virtualdom/package.json +++ b/packages/virtualdom/package.json @@ -31,7 +31,7 @@ "api": "api-extractor run --local --verbose", "build": "tsc --build", "build:test": "tsc --build tests && cd tests && webpack", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "clean:test": "rimraf tests/build", "docs": "typedoc --options tdoptions.json src", "test": "npm run test:firefox", @@ -56,8 +56,8 @@ "karma-mocha-reporter": "^2.2.2", "mocha": "^3.2.0", "rimraf": "^2.5.2", - "typedoc": "~0.12.0", - "typescript": "~3.0.3", + "typedoc": "~0.15.0", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "publishConfig": { diff --git a/packages/widgets/package.json b/packages/widgets/package.json index cfa883644..989408679 100644 --- a/packages/widgets/package.json +++ b/packages/widgets/package.json @@ -33,7 +33,7 @@ "api": "api-extractor run --local --verbose", "build": "tsc --build", "build:test": "tsc --build tests && cd tests && webpack", - "clean": "rimraf lib", + "clean": "rimraf lib && rimraf *.tsbuildinfo", "clean:test": "rimraf tests/build", "docs": "typedoc --options tdoptions.json src", "test": "npm run test:firefox", @@ -72,8 +72,8 @@ "rimraf": "^2.5.2", "simulate-event": "^1.4.0", "style-loader": "^0.13.1", - "typedoc": "~0.12.0", - "typescript": "~3.0.3", + "typedoc": "~0.15.0", + "typescript": "~3.6.4", "webpack": "^2.2.1" }, "publishConfig": { diff --git a/packages/widgets/tests/src/commandpalette.spec.ts b/packages/widgets/tests/src/commandpalette.spec.ts index 515dd55aa..0056c7ce5 100644 --- a/packages/widgets/tests/src/commandpalette.spec.ts +++ b/packages/widgets/tests/src/commandpalette.spec.ts @@ -461,6 +461,7 @@ describe('@lumino/widgets', () => { node = content.querySelector('.p-CommandPalette-item.p-mod-active'); expect(node).to.equal(null); }); + expect(called).to.be.false; }); it('should trigger active item if enter is pressed', () => { diff --git a/packages/widgets/tsconfig.json b/packages/widgets/tsconfig.json index 0f25c3b4a..8ba02bb1e 100644 --- a/packages/widgets/tsconfig.json +++ b/packages/widgets/tsconfig.json @@ -14,6 +14,7 @@ "ES5", "ES2015.Collection", "ES2015.Promise", + "ES2015.Iterable", "DOM" ], "types": [], diff --git a/yarn.lock b/yarn.lock index 8feb41d11..d2036cad8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6923,7 +6923,7 @@ typescript@3.0.x, typescript@~3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.0.3.tgz#4853b3e275ecdaa27f78fda46dc273a7eb7fc1c8" -typescript@3.5.x, typescript@~3.5.1: +typescript@3.5.x: version "3.5.3" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977" integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g== @@ -6932,10 +6932,10 @@ typescript@~2.9.2: version "2.9.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.2.tgz#1cbf61d05d6b96269244eb6a3bce4bd914e0f00c" -typescript@~3.3.1: - version "3.3.4000" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.3.4000.tgz#76b0f89cfdbf97827e1112d64f283f1151d6adf0" - integrity sha512-jjOcCZvpkl2+z7JFn0yBOoLQyLoIkNZAs/fYJkUG6VKy6zLPHJGfQJYFHzibB6GJaF/8QrcECtlQ5cpvRHSMEA== +typescript@~3.6.4: + version "3.6.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.4.tgz#b18752bb3792bc1a0281335f7f6ebf1bbfc5b91d" + integrity sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg== typescript@~3.7.2: version "3.7.2"