Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .changeset/count-messages.md

This file was deleted.

8 changes: 8 additions & 0 deletions apps/web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @eventuras/oratio-web

## 0.0.3

### Patch Changes

- Updated dependencies [ba1f02c]
- @eventuras/oratio-core@0.3.0
- @eventuras/oratio-react@0.3.0

## 0.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eventuras/oratio-web",
"version": "0.0.2",
"version": "0.0.3",
"private": true,
"license": "MPL-2.0",
"type": "module",
Expand Down
14 changes: 14 additions & 0 deletions packages/oratio-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @eventuras/oratio-core

## 0.3.0

### Minor Changes

- ba1f02c: History is paged by messages, not events.

`loadOlder` and `loadNewer` page until the call has added `minMessages` messages (default 10), the room's start (or, for `loadNewer`, the live timeline), or `maxPages` requests (default 5). A room full of memberships, power levels and pins no longer needs several presses to show one message. In oratio-core: `loadOlder(client, timeline, { minMessages, maxPages, pageSize })`, and the same for `loadNewer`. In `useTimeline`: `loadOlder({ minMessages, maxPages })` and `loadNewer({ … })`.

They still take a number: `loadOlder(50)` and `loadNewer(50)` are one request for that many events, as in 0.2.0. A call with no argument now uses the new behaviour.

`openAt` loads about `minMessages` messages around the event, half before and half after, at most `maxPages` requests each way (`fillAround`, also exported). A message opened through `/context`, which matrix-js-sdk asks for the event alone, no longer shows as a single message. `useTimeline` passes its `minMessages` on.

`hasOlder` turns false after a page back that brings no events, for homeservers that hand out a token at the room's start. `loadNewer` no longer pages the live timeline forwards, and stops once a timeline has met the next one.

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/oratio-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eventuras/oratio-core",
"version": "0.2.0",
"version": "0.3.0",
"description": "Framework-agnostic Matrix client core for oratio, on matrix-js-sdk",
"license": "MPL-2.0",
"repository": {
Expand Down
19 changes: 19 additions & 0 deletions packages/oratio-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# @eventuras/oratio-react

## 0.3.0

### Minor Changes

- ba1f02c: History is paged by messages, not events.

`loadOlder` and `loadNewer` page until the call has added `minMessages` messages (default 10), the room's start (or, for `loadNewer`, the live timeline), or `maxPages` requests (default 5). A room full of memberships, power levels and pins no longer needs several presses to show one message. In oratio-core: `loadOlder(client, timeline, { minMessages, maxPages, pageSize })`, and the same for `loadNewer`. In `useTimeline`: `loadOlder({ minMessages, maxPages })` and `loadNewer({ … })`.

They still take a number: `loadOlder(50)` and `loadNewer(50)` are one request for that many events, as in 0.2.0. A call with no argument now uses the new behaviour.

`openAt` loads about `minMessages` messages around the event, half before and half after, at most `maxPages` requests each way (`fillAround`, also exported). A message opened through `/context`, which matrix-js-sdk asks for the event alone, no longer shows as a single message. `useTimeline` passes its `minMessages` on.

`hasOlder` turns false after a page back that brings no events, for homeservers that hand out a token at the room's start. `loadNewer` no longer pages the live timeline forwards, and stops once a timeline has met the next one.

### Patch Changes

- Updated dependencies [ba1f02c]
- @eventuras/oratio-core@0.3.0

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/oratio-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eventuras/oratio-react",
"version": "0.2.0",
"version": "0.3.0",
"description": "React hooks and components for the oratio Matrix client, on ratio-ui/chat",
"license": "MPL-2.0",
"repository": {
Expand Down