Pekka Enberg
976403b080
bindings/javascript: Add TypeScript declarations to package
...
Fixes #2621
2025-08-19 12:34:49 +03:00
Pekka Enberg
3a72b478d2
Turso 0.1.4-pre.9
2025-08-18 12:55:45 +03:00
Pekka Enberg
a6247e891f
Turso 0.1.4-pre.8
2025-08-12 19:51:42 +03:00
Pekka Enberg
5a65617602
Turso 0.1.4-pre.7
2025-08-12 17:01:47 +03:00
Pekka Enberg
81da795a66
Turso 0.1.4-pre.6
2025-08-08 16:50:24 +03:00
Pekka Enberg
ba88d17f29
Turso 0.1.4-pre.5
2025-08-08 13:49:06 +03:00
Pekka Enberg
f2b2e4d4d8
Rename JavaScript package to @tursodatabase/database
2025-08-08 13:22:10 +03:00
Pekka Enberg
ad70157e74
Turso 0.1.4-pre.4
2025-08-08 11:54:26 +03:00
Pekka Enberg
5b578dd790
bindings/javascript: Fix "npm publish" to build the package
2025-08-08 11:53:58 +03:00
Pekka Enberg
8d5fb41f5d
Turso 0.1.4-pre.3
2025-08-08 10:42:41 +03:00
Pekka Enberg
f7eb6c2cee
Turso v0.1.4-pre.3
2025-08-08 10:42:38 +03:00
Nikita Sivukhin
eec679b00b
fix package.json one more time
2025-08-08 10:34:11 +04:00
Pekka Enberg
5ef58db941
bindings/javascript: Fix npm run build
...
Fixes the following error:
```
This is not the tsc command you are looking for
To get access to the TypeScript compiler, tsc, from the command line either:
- Use npm install typescript to first add TypeScript to your project before using npx
- Use yarn to avoid accidentally running code from un-installed packages
```
2025-08-08 09:22:31 +03:00
Nikita Sivukhin
ba6bf7057e
fix package.json
2025-08-08 09:59:52 +04:00
Nikita Sivukhin
9b892828eb
fix package.json
2025-08-08 01:01:40 +04:00
Nikita Sivukhin
dd347fb3e3
simplify setup by emiting index.js in ESM style from napi
2025-08-08 00:47:37 +04:00
Nikita Sivukhin
d1cd294e94
setup dual publish for commonjs/esm modules and properly route browser/node usages to the correct napi binary entrypoint
2025-08-07 16:28:02 +04:00
Pekka Enberg
2913dc4dd4
Turso 0.1.4-pre.2
2025-08-06 10:52:32 +03:00
Pekka Enberg
a51c35c979
bindings/javascript: Fix silly typo in package.json
2025-08-01 16:04:59 +03:00
Pekka Enberg
994a0e0852
Turso 0.1.4-pre.1
2025-08-01 13:38:12 +03:00
Pekka Enberg
845fc13d6e
bindings/javascript: Remove test suite
...
We have `testing/javascript` to test both the native bindings and
serverless driver, so let's use that instead.
2025-08-01 12:09:05 +03:00
Pekka Enberg
02db72cc2c
Implement JavaScript bindings with minimal Rust core
...
This rewrites the JavaScript bindings completely by exposing only
primitive operations from Rust NAPI-RS code. For example, there is
prepare(), bind(), and step(), but high level interfaces like all() and
get() are implemented in JavaScript.
We're doing this so that we can implement async interfaces in the
JavaScript layer instead of having to bring in Tokio.
2025-08-01 09:03:14 +03:00
Diego Reis
a35a490188
Force ava tests to run serially
2025-07-29 11:05:37 -03:00
Pekka Enberg
795081b868
binding/javascript: Promise API by default
...
The JavaScript API is promise-based by default, but with a `sync`
variant that tracks `better-sqlite3` API for compatibility.
2025-07-29 14:32:37 +03:00
Pekka Enberg
94dc780669
Turso 0.1.3
2025-07-29 12:37:18 +03:00
Pekka Enberg
2d2f416e2c
Revert "bindings/javascript: Add optional dependencies"
...
This reverts commit 9d7a77efde . It does
not work because the native packages don't yet exists at that point.
Let's fix the Github workflows instead.
2025-07-29 12:36:12 +03:00
Pekka Enberg
a4737f82bc
Turso 0.1.3-pre.10
2025-07-29 12:16:02 +03:00
Pekka Enberg
9d7a77efde
bindings/javascript: Add optional dependencies
2025-07-29 12:15:43 +03:00
Pekka Enberg
4f4d321822
Turso 0.1.3-pre.9
2025-07-29 10:58:09 +03:00
Pekka Enberg
ae91a4ab6b
bindings/javascript: Add index.js and sqlite3-error.js to package
...
...won't work without them...
2025-07-29 10:57:36 +03:00
Pekka Enberg
a254f0ecaa
Turso 0.1.3-pre.8
2025-07-29 10:13:30 +03:00
Pekka Enberg
04e7d45ac3
Turso 0.1.3-pre.7
2025-07-29 09:15:03 +03:00
Diego Reis
738dec0a72
Address PR's comments
...
https://github.com/tursodatabase/turso/pull/2307
2025-07-28 17:07:34 -03:00
Diego Reis
98bec9868b
Remove wasm binding
...
With napi v3 we can compile our javascript binding to wasm, which can
reduce a lot of maintenance overhead and complexity
2025-07-28 14:48:51 -03:00
Pekka Enberg
016c84ed7d
Turso 0.1.3-pre.6
2025-07-28 20:21:24 +03:00
Pekka Enberg
c7996652fe
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
2025-07-25 20:19:37 +03:00
Diego Reis
0f95cf7751
bind/js: Switch to napi v3
2025-07-25 11:45:57 -03:00
Pekka Enberg
76cf3444c6
Turso 0.1.3-pre.5
2025-07-25 13:24:33 +03:00
Pekka Enberg
5018f0b7cb
Turso 0.1.3-pre.4
2025-07-24 19:12:28 +03:00
Pekka Enberg
16958f1a44
Turso 0.1.3-pre.3
2025-07-19 08:44:22 +03:00
Pekka Enberg
b03b06107b
Turso 0.1.3-pre.2
2025-07-16 20:08:46 +03:00
Pekka Enberg
93634d56ba
Turso 0.1.3-pre.1
2025-07-16 13:16:57 +03:00
Pekka Enberg
b7db07cf2d
Turso 0.1.2
2025-07-15 11:01:25 +03:00
Pekka Enberg
03d170ca05
Turso 0.1.2-pre.4
2025-07-14 13:21:41 +03:00
Pekka Enberg
c454feeba4
Turso 0.1.2-pre.3
2025-07-13 12:55:02 +03:00
Pekka Enberg
474c1bff3b
Turso 0.1.2-pre.2
2025-07-10 10:10:52 +03:00
Pekka Enberg
943793a571
Turso 0.1.2-pre.1
2025-07-09 09:27:31 +03:00
Pekka Enberg
cf47097f45
Turso v0.1.2-pre.1
2025-07-09 09:27:25 +03:00
Mikaël Francoeur
50d542b719
expose wrapper and use default import
2025-07-03 15:19:03 -04:00
Pekka Enberg
f75034c8e0
Turso 0.1.1
2025-06-30 23:58:04 +03:00