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

fix: only throwing errors for major version changes #425

Merged
merged 6 commits into from
Apr 25, 2023

Conversation

oscarleonnogales
Copy link
Contributor

@oscarleonnogales oscarleonnogales commented Apr 24, 2023

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.

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (e2825bb) 95.64% compared to head (dbd195d) 95.64%.

📣 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           
Impacted Files Coverage Δ
src/child/child.js 96.80% <100.00%> (+0.03%) ⬆️

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@oscarleonnogales oscarleonnogales marked this pull request as ready for review April 24, 2023 22:44
@oscarleonnogales oscarleonnogales requested a review from a team as a code owner April 24, 2023 22:44
@@ -74,6 +74,22 @@ function destroy(): ZalgoPromise<void> {
});
}

// This function will only compare the first numerical value,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// 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.

src/child/child.js Outdated Show resolved Hide resolved
@gregjopa gregjopa merged commit 908af56 into krakenjs:main Apr 25, 2023
gregjopa pushed a commit that referenced this pull request Apr 25, 2023
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.
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.

5 participants