From 21532a65f1dc30411a77fac12cca9f024cf39921 Mon Sep 17 00:00:00 2001 From: Dmitry Dygalo Date: Sat, 26 Jul 2025 18:02:38 +0200 Subject: [PATCH] chore(javascript): Update `napi` to `3` Signed-off-by: Dmitry Dygalo --- bindings/javascript/Cargo.toml | 6 +++--- bindings/javascript/index.d.ts | 23 +++++++++++++---------- bindings/javascript/package.json | 6 +++--- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/bindings/javascript/Cargo.toml b/bindings/javascript/Cargo.toml index aa79e1cd..f1af8e42 100644 --- a/bindings/javascript/Cargo.toml +++ b/bindings/javascript/Cargo.toml @@ -22,8 +22,8 @@ mimalloc = "0.1" mimalloc = { version = "0.1", features = ["local_dynamic_tls"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -napi = { version = "2.16.0", default-features = false, features = ["napi4"] } -napi-derive = "2.16.0" +napi = { version = "3.1.3", default-features = false, features = ["napi4"] } +napi-derive = "3.1.0" [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen = "=0.2.100" @@ -43,7 +43,7 @@ version = "*" default-features = false [build-dependencies] -napi-build = "2.1.0" +napi-build = "2.2.0" [profile.release] lto = true diff --git a/bindings/javascript/index.d.ts b/bindings/javascript/index.d.ts index caeb9e8d..feb181c5 100644 --- a/bindings/javascript/index.d.ts +++ b/bindings/javascript/index.d.ts @@ -1,12 +1,11 @@ -/* tslint:disable */ +/* auto-generated by NAPI-RS */ /* eslint-disable */ +/** Inline CSS styles from