Return KVT from create_history_stream() #47

Merged
glyph merged 3 commits from return_kvt_from_history_stream into main 2022-06-29 13:38:56 +00:00
Owner

While working on lykin I realised that create_history_stream() was returning messages in the form of SsbMessageValue and not SsbMessageKVT. Returning a KVT provides more flexibility and information; most importantly, it includes the message key.

This PR updates the create_history_stream() method to return a stream of SsbMessageKVT.

I have bumped the minor version (which acts as the major version in our case, since we are still at 0.x.y) to reflect the breaking change of the API.

While working on [lykin](https://git.coopcloud.tech/glyph/lykin) I realised that `create_history_stream()` was returning messages in the form of `SsbMessageValue` and not `SsbMessageKVT`. Returning a KVT provides more flexibility and information; most importantly, it includes the message key. This PR updates the `create_history_stream()` method to return a stream of `SsbMessageKVT`. I have bumped the minor version (which acts as the major version in our case, since we are still at `0.x.y`) to reflect the breaking change of the API.
glyph added 2 commits 2022-06-29 12:55:58 +00:00
glyph requested review from notplants 2022-06-29 12:56:14 +00:00
glyph added 1 commit 2022-06-29 12:57:02 +00:00
Owner

looks good, can always easily transform sequences of kvts to message values

looks good, can always easily transform sequences of kvts to message values
glyph merged commit bf7d574064 into main 2022-06-29 13:38:56 +00:00
glyph deleted branch return_kvt_from_history_stream 2022-06-29 13:38:58 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: golgi-ssb/golgi#47
No description provided.