Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added node.js 22.8.0 codemods #1318

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

dfordp
Copy link

@dfordp dfordp commented Sep 10, 2024

Node.js 22.7.022.8.0 (Current),

  • Link to Official Upgrade Guide: [[Insert Link](https://v3-migration.vuejs.org/)]

enable-compile-cache-in-start-server

Additional Details


vm-context-modifications-codemod

  • 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 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

  • The main change introduced in version 22.8.0 is the ability to use vm.constants.DONT_CONTEXTIFY when creating a context
  • https://go.codemod.com/0kzpXgD

node-script-update-to-experimental-test-coverage

  • 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.

Additional Details


node-script-start-watch-upgrade

  • Starts Node.js in watch mode. When in watch mode, changes in the watched files cause the Node.js process to restart. By default, watch mode will watch the entry point and any required or imported module. Use --watch-path to specify what paths to watch.

Additional Details


dotenv-to-env-file-migration

Additional Details

  • Previously, the dotenv package was used to load environment variables.
  • With the new feature, you use the -env-file flag to specify the .env file location.
  • https://go.codemod.com/96u1okG

Copy link

vercel bot commented Sep 10, 2024

@dfordp is attempting to deploy a commit to the Codemod Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant
Copy link

CLAassistant commented Sep 10, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants