Skip to content

Feat/util print to console log - #186

Merged
avivkeller merged 7 commits into
nodejs:mainfrom
brunocroh:feat/util-print-to-console-log
Aug 23, 2025
Merged

avivkeller merged 7 commits into
nodejs:mainfrom
brunocroh:feat/util-print-to-console-log

Conversation

@brunocroh

Copy link
Copy Markdown
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

@AugustinMauroy AugustinMauroy left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Comment thread utils/src/ast-grep/remove-lines.ts
Comment thread recipes/util-print-to-console-log/package.json Outdated
Co-authored-by: Augustin Mauroy <97875033+AugustinMauroy@users.noreply.github.com>

@AugustinMauroy AugustinMauroy left a comment

Copy link
Copy Markdown
Member

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