Skip to content

Commit 41b23db

Browse files
authored
feat: support custom member data in StreamChatGenerics (#2559)
1 parent efa0736 commit 41b23db

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

Diff for: examples/typescript/src/App.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ type LocalAttachmentType = Record<string, unknown>;
2727
type LocalChannelType = Record<string, unknown>;
2828
type LocalCommandType = string;
2929
type LocalEventType = Record<string, unknown>;
30+
type LocalMemberType = Record<string, unknown>;
3031
type LocalMessageType = Record<string, unknown>;
3132
type LocalPollOptionType = Record<string, unknown>;
3233
type LocalPollType = Record<string, unknown>;
@@ -38,6 +39,7 @@ type StreamChatGenerics = {
3839
channelType: LocalChannelType;
3940
commandType: LocalCommandType;
4041
eventType: LocalEventType;
42+
memberType: LocalMemberType;
4143
messageType: LocalMessageType;
4244
pollOptionType: LocalPollOptionType;
4345
pollType: LocalPollType;

Diff for: examples/vite/src/App.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type LocalAttachmentType = Record<string, unknown>;
4141
type LocalChannelType = Record<string, unknown>;
4242
type LocalCommandType = string;
4343
type LocalEventType = Record<string, unknown>;
44+
type LocalMemberType = Record<string, unknown>;
4445
type LocalMessageType = Record<string, unknown>;
4546
type LocalPollOptionType = Record<string, unknown>;
4647
type LocalPollType = Record<string, unknown>;
@@ -52,6 +53,7 @@ type StreamChatGenerics = {
5253
channelType: LocalChannelType;
5354
commandType: LocalCommandType;
5455
eventType: LocalEventType;
56+
memberType: LocalMemberType;
5557
messageType: LocalMessageType;
5658
pollOptionType: LocalPollOptionType;
5759
pollType: LocalPollType;

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
"emoji-mart": "^5.4.0",
146146
"react": "^18.0.0 || ^17.0.0 || ^16.8.0",
147147
"react-dom": "^18.0.0 || ^17.0.0 || ^16.8.0",
148-
"stream-chat": "^8.42.0"
148+
"stream-chat": "^8.44.0"
149149
},
150150
"peerDependenciesMeta": {
151151
"@breezystack/lamejs": {
@@ -255,7 +255,7 @@
255255
"react-dom": "^18.1.0",
256256
"react-test-renderer": "^18.1.0",
257257
"semantic-release": "^19.0.5",
258-
"stream-chat": "^8.42.0",
258+
"stream-chat": "^8.44.0",
259259
"ts-jest": "^29.1.4",
260260
"typescript": "^5.4.5"
261261
},

Diff for: src/types/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export type DefaultStreamChatGenerics = ExtendableGenerics & {
6868
channelType: DefaultChannelType;
6969
commandType: LiteralStringForUnion;
7070
eventType: UnknownType;
71+
memberType: UnknownType;
7172
messageType: DefaultMessageType;
7273
pollOptionType: UnknownType;
7374
pollType: UnknownType;

Diff for: yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -12200,10 +12200,10 @@ statuses@2.0.1:
1220012200
resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63"
1220112201
integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==
1220212202

12203-
stream-chat@^8.42.0:
12204-
version "8.42.0"
12205-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.42.0.tgz#124ea2c10c6e8f7990304e1101c66751daf63e6c"
12206-
integrity sha512-8xZz+fmdHSOa3L1rHUOC4Wah+ipvLvdiOmeOfGK6uXnLOKlSHMOblwmQErrOoFM4SKfX9Bea3V8viaKUu6bPng==
12203+
stream-chat@^8.44.0:
12204+
version "8.44.0"
12205+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.44.0.tgz#e48446cf91db786e80a2e7358ac4f1601e5e97f0"
12206+
integrity sha512-7HNtimD8sT/51rsFibGcD6uBgKj+vlKyYCZMDzjYQEaEsrLqyAg48dOyNM4L2FTF5aXgo9SlxZr21SPleeA2BA==
1220712207
dependencies:
1220812208
"@babel/runtime" "^7.16.3"
1220912209
"@types/jsonwebtoken" "~9.0.0"

0 commit comments

Comments
 (0)