Category: node js

Breaking a promise

July 4, 2024 By Mark Otto Off

How to Annul Promises in JavaScript — You can ‘cancel’ XHR and fetch requests, but can you cancel regular promises? Currently, no, but Zachary looks into doing the next best thing: telling a promise the game’s up, and discarding/ignoring its eventual results. Zachary Lee regex 2.1:…

Taming event loop lag

July 2, 2024 By Mark Otto 0

How We Tamed Node.js Event Loop Lag: A Deepdive — Node famously uses very few threads yet can handle a large number of clients performantly, as long as the work associated with each client is ‘small.’ When you get nested loops, as in this story,…

Say hi to ECMAScript 2024

June 27, 2024 By Mark Otto Off

Ecma International Approves ECMAScript 2024: What’s New? — This week, the Ecma General Assembly approved the latest ECMAScript / JavaScript language spec, officially making it a standard. As with ECMAScript 2023, it’s a small step forward, but Dr. Axel looks at what’s new. Dr. Axel Rauschmayer…

Should Node make ES modules easier to use?

June 25, 2024 By Mark Otto 0

✈️ I’ve produced this issue a day early due to being en-route to the AI Engineer World’s Fair, so any last minute news may be missed. If you’re there, do come and say hi, but you can also watch from afar through the livestreams that…

The results are in

June 20, 2024 By Mark Otto Off

How React 19 (Almost) Made the Internet Slower — Even changes that are planned in advance can have big effects on the developer experience if people aren’t aware of them. A change to Suspense in React 19 led to much confusion and surprise, but the…

A snapshot of what’s new in Node

June 18, 2024 By Mark Otto 0

Node v22.3.0 (Current) Released — One of those releases where lots of tiny things have occurred, but little of broad significance, except… for snapshot testing! Snapshot tests serialize arbitrary values into string values to be compared against a set of pre-built known ‘good’ values (stored…

The biggest TypeScript release in years?

June 13, 2024 By Mark Otto Off

📝 I’ve recently encountered readers who’ve been surprised to learn this isn’t our only JavaScript newsletter. We have Node Weekly and React Status too – check them out if you’re a Node.js or React developer, as we focus more closely on them there! 🙂__Your editor, Peter…

Leaky timeouts

June 11, 2024 By Mark Otto 0

Node is Leaking Memory? setTimeout Could Be The Reason — The folks at Sentry were running into problems with how Node handles timeouts created with setTimeout or, more specifically, problems caused by hanging on to the Timeout objects setTimeout returns.. Armin Ronacher Memetria: Efficient Redis Hosting…

The appealing simplicity of htmx

June 6, 2024 By Mark Otto Off

Promises from the Ground Up — Josh notes that in order to truly understand promises, a fundamental part of modern JS development, we need “a surprisingly deep understanding of how JavaScript works and what its limitations are”. Luckily, this tutorial covers all the critical context…

The newest Node.js runtime features

June 4, 2024 By Mark Otto 0

🫣 Node Weekly took a break last week, but we forgot to notify you in advance – sorry! You didn’t miss anything, and we’re catching up with the past two weeks today 🙂__Your editor, Peter Cooper QUICK BITS: ⚙︎ Regexper – Visualize regular expressions as a diagram.…