Stream JavaScript & Node Client (V3)
Blog post from Stream
The latest version of the Stream JavaScript client introduces several enhancements, such as support for new Stream API features, a reduction in the size of the distributable JavaScript file, improved browser compatibility, and the creation of library documentation pages. A significant update is the implementation of promises for asynchronous API requests, which facilitates better error handling and avoids "callback hell," although callbacks remain supported. The release also adds two new batch operations: addToMany, which allows a single activity to be added to multiple feeds, and followMany, which enables the creation of multiple follow relations in a single API call. Additionally, the 'activity_copy_limit' feature lets users establish follow relations without copying the target feed's history, and an optional token expiration feature has been introduced when connecting to Stream, with the default setting being non-expiring tokens.