SDK Changelog - v30.0.0 to v30.1.0
This guide describes changes between v30.0.0 and v30.1.0 of @polymeshassociation/polymesh-sdk.
Overview
v30.1.0 is a minor release containing bug fixes and a dependency update. There are no breaking changes — upgrading is a drop-in replacement for v30.0.0.
Dependency updates
| Package | v30.0.0 | v30.1.0 |
|---|---|---|
@polymeshassociation/polymesh-types | ^7.4.0 | ^7.5.0 |
Bug fixes
Asset transaction history pagination
assetTransactionQuery (used by getTransactionHistory() on assets) was missing its pagination parameters, so size and start were ignored and the full result set was always requested from middleware. Pagination now works as documented:
const { data, next } = await asset.getTransactionHistory({
size: new BigNumber(25),
start: new BigNumber(0),
});
Transaction status change events
onStatusChange listeners were only notified for the Unapproved, Running, and terminal statuses — the intermediate Future and InBlock statuses introduced in v30.0.0 (and Idle) were skipped. All status transitions now emit a StatusChange event, so progress monitoring like the following works as expected:
tx.onStatusChange(transaction => {
if (transaction.status === TransactionStatus.InBlock) {
console.log('Transaction included in block, awaiting finalization');
}
});
WebSocket selection in Cloudflare Workers
Environments that expose both a native WebSocket and Node.js compatibility flags (e.g. Cloudflare Workers with nodejs_compat) caused the SDK's chain version check to import the Node ws package and fail with ws does not work in the browser. The SDK now prefers the native WebSocket whenever it exists and only falls back to ws when it does not.
Account.getTypeInfo() smart contract check removed
Account.getTypeInfo() no longer queries the contracts pallet, which is not part of the Polymesh runtime. The method will no longer return AccountKeyType.SmartContract (the enum value remains for compatibility but is never returned).
Documentation build
rimraf was added as a dev dependency so the docs build works from a clean checkout (internal tooling fix, no runtime impact).
Version compatibility matrix
| SDK version | Chain v7 | Chain v8 | Middleware V2 | Polkadot.js |
|---|---|---|---|---|
| v30.0.0 | ✅ | ✅ | ≥ v19.6.0-alpha.2 | 16.5.2 |
| v30.1.0 | ✅ | ✅ | ≥ v19.6.0-alpha.2 | 16.5.2 |