aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-10-05 20:43:46 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-10-05 20:43:46 +0800
commit7bcedc27b8ed4d710ffc8c4f589211106475d899 (patch)
tree6bee24fb48b5cf4681b2545264d594e20cbd414e
parent553cbb25f4d8b8ae43156eb21d3358d5b1350c68 (diff)
downloaddexon-0x-contracts-7bcedc27b8ed4d710ffc8c4f589211106475d899.tar.gz
dexon-0x-contracts-7bcedc27b8ed4d710ffc8c4f589211106475d899.tar.zst
dexon-0x-contracts-7bcedc27b8ed4d710ffc8c4f589211106475d899.zip
Update CHANGELOG
-rw-r--r--CHANGELOG.md16
-rw-r--r--test/token_wrapper_test.ts2
2 files changed, 16 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5f19bfe03..6b6a5386a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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)
diff --git a/test/token_wrapper_test.ts b/test/token_wrapper_test.ts
index 6ada6588c..eac540d03 100644
--- a/test/token_wrapper_test.ts
+++ b/test/token_wrapper_test.ts
@@ -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