Skip to content

Commit bef677e

Browse files
committed
chore: bump to actual stream-chat version and modify types
1 parent db5adad commit bef677e

File tree

6 files changed

+29
-29
lines changed

6 files changed

+29
-29
lines changed

examples/ExpoMessaging/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7441,10 +7441,10 @@ stream-chat@^9.0.0:
74417441
linkifyjs "^4.2.0"
74427442
ws "^8.18.1"
74437443

7444-
stream-chat@^9.2.0-offline-support-beta.3:
7445-
version "9.2.0-offline-support-beta.3"
7446-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.2.0-offline-support-beta.3.tgz#58eb049fa1479ace1fd4a7f48d991821d8f48606"
7447-
integrity sha512-knFp7KYGXY3w1jgboJ9IipCHnZNnS9qiedfM5zpPweEJdZlc7G4NKiHo0yvqEfxJ+JOVIGn+wUg/cT2x0yf/RQ==
7444+
stream-chat@^9.2.0:
7445+
version "9.2.0"
7446+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.2.0.tgz#f3109891ca27f17b6fd0aa6ebcf66be12df1f88c"
7447+
integrity sha512-inz3CA5tuqqSrla7qjRTCKs+coRKOYROWf0wEWYgbCu0tAUuiBTRtu1PJL1isEXIaPLiWi00BuRrBEIFon9Kng==
74487448
dependencies:
74497449
"@types/jsonwebtoken" "^9.0.8"
74507450
"@types/ws" "^8.5.14"

examples/SampleApp/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7582,10 +7582,10 @@ stream-chat@^9.0.0:
75827582
linkifyjs "^4.2.0"
75837583
ws "^8.18.1"
75847584

7585-
stream-chat@^9.2.0-offline-support-beta.3:
7586-
version "9.2.0-offline-support-beta.3"
7587-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.2.0-offline-support-beta.3.tgz#58eb049fa1479ace1fd4a7f48d991821d8f48606"
7588-
integrity sha512-knFp7KYGXY3w1jgboJ9IipCHnZNnS9qiedfM5zpPweEJdZlc7G4NKiHo0yvqEfxJ+JOVIGn+wUg/cT2x0yf/RQ==
7585+
stream-chat@^9.2.0:
7586+
version "9.2.0"
7587+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.2.0.tgz#f3109891ca27f17b6fd0aa6ebcf66be12df1f88c"
7588+
integrity sha512-inz3CA5tuqqSrla7qjRTCKs+coRKOYROWf0wEWYgbCu0tAUuiBTRtu1PJL1isEXIaPLiWi00BuRrBEIFon9Kng==
75897589
dependencies:
75907590
"@types/jsonwebtoken" "^9.0.8"
75917591
"@types/ws" "^8.5.14"

examples/TypeScriptMessaging/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6968,10 +6968,10 @@ stream-chat@^9.0.0:
69686968
linkifyjs "^4.2.0"
69696969
ws "^8.18.1"
69706970

