From ee1c332b607ae5cf68d8950f5a82a6c65d9f4ac4 Mon Sep 17 00:00:00 2001 From: Yi-Cyuan Chen Date: Mon, 20 Jul 2026 14:44:06 +0800 Subject: [PATCH] fixed ci --- .github/workflows/ci.yml | 12 ++++++++---- .gitignore | 1 + build/md5-lite.js | 2 +- build/md5-lite.min.js | 2 +- build/md5-lite.min.mjs | 2 +- build/md5-lite.mjs | 2 +- build/md5-lite.node.mjs | 2 +- build/md5.js | 2 +- build/md5.min.js | 2 +- build/md5.min.mjs | 2 +- build/md5.mjs | 2 +- build/md5.modern.js | 2 +- build/md5.modern.min.js | 2 +- build/md5.modern.min.mjs | 2 +- build/md5.modern.mjs | 2 +- build/md5.modern.node.mjs | 2 +- build/md5.node.mjs | 2 +- doc/HmacMd5.html | 2 +- doc/Md5_.html | 4 ++-- doc/global.html | 2 +- doc/index.html | 2 +- doc/md5.hmac.html | 2 +- doc/md5.html | 2 +- doc/md5.js.html | 4 ++-- jsdoc.json | 7 +++++++ package.json | 9 ++++----- 26 files changed, 44 insertions(+), 33 deletions(-) create mode 100644 jsdoc.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1f62f1..ca08ce4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x, 22.x, 24.x] + node-version: [16.x, 18.x, 20.x, 22.x, 24.x] steps: - name: Checkout code uses: actions/checkout@v4 @@ -27,18 +27,22 @@ jobs: run: npm ci - name: Build - if: matrix.node-version == '22.x' + if: matrix.node-version == '24.x' run: npm run build + - name: Check generated files + if: matrix.node-version == '24.x' + run: git diff --exit-code -- build + - name: Run tests run: npm test - name: Generate coverage report - if: matrix.node-version == '22.x' + if: matrix.node-version == '24.x' run: npm run coverage - name: Upload to coveralls - if: matrix.node-version == '22.x' + if: matrix.node-version == '24.x' uses: coverallsapp/github-action@v2 with: file: ./coverage.lcov diff --git a/.gitignore b/.gitignore index aebac7f..c2ae4eb 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /covreporter/ /.nyc_output/ /coverage/ +coverage.lcov diff --git a/build/md5-lite.js b/build/md5-lite.js index 973c5e6..af48abf 100644 --- a/build/md5-lite.js +++ b/build/md5-lite.js @@ -2,7 +2,7 @@ * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/build/md5-lite.min.js b/build/md5-lite.min.js index a35291b..99b468c 100644 --- a/build/md5-lite.min.js +++ b/build/md5-lite.min.js @@ -2,7 +2,7 @@ * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/build/md5-lite.min.mjs b/build/md5-lite.min.mjs index a170606..e639464 100644 --- a/build/md5-lite.min.mjs +++ b/build/md5-lite.min.mjs @@ -3,7 +3,7 @@ function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"de * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/build/md5-lite.mjs b/build/md5-lite.mjs index b50bd25..5c5c6ae 100644 --- a/build/md5-lite.mjs +++ b/build/md5-lite.mjs @@ -8,7 +8,7 @@ var md5$1 = {exports: {}}; * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/build/md5-lite.node.mjs b/build/md5-lite.node.mjs index cb8a30e..84407e8 100644 --- a/build/md5-lite.node.mjs +++ b/build/md5-lite.node.mjs @@ -13,7 +13,7 @@ var md5$1 = {exports: {}}; * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/build/md5.js b/build/md5.js index 02205d0..84a3ce5 100644 --- a/build/md5.js +++ b/build/md5.js @@ -2,7 +2,7 @@ * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/build/md5.min.js b/build/md5.min.js index a74f72f..c63e551 100644 --- a/build/md5.min.js +++ b/build/md5.min.js @@ -2,7 +2,7 @@ * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/build/md5.min.mjs b/build/md5.min.mjs index 384fb56..c337abf 100644 --- a/build/md5.min.mjs +++ b/build/md5.min.mjs @@ -3,7 +3,7 @@ function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"de * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/build/md5.mjs b/build/md5.mjs index c15cdbe..b635d1e 100644 --- a/build/md5.mjs +++ b/build/md5.mjs @@ -8,7 +8,7 @@ var md5$1 = {exports: {}}; * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/build/md5.modern.js b/build/md5.modern.js index eee2a03..0b321cc 100644 --- a/build/md5.modern.js +++ b/build/md5.modern.js @@ -2,7 +2,7 @@ * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/build/md5.modern.min.js b/build/md5.modern.min.js index cb2827d..2860c04 100644 --- a/build/md5.modern.min.js +++ b/build/md5.modern.min.js @@ -2,7 +2,7 @@ * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/build/md5.modern.min.mjs b/build/md5.modern.min.mjs index 1d71237..bce6230 100644 --- a/build/md5.modern.min.mjs +++ b/build/md5.modern.min.mjs @@ -3,7 +3,7 @@ function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"de * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/build/md5.modern.mjs b/build/md5.modern.mjs index e9f9e0f..0fae9da 100644 --- a/build/md5.modern.mjs +++ b/build/md5.modern.mjs @@ -8,7 +8,7 @@ var md5$1 = {exports: {}}; * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/build/md5.modern.node.mjs b/build/md5.modern.node.mjs index 3cd11e1..b5d0e55 100644 --- a/build/md5.modern.node.mjs +++ b/build/md5.modern.node.mjs @@ -13,7 +13,7 @@ var md5$1 = {exports: {}}; * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/build/md5.node.mjs b/build/md5.node.mjs index 294613e..b6aee7b 100644 --- a/build/md5.node.mjs +++ b/build/md5.node.mjs @@ -13,7 +13,7 @@ var md5$1 = {exports: {}}; * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT diff --git a/doc/HmacMd5.html b/doc/HmacMd5.html index 8c86005..29f8a9a 100644 --- a/doc/HmacMd5.html +++ b/doc/HmacMd5.html @@ -1254,7 +1254,7 @@
diff --git a/doc/Md5_.html b/doc/Md5_.html index dfa9d84..c1dfaec 100644 --- a/doc/Md5_.html +++ b/doc/Md5_.html @@ -47,7 +47,7 @@
Version:
-
+
@@ -1483,7 +1483,7 @@ hash.update('The quick brown fox jumps over the lazy dog');
diff --git a/doc/global.html b/doc/global.html index e604767..8252cee 100644 --- a/doc/global.html +++ b/doc/global.html @@ -302,7 +302,7 @@ md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e
diff --git a/doc/index.html b/doc/index.html index 4cf683a..34e1756 100644 --- a/doc/index.html +++ b/doc/index.html @@ -204,7 +204,7 @@ Author: Chen, Yi-Cyuan (emn178@gmail.com)


