-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Deno packaging and add example to CI #297
base: main
Are you sure you want to change the base?
Conversation
Sorry bro, I got tired of trying things, if you want I'll leave the repository here, it currently works remotely, but not locally. |
Yeah, I think this would be nice to see land. An alternative implementation (if we wanted to avoid ffi) would be to use |
Hey @kj-9! Why is this pull request in draft mode? |
@penberg It'd be awesome if you could take a look at this. |
@notrab I am fine with this, please have a look. |
@penberg @kj-9 @edard3v @zephraph this looks fine to me, although I did want to check that there could be no unintended side effects by using the If there's no pushback from anyone else on this, let's merge and release. |
The imports are fine. The one thing I'm still thinking on is the |
Yeah, so this is unfortunately a breaking change and there's not an easy way I can see to get around it. @kj-9 enumerated some of the challenges in the original issue. If FFI is denied then the module will throw an exception. In existing deployments that rely on it (deno deploy, val.town, etc) that don't (or can't) provide FFI that'll render the module unusable. The ideal case here would be that the web path should still work if FFI isn't enabled. @kj-9 pointed out conditional imports, which would also be a breaking change because it would indeed make |
Greetings! I don't know if I understood correctly. Does it already work locally with Deno? I'm currently on Neon so I haven't tried it. If there's a green light, I might switch. |
Hi folks, thanks for the comments!
|
It's a shame. Well, hopefully one day you can use Turso in Deno. Thanks |
@edard3v you can? Just not local file with the libsql client. Turso works over HTTP, so you should have no problems communicating with Turso using a remote database. |
I am having same issue. is there a way we can use local db with this SDK in deno. Thanks |
You can directly import the node version: |
refs #138
changes:
:memory:
by simply usinglib-esm/node.js
instead of./lib-esm/web.js
enables:
:memory:
as node.jsdownside:
--allow-ffi
flag to run sincelib-esm/node.js
imports createClient function from sqlite3