Skip to content

Commit 24eccb4

Browse files
committed
chore(sdk/js): drop crypto-browserify dependency
remove the crypto-browserify dep and the package.json browser field that aliased node's crypto to it. the only consumers of node crypto in this SDK already moved to @noble/hashes in the previous commit. this removes the elliptic / create-ecdh / browserify-sign / bn.js (4.x) transitive chain whose advisories have no upstream fix.
1 parent 3539db3 commit 24eccb4

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

sdk/js/package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
"description": "dstack SDK",
55
"main": "dist/node/index.js",
66
"types": "dist/node/index.d.ts",
7-
"browser": {
8-
"crypto": "crypto-browserify"
9-
},
107
"exports": {
118
".": {
129
"import": "./dist/node/index.js",
@@ -99,9 +96,6 @@
9996
},
10097
"author": "Leechael Yim",
10198
"license": "Apache-2.0",
102-
"dependencies": {
103-
"crypto-browserify": "^3.12.0"
104-
},
10599
"devDependencies": {
106100
"@types/node": "latest",
107101
"typescript": "^5.7.0",

0 commit comments

Comments
 (0)