From bbee07b67760fab7585832ca7dc1992b0d8ee66f Mon Sep 17 00:00:00 2001 From: Zita Szupera Date: Wed, 13 Nov 2024 14:54:40 +0100 Subject: [PATCH] fix: type fix in stream-chat@8.44.0 causing typing issue --- package-lock.json | 14 +++++++------- package.json | 2 +- .../stream-chat-angular/src/lib/channel.service.ts | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 113fd694..dbfffb32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "pretty-bytes": "^6.1.1", "rxjs": "~7.4.0", "starwars-names": "^1.6.0", - "stream-chat": "^8.40.1", + "stream-chat": "^8.44.0", "ts-node": "^10.9.2", "tslib": "^2.3.0", "uuid": "^9.0.1", @@ -21996,9 +21996,9 @@ } }, "node_modules/stream-chat": { - "version": "8.40.1", - "resolved": "https://registry.npmjs.org/stream-chat/-/stream-chat-8.40.1.tgz", - "integrity": "sha512-bkdgYjBK/4TGm3HP7/hnHUzui0ka2GjhzM4twBH3AIiVdzPLRrqNMavvOYZCI6Eio54ntylkb5EWXTJUHwxHpQ==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/stream-chat/-/stream-chat-8.44.0.tgz", + "integrity": "sha512-7HNtimD8sT/51rsFibGcD6uBgKj+vlKyYCZMDzjYQEaEsrLqyAg48dOyNM4L2FTF5aXgo9SlxZr21SPleeA2BA==", "dependencies": { "@babel/runtime": "^7.16.3", "@types/jsonwebtoken": "~9.0.0", @@ -39807,9 +39807,9 @@ } }, "stream-chat": { - "version": "8.40.1", - "resolved": "https://registry.npmjs.org/stream-chat/-/stream-chat-8.40.1.tgz", - "integrity": "sha512-bkdgYjBK/4TGm3HP7/hnHUzui0ka2GjhzM4twBH3AIiVdzPLRrqNMavvOYZCI6Eio54ntylkb5EWXTJUHwxHpQ==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/stream-chat/-/stream-chat-8.44.0.tgz", + "integrity": "sha512-7HNtimD8sT/51rsFibGcD6uBgKj+vlKyYCZMDzjYQEaEsrLqyAg48dOyNM4L2FTF5aXgo9SlxZr21SPleeA2BA==", "requires": { "@babel/runtime": "^7.16.3", "@types/jsonwebtoken": "~9.0.0", diff --git a/package.json b/package.json index 944e3591..370b9714 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,7 @@ "pretty-bytes": "^6.1.1", "rxjs": "~7.4.0", "starwars-names": "^1.6.0", - "stream-chat": "^8.40.1", + "stream-chat": "^8.44.0", "ts-node": "^10.9.2", "tslib": "^2.3.0", "uuid": "^9.0.1", diff --git a/projects/stream-chat-angular/src/lib/channel.service.ts b/projects/stream-chat-angular/src/lib/channel.service.ts index a6e7b895..5fcd4ab9 100644 --- a/projects/stream-chat-angular/src/lib/channel.service.ts +++ b/projects/stream-chat-angular/src/lib/channel.service.ts @@ -17,11 +17,11 @@ import { Event, EventTypes, FormatMessageResponse, + MemberFilters, Message, MessageResponse, ReactionResponse, UpdatedMessage, - UserFilters, UserResponse, } from 'stream-chat'; import { ChatClientService, ClientEvent } from './chat-client.service'; @@ -1075,7 +1075,7 @@ export class ChannelService< } const result = await activeChannel.queryMembers({ name: { $autocomplete: searchTerm }, - } as UserFilters); // TODO: find out why we need typecast here + } as MemberFilters); // TODO: find out why we need typecast here return result.members.filter( (m) => m.user_id !== this.chatClientService.chatClient?.user?.id