From b5c38187135616cb2c1f44853525d925fe6a3bd1 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Wed, 14 Oct 2026 16:29:15 +0300 Subject: [PATCH] Update jayson to 5 (#834) * build: update jayson to 5 * docs: update readme for node and remove unused override --- doc/samples/v3_api_node/package-lock.json | 49 +++-------------------- doc/samples/v3_api_node/package.json | 5 +-- doc/samples/v3_api_node/readme.md | 2 +- 3 files changed, 7 insertions(+), 49 deletions(-) diff --git a/doc/samples/v3_api_node/package-lock.json b/doc/samples/v3_api_node/package-lock.json index 0649ef6..6cc6f67 100644 --- a/doc/samples/v3_api_node/package-lock.json +++ b/doc/samples/v3_api_node/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.1", "license": "ISC", "dependencies": { - "jayson": "^4.3.0" + "jayson": "^5.0.0" } }, "node_modules/@types/connect": { @@ -65,14 +65,6 @@ "es6-promise": "^4.0.3" } }, - "node_modules/eyes": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz", - "integrity": "sha1-Ys8SAjTGg3hdkCNIqADvPgzCC8A=", - "engines": { - "node": "> 0.1.90" - } - }, "node_modules/isomorphic-ws": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz", @@ -83,9 +75,9 @@ } }, "node_modules/jayson": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/jayson/-/jayson-4.3.0.tgz", - "integrity": "sha512-AauzHcUcqs8OBnCHOkJY280VaTiCm57AbuO7lqzcw7JapGj50BisE3xhksye4zlTSR1+1tAz67wLTl8tEH1obQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/jayson/-/jayson-5.0.0.tgz", + "integrity": "sha512-FghxOWlJB5ZPsRsuMF1U4GFHjkJfOEYSlIHpI6Wt6MXIzvqWVo0Kpl7/SMfY36vWggA+b+L09zRGP6m4ROVnKg==", "license": "MIT", "dependencies": { "@types/connect": "^3.4.33", @@ -94,18 +86,15 @@ "commander": "^2.20.3", "delay": "^5.0.0", "es6-promisify": "^5.0.0", - "eyes": "^0.1.8", "isomorphic-ws": "^4.0.1", "json-stringify-safe": "^5.0.1", - "stream-json": "^1.9.1", - "uuid": "^8.3.2", "ws": "^7.5.10" }, "bin": { "jayson": "bin/jayson.js" }, "engines": { - "node": ">=8" + "node": ">=20" } }, "node_modules/json-stringify-safe": { @@ -113,34 +102,6 @@ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" }, - "node_modules/stream-chain": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/stream-chain/-/stream-chain-2.2.5.tgz", - "integrity": "sha512-1TJmBx6aSWqZ4tx7aTpBDXK0/e2hhcNSTV8+CbFJtDjbb+I1mZ8lHit0Grw9GRT+6JbIrrDd8esncgBi8aBXGA==", - "license": "BSD-3-Clause" - }, - "node_modules/stream-json": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/stream-json/-/stream-json-1.9.1.tgz", - "integrity": "sha512-uWkjJ+2Nt/LO9Z/JyKZbMusL8Dkh97uUBTv3AJQ74y07lVahLY4eEFsPsE97pxYBwr8nnjMAIch5eqI0gPShyw==", - "license": "BSD-3-Clause", - "dependencies": { - "stream-chain": "^2.2.5" - } - }, - "node_modules/uuid": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.1.tgz", - "integrity": "sha512-vIYxrBCC/N/K+Js3qSN88go7kIfNPssr/hHCesKCQNAjmgvYS2oqr69kIufEG+O4+PfezOH4EbIeHCfFov8ZgQ==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/esm/bin/uuid" - } - }, "node_modules/ws": { "version": "7.5.13", "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.13.tgz", diff --git a/doc/samples/v3_api_node/package.json b/doc/samples/v3_api_node/package.json index fb89fc9..71bdfff 100644 --- a/doc/samples/v3_api_node/package.json +++ b/doc/samples/v3_api_node/package.json @@ -9,9 +9,6 @@ "author": "", "license": "ISC", "dependencies": { - "jayson": "^4.3.0" - }, - "overrides": { - "uuid": "^11.1.1" + "jayson": "^5.0.0" } } diff --git a/doc/samples/v3_api_node/readme.md b/doc/samples/v3_api_node/readme.md index ed8e907..1a490ca 100644 --- a/doc/samples/v3_api_node/readme.md +++ b/doc/samples/v3_api_node/readme.md @@ -20,7 +20,7 @@ The sample sends it as the password for the `grin` user. If `api_secret_path` is Ensure the client connection settings in `src/index.js` match the Owner API address. -Then (assuming node.js and npm are installed on the system): +Then (assuming Node.js >=20 and npm are installed on the system): ```.sh npm install