Skip to content

Commit a76aefe

Browse files
kraenhansenclaude
andauthored
Update napi-rs: @napi-rs/cli 3.10.8 and latest napi crates in ferric-example (#479)
* ferric: update @napi-rs/cli to 3.10.8 Bump @napi-rs/cli from ~3.0.3 to ~3.10.8 and regenerate the ferric-example TypeScript declarations with the new version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GR8DCQmcDBsRJFfDwhy9qx * ferric-example: update napi-rs crates and drop napi-sys pin Bump napi to 3.14.2, napi-derive to 3.6.12 and napi-build to 2.6.0, and remove the direct napi-sys =3.0.1 pin added for #331. napi now depends on napi-sys with default-features = false and only enables its dyn-symbols feature through napi's own default features, which this crate already disables. The addon therefore links the Node-API symbols at link time (resolved by weak-node-api) rather than loading them from the host process. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GR8DCQmcDBsRJFfDwhy9qx * ci: trigger label-gated jobs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GR8DCQmcDBsRJFfDwhy9qx --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 75b189b commit a76aefe

6 files changed

Lines changed: 563 additions & 355 deletions

File tree

‎.changeset/napi-rs-cli-3-10.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ferric-cli": patch
3+
---
4+
5+
Update `@napi-rs/cli` to 3.10.8.

‎packages/ferric-example/Cargo.lock‎

Lines changed: 140 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/ferric-example/Cargo.toml‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,17 @@ license = "MIT"
88
crate-type = ["cdylib"]
99

1010
[dependencies.napi]
11-
version = "=3.4.0"
11+
version = "3.14.2"
1212
# see https://nodejs.org/api/n-api.html#node-api-version-matrix
1313
default-features = false
1414
features = ["napi3"]
1515

1616
[dependencies.napi-derive]
17-
version = "3.3.0"
17+
version = "3.6.12"
1818
features = ["type-def"]
1919

20-
# See https://github.com/callstackincubator/react-native-node-api/issues/331
21-
[dependencies.napi-sys]
22-
version = "=3.0.1"
23-
2420
[build-dependencies]
25-
napi-build = "2.2.4"
21+
napi-build = "2.6.0"
2622

2723
[profile.release]
2824
lto = true

‎packages/ferric-example/ferric_example.d.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
* Powered by napi.rs
99
*/
1010
/* eslint-disable */
11+
1112
export declare function sum(a: number, b: number): number

‎packages/ferric/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"start": "tsx src/run.ts"
2121
},
2222
"dependencies": {
23-
"@napi-rs/cli": "~3.0.3",
23+
"@napi-rs/cli": "~3.10.8",
2424
"@react-native-node-api/cli-utils": "workspace:*",
2525
"react-native-node-api": "workspace:*",
2626
"weak-node-api": "workspace:*"

0 commit comments

Comments
 (0)