-
Notifications
You must be signed in to change notification settings - Fork 14k
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
chore(websocket): bump dependencies #17325
Conversation
FYI @rusackas as per your recommendation, I also fixed the warnings on the client app. |
f6eab1b
to
621ff4c
Compare
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^7.1.0", | ||
"jest": "^27.3.1", | ||
"prettier": "^2.4.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prettier
bumped to same version as superset-ui
to make monorepo migration easier.
621ff4c
to
4b291ee
Compare
4b291ee
to
e350dd2
Compare
const setReadyState = (ws: WebSocket, value: typeof ws.readyState) => { | ||
// workaround for not being able to do | ||
// spyOn(instance,'readyState','get').and.returnValue(value); | ||
// See for details: https://github.com/facebook/jest/issues/9675 | ||
Object.defineProperty(ws, 'readyState', { | ||
configurable: true, | ||
get() { | ||
return value; | ||
}, | ||
}); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WebSocket.readyState
has been made readonly
in version 8 of ws
, so the property needs to be mocked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
* chore(websocket): bump dependencies * bump client-ws-app * bump more packages
SUMMARY
Update all deps to most recent versions on
superset-websocket
to resolve audit warnings. Theclient-ws-app
is also bumped to the most recent package versions, including migratingjade
topug
(the project was renamed in 2016 when pug 2 was released). Some tests and type declarations are updated to fix typing errors.After update
npm run test
passed and running Superset with Global Async Queries with websocket server worked as expected. Also theclient-ws-app
worked as expected.AFTER
All vulnerabilities fixed:
BEFORE
Multiple vulnerabilities reported:
and for
client-ws-app
:TESTING INSTRUCTIONS
ADDITIONAL INFORMATION