This repository has been archived by the owner on Jun 27, 2022. It is now read-only.
Releases: LedgerHQ/ledgerjs
Releases · LedgerHQ/ledgerjs
v4.1.0
v4.0.0
@ledgerhq/web3-subprovider
changed signature:createLedgerSubprovider: (getTransport, options) => Provider
. the transport is no longer built-in the library, it is externalized on user land. basically you can docreateLedgerSubprovider(() => TransportU2F.create())
. also note that this will be lazily called at each time (each signature, fetching accounts,..) and close() when work is done.- TransportU2F was improved. if you use create() you should now have better errors. the breaking change here is that
TransportU2F.create()
can now fails if the device is not plugged.- listen() will error if u2f is not supported.
- open() will actually check a device presence by sending a mock command to the device. if there is no response, it will timeout with an error.
- a disconnect event is emit if a "timeout" happens.
- create-dapp starter kit was improved in many ways (see the diff).
v3.0.4
v3.0.3
v3.0.2
v3.0.0
Breaking changes
- TransportU2F : the timeout given in
open(_, timeout)
(aka increate(timeout)
) is no longer used to timeout the "exchange" of the U2F sign underlying call. Instead, you should usesetExchangeTimeout
to define it. Moreover, this time is in milliseconds, no in seconds. #65
Features
- on a transport, there is a new method
setExchangeTimeout
that takes a timeout in milliseconds and define the maximum time to wait for a given exchange APDU command. It is not guarantee all transport implementations will use it, it is up to them. At the moment, it is only used by the U2F transport implementation. #67 - Adding timestamp management to prepare for future altcoins integration #63
new packages
- add
@ledgerhq/web3-subprovider
library that implements a subprovider for web3-provider-engine library to more easily integrate the Ledger to ethereum applications #66 - add
create-dapp
, that allows to quickly bootstrap a dapp react project that works with the Ledger and with MetaMask – out of the box ! #66