Skip to content

Commit 37a175a

Browse files
committed
chore(deps): bump stream-chat to v8.33.1
1 parent 4ec3518 commit 37a175a

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

examples/typescript/src/App.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ import {
1313

1414
import './App.css';
1515

16+
const params = (new Proxy(new URLSearchParams(window.location.search), {
17+
get: (searchParams, property) => searchParams.get(property as string),
18+
}) as unknown) as Record<string, string | null>;
19+
1620
const apiKey = process.env.REACT_APP_STREAM_KEY as string;
17-
const userId = process.env.REACT_APP_USER_ID as string;
18-
const userToken = process.env.REACT_APP_USER_TOKEN as string;
21+
const userId = params.uid || (process.env.REACT_APP_USER_ID as string);
22+
const userToken = params.ut || (process.env.REACT_APP_USER_TOKEN as string);
1923

2024
const filters: ChannelFilters = { type: 'messaging', members: { $in: [userId] } };
2125
const options: ChannelOptions = { state: true, presence: true, limit: 10 };

examples/vite/src/App.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ type LocalChannelType = Record<string, unknown>;
3232
type LocalCommandType = string;
3333
type LocalEventType = Record<string, unknown>;
3434
type LocalMessageType = Record<string, unknown>;
35+
type LocalPollOptionType = Record<string, unknown>;
36+
type LocalPollType = Record<string, unknown>;
3537
type LocalReactionType = Record<string, unknown>;
3638
type LocalUserType = Record<string, unknown>;
3739

@@ -41,6 +43,8 @@ type StreamChatGenerics = {
4143
commandType: LocalCommandType;
4244
eventType: LocalEventType;
4345
messageType: LocalMessageType;
46+
pollOptionType: LocalPollOptionType;
47+
pollType: LocalPollType;
4448
reactionType: LocalReactionType;
4549
userType: LocalUserType;
4650
};

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"emoji-mart": "^5.4.0",
105105
"react": "^18.0.0 || ^17.0.0 || ^16.8.0",
106106
"react-dom": "^18.0.0 || ^17.0.0 || ^16.8.0",
107-
"stream-chat": "^8.30.0"
107+
"stream-chat": "^8.33.1"
108108
},
109109
"peerDependenciesMeta": {
110110
"emoji-mart": {
@@ -226,7 +226,7 @@
226226
"rollup-plugin-url": "^3.0.1",
227227
"rollup-plugin-visualizer": "^4.2.0",
228228
"semantic-release": "^19.0.5",
229-
"stream-chat": "^8.30.0",
229+
"stream-chat": "^8.33.1",
230230
"style-loader": "^2.0.0",
231231
"ts-jest": "^28.0.8",
232232
"typescript": "^4.7.4",

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -13322,10 +13322,10 @@ stream-browserify@^2.0.1:
1332213322
inherits "~2.0.1"
1332313323
readable-stream "^2.0.2"
1332413324

13325-
stream-chat@^8.30.0:
13326-
version "8.30.0"
13327-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.30.0.tgz#47cd05adee04ff7f7b170cac55698474e2819eb4"
13328-
integrity sha512-UNdCC9P9wM9DBn6hgVby1rSQuAwTovRpoZL5PdvUS3AEIpXCU4tj2zlwCbz2GFA/M9spDfyQsT/c+vbbr7eCAg==
13325+
stream-chat@^8.33.1:
13326+
version "8.33.1"
13327+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.33.1.tgz#d4e7f3bb10ac4564572431922c97e7c4eda7fe3b"
13328+
integrity sha512-r4vUjjsBTtCER2wEFYJzbgSY7eipPkM9gyQNV5VVdZhegY/NggeinwY1bYpBXBpQ5JIEvNFIWWRPOFYkMae3MQ==
1332913329
dependencies:
1333013330
"@babel/runtime" "^7.16.3"
1333113331
"@types/jsonwebtoken" "~9.0.0"

0 commit comments

Comments
 (0)