stream-chat 4.4.3-dev.2 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -13
- package/dist/browser.es.js +1229 -720
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/browser.js +1229 -719
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +1229 -720
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1229 -719
- package/dist/index.js.map +1 -1
- package/dist/types/base64.d.ts.map +1 -1
- package/dist/types/channel.d.ts +19 -15
- package/dist/types/channel.d.ts.map +1 -1
- package/dist/types/channel_state.d.ts +2 -2
- package/dist/types/channel_state.d.ts.map +1 -1
- package/dist/types/client.d.ts +25 -42
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/client_state.d.ts +2 -2
- package/dist/types/client_state.d.ts.map +1 -1
- package/dist/types/connection.d.ts +14 -49
- package/dist/types/connection.d.ts.map +1 -1
- package/dist/types/connection_fallback.d.ts +41 -0
- package/dist/types/connection_fallback.d.ts.map +1 -0
- package/dist/types/errors.d.ts +14 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/insights.d.ts +17 -10
- package/dist/types/insights.d.ts.map +1 -1
- package/dist/types/permissions.d.ts.map +1 -1
- package/dist/types/signing.d.ts +3 -3
- package/dist/types/signing.d.ts.map +1 -1
- package/dist/types/token_manager.d.ts +2 -2
- package/dist/types/token_manager.d.ts.map +1 -1
- package/dist/types/types.d.ts +94 -88
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts +13 -3
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/base64.ts +1 -4
- package/src/channel.ts +133 -461
- package/src/channel_state.ts +31 -158
- package/src/client.ts +291 -712
- package/src/client_state.ts +2 -2
- package/src/connection.ts +146 -395
- package/src/connection_fallback.ts +205 -0
- package/src/errors.ts +58 -0
- package/src/insights.ts +38 -32
- package/src/permissions.ts +3 -24
- package/src/signing.ts +6 -17
- package/src/token_manager.ts +6 -18
- package/src/types.ts +268 -512
- package/src/utils.ts +58 -24
- package/CHANGELOG.md +0 -844
package/CHANGELOG.md
DELETED
|
@@ -1,844 +0,0 @@
|
|
|
1
|
-
# CHANGELOG
|
|
2
|
-
|
|
3
|
-
## September 15, 2021 - 4.2.0
|
|
4
|
-
|
|
5
|
-
### Fixes
|
|
6
|
-
|
|
7
|
-
- 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
|
|
8
|
-
this flag. [bb165f8](https://github.com/GetStream/stream-chat-js/commit/bb165f8c48a140c06c6811a337955cd5258877f9)
|
|
9
|
-
|
|
10
|
-
### Features
|
|
11
|
-
|
|
12
|
-
- Added option `clear_deleted_message_text` in `exportChannels` endpoint [33f627f](https://github.com/GetStream/stream-chat-js/commit/33f627f0f8b8b669d463b5393ec93a37f53d6415)
|
|
13
|
-
|
|
14
|
-
## Augest 24, 2021 - 4.1.0
|
|
15
|
-
|
|
16
|
-
### Feature
|
|
17
|
-
|
|
18
|
-
- Add `own_capabilities` attribute to channel response data #741
|
|
19
|
-
- Add `team` filter for query flagged messages #754
|
|
20
|
-
- `queryChannel` support `user_id` for server-side queries #753
|
|
21
|
-
|
|
22
|
-
### Fix
|
|
23
|
-
|
|
24
|
-
- Campaign namespace update #760
|
|
25
|
-
|
|
26
|
-
## Augest 12, 2021 - 4.0.0
|
|
27
|
-
|
|
28
|
-
### Breaking ⚠️
|
|
29
|
-
|
|
30
|
-
From now on `client.connectUser()` should be awaited #747. All instances of `connectUser()` should be changed to:
|
|
31
|
-
|
|
32
|
-
```js
|
|
33
|
-
await connectUser();
|
|
34
|
-
// or
|
|
35
|
-
connectUser().then();
|
|
36
|
-
// ....
|
|
37
|
-
// queryChannels and other methods should be called after promosie is resolved
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
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.
|
|
41
|
-
|
|
42
|
-
### Feature
|
|
43
|
-
|
|
44
|
-
- Campaign feature flag, name and description added #745 #736
|
|
45
|
-
- Campaign and Segment pagination option #737
|
|
46
|
-
- `queryChannels` options to skip initialization of certain channels #743 #740
|
|
47
|
-
|
|
48
|
-
## July 29, 2021 - 3.13.1
|
|
49
|
-
|
|
50
|
-
- Allowing listeners for `channel.deleted` and `notification.channel_deleted` before disconnecting the channel from client [cc8796e](https://github.com/GetStream/stream-chat-js/commit/cc8796e6bf3cfc1966080bc5ef9581dc83c6ed77)
|
|
51
|
-
- Fixing issue with presence indicator not updating [feff028](https://github.com/GetStream/stream-chat-js/commit/feff0289c1bca121b71663a9b860faf15c57c50f)
|
|
52
|
-
|
|
53
|
-
## July 28, 2021 - 3.13.0
|
|
54
|
-
|
|
55
|
-
### Issue fixes
|
|
56
|
-
|
|
57
|
-
- Clear channel from `client.activeChannels` when its deleted on backend [#728](https://github.com/GetStream/stream-chat-js/pull/728)
|
|
58
|
-
- Remove deleted properties from user objects on client when user-update related events are received [#727](https://github.com/GetStream/stream-chat-js/pull/727)
|
|
59
|
-
- Remove reference to quoted message, when message gets deleted [#726](https://github.com/GetStream/stream-chat-js/pull/726)
|
|
60
|
-
Please note that channel can't be used once its deleted. You will need to re-create the channel using `client.channel(channelType, channelId)` call
|
|
61
|
-
|
|
62
|
-
### Features/updates
|
|
63
|
-
|
|
64
|
-
- Added following enpoints to client:
|
|
65
|
-
|
|
66
|
-
- `createSegment`
|
|
67
|
-
- `getSegment`
|
|
68
|
-
- `listSegments`
|
|
69
|
-
- `updateSegment`
|
|
70
|
-
- `deleteSegment`
|
|
71
|
-
- `createCampaign`
|
|
72
|
-
- `getCampaign`
|
|
73
|
-
- `listCampaigns`
|
|
74
|
-
- `updateCampaign`
|
|
75
|
-
- `deleteCampaign`
|
|
76
|
-
- `scheduleCampaign`
|
|
77
|
-
- `stopCampaign`
|
|
78
|
-
- `resumeCampaign`
|
|
79
|
-
- `testCampaign`
|
|
80
|
-
|
|
81
|
-
- Removed target user id from payload on `client.sendUserCustomEvent` function [8bfcca3](https://github.com/GetStream/stream-chat-js/commit/8bfcca3196c8e01c0794ee7f6daea75da4ebfd8a)
|
|
82
|
-
- Added `grant` field types to AppSettings [991b8118](https://github.com/GetStream/stream-chat-js/commit/991b8118567ee4d92f38a4a1d7cbaec41c4d6229)
|
|
83
|
-
|
|
84
|
-
## July 15, 2021 - 3.12.1
|
|
85
|
-
|
|
86
|
-
### Issue fixes
|
|
87
|
-
|
|
88
|
-
- 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](https://github.com/GetStream/stream-chat-js/pull/713)
|
|
89
|
-
|
|
90
|
-
## July 13, 2021 - 3.12.0
|
|
91
|
-
|
|
92
|
-
### Features/updates
|
|
93
|
-
|
|
94
|
-
- Updates to `client.search()` and `channel.search()` endpoint [#677](https://github.com/GetStream/stream-chat-js/pull/677)
|
|
95
|
-
|
|
96
|
-
- supports sorting results
|
|
97
|
-
- returns `next` and `previous` parameters to get the next/previous page of results
|
|
98
|
-
- supports pagination using the `next` parameter
|
|
99
|
-
|
|
100
|
-
- Added new `channel.assignRoles` method for assigning custom roles to the channel members ([#692](https://github.com/GetStream/stream-chat-js/pull/692))
|
|
101
|
-
- Updated Permissions API methods ([#707](https://github.com/GetStream/stream-chat-js/pull/707), [#715](https://github.com/GetStream/stream-chat-js/pull/715))
|
|
102
|
-
- Switched `pinMessage` and `unpinMessage` to partial update ([#712](https://github.com/GetStream/stream-chat-js/pull/712))
|
|
103
|
-
|
|
104
|
-
### Issue fixes
|
|
105
|
-
|
|
106
|
-
- [704](https://github.com/GetStream/stream-chat-js/issues/704) Added missing `team` property to `Event` typescript type. [#716](https://github.com/GetStream/stream-chat-js/pull/716/files)
|
|
107
|
-
|
|
108
|
-
## June 8, 2021 - 3.11.0
|
|
109
|
-
|
|
110
|
-
- Fixed timer throttling issue, which was introduced with recent release of Chrome browser [#698](https://github.com/GetStream/stream-chat-js/pull/698)
|
|
111
|
-
- Fixed issues with unread count on muted channels [#678](https://github.com/GetStream/stream-chat-js/pull/678)
|
|
112
|
-
|
|
113
|
-
## May 21, 2021 - 3.10.0
|
|
114
|
-
|
|
115
|
-
### Feature
|
|
116
|
-
|
|
117
|
-
- `client.partialUpdateMessage()` to partially update messages [#576](https://github.com/GetStream/stream-chat-js/pull/576)
|
|
118
|
-
- `client.queryMessageFlags()` to query flagged messages [#676](https://github.com/GetStream/stream-chat-js/pull/676)
|
|
119
|
-
- `client.createToken` add support to have `iat` claim while generating tokens [#674](https://github.com/GetStream/stream-chat-js/pull/674)
|
|
120
|
-
- `client.revokeTokens()` method to revoke/unrevoke tokens on an application level [#674](https://github.com/GetStream/stream-chat-js/pull/674)
|
|
121
|
-
- `client.revokeUserToken()` method to revoke/unrevoke tokens on user level [#674](https://github.com/GetStream/stream-chat-js/pull/674)
|
|
122
|
-
- `client.revokenUsersToken()` method to revoke/unrevoke tokens for multiple users at once [#674](https://github.com/GetStream/stream-chat-js/pull/674)
|
|
123
|
-
|
|
124
|
-
## May 3, 2021 - 3.9.0
|
|
125
|
-
|
|
126
|
-
### Feature
|
|
127
|
-
|
|
128
|
-
- New endpoint to send custom user events [#664](https://github.com/GetStream/stream-chat-js/pull/664)
|
|
129
|
-
- Support Node v16 [#671](https://github.com/GetStream/stream-chat-js/pull/671)
|
|
130
|
-
|
|
131
|
-
## March 29, 2021 - 3.8.0
|
|
132
|
-
|
|
133
|
-
- Better handling of user.deleted and user.updated events [6eddf39](https://github.com/GetStream/stream-chat-js/commit/6eddf39487d6073a9b7654712f51772c893d8dc6)
|
|
134
|
-
- When `user.deleted` event is received, mark messages from corresponding user as deleted.
|
|
135
|
-
- When `user.updated` event is received, update references of corresponding user in messages.
|
|
136
|
-
- Bug with with ChannelState.clean function [28581fd](https://github.com/GetStream/stream-chat-js/commit/28581fd9fae0f3cf761ac0cf785910cea476c61c)
|
|
137
|
-
- Allow overriding of https agent on StreamChat [f18e397](https://github.com/GetStream/stream-chat-js/commit/f18e3974caa2b384d52beca10f25d34c726969e8)
|
|
138
|
-
```js
|
|
139
|
-
const client = StreamChat.getInstance(apiKey, {
|
|
140
|
-
httpsAgent: new https.Agent({
|
|
141
|
-
keepAlive: true,
|
|
142
|
-
keepAliveMsecs: 6000,
|
|
143
|
-
});
|
|
144
|
-
})
|
|
145
|
-
```
|
|
146
|
-
- Updated following types
|
|
147
|
-
- `AppSettingsAPIResponse.enforce_unique_usernames` [497220c](https://github.com/GetStream/stream-chat-js/commit/497220c9b32acbb9e8a4efc7a24e9eafbce06e71)
|
|
148
|
-
- `MessageLabel` [7897e23](https://github.com/GetStream/stream-chat-js/commit/7897e239037bdc97a1066ca446d6a1bf4b7c4967)
|
|
149
|
-
|
|
150
|
-
## March 19, 2021 - 3.7.0
|
|
151
|
-
|
|
152
|
-
- Receive unsubscribe handler from `channel.on` [1ae1fca](https://github.com/GetStream/stream-chat-js/commit/1ae1fca10e5db251c549ce5b50ec19ff5ea617e2)
|
|
153
|
-
|
|
154
|
-
```js
|
|
155
|
-
const eventHandler = (e) => {
|
|
156
|
-
/** handle event here */
|
|
157
|
-
};
|
|
158
|
-
const { unsubscribe } = channel.on(eventHandler);
|
|
159
|
-
|
|
160
|
-
// When you want to remove listener:
|
|
161
|
-
unsubscribe();
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
## March 17, 2021 - 3.6.2
|
|
165
|
-
|
|
166
|
-
- 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
|
|
167
|
-
to array of userIds (which is what API expects) [#647](https://github.com/GetStream/stream-chat-js/pull/647)
|
|
168
|
-
|
|
169
|
-
## March 16, 2021 - 3.6.1
|
|
170
|
-
|
|
171
|
-
- `message.__html` type is deprecated in favor of `message.html` [#646](https://github.com/GetStream/stream-chat-js/pull/646)
|
|
172
|
-
- `message.__html` is ignored `updateMessage` function [#645](https://github.com/GetStream/stream-chat-js/pull/645)
|
|
173
|
-
|
|
174
|
-
## March 15, 2021 - 3.6.0
|
|
175
|
-
|
|
176
|
-
- Add support to set `baseURL` from `options` [#644](https://github.com/GetStream/stream-chat-js/pull/644)
|
|
177
|
-
- `StreamChat.getInstance('key', { baseURL })`
|
|
178
|
-
|
|
179
|
-
## March 11, 2021 - 3.5.1
|
|
180
|
-
|
|
181
|
-
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](https://github.com/GetStream/stream-chat-js/pull/639)
|
|
182
|
-
|
|
183
|
-
## March 10, 2021 - 3.5.0
|
|
184
|
-
|
|
185
|
-
- Deprecated `client.disconnect`. A new method has been introduced as alias - `client.disconnectUser`
|
|
186
|
-
- Introduced following two methods on client:
|
|
187
|
-
|
|
188
|
-
- client.openConnection - establish a ws connection on current client.
|
|
189
|
-
- client.closeConnection - close the ws connection on current client, doesn't remove user
|
|
190
|
-
|
|
191
|
-
- Moved call to `setHealth(true)`, (which marks the connection as healthy) to only after you receive first event on websocket.
|
|
192
|
-
Please check the description of PR [#626](https://github.com/GetStream/stream-chat-js/pull/626) for details.
|
|
193
|
-
|
|
194
|
-
## March 9, 2021 - 3.4.0
|
|
195
|
-
|
|
196
|
-
QueryMembers - Added support for pagination by user_id [0c41232](https://github.com/GetStream/stream-chat-js/commit/0c412321bc4de81b123574041e0abadf89f235df)
|
|
197
|
-
|
|
198
|
-
## March 9, 2021 - 3.3.0
|
|
199
|
-
|
|
200
|
-
### Feature
|
|
201
|
-
|
|
202
|
-
- Added the `Client.getRateLimits` function to retrieve rate limit quotas and usage, with the option to filter per platform and endpoint [#631](https://github.com/GetStream/stream-chat-js/pull/631)
|
|
203
|
-
- Support reactions sync for pinned messages in channel state [#629](https://github.com/GetStream/stream-chat-js/pull/629)
|
|
204
|
-
|
|
205
|
-
## March 8, 2021 - 3.2.0
|
|
206
|
-
|
|
207
|
-
### Feature
|
|
208
|
-
|
|
209
|
-
- Added the `Client.queryBannedUsers` function to query banned users with optional filters [#625](https://github.com/GetStream/stream-chat-js/pull/625)
|
|
210
|
-
|
|
211
|
-
## March 5, 2021 - 3.1.4
|
|
212
|
-
|
|
213
|
-
### Fix
|
|
214
|
-
|
|
215
|
-
- Clear (set to false) `isUpToDate` flag, when channel watcher is disconnected [#624](https://github.com/GetStream/stream-chat-js/pull/624)
|
|
216
|
-
|
|
217
|
-
## March 2, 2021 - 3.1.3
|
|
218
|
-
|
|
219
|
-
### Chore
|
|
220
|
-
|
|
221
|
-
- Change stream client header from `x-stream-client` to `X-Stream-Client` [#622](https://github.com/GetStream/stream-chat-js/pull/622)
|
|
222
|
-
|
|
223
|
-
## February 26, 2021 - 3.1.2
|
|
224
|
-
|
|
225
|
-
### Fix
|
|
226
|
-
|
|
227
|
-
- Fixed regression introduced in 3.1.0 causing `ChannelState.messages` not to update on incoming reaction events [#621](https://github.com/GetStream/stream-chat-js/pull/621)
|
|
228
|
-
|
|
229
|
-
## February 23, 2021 - 3.1.1
|
|
230
|
-
|
|
231
|
-
### Fix
|
|
232
|
-
|
|
233
|
-
- Channel state message list mutation [#619](https://github.com/GetStream/stream-chat-js/pull/619)
|
|
234
|
-
|
|
235
|
-
## February 17, 2021 - 3.1.0
|
|
236
|
-
|
|
237
|
-
### Feature
|
|
238
|
-
|
|
239
|
-
- `sendMessage` accepts a `skip_push` flag to skip sending push notifications [#608](https://github.com/GetStream/stream-chat-js/pull/608)
|
|
240
|
-
|
|
241
|
-
### Fix
|
|
242
|
-
|
|
243
|
-
- Sync `own_reactions` in the events [#606](https://github.com/GetStream/stream-chat-js/pull/606)
|
|
244
|
-
- Missing user_id in channel instantion by members [#610](https://github.com/GetStream/stream-chat-js/pull/610)
|
|
245
|
-
|
|
246
|
-
## February 11, 2021 - 3.0.1
|
|
247
|
-
|
|
248
|
-
- Add back some deprecated functions for convenience [#615](https://github.com/GetStream/stream-chat-js/pull/615)
|
|
249
|
-
|
|
250
|
-
## February 10, 2021 - 3.0.0
|
|
251
|
-
|
|
252
|
-
### BREAKING CHANGES
|
|
253
|
-
|
|
254
|
-
- Removed `seamless-immutable` library completely for client/channel state management in favor of pure JS objects [#602](https://github.com/GetStream/stream-chat-js/pull/602). This will likely require some changes to frontend usage of these states with spread operators for deeply nested data updates
|
|
255
|
-
- Changed channel state `messageToImmutable` function to `formatMessage` [#602](https://github.com/GetStream/stream-chat-js/pull/602)
|
|
256
|
-
|
|
257
|
-
- `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`.
|
|
258
|
-
- `client.setUser()` function is removed in favor of `client.connectUser()` [#612](https://github.com/GetStream/stream-chat-js/pull/612)
|
|
259
|
-
- `client.setAnonymousUser()` function is removed in favor of `client.connectAnonymousUser()` [#612](https://github.com/GetStream/stream-chat-js/pull/612)
|
|
260
|
-
- `client.updateUser()` function is removed in favor of `client.upsertUser()` [#612](https://github.com/GetStream/stream-chat-js/pull/612)
|
|
261
|
-
- `client.updateUsers()` function is removed in favor of `client.upsertUsers()` [#612](https://github.com/GetStream/stream-chat-js/pull/612)
|
|
262
|
-
- `client._userAgent()` function is removed in favor of `client.getUserAgent()` [#612](https://github.com/GetStream/stream-chat-js/pull/612)
|
|
263
|
-
|
|
264
|
-
### Fix
|
|
265
|
-
|
|
266
|
-
- Added types for auto translations [#602](https://github.com/GetStream/stream-chat-js/pull/602)
|
|
267
|
-
- Added missing options for gdpr endpoints [#609](https://github.com/GetStream/stream-chat-js/pull/609)
|
|
268
|
-
|
|
269
|
-
### Chore
|
|
270
|
-
|
|
271
|
-
- Upgrade Dependencies [#613](https://github.com/GetStream/stream-chat-js/pull/613)
|
|
272
|
-
|
|
273
|
-
## January 28, 2021 - 2.12.0
|
|
274
|
-
|
|
275
|
-
### Feature
|
|
276
|
-
|
|
277
|
-
- New `StreamClient.getInstance` function to be use instead of `new StreamClient()` [#599](https://github.com/GetStream/stream-chat-js/pull/599)
|
|
278
|
-
- Types for file and image upload app configuration [#582](https://github.com/GetStream/stream-chat-js/pull/582)
|
|
279
|
-
|
|
280
|
-
### Fix
|
|
281
|
-
|
|
282
|
-
- Allow consecutive calls with warning to `client.connectUser` for the same user [#600](https://github.com/GetStream/stream-chat-js/pull/600)
|
|
283
|
-
|
|
284
|
-
## January 21, 2021 - 2.11.5
|
|
285
|
-
|
|
286
|
-
### Fix
|
|
287
|
-
|
|
288
|
-
- Skip sorting channel members while instantiating a channel without id [#591](https://github.com/GetStream/stream-chat-js/pull/591)
|
|
289
|
-
|
|
290
|
-
## January 20, 2021 - 2.11.4
|
|
291
|
-
|
|
292
|
-
- Ensure uniqe channel per cid on client's activeChannel state [#586](https://github.com/GetStream/stream-chat-js/pull/586)
|
|
293
|
-
|
|
294
|
-
## January 18, 2021 - 2.11.3
|
|
295
|
-
|
|
296
|
-
- Added types for query by date parameters - [b249e0b](https://github.com/GetStream/stream-chat-js/commit/b249e0b02da9b6e1c3984586b7ab823de072dd4b)
|
|
297
|
-
- Added missing type definitions around channel config - [9c3067f](https://github.com/GetStream/stream-chat-js/commit/9c3067f70efa9cad12233d10818b623efc00e1f6)
|
|
298
|
-
|
|
299
|
-
## January 11, 2021 - 2.11.2
|
|
300
|
-
|
|
301
|
-
- Add thread_participants to MessageResponse and correct pinned types [8e357a8](https://github.com/GetStream/stream-chat-js/commit/9d10998cc56c807e34e3131eccd8bf561c1ce822)
|
|
302
|
-
|
|
303
|
-
## January 4, 2021 - 2.11.1
|
|
304
|
-
|
|
305
|
-
- Updated/fixed types on event object regarding unread counts. [36e2297](https://github.com/GetStream/stream-chat-js/commit/36e2297526682276c4e597fd171c27d115ba0bb6)
|
|
306
|
-
|
|
307
|
-
## December 31, 2020 - 2.11.0
|
|
308
|
-
|
|
309
|
-
- Added support for quoted messages [#561](https://github.com/GetStream/stream-chat-js/pull/561/files)
|
|
310
|
-
- Added support for `enforce_unique` param on send reaction api. When true, previous reaction (if any) from user will be replaced with new reaction. [27ddd4f](https://github.com/GetStream/stream-chat-js/commit/27ddd4f63a71daab2ca1c55f193719c9780047b4)
|
|
311
|
-
- Added event handler for event `reaction.updated` [27ddd4f](https://github.com/GetStream/stream-chat-js/commit/27ddd4f63a71daab2ca1c55f193719c9780047b4)
|
|
312
|
-
- Added new flag on channel state `isUpToDate` (please check description for details) [588c0e9](https://github.com/GetStream/stream-chat-js/commit/588c0e91c92ca1f031cd11a030de0364ac04c59e)
|
|
313
|
-
- Fixed types for `client.user` [d855779](https://github.com/GetStream/stream-chat-js/commit/d855779c700104ebaaa7b907d45d2fa722ae0718)
|
|
314
|
-
|
|
315
|
-
## December 21, 2020 - 2.10.0
|
|
316
|
-
|
|
317
|
-
### Feature
|
|
318
|
-
|
|
319
|
-
- 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
|
|
320
|
-
- `client.testPushSettings()` accepts `skipDevices` boolean attribute which skip config/device checks and sending to real devices #548
|
|
321
|
-
- `channel.sendReaction()` accepts `enforce_unique` attribute to overwrite existing reactions if any #527
|
|
322
|
-
|
|
323
|
-
### Fix
|
|
324
|
-
|
|
325
|
-
- deprecate `setUser` and `setAnonymousUser` in favor of `connectUser` and `connectAnonymousUser` #529
|
|
326
|
-
- Update channel read state when a new message is sent #536
|
|
327
|
-
- Removed unused `user_details` field from `query_channels` #545
|
|
328
|
-
|
|
329
|
-
- `MessageResponse` type #551
|
|
330
|
-
- `AppSettings` type #541
|
|
331
|
-
|
|
332
|
-
## December 7, 2020 - 2.9.0
|
|
333
|
-
|
|
334
|
-
- Adding `recoverStateOnReconnect` option - [#534](https://github.com/GetStream/stream-chat-js/pull/534)
|
|
335
|
-
- Adding `UpdatedMessage` typescript type
|
|
336
|
-
|
|
337
|
-
## November 27, 2020 - 2.8.4
|
|
338
|
-
|
|
339
|
-
### Fix
|
|
340
|
-
|
|
341
|
-
- Reset `unreadCount` when channel gets truncated [#521](https://github.com/GetStream/stream-js/pull/521)
|
|
342
|
-
|
|
343
|
-
## November 25, 2020 - 2.8.3
|
|
344
|
-
|
|
345
|
-
### Fix
|
|
346
|
-
|
|
347
|
-
- add `custom_event` to channel types [#520](https://github.com/GetStream/stream-js/pull/520)
|
|
348
|
-
|
|
349
|
-
## November 25, 2020 - 2.8.2
|
|
350
|
-
|
|
351
|
-
### Fix
|
|
352
|
-
|
|
353
|
-
- Replace uuid with simple random generator [#518](https://github.com/GetStream/stream-js/pull/518)
|
|
354
|
-
|
|
355
|
-
## November 20, 2020 - 2.8.1
|
|
356
|
-
|
|
357
|
-
### Fix
|
|
358
|
-
|
|
359
|
-
- Duplicate message from current user [#509](https://github.com/GetStream/stream-js/pull/509)
|
|
360
|
-
- Sort direction array for queries [#501](https://github.com/GetStream/stream-js/pull/501)
|
|
361
|
-
- Add `enforce_unique_usernames` to `AppSettingsAPIResponse` type [#511](https://github.com/GetStream/stream-js/pull/511)
|
|
362
|
-
|
|
363
|
-
## November 17, 2020 - 2.8.0
|
|
364
|
-
|
|
365
|
-
### Feature
|
|
366
|
-
|
|
367
|
-
- Channel Export [#504](https://github.com/GetStream/stream-js/pull/504)
|
|
368
|
-
- New event `notification.invite_rejected` [#467](https://github.com/GetStream/stream-js/pull/467)
|
|
369
|
-
- Channel stopTyping accepts optional `parent_id` for typing in threads `notification.invite_rejected` [#505](https://github.com/GetStream/stream-js/pull/505)
|
|
370
|
-
|
|
371
|
-
### Fix
|
|
372
|
-
|
|
373
|
-
- Mute users no longer counted in channel unread [#498](https://github.com/GetStream/stream-js/pull/498)
|
|
374
|
-
- `AppSettingsAPIResponse` type includes `image_moderation_enabled` [#497](https://github.com/GetStream/stream-js/pull/497)
|
|
375
|
-
- User ban function signature updated [#502](https://github.com/GetStream/stream-js/pull/502): `client.banUser('user1', {user_id: 'user2'})` is replaced with `client.banUser('user1', {banned_by_id: 'user2'})`
|
|
376
|
-
|
|
377
|
-
## November 06, 2020 - 2.7.4
|
|
378
|
-
|
|
379
|
-
### Feature
|
|
380
|
-
|
|
381
|
-
- Ban user by ip [#485](https://github.com/GetStream/stream-js/pull/485)
|
|
382
|
-
|
|
383
|
-
## November 03, 2020 - 2.7.3
|
|
384
|
-
|
|
385
|
-
### Fix
|
|
386
|
-
|
|
387
|
-
- Browser file upload incorrect file name [#487](https://github.com/GetStream/stream-js/pull/487)
|
|
388
|
-
|
|
389
|
-
## October 30, 2020 - 2.7.2
|
|
390
|
-
|
|
391
|
-
### Fix
|
|
392
|
-
|
|
393
|
-
- Improve types of `sendMessage()`, `updateMessage()`, `ChannelFilters` and `AppSettingsAPIResponse` [#480](https://github.com/GetStream/stream-chat-js/pull/480) [#483](https://github.com/GetStream/stream-chat-js/pull/483)
|
|
394
|
-
|
|
395
|
-
## October 26, 2020 - 2.7.1
|
|
396
|
-
|
|
397
|
-
### Feature
|
|
398
|
-
|
|
399
|
-
- New functions to shadow ban a user from one or all channels [#447](https://github.com/GetStream/stream-chat-js/pull/447)
|
|
400
|
-
|
|
401
|
-
```js
|
|
402
|
-
// global shadow ban on all channels
|
|
403
|
-
client.shadowBan(target_user_id);
|
|
404
|
-
client.removeShadowBan(target_user_id);
|
|
405
|
-
|
|
406
|
-
// channel speceifc shadow ban
|
|
407
|
-
channel.shadowBan(target_user_id);
|
|
408
|
-
channel.removeShadowBan(target_user_id);
|
|
409
|
-
```
|
|
410
|
-
|
|
411
|
-
### Fix
|
|
412
|
-
|
|
413
|
-
- Ignore shadowed messages in the unread count [#475](https://github.com/GetStream/stream-chat-js/pull/475)
|
|
414
|
-
- Remove duplicated \_initializeState call [#473](https://github.com/GetStream/stream-chat-js/pull/473)
|
|
415
|
-
|
|
416
|
-
### Chore
|
|
417
|
-
|
|
418
|
-
- Upgrade dependencies [#477](https://github.com/GetStream/stream-chat-js/pull/477)
|
|
419
|
-
|
|
420
|
-
## October 20, 2020 - 2.7.0
|
|
421
|
-
|
|
422
|
-
### Fix
|
|
423
|
-
|
|
424
|
-
- `channel.addMessageSorted` performance has been improved. It now accepts an extra parameter `timestampChanged: boolean` which needs to be set for updating a message in the state with the same `id` and different `created_at` [#470](https://github.com/GetStream/stream-chat-js/pull/470/)
|
|
425
|
-
|
|
426
|
-
## October 12, 2020 - 2.6.0
|
|
427
|
-
|
|
428
|
-
### Feature
|
|
429
|
-
|
|
430
|
-
- Typing events for thread #445 [#445](https://github.com/GetStream/stream-chat-js/pull/445/)
|
|
431
|
-
- Hard deleted messages are removed from `channel.state.messages` [#454](https://github.com/GetStream/stream-chat-js/pull/454/)
|
|
432
|
-
- Simplify and document flag/unflag functions for server side usage [#462](https://github.com/GetStream/stream-chat-js/pull/462/)
|
|
433
|
-
|
|
434
|
-
### Fix
|
|
435
|
-
|
|
436
|
-
- BlockList types [#455](https://github.com/GetStream/stream-chat-js/pull/455/)
|
|
437
|
-
- `Channel.countUnread()` returns correct unread [#452](https://github.com/GetStream/stream-chat-js/pull/452/)
|
|
438
|
-
- `type` key-value pair added to image uploads to fix React Native Android image upload failures [#464](https://github.com/GetStream/stream-chat-js/pull/464/)
|
|
439
|
-
|
|
440
|
-
## October 1, 2020 - 2.5.0
|
|
441
|
-
|
|
442
|
-
### Feature
|
|
443
|
-
|
|
444
|
-
- Add permission for using frozen channels `UseFrozenChannel` [#444](https://github.com/GetStream/stream-chat-js/pull/444/)
|
|
445
|
-
- `SendFile` accepts buffer and other types of streams [#448](https://github.com/GetStream/stream-chat-js/pull/448/)
|
|
446
|
-
|
|
447
|
-
### Fix
|
|
448
|
-
|
|
449
|
-
- Discard reservered fields from `channel.update()` [#439](https://github.com/GetStream/stream-chat-js/pull/439/)
|
|
450
|
-
- Custom Command handler in `AppSettingsAPIResponse` renamed to `custom_action_handler_url` from `custom_command_url` [#409](https://github.com/GetStream/stream-chat-js/pull/409/)
|
|
451
|
-
- Regenerate yarn.lock file [#449](https://github.com/GetStream/stream-chat-js/pull/449/)
|
|
452
|
-
- `SendFile` properly check for `File` instances [#448](https://github.com/GetStream/stream-chat-js/pull/448)
|
|
453
|
-
|
|
454
|
-
## September 17, 2020 - 2.4.0
|
|
455
|
-
|
|
456
|
-
### Feature
|
|
457
|
-
|
|
458
|
-
- BlockLists [#437](https://github.com/GetStream/stream-chat-js/pull/437/). Refer to docs on how to use this new feature [docs](https://getstream.io/chat/docs/block_lists/?language=js)
|
|
459
|
-
|
|
460
|
-
### Fix
|
|
461
|
-
|
|
462
|
-
- `Channel.keystroke` not firing for the first typing event [#440](https://github.com/GetStream/stream-chat-js/pull/440/)
|
|
463
|
-
|
|
464
|
-
## September 17, 2020 - 2.3.1
|
|
465
|
-
|
|
466
|
-
- Added backward compatible types and move type definitions for production out of dev dependencies [#432](https://github.com/GetStream/stream-chat-js/pull/432/)
|
|
467
|
-
|
|
468
|
-
## September 16, 2020 - 2.3.0
|
|
469
|
-
|
|
470
|
-
- Changed ordering of Typescript generics from usage preference based to alphabetical for consistency throughout the project [#425](https://github.com/GetStream/stream-chat-js/pull/425/files)
|
|
471
|
-
|
|
472
|
-
## September 10, 2020 - 2.2.2
|
|
473
|
-
|
|
474
|
-
- Fixing possible race condition between warmUp options request and first queryChannels call. [372b22c](https://github.com/GetStream/stream-chat-js/commit/372b22cffb90fcc4e5470af7d64524ff0d6457dc)
|
|
475
|
-
|
|
476
|
-
## September 10, 2020 - 2.2.1
|
|
477
|
-
|
|
478
|
-
- Fixing typescript for `filters` param in queryChannels endpoint [5e840ba](https://github.com/GetStream/stream-chat-js/commit/5e840ba79b9e9f34f987b459d86986cc661d20ca)
|
|
479
|
-
|
|
480
|
-
## September 10, 2020 - 2.2.0
|
|
481
|
-
|
|
482
|
-
- Add `warmUp` option for StreamChat constructor, to improve the network latency on api calls [74a9121](https://github.com/GetStream/stream-chat-js/commit/74a91214f69f0ccedadd39095640ac0f7237dcf5)
|
|
483
|
-
|
|
484
|
-
## September 7, 2020 - 2.1.3
|
|
485
|
-
|
|
486
|
-
- Move @types dependencies to devDependencies [#418](https://github.com/GetStream/stream-chat-js/pull/418)
|
|
487
|
-
|
|
488
|
-
## September 4, 2020 - 2.1.2
|
|
489
|
-
|
|
490
|
-
- Fix connection recovery of client [#414](https://github.com/GetStream/stream-chat-js/pull/414)
|
|
491
|
-
- Removed unused recovery option from queryChannels api payload [#414](https://github.com/GetStream/stream-chat-js/pull/414)
|
|
492
|
-
|
|
493
|
-
## August 31, 2020 - 2.1.1
|
|
494
|
-
|
|
495
|
-
- Typescript related fixes [4e538e6](https://github.com/GetStream/stream-chat-js/commit/4e538e66fc68e99331f3c2a83365df26f9789c93)
|
|
496
|
-
- Add null checks for tests and correct types to reflect null returns on reactions
|
|
497
|
-
- Change updateMessage to use Message instead of MessageResponse
|
|
498
|
-
|
|
499
|
-
## August 27, 2020 - 2.1.0
|
|
500
|
-
|
|
501
|
-
- Added endpoints to enable and disable slow mode [06fe1b2](https://github.com/GetStream/stream-chat-js/commit/06fe1b2d8a73b06d15578e32887d4fdf3c520d61)
|
|
502
|
-
|
|
503
|
-
- enableSlowMode
|
|
504
|
-
- disableSlowMode
|
|
505
|
-
|
|
506
|
-
- Added endpoints for custom commands [f79baa3](https://github.com/GetStream/stream-chat-js/commit/f79baa32c1512281f2bc7b4307910b7c16d2d2b9)
|
|
507
|
-
|
|
508
|
-
- createCommand
|
|
509
|
-
- getCommand
|
|
510
|
-
- updateCommand
|
|
511
|
-
- deleteCommand
|
|
512
|
-
- listCommand
|
|
513
|
-
|
|
514
|
-
- Typescript related fixes [5f2ae83](https://github.com/GetStream/stream-chat-js/commit/5f2ae838aa567a40d6778f01e9e3dbcbf5ebe09c)
|
|
515
|
-
- added generic type `CommandType`
|
|
516
|
-
- Fixing backward compatibility related issues
|
|
517
|
-
|
|
518
|
-
## August 26, 2020 - 2.0.0
|
|
519
|
-
|
|
520
|
-
- Library has been migrated to full typescript.
|
|
521
|
-
- No breaking changes regarding underlying javascript api.
|
|
522
|
-
- The `Event` type no longer takes a string generic that maps to the `type` property of the response. Event now takes multiple high level generics instantiated along with the client and the property `type` on the response is on of the string union `EventTypes`.
|
|
523
|
-
|
|
524
|
-
## August 11, 2020 - 1.14.1
|
|
525
|
-
|
|
526
|
-
- Add support for channel.visible event [991c87b](https://github.com/GetStream/stream-chat-js/commit/991c87b094afa23bdae9973aa264e0789a3c12e0)
|
|
527
|
-
- Added setter for userAgent [5d87550](https://github.com/GetStream/stream-chat-js/commit/5d87550f5097c9cbea687d598e3c947a56368cca)
|
|
528
|
-
|
|
529
|
-
## July 24, 2020 - 1.14.0
|
|
530
|
-
|
|
531
|
-
- Added timeout for muteUser client method [6f44677](https://github.com/GetStream/stream-chat-js/commit/6f446772f42f5a475dcfd4e28d4a8d9c949513b3)
|
|
532
|
-
|
|
533
|
-
## July 16, 2020 - 1.13.2
|
|
534
|
-
|
|
535
|
-
- Removing cross-fetch from rollup externals [c7dafb0](https://github.com/GetStream/stream-chat-js/commit/c7dafb0f83bd24a02a03f52add7c27b6ccdb683b)
|
|
536
|
-
|
|
537
|
-
## July 16, 2020 - 1.13.1
|
|
538
|
-
|
|
539
|
-
- Changing ws issue logs to warn level [1836606](https://github.com/GetStream/stream-chat-js/commit/1836606acca3690f0223f4434006be8f4c1bc5d1)
|
|
540
|
-
|
|
541
|
-
## July 8, 2020 - 1.13.0
|
|
542
|
-
|
|
543
|
-
- Add size comparison action [#361](https://github.com/GetStream/stream-chat-js/pull/361)
|
|
544
|
-
- Drop cross-fetch and use Axios for uploads, use local instance of Axios [#365](https://github.com/GetStream/stream-chat-js/pull/365)
|
|
545
|
-
- Drop support for node v11, v13 [#372](https://github.com/GetStream/stream-chat-js/pull/372)
|
|
546
|
-
|
|
547
|
-
## June 24, 2020 - 1.12.1
|
|
548
|
-
|
|
549
|
-
- Fixing typescript for channel.getCommands [52e562a](https://github.com/GetStream/stream-chat-js/commit/52e562af1922e5d4e56ab3ba312fe70bf7b562e1)
|
|
550
|
-
|
|
551
|
-
## June 23, 2020 - 1.12.0
|
|
552
|
-
|
|
553
|
-
- Adding sync endpoint for offline support [eb4793f](https://github.com/GetStream/stream-chat-js/commit/eb4793ff9bce1f4b2f698efe853e43772f9e6a7d#diff-cf27c1d543e886c89cd9ac8b8aeaf05bR1451)
|
|
554
|
-
- Fixing typescript for translateMessage endpoint [c9aea32](https://github.com/GetStream/stream-chat-js/commit/c9aea320626d66c29f7424da351c6b965e65675e)
|
|
555
|
-
|
|
556
|
-
## June 16, 2020 - 1.11.4
|
|
557
|
-
|
|
558
|
-
- Fixing request retry logic upon token expiry [ab20729](https://github.com/GetStream/stream-chat-js/commit/ab20729dbff05f4e6270d98f736acb2deafae7a5)
|
|
559
|
-
|
|
560
|
-
## June 12, 2020 - 1.11.3
|
|
561
|
-
|
|
562
|
-
- Fixing types for setUser function on client [36d04ec](https://github.com/GetStream/stream-chat-js/commit/36d04ec110d687760af8876a296897516c624739)
|
|
563
|
-
- Added `translateMessage` function/endpoint to client [c5e1462](https://github.com/GetStream/stream-chat-js/commit/c5e1462aa94a4855900679d656373daefc3019b2)
|
|
564
|
-
|
|
565
|
-
## June 8, 2020 - 1.11.2
|
|
566
|
-
|
|
567
|
-
- Improved channel.config types in typescript file [5524675](https://github.com/GetStream/stream-chat-js/commit/5524675656ad0b4483a5b4ed9047fa8b384a5423)
|
|
568
|
-
- Added support for `user.deleted` event [b3c328a](https://github.com/GetStream/stream-chat-js/commit/b3c328aa15af4db8bdd07d57effbd21fbd6ae600)
|
|
569
|
-
|
|
570
|
-
## May 29, 2020 - 1.11.1
|
|
571
|
-
|
|
572
|
-
- Fixing issue with connection recovery and queryChannels api call [#340](https://github.com/GetStream/stream-chat-js/pull/340)
|
|
573
|
-
|
|
574
|
-
## May 28, 2020 - 1.11.0
|
|
575
|
-
|
|
576
|
-
- Introducing queryMembers endpoint [#321](https://github.com/GetStream/stream-chat-js/pull/321)
|
|
577
|
-
|
|
578
|
-
## May 28, 2020 - 1.10.3
|
|
579
|
-
|
|
580
|
-
- Fixed typescript issues [a9fa49c](https://github.com/GetStream/stream-chat-js/commit/a9fa49c94fe3a730e91b5c3d199f658b6f69c834)
|
|
581
|
-
|
|
582
|
-
## May 19, 2020 - 1.10.2
|
|
583
|
-
|
|
584
|
-
- Fixing read status issue [3289ae2](https://github.com/GetStream/stream-chat-js/commit/3289ae28c6400290719c4f82ce6a7651f6f7f732)
|
|
585
|
-
|
|
586
|
-
## May 15, 2020 - 1.10.1
|
|
587
|
-
|
|
588
|
-
- Reverting uuid version change from 1.10.0 due to incompatibility with react-native [issue](https://github.com/uuidjs/uuid#getrandomvalues-not-supported)
|
|
589
|
-
|
|
590
|
-
## May 15, 2020 - 1.10.0
|
|
591
|
-
|
|
592
|
-
- Token refresh functionality [#327](https://github.com/GetStream/stream-chat-js/pull/327)
|
|
593
|
-
- Bump uuid version to `8.0.0` [d1957d9](https://github.com/GetStream/stream-chat-js/commit/d1957d97c10f459b0ba8131e1c187cecf19ae17e)
|
|
594
|
-
- Updated typescript for multitenant feature [6160aa6](https://github.com/GetStream/stream-chat-js/commit/6160aa6ddb45aca46633818967495253343fb359)
|
|
595
|
-
- Updated flag function signatures to allow server side flagging/unflagging [05c2281](https://github.com/GetStream/stream-chat-js/commit/05c22811780f801255e94a4180c1613438af6319)
|
|
596
|
-
- Disabled presence by default for queryUsers endpoint [26616f5](https://github.com/GetStream/stream-chat-js/commit/26616f5b353b6f0cc8ea7dd87cf2d32e7058672e)
|
|
597
|
-
|
|
598
|
-
## May 13, 2020 - 1.9.0
|
|
599
|
-
|
|
600
|
-
- Multi-tenant feature
|
|
601
|
-
- Ws Disconnect improvements - forcefully assume closed after 1 sec
|
|
602
|
-
- Silent message feature
|
|
603
|
-
|
|
604
|
-
## April 29, 2020 - 1.8.0
|
|
605
|
-
|
|
606
|
-
- **Breaking:** updated typescript namespace to avoid conflict with getstream package
|
|
607
|
-
- Fixes: GetStream/stream-js#258
|
|
608
|
-
|
|
609
|
-
## April 20, 2020 - 1.7.4
|
|
610
|
-
|
|
611
|
-
- Fixed types for verifyWebhook function
|
|
612
|
-
|
|
613
|
-
## April 15, 2020 - 1.7.3
|
|
614
|
-
|
|
615
|
-
- Adding missing event types in typescript file - [8ed49dd](https://github.com/GetStream/stream-chat-js/commit/8ed49ddf6af9d0325af920c985d1092758d6215a)
|
|
616
|
-
|
|
617
|
-
## April 9, 2020 - 1.7.2
|
|
618
|
-
|
|
619
|
-
- Fixing typescript for StreamChat, Channel and ChannelState classes [2c78981](https://github.com/GetStream/stream-chat-js/commit/2c789815c1c4ae59121cc2109f4109b1d871cdce)
|
|
620
|
-
|
|
621
|
-
## April 7, 2020 - 1.7.1
|
|
622
|
-
|
|
623
|
-
- Fixing typescript for getConfig function in Channel class [5bf2d7e](https://github.com/GetStream/stream-chat-js/commit/5bf2d7e8b6f1434a857dd8367b5a11c4fc839c37)
|
|
624
|
-
|
|
625
|
-
## April 3, 2020 - 1.7.0
|
|
626
|
-
|
|
627
|
-
## April 7, 2020 - 1.7.1
|
|
628
|
-
|
|
629
|
-
- Add types for channel.getConfig()
|
|
630
|
-
|
|
631
|
-
## April 2, 2020 - 1.6.2
|
|
632
|
-
|
|
633
|
-
- Adding (missing) following permission constants in typescript file [5b08dec](https://github.com/GetStream/stream-chat-js/commit/5b08dec04e623e940fb5cdffaa2e1ed9410731ae#diff-5b99411a607296a74a128d9535a49dbe)
|
|
634
|
-
|
|
635
|
-
- Allow
|
|
636
|
-
- Deny
|
|
637
|
-
- AnyResource
|
|
638
|
-
- AnyRole
|
|
639
|
-
- MaxPriority
|
|
640
|
-
- MinPriority
|
|
641
|
-
|
|
642
|
-
- Moving following dependencies from devDependencies to dependencies to avoid ts errors regarding missing types [5b08dec](https://github.com/GetStream/stream-chat-js/commit/5b08dec04e623e940fb5cdffaa2e1ed9410731ae#diff-b9cfc7f2cdf78a7f4b91a753d10865a2)
|
|
643
|
-
|
|
644
|
-
- @types/seamless-immutable
|
|
645
|
-
- @types/ws
|
|
646
|
-
|
|
647
|
-
## March 27, 2020 - 1.6.1
|
|
648
|
-
|
|
649
|
-
- Reverting [c5413c0](https://github.com/GetStream/stream-chat-js/commit/c5413c07e6743e056b04ade7ccacebeb0f2b1b4f)
|
|
650
|
-
|
|
651
|
-
Commit description: Avoid duplication of reaction, by adding check for existing reaction
|
|
652
|
-
|
|
653
|
-
Reason:
|
|
654
|
-
|
|
655
|
-
1. latest_reactions only contain 10 reactions. So the added check is not sufficient.
|
|
656
|
-
2. It will need handle remove reactions as well.
|
|
657
|
-
3. own_reactions doesn't contain user object always. So that use case will need handling as well.
|
|
658
|
-
|
|
659
|
-
## March 27, 2020 - 1.6.0
|
|
660
|
-
|
|
661
|
-
- Deprecating updateUser and updateUsers api from StreamChat client.
|
|
662
|
-
- Introducing alias for updateUser and updateUsers api
|
|
663
|
-
- updateUser --> upsertUser
|
|
664
|
-
- updateUsers --> upsertUsers
|
|
665
|
-
- Fixing typescript for StreamChat constructor [583b528](https://github.com/GetStream/stream-chat-js/commit/583b528f40dfaa74fec6819c5cb57ec4a592350e)
|
|
666
|
-
- Fixing typescript for event subscribers [a0c2ef0](https://github.com/GetStream/stream-chat-js/commit/a0c2ef0f4c7e88d58ac1e7e32d7b82f9f90b1d06)
|
|
667
|
-
- Added typescript for getMessage and getMessagesById endpoint [a0c2ef0](https://github.com/GetStream/stream-chat-js/commit/a0c2ef0f4c7e88d58ac1e7e32d7b82f9f90b1d06)
|
|
668
|
-
- Avoid duplication of reaction, by adding check for existing reaction [c5413c0](https://github.com/GetStream/stream-chat-js/commit/c5413c07e6743e056b04ade7ccacebeb0f2b1b4f)
|
|
669
|
-
|
|
670
|
-
## March 20, 2020 - 1.5.1
|
|
671
|
-
|
|
672
|
-
- Fixing `removeMessage` function in ChannelState to handle thread message - [e67a432](https://github.com/GetStream/stream-chat-js/commit/13bdeb75d60370e00abac3e0bc57d81733d40b8e)
|
|
673
|
-
- Fixing typescript file for channel mutes - [c7fefa8](https://github.com/GetStream/stream-chat-js/commit/c7fefa8c836658b305dd567b0b6479672bcc745a)
|
|
674
|
-
|
|
675
|
-
## March 19, 2020 - 1.5.0
|
|
676
|
-
|
|
677
|
-
- Support for channel mutes
|
|
678
|
-
|
|
679
|
-
## March 10, 2020 - 1.4.0
|
|
680
|
-
|
|
681
|
-
- Support filtering by messages custom fields - [#264](https://github.com/GetStream/stream-chat-js/pull/264)
|
|
682
|
-
|
|
683
|
-
## March 3, 2020 - 1.3.4
|
|
684
|
-
|
|
685
|
-
- Increment wsID when ws connection is disconnected manually, to ensure any of the callbacks (onclose, onerror etc) are obsolete - [792de5b](https://github.com/GetStream/stream-chat-js/commit/792de5ba178d00dd94fb8e41abdaadf45d7d436f)
|
|
686
|
-
|
|
687
|
-
## February 17, 2020 - 1.3.3
|
|
688
|
-
|
|
689
|
-
- Fixing broken browser bundle - fixes [#259](https://github.com/GetStream/stream-chat-js/issues/259)
|
|
690
|
-
- Allowing `.off` (event listener removal) on uninitialized channels - [985155f](https://github.com/GetStream/stream-chat-js/commit/985155fe91a571522a78936803a802e6c5cbe3e9)
|
|
691
|
-
|
|
692
|
-
## February 10, 2020 - 1.3.2
|
|
693
|
-
|
|
694
|
-
- Fixing client.disconnect and connection.disconnect to always return promise - [600da6c](https://github.com/GetStream/stream-chat-js/commit/600da6cfcbfbf347916934b51e5b9c185a18df40)
|
|
695
|
-
- Fixing type definitions for Reaction object - [08c802e](https://github.com/GetStream/stream-chat-js/commit/08c802e0e12848b9d99067465b470cae60f11c00)
|
|
696
|
-
- Fixing type definitions for channel method on client - [f2d99b8](https://github.com/GetStream/stream-chat-js/commit/f2d99b8067bee8b7818b5f8e8e83f8c1d0e7c63c)
|
|
697
|
-
|
|
698
|
-
## February 5, 2020 - 1.3.1
|
|
699
|
-
|
|
700
|
-
- Adding some more logs for ws connection callback handlers such as onclose, onmessage, onerror - [b54fa53](https://github.com/GetStream/stream-chat-js/commit/b54fa5392a727b48a1552e03911c0fb1b35f7a03)
|
|
701
|
-
|
|
702
|
-
## January 25, 2020 - 1.3.0
|
|
703
|
-
|
|
704
|
-
- Added tests for channels operator \$in with custom fields - [1896d98](https://github.com/GetStream/stream-chat-js/commit/1896d98a98968a920b3c1539e50649fa7a33462f)
|
|
705
|
-
- Fixed types (in typescript declaration file) for sendReaction function in channel - [e0aa1fa](https://github.com/GetStream/stream-chat-js/commit/e0aa1fa90e8bcc4fde595ea06ef04feea866da8b)
|
|
706
|
-
- Fixed types (in typescript declaration file) for sendFile and sendImage functions - [346048f](https://github.com/GetStream/stream-chat-js/commit/346048fa274bf7289f0bb56541e45764f27136ee)
|
|
707
|
-
- Added `getMessagesById` endpoint for channel - [cdc2a8e](https://github.com/GetStream/stream-chat-js/commit/cdc2a8ec503bf72a5da6ac3b0d988875926e0bbe)
|
|
708
|
-
|
|
709
|
-
## January 14, 2020 - 1.2.3
|
|
710
|
-
|
|
711
|
-
- Updated devtoken methode (for compatibility with RN). Switching to [base64-js](https://www.npmjs.com/package/base64-js) - [96c338e](https://github.com/GetStream/stream-chat-js/commit/96c338e5725a47d5c3bb6081a93107595b646ede)
|
|
712
|
-
- Fixed types (in typescript declaration file) for setUser function of client - [6139e4e](https://github.com/GetStream/stream-chat-js/commit/6139e4ecf51fe357c4262404f7df0fc20b4b6cba)
|
|
713
|
-
- Fixed and updated types for partialUpdateUser function - [201257d](https://github.com/GetStream/stream-chat-js/commit/201257ddad75588731380ec97f578e43f4ee0a82)
|
|
714
|
-
|
|
715
|
-
## December 16, 2019 - 1.2.2
|
|
716
|
-
|
|
717
|
-
- Handling `channel.hidden` event
|
|
718
|
-
|
|
719
|
-
## December 3, 2019 - 1.2.1
|
|
720
|
-
|
|
721
|
-
- Handling `channel.truncated` event
|
|
722
|
-
- Support for system message for addMember/removeMember functionality
|
|
723
|
-
- Throw clear errors when trying to build tokens without secret
|
|
724
|
-
|
|
725
|
-
## November 28, 2019 - 1.2.0
|
|
726
|
-
|
|
727
|
-
## November 22, 2019 - 1.1.8
|
|
728
|
-
|
|
729
|
-
- Improve client.channel signature, support short-hand with only type and object as well as null or undefined ID (instead of only "")
|
|
730
|
-
|
|
731
|
-
## October 25, 2019 - 1.1.7
|
|
732
|
-
|
|
733
|
-
- Add support for member invites after channel creation.
|
|
734
|
-
|
|
735
|
-
## October 15, 2019 - 1.1.6
|
|
736
|
-
|
|
737
|
-
- Fixing types for client and connection in typescript declaration file.
|
|
738
|
-
|
|
739
|
-
## October 10, 2019 - 1.1.5
|
|
740
|
-
|
|
741
|
-
- Fix for issue [#133](https://github.com/GetStream/stream-chat-js/issues/133) - Updating user object in client, when `user.updated` is received corresponding to user of client
|
|
742
|
-
- Adding types for ChannelData object
|
|
743
|
-
- Fixing tests
|
|
744
|
-
|
|
745
|
-
## October 07, 2019 - 1.1.4
|
|
746
|
-
|
|
747
|
-
## October 07, 2019 - 1.1.3
|
|
748
|
-
|
|
749
|
-
- File upload issue fix - Allowing File object as valid uri in sendFile function in client.
|
|
750
|
-
|
|
751
|
-
## September 30, 2019 - 1.1.2
|
|
752
|
-
|
|
753
|
-
- Moving @types to devDependencies
|
|
754
|
-
|
|
755
|
-
## September 27, 2019 - 1.1.1
|
|
756
|
-
|
|
757
|
-
- Syncing and improving the typescript declaration file
|
|
758
|
-
|
|
759
|
-
## September 23, 2019 - 1.1.0
|
|
760
|
-
|
|
761
|
-
- Added `channel.hide` and `channel.show`
|
|
762
|
-
|
|
763
|
-
## September 12, 2019 - 1.0.5
|
|
764
|
-
|
|
765
|
-
- Improving event handling in js client. Earlier, event listeners on client were executed before channel could handle the event and update the state. This has been fixed by handling event completely on client and channel level first before executing any of the listeners on client or channel.
|
|
766
|
-
|
|
767
|
-
## July 31, 2019 - 1.0.4
|
|
768
|
-
|
|
769
|
-
- Added error logs for errors in API calls
|
|
770
|
-
|
|
771
|
-
## July 23, 2019 - 1.0.3
|
|
772
|
-
|
|
773
|
-
- Support \$exists operator for queryChannels/queryUsers
|
|
774
|
-
|
|
775
|
-
## July 22, 2019 - 1.0.2
|
|
776
|
-
|
|
777
|
-
- Support hard delete messages for server side auth
|
|
778
|
-
|
|
779
|
-
## July 19, 2019 - 1.0.1
|
|
780
|
-
|
|
781
|
-
- Fixing broken types in ts declaration file : [264ee9a87d6591d39f20b99d1d87381532b9957b](https://github.com/GetStream/stream-chat-js/commit/264ee9a87d6591d39f20b99d1d87381532b9957b)
|
|
782
|
-
|
|
783
|
-
## July 18 2019 - 1.0.0
|
|
784
|
-
|
|
785
|
-
- This library is stable and used in production already, bump to 1.0.0
|
|
786
|
-
|
|
787
|
-
## July 18 2019 - 0.13.8
|
|
788
|
-
|
|
789
|
-
- Avoid memory leaks server-side when client is created many times
|
|
790
|
-
|
|
791
|
-
## July 11 2019 - 0.13.7
|
|
792
|
-
|
|
793
|
-
- Track client version with WS
|
|
794
|
-
- Add configurable logging
|
|
795
|
-
- Bugfix: reconnection and threads' replies are now handled correctly
|
|
796
|
-
- Bugfix: replies pagination now works with both ASC and DESC ordering
|
|
797
|
-
|
|
798
|
-
## June 27 2019 - 0.13.6
|
|
799
|
-
|
|
800
|
-
- Improve reconnection mechanism
|
|
801
|
-
|
|
802
|
-
## June 20th 2019 - 0.13.5
|
|
803
|
-
|
|
804
|
-
- Added populated `channel.data` when calling `channel.watch()`
|
|
805
|
-
|
|
806
|
-
## April 29th 2019 - 0.12.0
|
|
807
|
-
|
|
808
|
-
- Improved channel.unreadCount
|
|
809
|
-
|
|
810
|
-
## April 28th 2019 - 0.10.1
|
|
811
|
-
|
|
812
|
-
- Improved user presence support. If listening to user presence, channel.state.members and channel.state.watchers
|
|
813
|
-
are now automatically updated with the user's online/offline presence.
|
|
814
|
-
|
|
815
|
-
## April 27th 2019 - 0.10.0
|
|
816
|
-
|
|
817
|
-
- add channel.countUnreadMentions
|
|
818
|
-
- improve client.disconnect
|
|
819
|
-
- add userID param to add reactions server-side
|
|
820
|
-
|
|
821
|
-
## April 24th 2019 - 0.9.1
|
|
822
|
-
|
|
823
|
-
- add babel runtime to dependencies
|
|
824
|
-
|
|
825
|
-
## April 24th 2019 - 0.9.0
|
|
826
|
-
|
|
827
|
-
- GDPR endpoints: deleteUser, exportUser and deactivateUser
|
|
828
|
-
|
|
829
|
-
## April 24th 2019 - 0.8.0
|
|
830
|
-
|
|
831
|
-
- markRead now supports sending a message_id to mark the channel read up to (and including) that specific message
|
|
832
|
-
- added markAllRead client method
|
|
833
|
-
- countUnread can be called without any parameters now client-side and it will default to current user's read state
|
|
834
|
-
|
|
835
|
-
## April 9th 2019 - 0.7.2
|
|
836
|
-
|
|
837
|
-
- queryChannels used to return the list of members twice, this has now been resolved. However if you were using the duplicate list of members in channel.members you'll want to update to Object.values(channel.state.members)
|
|
838
|
-
|
|
839
|
-
## April 2nd 2019 - 0.5.0
|
|
840
|
-
|
|
841
|
-
- event.own_user renamed to event.me
|
|
842
|
-
- user.status.changed renamed to user.presence.changed
|
|
843
|
-
- connectResponse.unread renamed to connectResponse.unread_count
|
|
844
|
-
- channelState.online renamed to channelState.watcher_count
|