Open airone01 opened 8 months ago
Nice issue and totally agree on it, I'm also bothered as hell concerning node-gyp
but wasn't doubting this was as bad as this.
The thoughts i've had so far:
sqlite
library which, iirc, doesn't relies on node-gyp
.The thing now is to to weigh the pros and cons of this change, as better-sqlite3
still brings big improvments over the basic sqlite
lib.
Keep having newcomers that are somewhat blocked at the very init step, which is not acceptable.
Solution for now:
sqlite
database type by defaultbetter-sqlite3
library from the dependenciessqlite
to better-sqlite
for the determinedWe should apply this quickly in a v2.4 release, while shifting the current planned features/issues in the 2.5.
node-gyp
sucksMultiple reasons to refractor the app and remove
node-gyp
:better-sqlite3
package relies onnode-gyp
which makes it not usable with Bun at all.Possible solutions
Aside from my rant, the solutions I looked up were:
better-sqlite3
when in an Node environment (which is hard to detect, see no. 7 above) because, well, it worksbun:sqlite
module when in a Bun environmentCounter-arguments to what I just said
See "Bun hype. How we learned nothing from Yarn"
v1
was released@barthofu do what you want with this issue mate, maybe we can make it an actual tracker (and also remove the bug tag pls 👍)