Skip to content

Conversation

brunocroh
Copy link
Member

Closes #124

the recipe util-log-to-console-log

The recipe util-log-to-console-log was only handling DEP0059, which replaces util.log with console.log.

However, we have four other similar deprecations, and I think it makes sense to handle them here as well (maybe we should rename the recipe?).

DEP0026: replace util.print with console.log

DEP0027: replace util.puts with console.log

DEP0028: replace util.debug with console.error

DEP0029: replace util.error with console.error

Copy link
Member

@AugustinMauroy AugustinMauroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the DEP0059 is EoL in 24 rest in 12 it's why I think we need to do 2 codemod

@brunocroh
Copy link
Member Author

the DEP0059 is EoL in 24 rest in 12 it's why I think we need to do 2 codemod

Okay, not problem, let me split it then

@brunocroh brunocroh force-pushed the feat/util-print-to-console-log branch from 721b808 to 5074b68 Compare August 20, 2025 12:35
Copy link
Member

@AugustinMauroy AugustinMauroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT !

@avivkeller avivkeller merged commit b1e9a9d into nodejs:main Aug 23, 2025
12 checks passed
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.

feat: handle util.print() depreciation
3 participants