6971-
stream-chat@^9.2.0-offline-support-beta.3:
6972-
version "9.2.0-offline-support-beta.3"
6973-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.2.0-offline-support-beta.3.tgz#58eb049fa1479ace1fd4a7f48d991821d8f48606"
6974-
integrity sha512-knFp7KYGXY3w1jgboJ9IipCHnZNnS9qiedfM5zpPweEJdZlc7G4NKiHo0yvqEfxJ+JOVIGn+wUg/cT2x0yf/RQ==
6971+
stream-chat@^9.2.0:
6972+
version "9.2.0"
6973+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.2.0.tgz#f3109891ca27f17b6fd0aa6ebcf66be12df1f88c"
6974+
integrity sha512-inz3CA5tuqqSrla7qjRTCKs+coRKOYROWf0wEWYgbCu0tAUuiBTRtu1PJL1isEXIaPLiWi00BuRrBEIFon9Kng==
69756975
dependencies:
69766976
"@types/jsonwebtoken" "^9.0.8"
69776977
"@types/ws" "^8.5.14"

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"path": "0.12.7",
7878
"react-native-markdown-package": "1.8.2",
7979
"react-native-url-polyfill": "^1.3.0",
80-
"stream-chat": "^9.2.0-offline-support-beta.3",
80+
"stream-chat": "^9.2.0",
8181
"use-sync-external-store": "^1.4.0"
8282
},
8383
"peerDependencies": {

package/src/store/OfflineDB.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { AbstractOfflineDB, StreamChat } from 'stream-chat';
22
import type {
3-
GetAppSettingsType,
4-
GetChannelsForQueryType,
5-
GetChannelsType,
6-
GetLastSyncedAtType,
7-
UpsertAppSettingsType,
8-
UpsertUserSyncStatusType,
3+
DBGetAppSettingsType,
4+
DBGetChannelsForQueryType,
5+
DBGetChannelsType,
6+
DBGetLastSyncedAtType,
7+
DBUpsertAppSettingsType,
8+
DBUpsertUserSyncStatusType,
99
} from 'stream-chat';
1010

1111
import * as api from './apis';
@@ -21,11 +21,11 @@ export class OfflineDB extends AbstractOfflineDB {
2121
upsertChannels = api.upsertChannels;
2222

2323
// TODO: Rename currentUserId -> userId in the next major version as it is technically breaking.
24-
upsertUserSyncStatus = ({ userId, lastSyncedAt, execute }: UpsertUserSyncStatusType) =>
24+
upsertUserSyncStatus = ({ userId, lastSyncedAt, execute }: DBUpsertUserSyncStatusType) =>
2525
api.upsertUserSyncStatus({ currentUserId: userId, execute, lastSyncedAt });
2626

2727
// TODO: Rename currentUserId -> userId in the next major version as it is technically breaking.
28-
upsertAppSettings = ({ appSettings, userId, execute }: UpsertAppSettingsType) =>
28+
upsertAppSettings = ({ appSettings, userId, execute }: DBUpsertAppSettingsType) =>
2929
api.upsertAppSettings({ appSettings, currentUserId: userId, execute });
3030

3131
upsertPoll = api.upsertPoll;
@@ -41,20 +41,20 @@ export class OfflineDB extends AbstractOfflineDB {
4141
updateMessage = api.updateMessage;
4242

4343
// TODO: Rename currentUserId -> userId in the next major version as it is technically breaking.
44-
getChannels = ({ cids, userId }: GetChannelsType) =>
44+
getChannels = ({ cids, userId }: DBGetChannelsType) =>
4545
api.getChannels({ channelIds: cids, currentUserId: userId });
4646

4747
// TODO: Rename currentUserId -> userId in the next major version as it is technically breaking.
48-
getChannelsForQuery = ({ userId, filters, sort }: GetChannelsForQueryType) =>
48+
getChannelsForQuery = ({ userId, filters, sort }: DBGetChannelsForQueryType) =>
4949
api.getChannelsForFilterSort({ currentUserId: userId, filters, sort });
5050

5151
getAllChannelCids = api.getAllChannelIds;
5252

5353
// TODO: Rename currentUserId -> userId in the next major version as it is technically breaking.
54-
getLastSyncedAt = ({ userId }: GetLastSyncedAtType) =>
54+
getLastSyncedAt = ({ userId }: DBGetLastSyncedAtType) =>
5555
api.getLastSyncedAt({ currentUserId: userId });
5656

57-
getAppSettings = ({ userId }: GetAppSettingsType) =>
57+
getAppSettings = ({ userId }: DBGetAppSettingsType) =>
5858
api.getAppSettings({ currentUserId: userId });
5959

6060
getReactions = api.getReactionsForFilterSort;

package/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7817,10 +7817,10 @@ statuses@~1.5.0:
78177817
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
78187818
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
78197819

7820-
stream-chat@^9.2.0-offline-support-beta.3:
7821-
version "9.2.0-offline-support-beta.3"
7822-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.2.0-offline-support-beta.3.tgz#58eb049fa1479ace1fd4a7f48d991821d8f48606"
7823-
integrity sha512-knFp7KYGXY3w1jgboJ9IipCHnZNnS9qiedfM5zpPweEJdZlc7G4NKiHo0yvqEfxJ+JOVIGn+wUg/cT2x0yf/RQ==
7820+
stream-chat@^9.2.0:
7821+
version "9.2.0"
7822+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.2.0.tgz#f3109891ca27f17b6fd0aa6ebcf66be12df1f88c"
7823+
integrity sha512-inz3CA5tuqqSrla7qjRTCKs+coRKOYROWf0wEWYgbCu0tAUuiBTRtu1PJL1isEXIaPLiWi00BuRrBEIFon9Kng==
78247824
dependencies:
78257825
"@types/jsonwebtoken" "^9.0.8"
78267826
"@types/ws" "^8.5.14"

0 commit comments

Comments
 (0)