Node.js v22.5 includes SQLite, but..

July 23, 2024 By Mark Otto 0

Node.js Weekly

Node.js v22.5.0 (Current) Released – But Don’t Install It! — A notable release for three reasons: first, the WebSocket feature in node:http is now exposed. Second, remember how Node is embedding SQLite? node:sqlite is now included and ready to play with. Third, however, v22.5.0 introduced a nasty bug, so you’ll want to try v22.5.1 instead.

Antoine du Hamel

Run GitHub Actions Up to 2x Faster at Half the Cost — Blacksmith runs your GitHub Actions substantially faster by running them on modern gaming CPUs. Integrating Blacksmith is a one-line code change. 100+ companies like GitBook, Superblocks, and Slope use Blacksmith to help developers merge code faster.

Blacksmith

Why is Spawning a New Process in Node So Slow? — The developers of the Val Town platform noticed that Node couldn’t spawn more than 40 external processes per second, whereas Deno and Bun could do a lot more. Are there ways to significantly improve this? Actually, yes!

Max McDonnell

A Practical Guide to Not Blocking the Event Loop — A look at the core principles of synchronous and asynchronous work in a single-threaded environment, stressing the importance of non-blocking code for efficient event loop utilization.

Slava Knyazev

Using pnpm on Heroku — If you’re using the Heroku platform, their Node.js buildpack now supports the pnpm package manager which offers significant disk space and installation time improvements.

Colin Casey (Heroku)

📰 Classifieds

The only production-ready AI-powered backend code generator. Jovu helps you build tested, robust backend services ready to go live.


🐘 Postgres user? Be sure to check out our sister newsletter, Postgres Weekly.

🛠 Code & Tools

MikroORM 6.3: Schema First? — If you’ve not had the pleasure of giving MikroORM, a TypeScript ORM for Node, a try, it’s well worth checking out. v6.3 brings even more polish to proceedings and introduces the option to use it in a ‘schema first’ style where entity definitions are created from the database.

Martin Adamek

  • 🤖 OpenAI Node v4.53.0 – The official Node library for OpenAI’s API adds support for their newest gpt-4o-mini model.

  • smol-toml 1.3 – Small, fast TOML parser and serializer. Now a dual-package with native ESM and a CJS single-file build.

  • exiftool-vendored 28.0 – Cross-platform access to ExifTool for managing metadata in multimedia files.

  • Poolifier 4.1 – Worker pools using worker_threads and cluster.

  • pnpm 9.6 – Fast, space efficient package manager.

  • file-type 19.3 – Detect the file type of a buffer.

  • np 10.0.7 – A better npm publish.