Merge 'bindings/javascript: Switch to napi v3' from Diego Reis

Switch to napi [v3](https://napi.rs/blog/announce-v3).
With the exception of `Statement.iterate()`,  the behavior is preserved.
I had to temporarily remove it because the trait `Generator` doesn't
supports the new lifetime scoped values, I already brought this issue in
napi's discord server and it should be fixed soon.

Closes #2262
This commit is contained in:
Pekka Enberg
2025-07-25 20:19:37 +03:00
15 changed files with 3821 additions and 2166 deletions

View File

@@ -9,20 +9,16 @@
"main": "wrapper.js",
"types": "index.d.ts",
"napi": {
"name": "turso",
"release": false,
"triples": {
"defaults": false,
"additional": [
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"universal-apple-darwin"
]
}
"binaryName": "turso",
"targets": [
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"universal-apple-darwin"
]
},
"license": "MIT",
"devDependencies": {
"@napi-rs/cli": "^2.18.4",
"@napi-rs/cli": "^3.0.4",
"ava": "^6.0.1",
"better-sqlite3": "^11.9.1"
},
@@ -38,8 +34,8 @@
"build:debug": "napi build --platform",
"prepublishOnly": "napi prepublish -t npm",
"test": "ava",
"universal": "napi universal",
"universal": "napi universalize",
"version": "napi version"
},
"packageManager": "yarn@4.6.0"
}
"packageManager": "yarn@4.9.2"
}