diff --git a/doc/md5.hmac.html b/doc/md5.hmac.html index 81f1d2e..b2f590d 100644 --- a/doc/md5.hmac.html +++ b/doc/md5.hmac.html @@ -1741,7 +1741,7 @@ hash.update('The quick brown fox jumps over the lazy dog');
diff --git a/doc/md5.html b/doc/md5.html index 3560f97..943d049 100644 --- a/doc/md5.html +++ b/doc/md5.html @@ -1203,7 +1203,7 @@
diff --git a/doc/md5.js.html b/doc/md5.js.html index 61706d2..7ab0e80 100644 --- a/doc/md5.js.html +++ b/doc/md5.js.html @@ -30,7 +30,7 @@ * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 - * @version 0.9.0 + * @version 0.9.2 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2026 * @license MIT @@ -948,7 +948,7 @@
diff --git a/jsdoc.json b/jsdoc.json new file mode 100644 index 0000000..b61bbac --- /dev/null +++ b/jsdoc.json @@ -0,0 +1,7 @@ +{ + "templates": { + "default": { + "includeDate": false + } + } +} diff --git a/package.json b/package.json index da71aaf..3665bb1 100644 --- a/package.json +++ b/package.json @@ -46,12 +46,11 @@ "tiny-worker": "^2.3.0" }, "scripts": { - "test": "npm run compress && nyc mocha tests/node-test.js && node tests/build-test.js && node tests/esm-test.mjs", + "test": "nyc mocha tests/node-test.js && node tests/build-test.js && node tests/esm-test.mjs", "report": "nyc --reporter=html --reporter=text mocha tests/node-test.js", - "coveralls": "nyc report --reporter=text-lcov | coveralls", - "doc": "rm -rf doc;jsdoc src README.md -d doc", - "compress": "rollup -c", - "build": "npm run-script compress;npm run-script doc" + "coverage": "nyc report --reporter=text-lcov > coverage.lcov", + "doc": "rm -rf doc && jsdoc -c jsdoc.json src README.md -d doc", + "build": "rollup -c && npm run doc" }, "repository": { "type": "git",