sales@avioxtechnologies.comSubscribe

Innovation TrackerNews

Node.js 23.1.0 (Current)

Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.

Published By From Node.js News · 1 min read

When a Buffer is created using a resizable ArrayBuffer , the Buffer length will now correctly change as the underlying ArrayBuffer size is changed.

Contributed by James M Snell in #55377 .

MockTimers , introduced in April 2023, has just reached stable status . This API provides comprehensive support for mocking Date and all major timers in Node.js, including setTimeout , setInterval , and setImmediate , both from the node:timers , node:timers/promises modules and global objects. After months of refinement, developers can now fully rely on MockTimers for testing time-based operations with confidence, ensuring better control over asynchronous behavior in their Node.js applications.

Example usage with initial Date object as time set:

Contributed by Erick Wendel in #55398 .

This is an excerpt. The full article is published by Node.js News.

Continue reading at Node.js News

Insights & Understanding

Frequently Asked Questions

Answers to common questions regarding this article's topic, architecture, and practical applications.