#​532 — May 14, 2024

Read on the Web

Execa 9.0: The Better

1
child_process

Gets Even Better — Less shell-oriented than zx,

1
execa

focuses on making executing external commands secure, cross-platform, and easy to debug. v9 lets you make commands iterable so you can process their output on the fly, map/filter both input and output, pipe multiple commands, and more. GitHub repo.

ehmickey, Sorhus, et al.

💡 They’ve also put together a page comparing bash, Execa, and zx so you can get a better feel for the differences and see more code examples.

Secure M2M Authentication and Authorization in Node.js — Learn how to implement the OAuth 2.0 client credentials grant flow for secure machine-to-machine (M2M) authentication in Node.js with Stytch. Plus, get started with 1,000 M2M tokens free.

Stytch sponsor

Node v20.13.0 (LTS) Released — A lot of small backports to boost the performance of the current LTS release of Node a little. Most notably, watch mode becomes stable, but also

1
base64

and

1
base64url

are now a lot faster,

1
CustomEvent

goes stable, and typed arrays are supported in streams. 20.13.1 landed a few days later to fix a Windows related bug.

Marco Ippolito

OTHER RUNTIMES NEWS:

  • Bun 1.1.8 has been released and continues to improve its support for Node APIs, has a much faster

    1
    JSON.parse

    , and fixes a slew of bugs.

  • Deno hasn’t been hanging around either, with version 1.43 boasting performance improvements particularly in its LSP and IDE integration, also explained ▶️ in this 2-minute video.

Hot Module Replacement (HMR) Now in AdonisJSAdonisJS is a popular TypeScript-first Web framework for Node and you can now use HMR to modify your dev app on the fly without restarting.

Julien Ripouteau

🪝 Hot Hook: Simple Hot Module Replacement for Node + ESM — Following directly on from the Adonis news (above), Hot Hook is the library they use to pull it off, but it can be used to enhance apps that aren’t Adonis-based, too.

Julien Ripouteau et al.

Integration Testing Made Easy for Developers — Node devs, test code with dependencies like databases, APIs & queues, never miss integration failures. >90% coverage.

HyperTest sponsor

‘How I Made My GitHub Profile README Dynamic’ — There’s no Node here, alas, but I thought it was a good demo of how it’s not too tricky to give your GitHub profile some extra flair by pulling in your blog posts or other stats of choice.

Duy Ng

⚙️ Awesome Regex: Opinionated List of Regular Expression Tools, Tutorials, Libraries, etc. Steven Levithan

📄 A Simple Implemention to Understand

1
worker_threads

in Node CoderOasis

🛠 Code & Tools

GraphQL Yoga: A Full-Featured GraphQL Server — Create a schema, spin up a server, and you’re good to go (then you get to wire everything up). Supports GraphQL subscriptions via SSE. Designed to run across numerous environments from Node to AWS Lambda, Deno, Bun etc. GitHub repo.

The Guild

Better-SSE: A Dependency-Free Server-Sent Events LibraryServer-sent events (SSE) is an API supported by browsers for allowing server-side processes to send events in realtime to frontends without WebSockets. Better-SSE makes working with SSE a smoother experience in Node.

Matthew Widdicombe

Transformational Auth & Identity | Userfront — “Compared to our previous experiences in the security/auth space, Userfront is an order of magnitude simpler to use.”

Userfront sponsor

Better SQLite3 10.0: Fast and Simple SQLite3 Library — ..and with good docs too. Supports a lot of SQLite specific functionality, has a synchronous API that boasts better concurrency than an async one (why?), and worker thread support.

Joshua Wise

Ink 5.0: Build Interactive CLI Apps using React — A terminal-based React renderer so you can build command line apps using React-style components. While it’s a major release, there’s nothing new – the version number has been updated to reflect that Node 18+ is now a requirement.

Vadim Demedes

📰 Classifieds

Hookdeck Vercel Middleware – git-based, framework-defined async endpoints that scale: pausing, observability, retrying, replaying & throttling.

Your fastest path to production. With Render you can Build, deploy, and scale your apps with unparalleled ease – from your first user to your billionth.

NodeBB 3.7.5: Node-Based Forum Software — It’s been over a year since we linked to the mature Node-based forum system, but it’s still going strong. There’s a demo forum if you want to see how it looks.

NodeBB

  • ⭐️ zx 8.1 – Google’s tool for better Node shell scripting. Both CommonJS and ESM now supported, increased Node version support, Deno 1.x support, and more.

  • Tinypool 0.9 – Minimal, small Node worker thread pool implementation.

  • Fastify 4.27 – The fast, low overhead web Node.js framework.

  • aws-lambda-fastify 4.1 – Run Fastify apps on AWS Lambda.

  • sqs-consumer 10.3 – The BBC’s solution to building AWS Simple Queue Service (SQS) apps sans boilerplate

  • detect-port 1.6.1 – Module to detect available ports.

  • Evershop 1.1 – ️ Node-based e-commerce platform.

  • grammY 1.23 – Telegram bot framework.

  • Pino 9.1 – Fast JSON-powered logging.


0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *