-
Notifications
You must be signed in to change notification settings - Fork 438
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: fix bigint
validation
#1620
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1620 +/- ##
==========================================
- Coverage 79.30% 79.21% -0.09%
==========================================
Files 93 93
Lines 4860 4860
Branches 934 933 -1
==========================================
- Hits 3854 3850 -4
- Misses 700 709 +9
+ Partials 306 301 -5 ☔ View full report in Codecov by Sentry. |
bigint
validation
🎉 This PR is included in version 18.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hi team, it seems that this change has caused a regression that means a test in the We're making an assertion that a bigint with value |
OK - so this was a problem in our library because the |
@dhensby Ugh, I'm sorry. 😞 it's hard to be aware of all the things that might break when we change things like the validation code which is supposed to be more or less private / internal to What is your suggested approach to fixing this? I guess we could revert the change, publish a new version and yank the broken one, and then re-do the change as a breaking change? Also, do you think it would make sense to add a smoke test build where we run the |
It's ok, these things happen.
These kinds of releases are all down to acceptable and anticipated impact anyway, and I guess if these are thought of as private interfaces, then that's fair enough. The fix is actually really simple for the
We've always had a bit of chatter about that as a possibility. If you think it's valuable to do, then that could work - but the |
This PR is for fixing issue #1610
Now the validate function will throw an error if a invalid value is passed into BigInt type :
"The number cannot be converted to a BigInt because it is not an integer"