Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: the one where we fix client subscriptions (#24473)
* chore: create a first-class type to distinguish client subscription ids from server subscription ids * chore: add fast-stable-stringify as a dependency to web3.js * fix: reimplement the subscription tracker as a state machine * test: updated tests to recognize that signatureUnsubscribe happens synchronously * chore: add sinon-chai so that we can make assertions on calling spies * test: coverage for the full range of subscription state transitions * fix: special case auto-disposing subscriptions like signatureSubscribe * fix: document Subscription type (SQUASH THIS) * fix: strict undefined checks (SQUASH THIS) * fix: naming (SQUASH THIS) * fix: move defaulting to source (SQUASH THIS) * fix: build RPC args first, then produce the subscription topic hash (SQUASH THIS) * fix: dispose handles no longer track whether they've been called (SQUASH THIS) * fix: shore up the auto-disposing sub tests now that double-free doesn't fatal (SQUASH THIS) * fix: write documentation explaining how and why to apply a default commitment (SQUASH THIS) * fix: skip subscriptions that have been deleted when recursing (SQUASH THIS) * fix: bail on async responses when the connection has been recycled (SQUASH THIS) * fix: typo in comment (SQUASH THIS) * chore: comment on why notification callbacks are ts-ignored * chore: start all the new stuff out as private members of the Connection class
- Loading branch information