-
Notifications
You must be signed in to change notification settings - Fork 248
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
fix: only throwing errors for major version changes #425
Conversation
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #425 +/- ##
=======================================
Coverage 95.64% 95.64%
=======================================
Files 18 18
Lines 1217 1218 +1
=======================================
+ Hits 1164 1165 +1
Misses 53 53
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 in Codecov by Sentry. |
src/child/child.js
Outdated
@@ -74,6 +74,22 @@ function destroy(): ZalgoPromise<void> { | |||
}); | |||
} | |||
|
|||
// This function will only compare the first numerical value, |
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.
// This function will only compare the first numerical value, | |
// Compares the first numerical value of the parent and child versions of zoid | |
// to help throw an error when the major version number is different. |
Update existing error handling logic to only throw errors when the major version number is different between the parent and child windows. This assumes that minor and patch releases make no breaking changes to post message communication.
Description
We currently throw an error when the Zoid version doesn't strictly match. This change will only check for major version upgrades before throwing an error, patches and minor changes will be allowed to be different.