Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

v20.0.0-beta3 (beta2->beta3)

Compare
Choose a tag to compare
@c0d3ster c0d3ster released this 18 Dec 22:16
· 1115 commits to master since this release
be370fb

This release contains breaking changes for the SignatureProvider class. The changes for this release include:

  • Removal of default signature provider from index exports (import { JsSignatureProvider } from 'eosjs' -> import JsSignatureProvider from 'eosjs/dist/eosjs-jssig')
    Many eosjs implementations will leverage an alternate signature provider; keeping this out of the default export prevents eosjs-ecc from being bundled automatically, significantly reducing bundle size. This also further dissuades against using the default signature provider in production as this is not a safe practice because it requires users to paste their private key in the context of the webpage

  • Necessary measures to ensure eosjs is compatible with React Native and in the Edge/IE11 browser

  • Return the serialized transaction with the signatures when sign() is called on the signature provider. Signature providers may have valid reasons to modify the transaction, so sign() needs to return the reference to the new transaction.

  • Optional sign parameter to return serialized transaction without signatures when sign() is called on the signature provider. This can be used to create multisig transaction objects.

  • Specify and automate certain aspects of release process

  • Revamp of README and Gitbook documentation (including more usage examples)