Files
wickra/bindings/node/package.json
T
kingchenc 025d453293 deps(node): migrate the Node binding to napi-rs 3 (#347)
Bumps napi 2.16 -> 3.9 and napi-derive 2.16 -> 3.5 (cargo) and @napi-rs/cli
2.18 -> 3.7 (npm). napi 3's derive macros emit #[allow(unsafe_code)], which the
workspace-wide forbid(unsafe_code) cannot permit, so the Node crate gets its own
[lints] block mirroring the workspace with unsafe_code relaxed to deny — forbid
stays in force for every other crate. The CLI-3-regenerated index.d.ts / index.js
keep the identical 626-symbol public API (only the codegen format changed). MSRV
stays 1.88 (napi 3.9 requires exactly that); ureq is intentionally left at 2.x.
Verified locally: cargo clippy clean, 1108/1108 Node tests pass.

Supersedes the napi half of the cargo group bump and the @napi-rs/cli npm bump.
2026-06-28 00:45:38 +02:00

70 lines
1.6 KiB
JSON

{
"name": "wickra",
"version": "0.9.7",
"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": ">= 22"
},
"optionalDependencies": {
"wickra-linux-x64-gnu": "0.9.7",
"wickra-linux-arm64-gnu": "0.9.7",
"wickra-darwin-x64": "0.9.7",
"wickra-darwin-arm64": "0.9.7",
"wickra-win32-x64-msvc": "0.9.7",
"wickra-win32-arm64-msvc": "0.9.7"
},
"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": "^3.7.2"
}
}