Skip to content

Commit 8124be7

Browse files
isekovanicMartinCupeladependabot[bot]NikolaGoranNaumovskioliverlaz
authored
chore: consolidate with master (#1973)
## CLA - [ ] I have signed the [Stream CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) (required). - [ ] Code changes are tested ## Description of the changes, What, Why and How? ## Changelog - --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: MartinCupela <32706194+MartinCupela@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: nikola.nnaumovski <47224656+NikolaGoranNaumovski@users.noreply.github.com> Co-authored-by: Oliver Lazoroski <oliver.lazoroski@gmail.com> Co-authored-by: Laurent Schaffner <laurent.schaffner.code@gmail.com> Co-authored-by: Laurent Schaffner <laurentschaffner@Laurents-MacBook-Pro-Stream.local> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
1 parent 8c895fd commit 8124be7

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,17 @@ docs/breaking-changes-v14-v15.md for the full migration guide.
490490
* add message/channel paginator stack with thread minimal-init and state stores ([#1795](https://github.com/GetStream/stream-chat-js/issues/1795)) ([62f0507](https://github.com/GetStream/stream-chat-js/commit/62f050786dc153b89920d59aacecaf5f051fbaed))
491491
* integrate OpenAPI generated clients ([#1760](https://github.com/GetStream/stream-chat-js/issues/1760)) ([0776bc4](https://github.com/GetStream/stream-chat-js/commit/0776bc460598a91afb91d4d04d3281a562073f13))
492492
* v10 ([cd3141e](https://github.com/GetStream/stream-chat-js/commit/cd3141efe47b49cf83d3d58725bb8ed3b4f88f08))
493+
## [9.54.4](https://github.com/GetStream/stream-chat-js/compare/v9.54.3...v9.54.4) (2026-10-29)
494+
495+
### Bug Fixes
496+
497+
* handle tokenProvider rejection during reconnect token refresh ([#1962](https://github.com/GetStream/stream-chat-js/issues/1962)) ([7721bd5](https://github.com/GetStream/stream-chat-js/commit/7721bd5bf6abcce9087f11d3c07f214a1d27e217))
498+
499+
## [9.54.3](https://github.com/GetStream/stream-chat-js/compare/v9.54.2...v9.54.3) (2026-10-28)
500+
501+
### Bug Fixes
502+
503+
* read cached channels against the query's message_limit ([#1958](https://github.com/GetStream/stream-chat-js/issues/1958)) ([bbddea0](https://github.com/GetStream/stream-chat-js/commit/bbddea0563e2473b20b05dddb0875675e7e2f953))
493504
494505
## [9.54.2](https://github.com/GetStream/stream-chat-js/compare/v9.54.1...v9.54.2) (2026-10-28)
495506

‎test/unit/client.test.js‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,6 +1776,37 @@ describe('StreamChat.queryChannels', async () => {
17761776
});
17771777
});
17781778

1779+
describe('a cached page read against the query message_limit (#1958)', () => {
1780+
it('keeps older messages loadable once the online page arrives', async () => {
1781+
const client = await getClientWithUser();
1782+
// as ChannelPaginator.preloadFirstPageFromOfflineDb does: the DB returns the newest
1783+
// `message_limit` messages, read against that limit
1784+
const [channel] = client.hydrateChannels(
1785+
[
1786+
{
1787+
...mockChannelQueryResponse,
1788+
channel: { ...mockChannelQueryResponse.channel, last_message_at: at(200) },
1789+
messages: range(191, 200),
1790+
},
1791+
],
1792+
{ offlineMode: true, skipInitialization: [] },
1793+
{ message_limit: 10 },
1794+
);
1795+
expect(channel.messagePaginator.hasMoreTail).toBe(true);
1796+
1797+
await hydrate(client, range(191, 200), 10);
1798+
expect(shownIds(channel)).toEqual(ids(range(191, 200)));
1799+
expect(channel.messagePaginator.hasMoreTail).toBe(true);
1800+
1801+
serveFrom(channel, range(1, 200));
1802+
await channel.messagePaginator.toTail();
1803+
1804+
// one page of the channel's own page size, with more left behind it
1805+
expect(shownIds(channel)).toEqual(ids(range(91, 200)));
1806+
expect(channel.messagePaginator.hasMoreTail).toBe(true);
1807+
});
1808+
});
1809+
17791810
describe('a newest page that does not connect to the loaded messages (#1930)', () => {
17801811
it('shows the newest page, and the gap can be paginated back to the loaded messages', async () => {
17811812
const client = await getClientWithUser();

0 commit comments

Comments
 (0)