Urgent.News

What's breaking now, across thousands of outlets.

Tech

Node.js Brings Debounce, Throttle, and PKCS#12 Parsing Into Core Modules

Node.js 26.10.0 adds util.debounce() and util.throttle(), plus util.markPromiseAsHandled(), to the core library. It also introduces crypto.parsePKCS12() for reading .p12 and .pfx bundles, and extends the experimental Virtual File System to node:ffi. The additions reduce the need for some userland dependencies. Node.js 26 is now Active LTS. By Daniel Curtis

Node.js, the widely-used open-source JavaScript runtime, has integrated three long-awaited utilities into its core libraries. The additions, incorporated in Node.js version 26.10.0, include debounce() and throttle() functions for rate-limiting, as well as a PKCS#12 parsing API. These enhancements were proposed by James M Snell and are now included in the util module.

The debounce and throttle helpers, previously found in popular third-party packages like lodash, are now available out-of-the-box. Matteo Collina pointed out that these utilities are commonly used in nearly every Node.js application. The new API in crypto.parsePKCS12() allows developers to extract private keys and certificates from .p12 and .pfx files, eliminating the need to rely on external tools or packages.

The Virtual File System (VFS) in Node.js has also expanded, now enabling the loading of libraries directly from mounted VFS instances. These core additions represent a trend towards reducing the reliance on userland utilities in Node.js, ultimately streamlining the development process and minimizing supply-chain risks.

Written by urgent.news from InfoQ's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at infoq.com →

More in Tech

Alt text for product images: what to write when every photo looks the same

Most alt text advice is written for blog photos. "A golden retriever catching a frisbee on a beach." Fine. But try that on a product page for a hardware store and it falls apart fast, because half the…

  • Avoid duplicating product title in main image alt text; add unique details not covered by title.
  • Leave alt text blank for decorative images to allow assistive technology to skip them.

My shop was invisible because of one line in robots.txt

I sell a small thing: a letter about a real place, written after walking it on Street View. One place, one walk, one letter to the person who asked for it. It costs about $1.20.

  • Shop invisible to search engines due to restrictive robots.txt file.
  • Owner discovered issue by testing robots.txt with Googlebot.
  • Suggested solution: move content to accessible host with place name in title.

More from Saturday 14 November →