From 2fc1b09f2171a95611f0fce514876a962a419381 Mon Sep 17 00:00:00 2001 From: Sam Sweet Date: Sun, 29 Dec 2024 08:51:33 -0500 Subject: [PATCH 1/5] add release commands --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0f0b110..9a7b5ef 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ "src/**/*" ], "scripts": { - "release": "np --no-tests --no-yarn --any-branch", "test": "echo \"Error: no test specified\" && exit 1", "check": "gts check", "lint": "eslint './src/**/*.ts'", @@ -19,7 +18,11 @@ "fix": "gts fix", "prepare": "npm run compile", "pretest": "npm run compile", - "posttest": "npm run check" + "posttest": "npm run check", + "release:prerelease": "npm run prepare && npm version prerelease --preid=prerelease && git push --follow-tags && npm publish --tag prerelease", + "release:patch": "npm run prepare && npm version patch && git push --follow-tags && npm publish", + "release:minor": "npm run prepare && npm version minor && git push --follow-tags && npm publish", + "release:major": "npm run prepare && npm version major && git push --follow-tags && npm publish" }, "repository": { "type": "git", From 87f61c2dfd58b39e3d8b53dbb55f1d4e18065784 Mon Sep 17 00:00:00 2001 From: mhanson <3117293+mhanson-github@users.noreply.github.com> Date: Sat, 4 Jan 2025 01:25:01 -0500 Subject: [PATCH 2/5] Update packages --- package-lock.json | 12 ++++++------ package.json | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index b94d0dd..ddd7522 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { - "name": "@shardus/crypto-utils", + "name": "@shardeum-foundation/lib-crypto-utils", "version": "4.1.5", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@shardus/crypto-utils", + "name": "@shardeum-foundation/lib-crypto-utils", "version": "4.1.5", "license": "ISC", "dependencies": { - "@shardus/types": "git+https://github.com/shardeum/lib-types#dev", + "@shardeum-foundation/lib-types": "1.2.21", "buffer-xor": "2.0.2", "fast-stable-stringify": "1.0.0", "sodium-native": "3.3.0" @@ -404,10 +404,10 @@ "node": ">=6" } }, - "node_modules/@shardus/types": { + "node_modules/@shardeum-foundation/lib-types": { "version": "1.2.21", - "resolved": "git+ssh://git@github.com/shardeum/lib-types.git#23e69d2d3e17f82cafeb279667dc1bb3c86140ae", - "license": "ISC" + "resolved": "https://registry.npmjs.org/@shardeum-foundation/lib-types/-/lib-types-1.2.21.tgz", + "integrity": "sha512-ToIiBWRdDt+d1FG+yByRKfKUZRivSxvt3ZwL/NGcqRrSA1h6Lvxg4FFUXA2yr0pobwPP/FOOc4LJoVu3eT/d4g==" }, "node_modules/@sindresorhus/is": { "version": "4.6.0", diff --git a/package.json b/package.json index 9a7b5ef..0edba6f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@shardus/crypto-utils", + "name": "@shardeum-foundation/lib-crypto-utils", "version": "4.1.5", "description": "Provides simple crypto functions, as used by the ULC Project.", "main": "./build/src/index.js", @@ -41,7 +41,7 @@ }, "homepage": "https://github.com/shardeum/lib-crypto-utils#readme", "dependencies": { - "@shardus/types": "git+https://github.com/shardeum/lib-types#dev", + "@shardeum-foundation/lib-types": "1.2.21", "buffer-xor": "2.0.2", "fast-stable-stringify": "1.0.0", "sodium-native": "3.3.0" From bbdb94dba2bf92c10ef497ad0329ed70d1e0a06b Mon Sep 17 00:00:00 2001 From: mhanson <3117293+mhanson-github@users.noreply.github.com> Date: Mon, 6 Jan 2025 02:11:17 -0500 Subject: [PATCH 3/5] Update old shardus refs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0b02596..1ba4f01 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@ Shardus Crypto Utils is a tool providing a set of cryptographic utility function You can install Shardus Crypto Utils via npm: ```bash -npm install @shardus/crypto-utils +npm install @shardeum-foundation/lib-crypto-utils ``` ## Usage ```JavaScript -const crypto = require('shardus-crypto-utils') +const crypto = require('@shardeum-foundation/lib-crypto-utils') // Module has a constructor that takes in a 32-byte hex key as required by node-sodium for generic hashing crypto.init('64f152869ca2d473e4ba64ab53f49ccdb2edae22da192c126850970e788af347') From 2ac67abb57b22de8d7d6ddbb17e8710e3524e117 Mon Sep 17 00:00:00 2001 From: mhanson <3117293+mhanson-github@users.noreply.github.com> Date: Tue, 7 Jan 2025 01:26:44 -0500 Subject: [PATCH 4/5] package --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index ddd7522..68a8f54 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "4.1.5", "license": "ISC", "dependencies": { - "@shardeum-foundation/lib-types": "1.2.21", + "@shardeum-foundation/lib-types": "1.2.22-prerelease.0", "buffer-xor": "2.0.2", "fast-stable-stringify": "1.0.0", "sodium-native": "3.3.0" @@ -405,9 +405,9 @@ } }, "node_modules/@shardeum-foundation/lib-types": { - "version": "1.2.21", - "resolved": "https://registry.npmjs.org/@shardeum-foundation/lib-types/-/lib-types-1.2.21.tgz", - "integrity": "sha512-ToIiBWRdDt+d1FG+yByRKfKUZRivSxvt3ZwL/NGcqRrSA1h6Lvxg4FFUXA2yr0pobwPP/FOOc4LJoVu3eT/d4g==" + "version": "1.2.22-prerelease.0", + "resolved": "https://registry.npmjs.org/@shardeum-foundation/lib-types/-/lib-types-1.2.22-prerelease.0.tgz", + "integrity": "sha512-z64hEj8D7ZlhNjZn0fIUWYaLipINkQZo56ilTVnVexkH46ipIB02X7CQlyYiVna7N+tODXdf09Xg5cuC0Bkt9g==" }, "node_modules/@sindresorhus/is": { "version": "4.6.0", diff --git a/package.json b/package.json index 0edba6f..8e64b67 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ }, "homepage": "https://github.com/shardeum/lib-crypto-utils#readme", "dependencies": { - "@shardeum-foundation/lib-types": "1.2.21", + "@shardeum-foundation/lib-types": "1.2.22-prerelease.0", "buffer-xor": "2.0.2", "fast-stable-stringify": "1.0.0", "sodium-native": "3.3.0" From 3464621539370977fda90102ba5a240f259474db Mon Sep 17 00:00:00 2001 From: mhanson <3117293+mhanson-github@users.noreply.github.com> Date: Tue, 7 Jan 2025 01:27:14 -0500 Subject: [PATCH 5/5] 4.1.6-prerelease.0 --- package-lock.json | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 68a8f54..052a0f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@shardeum-foundation/lib-crypto-utils", - "version": "4.1.5", + "version": "4.1.6-prerelease.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@shardeum-foundation/lib-crypto-utils", - "version": "4.1.5", + "version": "4.1.6-prerelease.0", "license": "ISC", "dependencies": { "@shardeum-foundation/lib-types": "1.2.22-prerelease.0", diff --git a/package.json b/package.json index 8e64b67..5a25d78 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@shardeum-foundation/lib-crypto-utils", - "version": "4.1.5", + "version": "4.1.6-prerelease.0", "description": "Provides simple crypto functions, as used by the ULC Project.", "main": "./build/src/index.js", "types": "./build/src/index.d.ts", @@ -64,4 +64,4 @@ "engines": { "node": "18.19.1" } -} \ No newline at end of file +}