Open Issues Need Help
View All on GitHubAI Summary: Create a codemod to update Node.js code using deprecated RSA-PSS key generation options (`'hash'` and `'mgf1Hash'`) to their new equivalents (`'hashAlgorithm'` and `'mgf1HashAlgorithm'`). The codemod must handle both synchronous and asynchronous key generation functions, various import styles, and different option object structures, while ensuring it only modifies RSA-PSS key generation calls and not other crypto operations.
AI Summary: The task is to fix a codemod (automated code migration script) for Node.js that doesn't correctly handle import aliases when migrating `createRequireFromPath` to `createRequire`. The codemod should rename the import alias from `createRequireFromPath` to `createRequire` in the transformed code.
AI Summary: The task is to create a codemod (automated code migration script) that updates Node.js code using `import { rmdir as foo } from 'node:fs'` to use `import { rm as foo } from 'node:fs'`, effectively handling import aliases when migrating from `rmdir` to `rm`. The codemod should be compatible with the `codemod` CLI.
AI Summary: Create a codemod using the `codemod` tool to automatically update Node.js code that uses the deprecated `repl.builtinModules` to use the new `module.builtinModules`. The codemod needs to handle various import styles (default, destructured) and only replace the deprecated property if `node:repl` is not used for other purposes. Documentation on the differences between the old and new APIs is also required.
AI Summary: Create a Node.js codemod using the `codemod` tool to automatically replace deprecated uses of `process.mainModule` with `require.main`, handling various usage patterns and ensuring compatibility with different import styles.
AI Summary: Create a codemod to automatically update Node.js code that uses the deprecated `fs.truncate()` and `fs.truncateSync()` functions with file descriptors. The codemod should replace these with `fs.ftruncate()` and `fs.ftruncateSync()`, respectively, while correctly handling various import styles (commonjs, esm) and avoiding modification of calls using file paths instead of file descriptors.
AI Summary: Create a codemod to automatically update Node.js code that uses the deprecated `crypto.createCredentials()` function to use the `tls.createSecureContext()` function instead. The codemod must handle various import styles (namespace, destructuring, ESM) and gracefully manage cases where other `crypto` functions are used alongside `createCredentials()`.
AI Summary: Create a codemod to automatically update Node.js code that uses the deprecated `fs.F_OK`, `fs.R_OK`, `fs.W_OK`, and `fs.X_OK` constants to their modern equivalents, `fs.constants.F_OK`, etc., handling various import styles (CommonJS, ESM, destructuring, namespace) and the `fs.promises.constants` alternative.
AI Summary: Update the Node.js userland migrations CI workflow (`.github/workflows/codemod_publish.yml`) to utilize the `@next` version of the codemod CLI, as referenced in issue #105. This involves modifying the workflow file to use the updated CLI for publishing codemods.
AI Summary: Create a codemod using the `codemod` tool to automatically update Node.js code that uses the deprecated `fs.rmdir(path, { recursive: true })` method to the new `fs.rm` method, handling asynchronous and synchronous versions, as well as promises.
AI Summary: Create a codemod to automatically update Node.js code that uses the deprecated `buffer.atob()` and `buffer.btoa()` methods to their modern equivalents using `Buffer.from()` and `toString()`. This involves finding instances of these deprecated methods in JavaScript files and replacing them with the correct updated code.
AI Summary: Create a codemod using the `codemod` tool to automate the migration of Node.js code from using `createRequireFromPath` to `createRequire`. This involves updating the code to use the newer `createRequire` function and adjusting the usage accordingly. The codemod should handle various scenarios and edge cases to ensure a smooth and accurate migration.