Skip to content

Migrate JavaScript FFI dependencies to node:sqlite#28

Open
Comamoca wants to merge 8 commits intolpil:mainfrom
Comamoca:feature/node-sqlite
Open

Migrate JavaScript FFI dependencies to node:sqlite#28
Comamoca wants to merge 8 commits intolpil:mainfrom
Comamoca:feature/node-sqlite

Conversation

@Comamoca
Copy link
Copy Markdown

Changing the library used for JavaScript FFI to node:sqlite.
With this change, sqlight will be compatible with both Deno and Node.js.

This library relies on a fix merged in Deno v2.6.4, so you must use Deno version 2.6.4 or higher when running it.

Additionally, since Node.js is now a supported runtime, I have added commands to GitHub Actions to execute tests using Node.js.

close #21

Copy link
Copy Markdown
Owner

@lpil lpil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brilliant, thank you!

Could you rebase on main and update the code to remove the use of private FFI APIs please 🙏

@lpil lpil marked this pull request as draft February 5, 2026 15:24
@Comamoca Comamoca force-pushed the feature/node-sqlite branch from 52c616f to ab22d2e Compare February 28, 2026 04:41
@Comamoca
Copy link
Copy Markdown
Author

Comamoca commented Mar 9, 2026

@lpil
Sorry for the delayed response.
I have rebased onto main and removed the nodes that were using the private FFI.

@lpil
Copy link
Copy Markdown
Owner

lpil commented Mar 15, 2026

Is this ready for a review? If so, please press the "ready for review" button and tag me 🙏

@Comamoca Comamoca marked this pull request as ready for review March 21, 2026 07:53
@Comamoca
Copy link
Copy Markdown
Author

@lpil
Thank you for your patience.
I have completed the review preparation, and I would appreciate your feedback.

@Comamoca
Copy link
Copy Markdown
Author

Comamoca commented Apr 9, 2026

@lpil
I have modified BitArray and SlightError to be called via JS FFI instead of direct class calls.
Additionally, since BitArray FFI is supported in Gleam 1.15 and later, I have updated the target Gleam version to 1.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider using node:sqlite

2 participants