Skip to content

Commit 5d3cdab

Browse files
Update all (#1083)
* Update all * Two fixes required by TS updates: - OffscreenCanvas was already a type, refer to our own instead. - When stubbing postMessage (which has multiple signatures), can no longer be lazy without coercion. * bump size to 13kb Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com> Co-authored-by: Jake Fried <samouri@users.noreply.github.com>
1 parent 9e81e04 commit 5d3cdab

File tree

6 files changed

+27
-26
lines changed

6 files changed

+27
-26
lines changed

demo/preact-map/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
"@babel/plugin-transform-react-jsx": "7.14.9",
1919
"babel-loader": "8.2.2",
2020
"css-loader": "6.2.0",
21-
"mini-css-extract-plugin": "2.1.0",
21+
"mini-css-extract-plugin": "2.2.2",
2222
"style-loader": "3.2.1",
23-
"webpack": "5.48.0",
24-
"webpack-cli": "4.7.2"
23+
"webpack": "5.52.1",
24+
"webpack-cli": "4.8.0"
2525
},
2626
"volta": {
27-
"node": "14.17.4",
27+
"node": "14.17.6",
2828
"yarn": "1.22.11"
2929
}
3030
}

demo/react-map/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"@babel/plugin-transform-react-jsx": "7.14.9",
2020
"babel-loader": "8.2.2",
2121
"css-loader": "6.2.0",
22-
"mini-css-extract-plugin": "2.1.0",
22+
"mini-css-extract-plugin": "2.2.2",
2323
"style-loader": "3.2.1",
24-
"webpack": "5.48.0",
25-
"webpack-cli": "4.7.2"
24+
"webpack": "5.52.1",
25+
"webpack-cli": "4.8.0"
2626
},
2727
"volta": {
28-
"node": "14.17.4",
28+
"node": "14.17.6",
2929
"yarn": "1.22.11"
3030
}
3131
}

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,38 +38,38 @@
3838
},
3939
"devDependencies": {
4040
"@ampproject/filesize": "4.3.0",
41-
"@ampproject/rollup-plugin-closure-compiler": "0.26.0",
41+
"@ampproject/rollup-plugin-closure-compiler": "0.27.0",
4242
"@babel/cli": "7.14.8",
4343
"@babel/core": "7.15.0",
4444
"@babel/preset-env": "7.15.0",
4545
"@rollup/plugin-babel": "5.3.0",
4646
"@rollup/plugin-replace": "3.0.0",
47-
"@types/node": "14.17.7",
47+
"@types/node": "14.17.15",
4848
"@types/sinon": "10.0.2",
49-
"acorn": "8.4.1",
50-
"acorn-walk": "8.1.1",
49+
"acorn": "8.5.0",
50+
"acorn-walk": "8.2.0",
5151
"ava": "3.15.0",
5252
"babel-plugin-minify-replace": "0.5.0",
5353
"babel-plugin-transform-remove-console": "6.9.4",
5454
"cross-env": "7.0.3",
5555
"esm": "3.2.25",
56-
"husky": "7.0.1",
56+
"husky": "7.0.2",
5757
"jsdom": "17.0.0",
58-
"lint-staged": "11.1.1",
58+
"lint-staged": "11.1.2",
5959
"magic-string": "0.25.7",
6060
"np": "7.5.0",
6161
"npm-run-all": "4.1.5",
6262
"polka": "0.5.2",
63-
"prettier": "2.3.2",
63+
"prettier": "2.4.0",
6464
"rimraf": "3.0.2",
65-
"rollup": "2.55.1",
65+
"rollup": "2.56.3",
6666
"rollup-plugin-analyzer": "4.0.0",
6767
"rollup-plugin-babel": "4.4.0",
6868
"rollup-plugin-terser": "7.0.2",
6969
"sinon": "11.1.2",
70-
"sirv": "1.0.12",
70+
"sirv": "1.0.17",
7171
"tslint": "6.1.3",
72-
"typescript": "4.3.5"
72+
"typescript": "4.4.2"
7373
},
7474
"lint-staged": {
7575
"*.{js,ts}": [
@@ -95,7 +95,7 @@
9595
"brotli": "5 kB"
9696
},
9797
"./dist/worker/worker.mjs": {
98-
"brotli": "12 kB"
98+
"brotli": "13 kB"
9999
},
100100
"./dist/worker/worker.js": {
101101
"brotli": "14 kB"
@@ -122,7 +122,7 @@
122122
]
123123
},
124124
"volta": {
125-
"node": "14.17.4",
125+
"node": "14.17.6",
126126
"yarn": "1.22.11"
127127
},
128128
"publishConfig": {

src/test/main-thread/iframe-worker.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ test.beforeEach((t) => {
4040
const iframe = (worker as any).iframe as HTMLIFrameElement;
4141

4242
const oldPostMessage = iframe.contentWindow!.postMessage.bind(iframe.contentWindow);
43-
iframe.contentWindow!.postMessage = (msg, targetOrigin, transferables) => {
43+
iframe.contentWindow!.postMessage = ((msg, targetOrigin, transferables) => {
4444
sentToIframe.push(msg);
4545
oldPostMessage(msg, targetOrigin, transferables);
46-
};
46+
}) as typeof postMessage;
4747

4848
function sendFromIframe(msg: Object): void {
4949
for (let listener of messageListeners) {

src/worker-thread/WorkerDOMGlobalScope.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ import { DocumentFragment } from './dom/DocumentFragment';
5757
import { DOMTokenList } from './dom/DOMTokenList';
5858
import { Element } from './dom/Element';
5959
import { DocumentStub } from './dom/DocumentStub';
60+
import { OffscreenCanvas } from './canvas/CanvasTypes';
6061

6162
/**
6263
* Should only contain properties that exist on Window.
@@ -110,7 +111,7 @@ export interface GlobalScope {
110111
// implementation to enable setting readonly properties like currentTarget.
111112
Event: typeof WorkerDOMEvent;
112113
MutationObserver: typeof MutationObserver;
113-
OffscreenCanvas?: typeof OffscreenCanvas;
114+
OffscreenCanvas?: OffscreenCanvas;
114115
ImageBitmap?: typeof ImageBitmap;
115116
requestAnimationFrame: typeof requestAnimationFrame;
116117
cancelAnimationFrame: typeof cancelAnimationFrame;

tools/linter/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"devDependencies": {
2626
"ava": "3.15.0",
2727
"esm": "3.2.25",
28-
"lint-staged": "11.1.1",
28+
"lint-staged": "11.1.2",
2929
"npm-run-all": "4.1.5",
30-
"prettier": "2.3.2",
30+
"prettier": "2.4.0",
3131
"rimraf": "3.0.2",
3232
"shx": "0.3.3"
3333
},
@@ -43,7 +43,7 @@
4343
]
4444
},
4545
"volta": {
46-
"node": "14.17.4",
46+
"node": "14.17.6",
4747
"yarn": "1.22.11"
4848
}
4949
}

0 commit comments

Comments
 (0)