-
-
Notifications
You must be signed in to change notification settings - Fork 27
feat(crypto-fips): add migration recipe for crypto.fips #177
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
Conversation
….fips to crypto.getFips() and crypto.setFips()
|
Let me know if the Personally, I think having that helps |
You don't have to remove it entirely, but can it be a separate PR (to keep our commits organized)? Thank you! |
Co-authored-by: Aviv Keller <[email protected]>
|
@avivkeller Alright then. I'm gonna make another PR for another recipe where I'll include this change as a separate commit |
…ove code readability
Replaces array concatenation with generator-based iteration to improve readability, memory usage, and performance.
AugustinMauroy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WOW 😵💫 that's an awesome first contribution. I love your usage of yield.
Thanks you for your contribution, I hope that you had enjoyed it. If you have any feedback feel it
|
Thanks @AugustinMauroy! I'll update the suggested changes |
…tFips/setFips This update introduces a transformation for replacing deprecated `crypto.fips` calls with `crypto.getFips()` and `crypto.setFips()`. It includes enhancements to variable collection, import specifier updates, and destructuring adjustments to ensure proper usage of the new methods. Additionally, new test cases have been added to validate the changes.
|
@AugustinMauroy I think some functions I used can be put into |
|
For the utility functions thing, I'll examine those and probably open another PR for that specifically |
|
Not sure why these checks fail How can we get them to pass? |
because you touch to the utility and you break something |
|
Ah I think I found the failing part |
|
Passed finally This was such a headache lol |
|
@max-programming thanks for this and getting it updated! I'll try to get to the review tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty good! It needs to support dynamic imports—we have utilities to help with that (I referenced them in some code suggestions) and tests for them; I think that will be pretty quick/simple to include. Good to go IMO once those are in 🙂
Co-authored-by: Jacob Smith <[email protected]>
|
@JakobJingleheimer Made the changes! Enabled dynamic imports (it was quite simple lol) Also be sure to verify this I did it because generally my default formatter is Prettier but this project recommends Biome |
JakobJingleheimer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌 Thanks!
|
Thank you so much for your contribution @max-programming, You did a great job, we really appreciate it! |
Closes #175