-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
feat: datatype.hexadecimal
signature change
#1238
Conversation
7befc35
to
c5a100b
Compare
Codecov Report
@@ Coverage Diff @@
## main #1238 +/- ##
==========================================
- Coverage 99.63% 99.62% -0.02%
==========================================
Files 2156 2156
Lines 236988 237025 +37
Branches 1007 1007
==========================================
+ Hits 236124 236133 +9
- Misses 843 871 +28
Partials 21 21
|
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 is a breaking change without our usual deprecation mechanics.
This should no longer be a breaking change.
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.
One minor change then it looks good to go.
Co-authored-by: ST-DDT <ST-DDT@gmx.de>
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.
Co-authored-by: Shinigami <chrissi92@hotmail.de>
Co-authored-by: ST-DDT <ST-DDT@gmx.de> Co-authored-by: Shinigami <chrissi92@hotmail.de>
Why did this got merged then? This PR has an incorrect type as well. |
I assume it was just one or few days before we finally defined how we want changelogs to be formatted |
This explains the PR type (which is my minor concern). Currently, this |
I changed the code such that it wasn't a breaking change anymore. The function signature used to take just one param, |
Yeah but you changed the default return value to not include the prefix. const hex = faker.datatype.hexadecimal(1);
console.log(parseInt(hex)); // 14 This will break now: const hex = faker.datatype.hexadecimal(1);
console.log(parseInt(hex)); // NaN |
Oh crap. Should I manually revert this and reimplement the change before we release v8? |
I wouldnt revert it entirely, just restore the old defaults. @xDivisionByZerox Nicely spotted. |
closes #954