I noticed that the last release of Knex.js was back in December 2023, and I'm wondering if it's still actively maintained. I'm planning to start a project that I want to last for the next decade, and I'm looking for a solution that won't demand much maintenance over time. Would Knex.js be a suitable choice, or would it be wiser to stick with basic SQL queries instead?
4 Answers
There hasn't been much activity in Knex's changelog in the past few years. If you already have existing projects that use it, it's probably okay, but for something new, I’d suggest looking into basic SQL or exploring other tools like Sequelize, Prisma, or TypeORM.
I'd go for Kysely or Drizzle, especially if you’re using TypeScript. Kysely feels more like writing SQL, while Drizzle offers a lighter ORM experience. Just a heads up, Sequelize seems to be pretty stagnant nowadays.
Don’t forget that Knex can handle basic SQL if needed! When building something for the long haul, I lean towards using simpler, more stable tech. Basic SQL is super reliable and Knex feels just as solid, so either could work for your project.
From what I've heard, Knex.js isn't really maintained anymore. If you want something low-maintenance for a long time, you might be better off going with basic SQL or a minimal library that won't require regular updates.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically