Skip to content

Commit

Permalink
Upgrade dependencies, and TypeScript 3.9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed May 14, 2020
1 parent 7d49e7e commit 70b0f56
Show file tree
Hide file tree
Showing 4 changed files with 852 additions and 1,277 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v4.0.2, 2020-05-14

Upgrade dependencies, fix for TypeScript 3.9 while breaking for any older versions of TypeScript.

# v4.0.1, 2020-01-13

Switched from Flow to TypeScript, cause momentum. Sadly TypeScript sucks at supporting shared workers, so the typings are a bit worse, but promise-worker-bi works the same.
Expand Down
35 changes: 17 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,30 @@
},
"homepage": "https://github.com/dumbmatter/promise-worker-bi",
"devDependencies": {
"@babel/core": "^7.8.3",
"@babel/plugin-transform-destructuring": "^7.8.3",
"@babel/preset-typescript": "^7.8.3",
"@types/sharedworker": "^0.0.29",
"babel-eslint": "^10.0.3",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-import": "^2.20.0",
"@babel/core": "^7.9.6",
"@babel/plugin-transform-destructuring": "^7.9.5",
"@babel/preset-typescript": "^7.9.0",
"babel-eslint": "^10.1.0",
"eslint": "^7.0.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.20.2",
"glob": "^7.1.6",
"husky": "^4.0.7",
"karma": "^4.4.1",
"husky": "^4.2.5",
"karma": "^5.0.5",
"karma-chrome-launcher": "^3.1.0",
"karma-firefox-launcher": "^1.3.0",
"karma-mocha": "^1.3.0",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"lint-staged": "^9.5.0",
"mocha": "^7.0.0",
"prettier": "^1.19.1",
"rollup": "^1.29.0",
"rollup-plugin-babel": "^4.3.3",
"lint-staged": "^10.2.2",
"mocha": "^7.1.2",
"prettier": "^2.0.5",
"rollup": "^2.10.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
"typescript": "^3.7.4"
"typescript": "^3.9.2"
},
"files": [
"dist"
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ class PWBHost extends PWBBase {

_hostIDQueue: (() => void)[] | undefined;

_worker: SharedWorker.SharedWorker | Worker;
_worker: SharedWorker | Worker;

constructor(worker: SharedWorker.SharedWorker | Worker) {
constructor(worker: SharedWorker | Worker) {
super();

// The following if statement used to check `worker instanceof Worker` but I have recieved
Expand Down
Loading

0 comments on commit 70b0f56

Please sign in to comment.