Switch from deprecated ClusterWS/cws to ws package (#15932)

* Switch from deprecated ClusterWS/cws to ws package

Fixes #15184

Co-authored-by: Edho Arief <me@nanaya.pro>

* Make bufferutil and utf-8-validate optional dependencies

Co-authored-by: Edho Arief <me@nanaya.pro>
This commit is contained in:
Claire
2021-03-24 09:37:41 +01:00
committed by GitHub
parent c3aef491d6
commit 49814d5799
3 changed files with 49 additions and 10 deletions

View File

@ -67,7 +67,6 @@
"@babel/preset-env": "^7.13.10",
"@babel/preset-react": "^7.12.13",
"@babel/runtime": "^7.13.10",
"@clusterws/cws": "^3.0.0",
"@gamestdio/websocket": "^0.3.2",
"@github/webauthn-json": "^0.5.7",
"@rails/ujs": "^6.1.3",
@ -169,7 +168,8 @@
"webpack-bundle-analyzer": "^4.4.0",
"webpack-cli": "^3.3.12",
"webpack-merge": "^5.7.3",
"wicg-inert": "^3.1.1"
"wicg-inert": "^3.1.1",
"ws": "^7.4.4"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.11.9",
@ -191,5 +191,9 @@
},
"resolutions": {
"kind-of": "^6.0.3"
},
"optionalDependencies": {
"bufferutil": "^4.0.3",
"utf-8-validate": "^5.0.4"
}
}