-
-
Notifications
You must be signed in to change notification settings - Fork 596
fix: SDK builds incorrectly since release 3.5.0 causing various bugs #1600
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
Thanks for opening this pull request!
|
Shoutout to @aarondill for their efforts too! |
Codecov ReportBase: 99.93% // Head: 99.93% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## alpha #1600 +/- ##
=======================================
Coverage 99.93% 99.93%
=======================================
Files 61 61
Lines 5966 5966
Branches 1366 1366
=======================================
Hits 5962 5962
Misses 4 4 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Tests passing (woo!). I have added very minimal tests to the browser dist tester for now - can add more if you would like |
Amazing work! 🙌 |
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.
Looks good!
## [3.5.1-alpha.2](3.5.1-alpha.1...3.5.1-alpha.2) (2022-11-07) ### Bug Fixes * SDK builds incorrectly since release 3.5.0 causing various bugs ([#1600](#1600)) ([f15154f](f15154f))
🎉 This change has been released in version 3.5.1-alpha.2 |
## [3.5.1-beta.2](3.5.1-beta.1...3.5.1-beta.2) (2022-11-26) ### Bug Fixes * SDK builds incorrectly since release 3.5.0 causing various bugs ([#1600](#1600)) ([f15154f](f15154f))
🎉 This change has been released in version 3.5.1-beta.2 |
## [3.5.1](3.5.0...3.5.1) (2022-11-26) ### Bug Fixes * File upload fails when uploading base64 data ([#1578](#1578)) ([03ee3ff](03ee3ff)) * React Native build does not maintain arrow functions and causes error with AsyncStorage ([#1587](#1587)) ([8aeaa4f](8aeaa4f)) * SDK builds incorrectly since release 3.5.0 causing various bugs ([#1600](#1600)) ([f15154f](f15154f))
🎉 This change has been released in version 3.5.1 |
New Pull Request Checklist
Issue Description
This took me quiet some time to unpack. There have been some bugs reported relating to basic functionality, such as #1596, #1593, #1592, and this community forum issue.
After replicating myself, I narrowed it down to #1553. The compiled code babel is generating before and after that PR were completely different, with one using
this
in places where it would beundefined
(in strict mode). After painstakingly trying to figure out which sub-dependancy update caused the bug, I gave up and updated all dependancies usingncu
. Thankfully the bug was fixed, so next I went through each single change to try isolate which was necessary.Related issues: #1599, #1596, #1593, #1592, #1601
Closes #1599
Closes #1596
Closes #1593
Closes #1592
Closes #1601
Closes #1614
Closes #1618
Approach
This PR adds
puppeteer
and launches a mock browser to test basic SDK functionality. In the first commit, you can see the tests failing due to the babel bug. After the dependancy update, you can see those tests pass as the problematic dependancy is updated. I have also updated some babel syntax (I was going through the entire configuration to try work out if something was depreciated).TODOs before merging