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
8adc807cd7
Merge 'Change function signatures to return IO Completions' from Pedro Muniz
...
Changes a couple of function signatures to return `Completion`. Also, I
changed `Completion` to be internally `Arc` to abstract the `Arc`
implementation detail, and to be able to attach a `#[must_use]` to the
`Completion` struct, so that cargo check can show us where we are not
tracking completions in the code. I also attached a `#[must_use]` to
`IOResult` so that we can see the places that we are not propagating or
waiting for I/O, demonstrating locations where functions should be
reentrant and are not.
Also, while we are with this refactor in progress I want to relax the
Clippy CI lint on unused_variables.
Closes #2309
2025-07-29 12:41:14 +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
57a8c46560
bindings/javascript: Generate native npm packages at publish
...
Use the `napi create-npm-dirs` command to create the native packages and
remove the manually created ones. Unlocks wasm publish.
2025-07-29 10:00:06 +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
pedrocarlo
3831e0db39
convert must_use compile warnings to unused_variables to track locations where we need to refactor in the future
2025-07-28 16:09:26 -03:00
pedrocarlo
d30c7d54c8
change all Arc<Completion> to Completion
2025-07-28 15:32:45 -03:00
pedrocarlo
7789c569a0
make Completion implementation contain an inner Arc<CompletionInner> so that we can must_use the Completion struct
2025-07-28 15:31:42 -03:00
pedrocarlo
3104e3fee5
adjust DatabaseStorage trait to return completions
2025-07-28 15:31:42 -03:00
Diego Reis
bab10909c3
Disable extension loading for wasm
...
We should enable it later when wasm become more mature
2025-07-28 14:49:07 -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
edbbeefed5
bindings/javascript: Fix Database.close()
...
We need to drop reference to `turso_core::Database` for this to work.
2025-07-28 19:13:53 +03:00
Levy A.
cbb618f0ad
feat(javascript): add tracing_subscriber
2025-07-27 21:24:39 -03:00
Levy A.
dda5fc22ee
refactor(javascript): simplify SqliteError
2025-07-27 21:24:39 -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
f10723779d
bindings/javascript: Add Drizzle example
2025-07-22 10:35:30 +03:00
Pekka Enberg
16958f1a44
Turso 0.1.3-pre.3
2025-07-19 08:44:22 +03:00
Jussi Saurio
1f55726acf
claude sonnet forgot to run clippy when implementing mcp server
2025-07-18 17:15:39 +03:00
Pekka Enberg
81d386d6c4
Merge 'bindings/js: support iterator, and more kinds of params' from Mikaël Francoeur
...
This PR fixes 3 tests that check param binding and iteration.
-----
as part of https://github.com/tursodatabase/turso/issues/1900
Closes #2097
2025-07-18 16:25:01 +03:00
pedrocarlo
dc5f73887e
refactor to require Arc<Completion> in file traits so that we can delay IO calls correctly
2025-07-17 12:24:43 -03:00
Mikaël Francoeur
cf13911839
support more params format and iterable
2025-07-17 09:46:15 -04:00
Diego Reis
21882d1db3
bind/js: Fix presentation mode disabling logic
2025-07-16 15:07:12 -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
Jussi Saurio
0ab0af912c
Merge 'bindings/js: fix more tests' from Mikaël Francoeur
...
Six more tests passing on Turso. The commits can be reviewed separately.
Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com >
Closes #2085
2025-07-15 12:17:15 +03:00
Pekka Enberg
b7db07cf2d
Turso 0.1.2
2025-07-15 11:01:25 +03:00
Mikaël Francoeur
68134fa186
support named bind parameters
2025-07-14 15:36:12 -04:00
Mikaël Francoeur
093140d84c
throw on empty statement
2025-07-14 15:28:07 -04:00
Mikaël Francoeur
e25064959b
return info object
2025-07-14 14:35:48 -04:00
Mikaël Francoeur
99614a3c7c
support open property
2025-07-14 14:03:57 -04: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
Jussi Saurio
a48b6d049a
Another post-rebase clippy round with 1.88.0
2025-07-12 19:10:56 +03:00
Nils Koch
1a91966c7e
fix clippy errors for rust 1.88.0 (manual fix)
2025-07-12 18:58:55 +03:00
Pekka Enberg
474c1bff3b
Turso 0.1.2-pre.2
2025-07-10 10:10:52 +03:00
Pekka Enberg
6b4dda8b9b
Merge 'bindings/javascript: Improve error handling compatibility with better-sqlite3' from Mikaël Francoeur
...
This PR brings the error handling of the js bindings one step closer to
better-sqlite3. There is still some work left for the error handling to
be 100% compatible.
This is my first non-trivial Rust PR, so if you have any comments that
can help me improve, please leave them on the PR.
-----
as part of https://github.com/tursodatabase/turso/issues/1900
Reviewed-by: Diego Reis (@el-yawd)
Closes #2009
2025-07-09 12:16:28 +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