The improvements made to the Circuit JS SDK have been incorporated in the Circuit node SDK.
Public interfaces are implemented with Promises. Promises significantly improve control flow and provide robust error handling. The examples published on github show how promises can be used for both sequential and parallel execution flows.
The SDK’s external dependencies have been reduced to the bare minimum. The SDK’s footprint is smaller and the SDK’s performance is improved.
Internal caching has been removed from the SDK, providing more flexibility to applications for the selection of a caching strategy and implementation. Applications also have improved interfaces for access to conversation and user data.
The SDK provides support for Presence, Likes, and Flags.
The documentation for the improved SDK is available on the sandbox
Updated examples are available on github
The node SDK can be downloaded from the sandbox
The new SDK offers a simpler application interface based on Promises. Please note that the new promise based interface is not backwards compatible with the previous interface based on callbacks. Moving to the new SDK requires an application change. The promise based interface offers far better flow control and error handling to applications.