From 591b2475bd05d306d4dff54ddf49f02cb1ffad81 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 8 Apr 2026 14:39:45 +0200 Subject: [PATCH 1/3] Use @napi-ffi/ref-napi instead of unmaintained ref-napi package --- templates/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/package.json b/templates/package.json index 109c146..1907648 100644 --- a/templates/package.json +++ b/templates/package.json @@ -6,7 +6,7 @@ }, "dependencies": { "ffi-rs": "^1.3.0", - "ref-napi": "^3.0.3", + "@napi-ffi/ref-napi": "3.0.7", "uniffi-bindgen-react-native": "^0.29.3-1" }, {% if let LibPath::Modules(mods) = out_lib_path -%} From 37a05e7143c419440944914ff106364537e4c5f0 Mon Sep 17 00:00:00 2001 From: Ryan Gaus Date: Wed, 8 Apr 2026 12:17:50 -0400 Subject: [PATCH 2/3] fix: remove ref-napi from bindgen This isn't currently being used now, and if a downstream package needs it, then it should include it separately rather than relying on a bundled version in here. --- templates/package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/package.json b/templates/package.json index 1907648..917d949 100644 --- a/templates/package.json +++ b/templates/package.json @@ -6,7 +6,6 @@ }, "dependencies": { "ffi-rs": "^1.3.0", - "@napi-ffi/ref-napi": "3.0.7", "uniffi-bindgen-react-native": "^0.29.3-1" }, {% if let LibPath::Modules(mods) = out_lib_path -%} @@ -18,7 +17,6 @@ }, {%- endif %} "devDependencies": { - "@types/node": "{{out_node_version}}", - "@types/ref-napi": "^3.0.12" + "@types/node": "{{out_node_version}}" } } From c0087c660288c7c4fe2e3dbcba59cf0843d711ba Mon Sep 17 00:00:00 2001 From: Ryan Gaus Date: Wed, 8 Apr 2026 12:47:21 -0400 Subject: [PATCH 3/3] fix: bump to 0.1.5 --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a98f074..2fbbe54 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -753,7 +753,7 @@ dependencies = [ [[package]] name = "uniffi-bindgen-node" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "askama 0.14.0", diff --git a/Cargo.toml b/Cargo.toml index 3f079fa..9fc3c9d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uniffi-bindgen-node" -version = "0.1.4" +version = "0.1.5" edition = "2024" [dependencies]