4a12f60a88
* ci: test the Node binding on the 22/24 LTS (18/20 are EOL) Node 18 is EOL and 20 reaches EOL; move the binding CI matrix from [18, 20] to [22, 24] (both LTS), bump the fixed Node setups in ci.yml/release.yml to 22, and raise package.json engines to >= 20. The N-API 8 binary is ABI-stable across Node versions, so no per-version build is needed. The `npm test` script (`node --test __tests__/`) breaks on Node 22 — it resolves `__tests__` as a module — so switch to `node --test` (auto- discovery). Verified locally on Node 22: build + 584 tests green. * build(node): sync package-lock engines.node to >= 20 * ci(node): drop the __tests__/ path arg so node --test auto-discovers On Node 22+, `node --test __tests__/` resolves the directory as a single module and fails with one unrunnable subtest. `node --test` (no path) auto-discovers every *.test.js under the package, matching the package.json test script. Verified locally: 584 tests pass.
70 lines
1.6 KiB
JSON
70 lines
1.6 KiB
JSON
{
|
|
"name": "wickra",
|
|
"version": "0.9.0",
|
|
"description": "Streaming-first technical indicators: incremental, fast, install-free. Node bindings powered by Rust.",
|
|
"author": "kingchenc <support@wickra.org>",
|
|
"main": "index.js",
|
|
"types": "index.d.ts",
|
|
"license": "MIT OR Apache-2.0",
|
|
"keywords": [
|
|
"trading",
|
|
"indicators",
|
|
"technical-analysis",
|
|
"ta-lib",
|
|
"finance",
|
|
"streaming",
|
|
"rust"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/wickra-lib/wickra"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/wickra-lib/wickra/issues"
|
|
},
|
|
"homepage": "https://github.com/wickra-lib/wickra",
|
|
"files": [
|
|
"index.js",
|
|
"index.d.ts",
|
|
"npm",
|
|
"*.node"
|
|
],
|
|
"napi": {
|
|
"name": "wickra",
|
|
"triples": {
|
|
"defaults": false,
|
|
"additional": [
|
|
"x86_64-unknown-linux-gnu",
|
|
"aarch64-unknown-linux-gnu",
|
|
"x86_64-apple-darwin",
|
|
"aarch64-apple-darwin",
|
|
"x86_64-pc-windows-msvc",
|
|
"aarch64-pc-windows-msvc"
|
|
]
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">= 20"
|
|
},
|
|
"optionalDependencies": {
|
|
"wickra-linux-x64-gnu": "0.9.0",
|
|
"wickra-linux-arm64-gnu": "0.9.0",
|
|
"wickra-darwin-x64": "0.9.0",
|
|
"wickra-darwin-arm64": "0.9.0",
|
|
"wickra-win32-x64-msvc": "0.9.0",
|
|
"wickra-win32-arm64-msvc": "0.9.0"
|
|
},
|
|
"scripts": {
|
|
"build": "napi build --platform --release",
|
|
"build:debug": "napi build --platform",
|
|
"artifacts": "napi artifacts",
|
|
"universal": "napi universal",
|
|
"version": "napi version",
|
|
"test": "node --test",
|
|
"bench": "node benchmarks/throughput.js"
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "^2.18.0"
|
|
}
|
|
}
|