Skip to content
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

KTOR-6158 JS. Remove redundant require call for crypto #4434

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

turansky
Copy link
Contributor

@turansky turansky commented Oct 29, 2024

Subsystem
Client, JS

Motivation
https://youtrack.jetbrains.com/issue/KTOR-6158

Solution

  • Use common global crypto
    • Available since Node 15. Current LTS - Node 22 ;)

Related PRs

Copy link
Member

@osipxd osipxd left a comment

Choose a reason for hiding this comment

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

Thank you for the pull request!
Tests are failing with "TypeError: get__crypto(...).randomFillSync is not a function". Could you check it, please?

@turansky turansky requested a review from osipxd October 29, 2024 16:55
Copy link
Member

@osipxd osipxd left a comment

Choose a reason for hiding this comment

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

LGTM

@osipxd osipxd merged commit 8c9fc74 into ktorio:main Oct 30, 2024
10 of 13 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.

2 participants