Skip to content

Bugfix: Don't cast big integers into Numbers

Compare
Choose a tag to compare
@Vijar Vijar released this 31 Aug 20:28
· 400 commits to main since this release
  • #120 Don't cast big integers into Number type

    Fetcher middleware receives all params as strings. It then, tries to cast these strings into their primitive types. However, numbers larger than MAX_SAFE_INTEGER were being rounded incorrectly introducing errors(See #119). The fix is to just leave these big integers as strings and let the user convert them as needed.