Skip to content

Commit

Permalink
feat(sdk): Export stream metadata utils (#2971)
Browse files Browse the repository at this point in the history
Export `parseStreamMetadata()` and `getStreamPartitionCount()` utility
functions. Note that we've added word _stream_ to make it more explicit
which kind of metadata these process.

The `getStreamPartitionCount()` is needed e.g. when parsing
`StreamMetadata` which has been emitted from `streamCreated` event. For
other usages `parseStreamMetadata()` is maybe useful.
  • Loading branch information
teogeb authored Jan 17, 2025
1 parent 2ec34bf commit 0ce4733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
export { StreamrClient, SubscribeOptions, ExtraSubscribeOptions } from './StreamrClient'
export { Stream } from './Stream'
export { StreamMetadata } from './StreamMetadata'
export { StreamMetadata, parseMetadata as parseStreamMetadata, getPartitionCount as getStreamPartitionCount } from './StreamMetadata'
export { Message, MessageMetadata } from './Message'
export { StreamrClientEvents } from './events'
export { PublishMetadata } from './publish/Publisher'
Expand Down

0 comments on commit 0ce4733

Please sign in to comment.