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
|
ST-DDT
left a comment
There was a problem hiding this comment.
This is a breaking change without our usual deprecation mechanics.
This should no longer be a breaking change.
ST-DDT
left a comment
There was a problem hiding this comment.
One minor change then it looks good to go.
Co-authored-by: ST-DDT <ST-DDT@gmx.de>
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)); // 14This 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