Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Node.js 22.7.0 → 22.8.0 (Current),
enable-compile-cache-in-start-server
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 theNODE_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](https://www.npmjs.com/package/v8-compile-cache)/[[v8-compile-cache-lib](https://www.npmjs.com/package/v8-compile-cache-lib)](https://www.npmjs.com/package/v8-compile-cache-lib) packages, but have [better performance](https://github.com/nodejs/node/issues/47472#issuecomment-1970331362) and supports ESM.Additional Details
module.enableCompileCache()
to enable the compile cache for all modules loaded after this point.vm-context-modifications-codemod
vm.createContext()
and friends that creates a context without contextifying its global object when vm.constants.DONT_CONTEXTIFY is used. This is suitable when users want to freeze the context (impossible when the global is contextified i.e. has interceptors installed) or speed up the global access if they don't need the interceptor behavior.Additional Details
vm.constants.DONT_CONTEXTIFY
when creating a contextnode-script-update-to-experimental-test-coverage
--experimental-test-coverage
flag.Additional Details
start
script has been modified to include the--experimental-test-coverage
flag [4](https://www.knowledgehut.com/blog/web-development/package-json-scripts-node-js). This ensures that code coverage checks are performed every time the application starts.node-script-start-watch-upgrade
--watch-path
to specify what paths to watch.Additional Details
"start"
script to include--watch
flag.dotenv-to-env-file-migration
process.env
. The [environment variables which configure Node.js](https://nodejs.org/api/cli.html#environment-variables), such asNODE_OPTIONS
, are parsed and applied. If the same variable is defined in the environment and in the file, the value from the environment takes precedence.Additional Details
dotenv
package was used to load environment variables.-env-file
flag to specify the .env file location.