Skip to content

Closes #3123 Removes Superflous @peculiar/webcrypto dependency#3129

Open
bitmold wants to merge 2 commits intodevelopfrom
webcrypto
Open

Closes #3123 Removes Superflous @peculiar/webcrypto dependency#3129
bitmold wants to merge 2 commits intodevelopfrom
webcrypto

Conversation

@bitmold
Copy link
Collaborator

@bitmold bitmold commented Mar 13, 2026

Closes #3123 Removes Superflous @peculiar/webcrypto dependency. Removes hacky JavaScript that was needed to override global.crypto

- this was probably needed for along time because iOS was using nodejs12 until some recent work, hence
having no global.crypto flag.
- iOS and Android need the --experimental-global-webcrypto flag until nodejs mobile is rebuilt

…es hacky JavaScript that was needed to override global.crypto

- this was probably needed for along time because iOS was using nodejs12 until some recent work, hence
having no global.crypto flag.
- iOS and Android need the --experimental-global-webcrypto flag until nodejs mobile is rebuilt
@bitmold bitmold marked this pull request as ready for review March 13, 2026 10:21

val command: MutableList<String> = ArrayList()
command.add("node")
command.add("--experimental-global-webcrypto")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Out of curiosity, did it fail without this flag? Looking at https://nodejs.org/api/webcrypto.html, I see that since v20.19.3 Ed25519 and X25519 are stable, but I wouldn't be surprised if there was still other experimental algorithms this was needed for.

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.

Figure out @peculiar/webcrypto dependency

2 participants