[FSSDK-10316] crypto and text encoder polyfill addition for React native by junaed-optimizely · Pull Request #936 · optimizely/javascript-sdk
Navigation Menu
{{ message }}
optimizely / javascript-sdk Public
- Notifications You must be signed in to change notification settings
- Fork 87
Merged
[FSSDK-10316] crypto and text encoder polyfill addition for React native#936
junaed-optimizely merged 4 commits intomasterfrom
[FSSDK-10316] crypto and text encoder polyfill addition for React native#936
junaed-optimizely merged 4 commits intomasterfrom
Conversation
Copy link Copy Markdown
Contributor
junaed-optimizely
commented
Jun 27, 2024
junaed-optimizely
commented
Summary
cryptomodule is not supported by React native. Our SDK currently throws "crypto.getRandomValues() not available" error. A polyfill has been added to avoid that issue.- Hermes (React native: JS engine) did not have
TextEncodersupport until recently. A polyfill has been added for react-native <= 0.73
Test plan
Modified existing React Native test to adjust with the current changes. Existing test should pass
Issues
junaed-optimizely
requested a review
from a team
as a code owner
Copy link Copy Markdown
coveralls
commented
Jun 27, 2024
coveralls commented
Jun 27, 2024Copy link Copy Markdown
coveralls
commented
Jun 27, 2024
coveralls commented
Jun 27, 2024mikechu-optimizely approved these changes Jun 28, 2024
Copy link Copy Markdown
Contributor
mikechu-optimizely
left a comment
mikechu-optimizely
left a comment
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some nit but LGTM. Thanks for const+let
Copy link Copy Markdown
coveralls
commented
Jun 28, 2024
coveralls commented
Jun 28, 2024
junaed-optimizely
merged commit
46e2ab4
into
master
junaed-optimizely
deleted the
junaed/fssdk-10316
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment