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
ReleaseNode.js 22.8.0 (Current)
This release adds a new API module.enableCompileCache() that can be used to enable on-disk code caching of all modules loaded after this API is called. Previously this could only be enabled by the NODE_COMPILE_CACHE environment variable, so it could only set by end-users. This API allows tooling and library authors to enable caching of their own code. This is a built-in alternative to the v8-compile-cache / v8-compile-cache-lib packages, but have better performance and supports ESM.
Thanks to Joyee Cheung for working on this.
Node.js implements a flavor of vm.createContext() and friends that creates a context without contextifying its global object when vm.constants.DONT_CONTEXTIFY is used.
This is an excerpt. The full article is published by Node.js News.
Answers to common questions regarding this article's topic, architecture, and practical applications.
Node.js now supports requiring code coverage to meet a specific threshold before the process exits successfully.
To use this feature, you need to enable the --experimental-test-coverage flag. You can set thresholds for the following types of coverage: <threshold> should be an integer between 0 and 100. If an invalid value is provided, a TypeError will be thrown. If the code coverage fails to meet the specified thresholds for any category, the pro
General
This release adds a new API module.enableCompileCache() that can be used to enable on-disk code caching of all modules loaded after this API is called.
Previously this could only be enabled by the NODE_COMPILE_CACHE environment variable, so it could only set by end-users.
This API allows tooling and library authors to enable caching of their own code.
This is a built-in alternative to the v8-compile-cache/v8-compile-cache-lib packages,
but have
How It Works
[ 1f2cc2fa47 ] - (SEMVER-MINOR) src,lib : add performance.uvMetricsInfo (Rafael Gonzaga) #54413 [ 1e01bdc0d0 ] - (SEMVER-MINOR) net : exclude ipv6 loopback addresses from server.listen (Giovanni Bucci) #54264 [ 97fa075c2e ] - (SEMVER-MINOR) test_runner : support running tests in process (Colin Ihrig) #53927 [ 858b583c88 ] - (SEMVER-MINOR) test_runner : defer inheriting hooks until run() (Colin Ihrig) #53927 Commits</
General
Windows 32-bit Installer: https://nodejs.org/dist/v22.8.0/node-v22.8.0-x86.msi
Windows 64-bit Installer: https://nodejs.org/dist/v22.8.0/node-v22.8.0-x64.msi
Windows ARM 64-bit Installer: https://nodejs.org/dist/v22.8.0/node-v22.8.0-arm64.msi
Windows 32-bit Binary: https://nodejs.org/dist/v22.8.0/win-x86/node.exe
Windows 64-bit Binary: https://nodejs.org/dist/v22.8.0/win-x64/node.exe
Windows ARM 64-bit Binary: https://nodejs.org/dist/v22.8.0
General
This release adds a new API module.enableCompileCache() that can be used to enable on-disk code caching of all modules loaded after this API is called. Previously this could only be enabled by the NODE_COMPILE_CACHE environment variable, so it could only set by end-users. This API allows tooling and library authors to enable caching of their own code. This is a built-in alternative to the v8-compile-cache/v8-compile-cache-lib packages, but have better performance and supports ESM.