From 48ac75f8722099ffbdc79a435faada4884b99c76 Mon Sep 17 00:00:00 2001 From: Vritra4 Date: Mon, 5 Feb 2024 17:44:55 +0900 Subject: [PATCH 1/2] bump secp256k1 to prevent segfault when used with threads --- package-lock.json | 25 +++++++++++++++---------- package.json | 4 ++-- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 380cc86..e659180 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "keccak256": "^1.0.6", "long": "^5.2.0", "ripemd160": "^2.0.2", - "secp256k1": "^4.0.3", + "secp256k1": "^5.0.0", "tmp": "^0.2.1", "ws": "^7.5.9" }, @@ -33,7 +33,7 @@ "@types/jest": "^29.0.3", "@types/node": "^18.7.18", "@types/ripemd160": "^2.0.0", - "@types/secp256k1": "^4.0.3", + "@types/secp256k1": "^4.0.6", "@types/tmp": "^0.2.3", "@types/ws": "^7.4.7", "@typescript-eslint/eslint-plugin": "^6.9.1", @@ -1725,9 +1725,9 @@ } }, "node_modules/@types/secp256k1": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.3.tgz", - "integrity": "sha512-Da66lEIFeIz9ltsdMZcpQvmrmmoqrfju8pm1BH8WbYjZSwUgCwXLb9C+9XYogwBITnbsSaMdVPb2ekf7TV+03w==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.6.tgz", + "integrity": "sha512-hHxJU6PAEUn0TP4S/ZOzuTUvJWuZ6eIKeNKb5RBpODvSl6hp1Wrw4s7ATY50rklRCScUDpHzVA/DQdSjJ3UoYQ==", "dev": true, "dependencies": { "@types/node": "*" @@ -6424,19 +6424,24 @@ } }, "node_modules/secp256k1": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.3.tgz", - "integrity": "sha512-NLZVf+ROMxwtEj3Xa562qgv2BK5e2WNmXPiOdVIPLgs6lyTzMvBq0aWTYMI5XCP9jZMVKOcqZLw/Wc4vDkuxhA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-5.0.0.tgz", + "integrity": "sha512-TKWX8xvoGHrxVdqbYeZM9w+izTF4b9z3NhSaDkdn81btvuh+ivbIMGT/zQvDtTFWhRlThpoz6LEYTr7n8A5GcA==", "hasInstallScript": true, "dependencies": { "elliptic": "^6.5.4", - "node-addon-api": "^2.0.0", + "node-addon-api": "^5.0.0", "node-gyp-build": "^4.2.0" }, "engines": { - "node": ">=10.0.0" + "node": ">=14.0.0" } }, + "node_modules/secp256k1/node_modules/node-addon-api": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", + "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==" + }, "node_modules/semver": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", diff --git a/package.json b/package.json index a44d142..0805037 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "@types/jest": "^29.0.3", "@types/node": "^18.7.18", "@types/ripemd160": "^2.0.0", - "@types/secp256k1": "^4.0.3", + "@types/secp256k1": "^4.0.6", "@types/tmp": "^0.2.3", "@types/ws": "^7.4.7", "@typescript-eslint/eslint-plugin": "^6.9.1", @@ -100,7 +100,7 @@ "keccak256": "^1.0.6", "long": "^5.2.0", "ripemd160": "^2.0.2", - "secp256k1": "^4.0.3", + "secp256k1": "^5.0.0", "tmp": "^0.2.1", "ws": "^7.5.9" } From b7758b1848fa9efbdb9bccc888d18781da8de618 Mon Sep 17 00:00:00 2001 From: Vritra4 Date: Mon, 5 Feb 2024 17:46:15 +0900 Subject: [PATCH 2/2] bump version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index e659180..b03bd0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@initia/initia.js", - "version": "0.1.27", + "version": "0.1.28", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@initia/initia.js", - "version": "0.1.27", + "version": "0.1.28", "license": "MIT", "dependencies": { "@initia/initia.proto": "^0.1.23", diff --git a/package.json b/package.json index 0805037..a24b7e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@initia/initia.js", - "version": "0.1.27", + "version": "0.1.28", "description": "The JavaScript SDK for Initia", "license": "MIT", "author": "InitiaLabs",