[v0.2.12] Bug on Chart Streaming
Pre-releaseRelease Notes — binance-sync v0.2.12
Release Type: Patch
Ticket: BNB-76
PR: #97 — [v0.2.12] Bug on Chart Streaming
Bug Fixes
Chart Streaming event payload compatibility — Fixed the ChartStream event listener to correctly handle payloads in both browser (CustomEvent.detail) and Node.js (direct payload) environments, ensuring callbacks receive the correct data regardless of runtime context.
Improvements
Immediate chart access on listener registration — In BinanceStreams, when a function is passed as the data argument, it is now immediately invoked with the chart object right after being registered as an update listener, providing instant access to the current chart instance without waiting for the next update.
Versioning
Bumped package version from 0.2.11 → 0.2.12 in package.json.
Migration Notes
No breaking changes. This is a drop-in patch update.