npm stream-chat 4.0.0

latest releases: 8.1.1, 8.1.0, 8.0.0...
3 years ago

Breaking ⚠️

From now on client.connectUser() should be awaited #747. All instances of connectUser() should be changed to:

await connectUser()
// or 
connectUser().then() 
// ....
// queryChannels and other methods should be called after promise is resolved

The behavior is now improved for poor connections and connectUser retries to establish the connection before throwing an error. Make sure to handle the failure gracefully and do not proceed to query channels or other methods until connectUser resolves.

Feature

  • Campaign feature flag, name and description added #745 #736
  • Campaign and Segment pagination option #737
  • queryChannels options to skip initialization of certain channels #743 #740

Don't miss a new stream-chat release

NewReleases is sending notifications on new releases.