You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**This is a breaking changes as this changes the API**
`Stream` instances no longer have metadata field. Instead the metadata
is queried from `StreamRegistry`.
- `StreamRegistry` already caches the metadata. Now we explicity
populate the cache e.g. in `searchStreams()` (which queries `id` +
`metadata`) from The Graph).
## API
These `Stream` methods are now async:
- `getMetadata()`
- `getPartitionCount()`
- `getDescription()`
- `getStorageDayCount()`
Also added `StreamrClient#getStreamMetadata()` method which is used by
`Stream#getMetadata()`.
## Testing
Added new end-to-end tests to assert cache population logic. The new
`ProxyHttpServer` helper class which is needed by those tests.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,11 @@ Changes before Tatum release are not documented in this file.
16
16
- it is supported for `PUBLISH` and `SUBSCRIBE` permissions
17
17
- new `StreamrClient#getUserId()` method
18
18
- Method `StreamrClient#getDiagnosticInfo()` provides diagnostic info about network (https://github.com/streamr-dev/network/pull/2740, https://github.com/streamr-dev/network/pull/2741)
19
-
- Add accessors for stream metadata fields: (https://github.com/streamr-dev/network/pull/2825, https://github.com/streamr-dev/network/pull/2845)
19
+
- Add accessors for stream metadata fields: (https://github.com/streamr-dev/network/pull/2825, https://github.com/streamr-dev/network/pull/2845, https://github.com/streamr-dev/network/pull/2883)
20
20
-`Stream#getPartitionCount()`
21
21
-`Stream#getDescription()` and `Stream#setDescription()`
22
22
-`Stream#getStorageDayCount()` and `Stream#setStorageDayCount()`
0 commit comments