chore: bump polkadot-api to 2.1.6 (double-notification fix)#207
Merged
Conversation
Ran `npm update polkadot-api`, which re-pins the locked resolution from 2.1.2 to 2.1.6 (workspace ranges are `>=2`, so no package.json change). 2.1.6 includes polkadot-api/polkadot-api#1385 (fix(ws-middleware): deliver legacy subscription notifications once), which fixes legacy/custom RPC subscriptions opened through a `getWsProvider` connection delivering every notification twice. The root cause was `hybridMiddleware` multiplexing one socket into modern + legacy providers that share a single `msg$` stream. This affects our `statement-store` (`statement_subscribeStatement`) and any other legacy subscriptions. The lockfile diff is large because `npm update` also floats polkadot-api's dependency family (@polkadot-api/*) and transitive deps (rollup platform binaries, commander) to their newest in-range versions.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
johnthecat
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps the locked resolution of
polkadot-apifrom 2.1.2 → 2.1.6.Ran:
Our workspace packages declare the range
polkadot-api: ">=2", so this only re-pins the lockfile resolutionWhy
2.1.6 ships polkadot-api/polkadot-api#1385. That PR fixes a bug where a
getWsProviderconnection deliver every notification twice**: