mapbox / pbf

A low-level, lightweight protocol buffers implementation in JavaScript.
BSD 3-Clause "New" or "Revised" License
801 stars 107 forks source link

Support BigInts for 64-bit numbers above 2 ** 53 #128

Open ARitz-Cracker opened 3 years ago

ARitz-Cracker commented 3 years ago

Numbers >= 2 ** 53 aren't accurate integers in JS. This is why we have BigInts to handle values larger than this. But this library doesn't utilize them at all

zachasme commented 2 years ago

I made a pull request for this (#115) a couple of years ago.

kkokkojeong commented 1 year ago

@mourner Do you have a plan to support for BigInt(Numbers >= 2 ** 53) ? I'm suffering the same issue ㅠ