### Added

- GitHub Actions CI across Node.js 18, 20, 22, and 24 against the packed npm artifact
- GitHub Actions publish workflow on release with npm trusted publishing
- `prepack` script to build distributions before `npm pack` / `npm publish`

### Changed
- Replace Travis CI with GitHub Actions
- Update README badges to GitHub Actions, npm, and jsDelivr
- Upgrade mocha and pin vulnerable transitive dependencies via npm overrides
This commit is contained in:
Yi-Cyuan Chen
2026-08-07 08:31:31 +08:00
parent a67f74cf2c
commit 59d5441220
8 changed files with 1074 additions and 1137 deletions
+11 -4
View File
@@ -22,17 +22,20 @@
"@rollup/plugin-commonjs": "^28.0.5",
"@rollup/plugin-terser": "^1.0.0",
"expect.js": "~0.3.1",
"mocha": "^11.7.6",
"nyc": "^15.1.0",
"mocha": "^11.8.0",
"nyc": "^18.0.0",
"rollup": "^4.43.0",
"tiny-worker": "^2.3.0",
"uglify-js": "^3.1.9"
},
"scripts": {
"test": "nyc mocha tests/node-test.js",
"test": "npm run build && npm run test:coverage",
"test:runtime": "mocha tests/node-test.js",
"test:coverage": "nyc --reporter=text --reporter=html --reporter=lcov mocha tests/node-test.js",
"report": "nyc --reporter=html --reporter=text mocha tests/node-test.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"build": "rollup -c && uglifyjs src/sha3.js -c -m --comments --output build/sha3.min.js"
"build": "rollup -c && uglifyjs src/sha3.js -c -m --comments --output build/sha3.min.js",
"prepack": "npm run build"
},
"repository": {
"type": "git",
@@ -61,5 +64,9 @@
"exclude": [
"tests"
]
},
"overrides": {
"diff": "^8.0.3",
"serialize-javascript": "^7.0.7"
}
}