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

Remove dependency on global atob/btoa functions #2677

Closed
wants to merge 3 commits into from

Conversation

thebrianchen
Copy link

@thebrianchen thebrianchen commented Feb 25, 2020

Fixes #2667

#2639 introduced use of atob in ByteString, which is causing the failure in environments where there is no global atob function. This PR removes the dependency on global atob by using our own atob function when global atob is unavailable.

@schmidt-sebastian
Copy link
Contributor

@thebrianchen Can you provide some size stats for the new dependency? I would like to know what impact this has on the size of firebase-firestore.js.

@thebrianchen
Copy link
Author

@schmidt-sebastian It's going from 318,422B to 321,001B.

@schmidt-sebastian
Copy link
Contributor

As discussed offline, please see if our guidance on Polyfills applies here. Please see here: https://firebase.google.com/support/guides/environments_js-sdk#polyfills

@thebrianchen
Copy link
Author

Plan is to update docs with react-native polyfills to reduce SDK size.

@thebrianchen thebrianchen deleted the bc/util-atob branch February 25, 2020 22:16
@firebase firebase locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7.9.1 prevent the use of firestore in React Native
2 participants