From ec3f4503c68036bfce42c989fe01bb1b3a95689f Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Sat, 23 Nov 2024 08:14:58 +0000 Subject: [PATCH] Specify minified size --- README.md | 2 +- build/package-lock.json | 4 ++-- build/package.json | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8f4a17b..10628a8 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Auditable & minimal JS implementation of public-key post-quantum cryptography. - 🦾 ML-KEM & CRYSTALS-Kyber: lattice-based kem from FIPS-203 - 🔋 ML-DSA & CRYSTALS-Dilithium: lattice-based signatures from FIPS-204 - 🐈 SLH-DSA & SPHINCS+: hash-based signatures from FIPS-205 -- 🪶 77KB (15KB gzipped) for everything with hashes +- 🪶 37KB (15KB gzipped) for everything with bundled hashes Take a glance at [GitHub Discussions](https://github.com/paulmillr/noble-post-quantum/discussions) for questions and support. diff --git a/build/package-lock.json b/build/package-lock.json index 2ba8ecf..ca4722b 100644 --- a/build/package-lock.json +++ b/build/package-lock.json @@ -14,11 +14,11 @@ }, "..": { "name": "@noble/post-quantum", - "version": "0.2.0", + "version": "0.2.1", "dev": true, "license": "MIT", "dependencies": { - "@noble/hashes": "1.4.0" + "@noble/hashes": "1.6.0" }, "devDependencies": { "@paulmillr/jsbt": "0.2.1", diff --git a/build/package.json b/build/package.json index 9783ad1..1a7e2bb 100644 --- a/build/package.json +++ b/build/package.json @@ -9,6 +9,7 @@ "esbuild": "0.20.1" }, "scripts": { - "build:release": "npx esbuild --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`" + "build:release": "npx esbuild --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`", + "build:min": "npx esbuild --minify --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`" } }