Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Commit 71da73d

Browse files
committed
chore(v2.4.5): pin ws to 8.x, remove webpack analyser and improve wsOptions type
1 parent 5fc9d18 commit 71da73d

4 files changed

Lines changed: 19 additions & 148 deletions

File tree

package-lock.json

Lines changed: 12 additions & 132 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bitmart-api",
3-
"version": "2.4.4",
3+
"version": "2.4.5",
44
"description": "Complete & robust Node.js SDK for BitMart's REST APIs and WebSockets, with TypeScript declarations.",
55
"scripts": {
66
"clean": "rm -rf dist/*",
@@ -29,14 +29,14 @@
2929
"Jerko J (https://github.com/JJ-Cro)"
3030
],
3131
"dependencies": {
32+
"@types/ws": "^8.18.1",
3233
"axios": "^1.13.2",
3334
"isomorphic-ws": "^4.0.1",
34-
"ws": "^8.18.3"
35+
"ws": "8.21.1"
3536
},
3637
"devDependencies": {
3738
"@types/jest": "^29.5.12",
3839
"@types/node": "^22.10.2",
39-
"@types/ws": "^8.5.10",
4040
"@typescript-eslint/eslint-plugin": "^8.18.0",
4141
"@typescript-eslint/parser": "^8.18.0",
4242
"eslint": "^8.29.0",
@@ -49,7 +49,6 @@
4949
"ts-node": "^10.9.2",
5050
"typescript": "^5.7.3",
5151
"webpack": "^5.0.0",
52-
"webpack-bundle-analyzer": "^5.1.1",
5352
"webpack-cli": "^4.0.0"
5453
},
5554
"keywords": [

src/types/websockets/client.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ export interface WSClientConfigurableOptions {
4646
wsOptions?: {
4747
protocols?: string[];
4848
agent?: any;
49-
} & Partial<WebSocket.ClientOptions | ClientRequestArgs>;
49+
} & (
50+
| Omit<Partial<WebSocket.ClientOptions>, 'agent'>
51+
| Omit<Partial<ClientRequestArgs>, 'agent'>
52+
);
5053

5154
wsUrl?: string;
5255

webpack/webpack.config.cjs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
const path = require('path');
2-
const BundleAnalyzerPlugin =
3-
require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
42

53
function generateConfig(name) {
64
var config = {
@@ -33,15 +31,6 @@ function generateConfig(name) {
3331
},
3432
};
3533

36-
config.plugins = [
37-
new BundleAnalyzerPlugin({
38-
defaultSizes: 'stat',
39-
analyzerMode: 'static',
40-
reportFilename: '../doc/bundleReport.html',
41-
openAnalyzer: false,
42-
}),
43-
];
44-
4534
return config;
4635
}
4736

0 commit comments

Comments
 (0)