Update CHANGELOG

This commit is contained in:
Leonid Logvinov
2017-10-05 15:43:46 +03:00
parent 553cbb25f4
commit 7bcedc27b8
2 changed files with 16 additions and 2 deletions

View File

@@ -1,6 +1,20 @@
# CHANGELOG
v0.20.0 - _October 3, 2017_
v0.21.0 - _TBD, 2017_
------------------------
* Complete rewrite of subscription logic (#182)
* Subscriptions now can't return historical logs. If you want them - use `getLogsAsync`
* Subscriptions now use [ethereumjs-blockstream](https://github.com/ethereumjs/ethereumjs-blockstream) under the hood
* Subscriptions now correctly handle block re-orgs (forks)
* Subscriptions now correctly backfill logs (connection problems)
* They don't setup filters on the underlying nodes, so you can use them with infura without a filter Subprovider
* Removed `ContractEventEmitter` and added `LogEvent`
* Renamed `zeroEx.token.subscribeAsync` to `zeroEx.token.subscribe`
* Added `zeroEx.token.unsubscribe` and `zeroEx.exchange.unsubscribe`
* Renamed `zeroEx.exchange.stopWatchingAllEventsAsync` to `zeroEx.exhange.unsubscribeAll`
* Renamed `zeroEx.token.stopWatchingAllEventsAsync` to `zeroEx.token.unsubscribeAll`
v0.20.0 - _October 5, 2017_
------------------------
* Add `zeroEx.token.getLogsAsync` (#178)
* Add `zeroEx.exchange.getLogsAsync` (#178)

View File

@@ -351,7 +351,7 @@ describe('TokenWrapper', () => {
zeroEx.token.unsubscribeAll();
});
// Hack: Mocha does not allow a test to be both async and have a `done` callback
// Since we need to await the receipt of the event in the `subscribeAsync` callback,
// Since we need to await the receipt of the event in the `subscribe` callback,
// we do need both. A hack is to make the top-level a sync fn w/ a done callback and then
// wrap the rest of the test in an async block
// Source: https://github.com/mochajs/mocha/issues/2407