Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

v0.6.0

Compare
Choose a tag to compare
@Jannis Jannis released this 09 Apr 11:40
  • Add BigDecimal support.
    • Includes a new BigDecimal(bigInt: BigInt) constructor.
    • Includes a BigDecimal.fromString("0.25") constructor.
    • Includes +, -, *, / and == operators.
  • BigInt changes:
    • Add a bigInt.divDecimal(n: BigDecimal): BigDecimal method to BigInt.
    • Add == / .equals operator for BigInt.
  • Add APIS for mapping over IPFS files with (potentially) many values:
    • ipfs.map(hash: string, callback: string, userData: Value, parameters: string[]).
    • ipfs.mapJSON(hash: string, callback: string, userData: Value) for files with JSON values (e.g. http://jsonlines.org).
  • Other changes:
    • Make ipfs.cat return null on errors, allowing mappings to handle this.
    • Add toHexString() for ByteArray and BigInt to make the conversion more discoverable.
    • Add input: Bytes property to EthereumTransaction class.