v20.0.0-beta3 (beta2->beta3)
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 preventseosjs-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, sosign()
needs to return the reference to the new transaction. -
Optional
sign
parameter to return serialized transaction without signatures whensign()
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)