Skip to content

Commit fbc73bd

Browse files
committed
feat: use ChannelManager from stream-chat-js
BREAKING CHANGE: ChannelService: init and initWithCustomQuery syntax changed; registering WS event handler overrides has a simplified syntax; ChannelQuery class is removed; for the full list check https://getstream.io/chat/docs/sdk/angular/basics/upgrade-v5/
1 parent be23e4e commit fbc73bd

File tree

13 files changed

+390
-1156
lines changed

13 files changed

+390
-1156
lines changed

package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"pretty-bytes": "^6.1.1",
119119
"rxjs": "~7.4.0",
120120
"starwars-names": "^1.6.0",
121-
"stream-chat": "^8.44.0",
121+
"stream-chat": "^8.56.0",
122122
"ts-node": "^10.9.2",
123123
"tslib": "^2.3.0",
124124
"uuid": "^11.1.0",

projects/sample-app/src/app/app.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,13 @@ export class AppComponent implements AfterViewInit {
5959
: environment.userToken,
6060
{ timeout: 10000 },
6161
);
62-
void this.channelService.init(
63-
environment.channelsFilter || {
62+
void this.channelService.init({
63+
filters: environment.channelsFilter || {
6464
type: 'messaging',
6565
members: { $in: [environment.userId] },
6666
},
67-
undefined,
68-
{ limit: 10 },
69-
);
67+
options: { limit: 10 },
68+
});
7069
this.streamI18nService.setTranslation();
7170
this.channelService.activeParentMessage$
7271
.pipe(map((m) => !!m))

projects/stream-chat-angular/karma.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module.exports = function (config) {
1818
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
1919
// for example, you can disable the random execution with `random: false`
2020
// or set a specific seed with `seed: 4321`
21+
random: false,
2122
},
2223
clearContext: false, // leave Jasmine Spec Runner output visible in browser
2324
},
@@ -27,7 +28,7 @@ module.exports = function (config) {
2728
coverageReporter: {
2829
dir: require("path").join(
2930
__dirname,
30-
"../../coverage/stream-chat-angular"
31+
"../../coverage/stream-chat-angular",
3132
),
3233
subdir: ".",
3334
reporters: [{ type: "html" }, { type: "text-summary" }],

projects/stream-chat-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@breezystack/lamejs": "^1.2.7",
2323
"@ngx-translate/core": "^16.0.0",
2424
"rxjs": "^7.4.0",
25-
"stream-chat": "^8.44.0"
25+
"stream-chat": "^8.56.0"
2626
},
2727
"peerDependenciesMeta": {
2828
"@breezystack/lamejs": {

projects/stream-chat-angular/src/lib/channel-query.spec.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

projects/stream-chat-angular/src/lib/channel-query.ts

Lines changed: 0 additions & 115 deletions
This file was deleted.

0 commit comments

Comments
 (0)