Skip to content

Conversation

@0hmX
Copy link
Contributor

@0hmX 0hmX commented Aug 3, 2025

closes: #123

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.

Minor thing

Copy link
Member

@brunocroh brunocroh left a comment

Choose a reason for hiding this comment

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

You did a great job on that, thank you for your awesome contribution!

I have some comments on a few points, feel free to share your opinion if you don't agree with something.

And just one more thing: could you please check if you ran node --run pre-commit? I think there are some Biome rules that aren't applied.

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 ! Thanks for you first contribution.
If you have any feedback about DX on this project let's me know. And if you have any feedback about codemod CLI/platform I'm going to transfer it to them

@AugustinMauroy AugustinMauroy requested a review from a team August 6, 2025 08:32
@AugustinMauroy
Copy link
Member

fro windows failing use https://nodejs.org/api/os.html#oseol instead of \n

@AugustinMauroy
Copy link
Member

we also have few utility you should use it to simplify

@JakobJingleheimer
Copy link
Member

Okay, so I ended up rewriting the code, but it's now bigger than the previous version🫠. Yes, I am using the utilities. I added a few more test cases related to pair_pattern and import_specifier.

However, I couldn't get the logic to work for const createCredentials = (await import('node:crypto')).then((m) => m.createCredentials) because the getNodeImportCalls utility does not handle this case. I want to skip it, as adding the extra code would make the file too large.

Thanks! I'm sure it was a fair amount of work 😅 (that's why I said it wasn't necessarily a blocker)

Unfortunately you force-pushed, which wipes the review history. That means the entire PR has to get reviewed again instead of just the pieces recently changed (and that massively increases the effort & time needed to review the latest changes). I've updated the repo settings to now block force-pushing to prevent this happening again (you weren't the only one to do it), but FYI the next review will take me some time to get through now because of that force-push 😬

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 !

Copy link
Member

@JakobJingleheimer JakobJingleheimer left a comment

Choose a reason for hiding this comment

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

LGTM :)

PS Sorry it took me a while to get back to this.

@JakobJingleheimer JakobJingleheimer added the awaiting author Reviewer has requested something from the author label Sep 24, 2025
@AugustinMauroy
Copy link
Member

hey @0hmX any news on this pr ?

@JakobJingleheimer JakobJingleheimer added the dep:EoL Migration handles deprecation introduced in an EoL version of node label Oct 16, 2025
@0hmX 0hmX closed this Oct 16, 2025
@JakobJingleheimer
Copy link
Member

@0hmX did you intend to close this? O.o it's ready to go

@AugustinMauroy AugustinMauroy reopened this Nov 2, 2025
@AugustinMauroy
Copy link
Member

I'm going to take over this pr so we can land it

@AugustinMauroy AugustinMauroy added awaiting reviewer Author has responded and needs action from the reviewer and removed awaiting author Reviewer has requested something from the author labels Nov 2, 2025
@brunocroh
Copy link
Member

@AugustinMauroy CI here is failing

Update package-lock.json

Update package-lock.json

Update package-lock.json
@AugustinMauroy AugustinMauroy force-pushed the crypto-createCredentials branch from 8d05509 to bfb02a3 Compare November 2, 2025 21:22
@brunocroh
Copy link
Member

LGTM

@AugustinMauroy AugustinMauroy merged commit 40a0bdc into nodejs:main Nov 8, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviewer Author has responded and needs action from the reviewer dep:EoL Migration handles deprecation introduced in an EoL version of node

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: handle crypto.createCredentials() depreciation

5 participants