Skip to content

v16 and migrate to `BigInt`

Compare
Choose a tag to compare
@pyramation pyramation released this 15 Jul 23:38
· 131 commits to main since this release

BigInt and inline protobuf reader/writer

This is a HUGE update! Now using the open standard BigInt instead of Long

Additionally, we wrote our own proto reader/writer, well-tested, and purpose-built for Cosmos SDK protos and Telescope. We've inlined it to make it super efficient.

Breaking Changes

  • You'll need to stop using Long.fromString('1') and instead using the native BigInt('1') — use open standards instead of a 3rd party library! Anywhere you used Long you need to remove it and replace with BigInt.

What's Changed

  • removes need to depend on the Long type from long library in any generated code
  • removes need to depend on the protobuf/minimal library in any generated code
  • use BigInt, upgrade to telescope 0.99 by @pyramation in #57

Full Changelog: https://github.com/osmosis-labs/osmojs/commits/osmojs@16.2.0