The latest JavaScript runtime update also supports requiring code coverage thresholds are met before a process can exit. Credit: Aon Khanisorn Node.js 22.8.0, the latest release of the event-driven JavaScript runtime, adds a JavaScript API to enable on-disk caching of all modules loaded after the API is called, presenting a caching option for code. The API is called module.enable.CompileCache(). It overrides the NODE_COMPILE_CACHE environment variable, which only end users could use to enable on-disk caching. The new API lets tool and library authors manage the caching of their own code. The solution is a built-in alternative to v8-compile-cache packages, offering better performance and support for ESM (ECMAScript Modules). Introduced on September 3, Node 22.8.0 can be downloaded from Nodejs.org. It is classified as a current release rather than an LTS (long-term support) release. With this update, Node now supports requiring code coverage to meet a specific threshold before a process successfully exits. Developers who want to use this capability must set the –experimental-test-coverage flag. Thresholds can be set for types of coverage including branch, function, and line coverages. Also in version 22.8.0, a flavor of vm.createContext() has been added to create a context without contextifying its global object when vm.constants.DONT_CONTEXTIFY is used. This is suitable when users want to freeze the context or speed up global access if they do not need the interceptor behavior. Node 22.8.0 follows the August 22 release of Node 22.7.0, which featured experimental transform types support. Node 22 itself was announced April 24, emphasizing ESM and an improved WebSocket client. Related content feature What is Rust? Safe, fast, and easy software development Unlike most programming languages, Rust doesn't make you choose between speed, safety, and ease of use. Find out how Rust delivers better code with fewer compromises, and a few downsides to consider before learning Rust. By Serdar Yegulalp Nov 20, 2024 11 mins Rust Programming Languages Software Development how-to Kotlin for Java developers: Classes and coroutines Kotlin was designed to bring more flexibility and flow to programming in the JVM. Here's an in-depth look at how Kotlin makes working with classes and objects easier and introduces coroutines to modernize concurrency. By Matthew Tyson Nov 20, 2024 9 mins Java Kotlin Programming Languages analysis Azure AI Foundry tools for changes in AI applications Microsoft’s launch of Azure AI Foundry at Ignite 2024 signals a welcome shift from chatbots to agents and to using AI for business process automation. By Simon Bisson Nov 20, 2024 7 mins Microsoft Azure Generative AI Development Tools news Microsoft unveils imaging APIs for Windows Copilot Runtime Generative AI-backed APIs will allow developers to build image super resolution, image segmentation, object erase, and OCR capabilities into Windows applications. By Paul Krill Nov 19, 2024 2 mins Generative AI APIs Development Libraries and Frameworks Resources Videos