Skip to content

feat(sdk)!: Stream#update() doesn't merge#2826

Merged
teogeb merged 16 commits intomainfrom
sdk-Stream-update-doesnt-merge
Oct 24, 2024
Merged

feat(sdk)!: Stream#update() doesn't merge#2826
teogeb merged 16 commits intomainfrom
sdk-Stream-update-doesnt-merge

Conversation

@teogeb
Copy link
Copy Markdown
Contributor

@teogeb teogeb commented Oct 18, 2024

This is a breaking change

The Stream#update() doesn't merge the metadata with the existing data. It simply overwrites the existing data with the new data.

Now Stream#update() and StreamrClient#updateStream() have almost the same functionality.

Future improvements

Maybe the two methods should have exactly the same functions: i.e. we'd clear the cache also in StreamrClient#updateStream().

@github-actions github-actions Bot added the sdk label Oct 18, 2024
@teogeb teogeb requested a review from harbu October 18, 2024 16:34
Comment thread packages/sdk/src/Stream.ts
@github-actions github-actions Bot added the docs label Oct 22, 2024
@harbu harbu self-requested a review October 24, 2024 11:44
Comment thread packages/sdk/src/Stream.ts Outdated
Base automatically changed from sdk-Stream-metadata-partitions-is-nullable to main October 24, 2024 12:59
@teogeb teogeb merged commit 56f41a0 into main Oct 24, 2024
@teogeb teogeb deleted the sdk-Stream-update-doesnt-merge branch October 24, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants