stream-chat
5.0/52

stream-chat

npm i stream-chat

227 Versions

8.1.2

latest
9 days ago
8.1.2 (2022-11-18) Bug Fixes
  • drop unimplemented message_id param from markRead api
  • switch read by to server time instead of unreliable local time

8.1.1

13 days ago
8.1.1 (2022-11-15) Bug Fixes
  • add missing property "joined" to ChannelResponse type (#1066) (5602322)
  • set local device's check for alive websocket connection (#1067) (a47b55b)

8.1.0

1 month ago
8.1.0 (2022-11-01) Features

8.0.0

1 month ago
8.0.0 (2022-10-12) ⚠ BREAKING CHANGES
  • compatible node version changed to >=v16
Bug Fixes
  • crypto.getRandomValues check for older node versions and min nod… (#1053) (3a5f6f6)

8.0.0-dev.0

dev
2 months ago

7.2.0

2 months ago
7.2.0 (2022-10-11) Features Bug Fixes
  • don't keep removed users when reinitializing channel (#1044) (c61f55a)
  • update client to use channel.cid as config keys (#1047) (aaf5c4c)

7.1.0

3 months ago
7.1.0 (2022-09-02) Features

7.0.0

3 months ago
7.0.0 (2022-08-23) Features
  • changes to support offline feature (#1011) (f8300e7)
    • added support for persistUserOnConnectionFailure option on client
    • added support for offlineMode option on channel
  • replaces console.warn instead throwing error when event is not valid (#1037) (90e3097)

6.9.0

3 months ago
6.9.0 (2022-08-18) Features
  • support limit for load message into state (#1031) (2968785)
Bug Fixes

7.0.0-offline-support.4

3 months ago

6.8.0

4 months ago
6.8.0 (2022-08-11) Features Bug Fixes
  • message update and delete events override own reactions (#1009) (fe1ad64)

  • race condition of query channels and ws connection (#1029) (f3a9ab4) Fixes following error:

    QueryChannels failed with error: "Watch or Presence requires an active websocket connection, please make sure to include your 
    websocket connection_id"
    

7.0.0-offline-support.3

4 months ago

7.0.0-offline-support.2

4 months ago

7.0.0-offline-support.1

4 months ago

7.0.0-offline-support.0

4 months ago

6.7.3

5 months ago
6.7.3 (2022-07-06) Bug Fixes

6.7.2

5 months ago
6.7.2 (2022-06-27) Bug Fixes

6.7.1

5 months ago
6.7.1 (2022-06-24) Bug Fixes
  • Channel: add "truncated_at" to "channel.truncated" event handler (#991) (edffd5f)

6.7.0

5 months ago
6.7.0 (2022-06-22) Bug Fixes
  • feat: add first_reporter field to the FlagReport type (#987) (0667f2e)

  • types: added support for thumb_url for video attachments in send file response (#982) (79ed099)


6.6.0

6 months ago
6.6.0 (2022-06-02) Features
  • eventmap: add user.unread_message_reminder (#972) (f70de60)
Bug Fixes
  • add TestCampaignResponse type (#967) (2c2e0c8)
  • delete_user: add task_id to deleteuser response (#963) (0090f93)
  • rename field (#966) (6c34e92)
  • types: add types to support permission migration parameters (#976) (6f82e1a)

6.5.1

7 months ago
6.5.1 (2022-04-22) Bug Fixes
  • multiple ws connections due to redundant openConnection calls (#960) (8150199)

6.5.0

7 months ago
6.5.0 (2022-04-15) What's Changed New Contributors

Full Changelog: https://github.com/GetStream/stream-chat-js/compare/v6.4.0...v6.5.0


6.4.0

8 months ago
6.4.0 (2022-04-05) What's Changed New Contributors

Full Changelog: https://github.com/GetStream/stream-chat-js/compare/v6.3.0...v6.4.0


6.3.0

8 months ago
6.3.0 (2022-03-23) Features

6.2.0

9 months ago
What's Changed New Contributors

Full Changelog: https://github.com/GetStream/stream-chat-js/compare/v6.1.0...v6.2.0


6.1.0

9 months ago
6.1.0 (2022-03-07) Features
  • moderation: add _queryFlags function (#913) (b86f0d5)
Bug Fixes
  • channel unreadCount to be set as 0 when notification.mark_read event is dispatched [CRNS - 433] (#914) (667969e)
  • unread count to not increment if channel has read_events off (#904) (75ebc95)

6.0.0

10 months ago
6.0.0 (2022-02-11) ⚠ BREAKING CHANGES
  • Dropped node 10 support #908

  • convert Generics into a single Generic (#837) (6406db4)


5.6.0

10 months ago
5.6.0 (2022-02-09) Features
  • moderation: update flag_report field name and add more filterin… (#894) (280b179)
Bug Fixes
  • fire health.check event after successful connection when using long poll transport (#900) (0b3cd97)
  • ignore unread count for thread replies (#890) (7a014be)

5.5.0

10 months ago
5.5.0 (2022-02-02) Features Bug Fixes
  • added transport.changed event to event map (#892) (48013cd)

5.4.0

10 months ago
5.4.0 (2022-01-25) Features
  • channel: add hard_delete flag to channel.delete (#885) (d0c0e5d)
Bug Fixes

5.3.0

10 months ago
5.3.0 (2022-01-24) Features Bug Fixes
  • include unread_messages for all message events (#871) (f26ceed)

5.2.0

10 months ago
What's Changed New Contributors

Full Changelog: https://github.com/GetStream/stream-chat-js/compare/v5.1.2...v5.2.0


5.1.2

1 year ago
What's Changed New Contributors

Full Changelog: https://github.com/GetStream/stream-chat-js/compare/v5.1.1...v5.1.2


5.1.1

1 year ago
What's Changed

Full Changelog: https://github.com/GetStream/stream-chat-js/compare/v5.1.0...v5.1.1


5.1.0

1 year ago
What's Changed

Full Changelog: https://github.com/GetStream/stream-chat-js/compare/v5.0.1...v5.1.0


5.0.1

1 year ago
What's Changed

Full Changelog: https://github.com/GetStream/stream-chat-js/compare/v5.0.0...v5.0.1


5.0.0

1 year ago
Breaking Changes ⚠️ Features Fix Chore

Full Changelog: https://github.com/GetStream/stream-chat-js/compare/v4.4.3...v5.0.0


4.5.0-beta.0

beta
1 year ago

4.4.3

1 year ago
What's Changed
  • Provide client_request_id as part of ws failure insights #811 @thesyncim @vishalnarkhede @mahboubii

4.4.3-dev.3

1 year ago

4.4.3-dev.2

1 year ago

4.4.3-dev.1

1 year ago

4.4.3-dev.0

1 year ago

4.4.2

1 year ago
What's Changed
  • Inject instance_client_id as part of insights so insights from different client instances can be distinguished 5bd6394 @thesyncim

4.4.1

1 year ago
What's Changed
  • Exported all the functions and classes from insights file @vishalnarkhede bd2dcbd

4.4.0

1 year ago
What's Changed
  • Added ability to send insights about websocket failures from client @thesyncim @vishalnarkhede 5fdd032

    const client = StreamChat.getInstance('apikey', { enableInsights: true })
    
  • Removed flag from CommandsVariant type @yaziine f1de4b6

  • Added quotes flag on channel config types @nmerkulov a130cf4


4.4.0-insights.0

1 year ago

4.3.0

1 year ago
What's Changed

Full Changelog: https://github.com/GetStream/stream-chat-js/compare/v4.2.0...v4.3.0


4.2.0

1 year ago
Fixes
  • Fixed the behavior of isConnecting flag in StableWSConnection class. Also client.connecting flag has been removed, so this could potentially be a breaking change for you, although this flag was never properly set so ideally you shouldn't be using this flag. bb165f8
Features
  • Added option clear_deleted_message_text in exportChannels endpoint 33f627f

4.1.0

1 year ago
Feature
  • Add own_capabilities attribute to channel response data #741
  • Add team filter for query flagged messages #754
  • queryChannel support user_id for server-side queries #753
Chore
  • Campaign namespace update #760

4.0.0-offline-caching.2

1 year ago

4.0.0-offline-caching.1

1 year ago

4.0.0-offline-caching.0

1 year ago

4.0.0

1 year 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

3.13.1

1 year ago
  • Allowing listeners for channel.deleted and notification.channel_deleted before disconnecting the channel from client cc8796e
  • Fixing issue with presence indicator not updating feff028

3.13.0

1 year ago
Issue fixes
  • Clear channel from client.activeChannels when its deleted on backend #728
  • Remove deleted properties from user objects on client when user-update related events are received #727
  • Remove reference to quoted message, when message gets deleted #726
Features/updates
  • Added following enpoints to client:

    • createSegment
    • getSegment
    • listSegments
    • updateSegment
    • deleteSegment
    • createCampaign
    • getCampaign
    • listCampaigns
    • updateCampaign
    • deleteCampaign
    • scheduleCampaign
    • stopCampaign
    • resumeCampaign
    • testCampaign
  • Removed target user id from payload on client.sendUserCustomEvent function 8bfcca3

  • Added grant field types to AppSettings 991b8118


3.12.1

1 year ago
Issue fixes
  • Fixed an issue with event (message.updated, message.deleted etc) based updates to message list, which can cause messages to go out of sync than desired state. Please read the PR description for more details - #713

3.12.0

1 year ago
Features/updates
  • Updates to client.search() and channel.search() endpoint #677

    • supports sorting results
    • returns next and previous parameters to get the next/previous page of results
    • supports pagination using the next parameter
  • Added new channel.assignRoles method for assigning custom roles to the channel members (#692)

  • Updated Permissions API methods (#707, #715)

  • Switched pinMessage and unpinMessage to partial update (#712)

Issue fixes
  • 704 Added missing team property to Event typescript type. #716

3.11.0

1 year ago
  • Fixed timer throttling issue, which was introduced with recent release of Chrome browser #698
  • Fixed issues with unread count on muted channels #678

3.10.0

2 years ago
Feature
  • client.partialUpdateMessage() to partially update messages #576
  • client.queryMessageFlags() to query flagged messages #676
  • client.createToken add support to have iat claim while generating tokens #674
  • client.revokeTokens() method to revoke/unrevoke tokens on an application level #674
  • client.revokeUserToken() method to revoke/unrevoke tokens on user level #674
  • client.revokenUsersToken() method to revoke/unrevoke tokens for multiple users at once #674

3.9.0

2 years ago
Feature
  • New endpoint to send custom user events #664
  • Support Node v16 #671

3.8.0

2 years ago
  • Better handling of user.deleted and user.updated events 6eddf39
    • When user.deleted event is received, mark messages from corresponding user as deleted.
    • When user.updated event is received, update references of corresponding user in messages.
  • Bug with with ChannelState.clean function 28581fd
  • Allow overriding of https agent on StreamChat f18e397
      const client = StreamChat.getInstance(apiKey, {
        httpsAgent: new https.Agent({
          keepAlive: true,
          keepAliveMsecs: 6000,
        });
      })
    
  • Updated following types
    • AppSettingsAPIResponse.enforce_unique_usernames 497220c
    • MessageLabel 7897e23

3.7.0

2 years ago
  • Receive unsubscribe handler from channel.on 1ae1fca
const eventHandler = (e) => {
  /** handle event here */
};
const { unsubscribe } = channel.on(eventHandler);

// When you want to remove listener:
unsubscribe();

3.6.2

2 years ago
  • Added extra check in client.updateMessage to make sure we don't send mentions_users as array of user objects. If yes, then convert it to array of userIds (which is what API expects) #647

3.6.1

2 years ago
Fix
  • message.__html type is deprecated in favor of message.html #646
  • message.__html is ignored in updateMessage function #645

3.6.0

2 years ago
  • Add support to set baseURL from options #644
    • StreamChat.getInstance('key', { baseURL })

3.5.1

2 years ago

Remove call to channel._disconnect from client.closeConnection. For end user this will fix the issue - You can't use a channel after client.disconnect() was called #639


3.5.0

2 years ago
  • Deprecated client.disconnect. A new method has been introduced as alias - client.disconnectUser

  • Introduced following two methods on client:

    • client.openConnection - establish a ws connection on current client.
    • client.closeConnection - close the ws connection on current client, doesn't remove user
  • Moved call to setHealth(true), (which marks the connection as healthy) to only after you receive first event on websocket. Please check the description of PR #626 for details.


3.4.0

2 years ago

channel.queryMembers - Added support for pagination by user_id 0c41232


3.3.0

2 years ago
Feature
  • Added the Client.getRateLimits function to retrieve rate limit quotas and usage, with the option to filter per platform and endpoint #631
  • Support reactions sync for pinned messages in channel state #629

3.2.0

2 years ago
Feature
  • Added the Client.queryBannedUsers function to query banned users with optional filters #625

3.1.4

2 years ago
Fix
  • Clear (set to false) isUpToDate flag, when channel watcher is disconnected #624

3.1.3

2 years ago
Chore
  • Change stream client header from x-stream-client to X-Stream-Client #622

3.1.2

2 years ago
Fix
  • Fixed regression introduced in 3.1.0 causing ChannelState.messages not to update on incoming reaction events #621

3.1.1

2 years ago
Fix
  • Channel state message list mutation #619

3.1.0

2 years ago
Feature
  • sendMessage accepts a skip_push flag to skip sending push notifications #608
Fix
  • Sync own_reactions in the events #606
  • Missing user_id in channel instantion by members #610

3.0.1

2 years ago
  • Add back some deprecated functions for convenience #615

3.0.0

2 years ago
BREAKING CHANGES ⚠️
  • Removed seamless-immutable library completely for client/channel state management in favor of pure JS objects #602. This will likely require some changes to frontend usage of these states with spread operators for deeply nested data updates
  • Changed channel state messageToImmutable function to formatMessage #602
  • channel.sendReaction(messageID: string, reaction: Reaction, user_id?: string, enforce_unique?: boolean) is changed to channel.sendReaction(messageID: string, reaction: Reaction, options?: { enforce_unique?: boolean }). The removed user_id parameter should be added to reaction.
  • client.setUser() function is removed in favor of client.connectUser() #612
  • client.setAnonymousUser() function is removed in favor of client.connectAnonymousUser() #612
  • client.updateUser() function is removed in favor of client.upsertUser() #612
  • client.updateUsers() function is removed in favor of client.upsertUsers() #612
  • client._userAgent() function is removed in favor of client.getUserAgent() #612
Fix
  • Added types for auto translations #602
  • Added missing options for gdpr endpoints #609
Chore
  • Upgrade Dependencies #613

3.0.0-beta.0

2 years ago

2.12.0

2 years ago
Feature
  • New StreamChat.getInstance function to be use instead of new StreamChat() #599
  • Types for file and image upload app configuration #582
Fix
  • Allow consecutive calls with a warning to client.connectUser for the same user #600

2.11.6-beta.0

2 years ago

2.11.5

2 years ago
Fix
  • Skip sorting channel members while instantiating a channel without id #591

2.11.4

2 years ago

Ensure unique channel per cid on client's activeChannel state Please check the description on #586 for more details.


2.11.3

2 years ago
  • Added types for query by date parameters - b249e0b
  • Added missing type definitions around channel config - 9c3067f

2.11.2

2 years ago
Fix
  • Add thread_participants to MessageResponse and correct pinned types 8e357a8

2.11.1

2 years ago
Fix
  • Types on event object regarding unread counts. 36e2297

2.11.0

2 years ago
Feature
  • Added support for quoted messages #561
  • Added support for enforce_unique param on send reaction API. When true, previous reaction (if any) from user will be replaced with the new reaction. 27ddd4f
  • Added event handler for event reaction.updated 27ddd4f
  • Added new flag on channel state isUpToDate (please check description for details) 588c0e9
Fix
  • Fixed types for client.user d855779

2.10.1-dev.1

2 years ago

2.10.1-dev.0

2 years ago

2.10.0

2 years ago
Feature
  • New channel.updatePartial() function can be used to set and unset specific fields when it is necessary to retain additional custom data fields on Channel #550
  • client.testPushSettings() accepts skipDevices boolean attribute which skip config/device checks and sending to real devices #548
  • channel.sendReaction() accepts enforce_unique attribute to overwrite existing reactions if any #527
Fix
  • deprecate setUser and setAnonymousUser in favor of connectUser and connectAnonymousUser #529
  • Update channel read state when a new message is sent #536
  • Removed unused user_details field from query_channels #545
  • MessageResponse type #551
  • AppSettings type #541

2.9.1-dev.0

2 years ago

2.9.0

2 years ago
  • Adding recoverStateOnReconnect option - #534
  • Adding UpdatedMessage typescript type

2.8.5-dev.1

2 years ago

2.8.5-dev.0

2 years ago

2.8.4

2 years ago
Fix
  • Reset unreadCount when channel gets truncated #521

2.8.3

2 years ago
Fix
  • add custom_event to channel types #520

2.8.2

2 years ago
Fix
  • Replace UUID with simple random generator #518

2.8.1

2 years ago
Fix
  • Duplicate message from current user #509
  • Sort direction array for queries #501
  • Add enforce_unique_usernames to AppSettingsAPIResponse type #511

2.8.0

2 years ago
Feature
  • Channel export #504
  • New event notification.invite_rejected #467
  • Channel stopTyping accepts optional parent_id for typing in threads notification.invite_rejected #505
Fix
  • Mute users no longer counted in channel unread #498
  • AppSettingsAPIResponse type includes image_moderation_enabled #497
  • User ban function signature updated #502: client.banUser('user1', {user_id: 'user2'}) is replaced with client.banUser('user1', {banned_by_id: 'user2'})

2.7.4

2 years ago
Feature
  • Ban user by IP (Server-Side only) #485

227 Versions

TagPublished
8.1.2latest9d ago
8.1.113d ago
8.1.01mo ago
8.0.01mo ago
8.0.0-dev.0dev2mos ago
7.2.02mos ago
7.1.03mos ago
7.0.03mos ago
6.9.03mos ago
7.0.0-offline-support.43mos ago
6.8.04mos ago
7.0.0-offline-support.34mos ago
7.0.0-offline-support.24mos ago
7.0.0-offline-support.14mos ago
7.0.0-offline-support.04mos ago
6.7.35mos ago
6.7.25mos ago
6.7.15mos ago
6.7.05mos ago
6.6.06mos ago
6.5.17mos ago
6.5.07mos ago
6.4.08mos ago
6.3.08mos ago
6.2.09mos ago
6.1.09mos ago
6.0.010mos ago
5.6.010mos ago
5.5.010mos ago
5.4.010mos ago
5.3.010mos ago
5.2.010mos ago
5.1.21yr ago
5.1.11yr ago
5.1.01yr ago
5.0.11yr ago
5.0.01yr ago
4.5.0-beta.0beta1yr ago
4.4.31yr ago
4.4.3-dev.31yr ago
4.4.3-dev.21yr ago
4.4.3-dev.11yr ago
4.4.3-dev.01yr ago
4.4.21yr ago
4.4.11yr ago
4.4.01yr ago
4.4.0-insights.01yr ago
4.3.01yr ago
4.2.01yr ago
4.1.01yr ago
4.0.0-offline-caching.21yr ago
4.0.0-offline-caching.11yr ago
4.0.0-offline-caching.01yr ago
4.0.01yr ago
3.13.11yr ago
3.13.01yr ago
3.12.11yr ago
3.12.01yr ago
3.11.01yr ago
3.10.02yrs ago
3.9.02yrs ago
3.8.02yrs ago
3.7.02yrs ago
3.6.22yrs ago
3.6.12yrs ago
3.6.02yrs ago
3.5.12yrs ago
3.5.02yrs ago
3.4.02yrs ago
3.3.02yrs ago
3.2.02yrs ago
3.1.42yrs ago
3.1.32yrs ago
3.1.22yrs ago
3.1.12yrs ago
3.1.02yrs ago
3.0.12yrs ago
3.0.02yrs ago
3.0.0-beta.02yrs ago
2.12.02yrs ago
2.11.6-beta.02yrs ago
2.11.52yrs ago
2.11.42yrs ago
2.11.32yrs ago
2.11.22yrs ago
2.11.12yrs ago
2.11.02yrs ago
2.10.1-dev.12yrs ago
2.10.1-dev.02yrs ago
2.10.02yrs ago
2.9.1-dev.02yrs ago
2.9.02yrs ago
2.8.5-dev.12yrs ago
2.8.5-dev.02yrs ago
2.8.42yrs ago
2.8.32yrs ago
2.8.22yrs ago
2.8.12yrs ago
2.8.02yrs ago
2.7.42yrs ago