diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d838ec58..2b952364 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -181,13 +181,9 @@ jobs: path: bindings/node/artifacts pattern: bindings-* - - name: Create npm// scaffolding (one per target) - working-directory: bindings/node - run: | - for t in x86_64-unknown-linux-gnu x86_64-apple-darwin aarch64-apple-darwin x86_64-pc-windows-msvc; do - npx napi create-npm-dir -t "$t" . - done - + # The npm//package.json templates are committed to the + # repo (see bindings/node/npm/), so `napi artifacts` only needs to + # drop the freshly built .node binary into the matching directory. - name: Move binaries into platform package layout working-directory: bindings/node run: npx napi artifacts --dir artifacts diff --git a/Cargo.lock b/Cargo.lock index 837b9c13..4c38ff55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1883,7 +1883,7 @@ dependencies = [ [[package]] name = "wickra" -version = "0.1.1" +version = "0.1.2" dependencies = [ "approx", "criterion", @@ -1894,7 +1894,7 @@ dependencies = [ [[package]] name = "wickra-core" -version = "0.1.1" +version = "0.1.2" dependencies = [ "approx", "proptest", @@ -1904,7 +1904,7 @@ dependencies = [ [[package]] name = "wickra-data" -version = "0.1.1" +version = "0.1.2" dependencies = [ "approx", "csv", @@ -1922,7 +1922,7 @@ dependencies = [ [[package]] name = "wickra-node" -version = "0.1.1" +version = "0.1.2" dependencies = [ "napi", "napi-build", @@ -1932,7 +1932,7 @@ dependencies = [ [[package]] name = "wickra-python" -version = "0.1.1" +version = "0.1.2" dependencies = [ "numpy", "pyo3", @@ -1941,7 +1941,7 @@ dependencies = [ [[package]] name = "wickra-wasm" -version = "0.1.1" +version = "0.1.2" dependencies = [ "console_error_panic_hook", "js-sys", diff --git a/Cargo.toml b/Cargo.toml index 2e648109..a9b0936d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ members = [ exclude = [] [workspace.package] -version = "0.1.1" +version = "0.1.2" authors = ["Wickra Contributors"] edition = "2021" rust-version = "1.75" @@ -23,7 +23,7 @@ keywords = ["finance", "trading", "indicators", "technical-analysis", "ta"] categories = ["finance", "mathematics", "science"] [workspace.dependencies] -wickra-core = { path = "crates/wickra-core", version = "0.1.1" } +wickra-core = { path = "crates/wickra-core", version = "0.1.2" } thiserror = "2" rayon = "1.10" diff --git a/bindings/node/npm/darwin-arm64/package.json b/bindings/node/npm/darwin-arm64/package.json new file mode 100644 index 00000000..49181c62 --- /dev/null +++ b/bindings/node/npm/darwin-arm64/package.json @@ -0,0 +1,24 @@ +{ + "name": "wickra-darwin-arm64", + "version": "0.1.2", + "description": "Native binding for wickra (macOS Apple Silicon). Installed automatically as an optional dependency of wickra on matching platforms.", + "main": "wickra.darwin-arm64.node", + "files": [ + "wickra.darwin-arm64.node" + ], + "license": "SEE LICENSE IN LICENSE", + "engines": { + "node": ">= 16" + }, + "os": [ + "darwin" + ], + "cpu": [ + "arm64" + ], + "repository": { + "type": "git", + "url": "https://github.com/kingchenc/wickra" + }, + "homepage": "https://github.com/kingchenc/wickra" +} diff --git a/bindings/node/npm/darwin-x64/package.json b/bindings/node/npm/darwin-x64/package.json new file mode 100644 index 00000000..2cd30681 --- /dev/null +++ b/bindings/node/npm/darwin-x64/package.json @@ -0,0 +1,24 @@ +{ + "name": "wickra-darwin-x64", + "version": "0.1.2", + "description": "Native binding for wickra (macOS Intel). Installed automatically as an optional dependency of wickra on matching platforms.", + "main": "wickra.darwin-x64.node", + "files": [ + "wickra.darwin-x64.node" + ], + "license": "SEE LICENSE IN LICENSE", + "engines": { + "node": ">= 16" + }, + "os": [ + "darwin" + ], + "cpu": [ + "x64" + ], + "repository": { + "type": "git", + "url": "https://github.com/kingchenc/wickra" + }, + "homepage": "https://github.com/kingchenc/wickra" +} diff --git a/bindings/node/npm/linux-x64-gnu/package.json b/bindings/node/npm/linux-x64-gnu/package.json new file mode 100644 index 00000000..2bc52414 --- /dev/null +++ b/bindings/node/npm/linux-x64-gnu/package.json @@ -0,0 +1,27 @@ +{ + "name": "wickra-linux-x64-gnu", + "version": "0.1.2", + "description": "Native binding for wickra (linux x64 GNU). Installed automatically as an optional dependency of wickra on matching platforms.", + "main": "wickra.linux-x64-gnu.node", + "files": [ + "wickra.linux-x64-gnu.node" + ], + "license": "SEE LICENSE IN LICENSE", + "engines": { + "node": ">= 16" + }, + "os": [ + "linux" + ], + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "repository": { + "type": "git", + "url": "https://github.com/kingchenc/wickra" + }, + "homepage": "https://github.com/kingchenc/wickra" +} diff --git a/bindings/node/npm/win32-x64-msvc/package.json b/bindings/node/npm/win32-x64-msvc/package.json new file mode 100644 index 00000000..c7a0c893 --- /dev/null +++ b/bindings/node/npm/win32-x64-msvc/package.json @@ -0,0 +1,24 @@ +{ + "name": "wickra-win32-x64-msvc", + "version": "0.1.2", + "description": "Native binding for wickra (Windows x64 MSVC). Installed automatically as an optional dependency of wickra on matching platforms.", + "main": "wickra.win32-x64-msvc.node", + "files": [ + "wickra.win32-x64-msvc.node" + ], + "license": "SEE LICENSE IN LICENSE", + "engines": { + "node": ">= 16" + }, + "os": [ + "win32" + ], + "cpu": [ + "x64" + ], + "repository": { + "type": "git", + "url": "https://github.com/kingchenc/wickra" + }, + "homepage": "https://github.com/kingchenc/wickra" +} diff --git a/bindings/node/package.json b/bindings/node/package.json index 3959b916..82edecdc 100644 --- a/bindings/node/package.json +++ b/bindings/node/package.json @@ -1,6 +1,6 @@ { "name": "wickra", - "version": "0.1.1", + "version": "0.1.2", "description": "Streaming-first technical indicators: incremental, fast, install-free. Node bindings powered by Rust.", "author": "kingchenc ", "main": "index.js", @@ -44,6 +44,12 @@ "engines": { "node": ">= 16" }, + "optionalDependencies": { + "wickra-linux-x64-gnu": "0.1.2", + "wickra-darwin-x64": "0.1.2", + "wickra-darwin-arm64": "0.1.2", + "wickra-win32-x64-msvc": "0.1.2" + }, "scripts": { "build": "napi build --platform --release", "build:debug": "napi build --platform", diff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml index bb23ce3e..71aed6fd 100644 --- a/bindings/python/pyproject.toml +++ b/bindings/python/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "wickra" -version = "0.1.1" +version = "0.1.2" description = "Streaming-first technical indicators: incremental, fast, install-free." readme = "README.md" license = { text = "PolyForm-Noncommercial-1.0.0" }