Skip to content

feat(cli-tool): add binary support to publish#2947

Merged
harbu merged 5 commits intomainfrom
add-binary-support-to-cli-publish
Dec 20, 2024
Merged

feat(cli-tool): add binary support to publish#2947
harbu merged 5 commits intomainfrom
add-binary-support-to-cli-publish

Conversation

@harbu
Copy link
Copy Markdown
Contributor

@harbu harbu commented Dec 13, 2024

Summary

Subcommand streamr stream publish now supports binary publishing. If the input is detected to be a hexadecimal string, it will be interpreted as binary and pushed to the network as such.

Checklist before requesting a review

  • Is this a breaking change? If it is, be clear in summary.
  • Read through code myself one more time.
  • Make sure any and all TODO comments left behind are meant to be left in.
  • Has reasonable passing test coverage?
  • Updated changelog if applicable.
  • Updated documentation if applicable.

@github-actions github-actions Bot added the cli-tools Related to CLI Tools Package label Dec 13, 2024
}
const partitionKey = (partitionKeyField !== undefined) ? json[partitionKeyField] : undefined
client.publish(stream, json, { partitionKey }).then(
const partitionKey = (partitionKeyField !== undefined && typeof message === 'object') ? message[partitionKeyField] : undefined
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice: partitionKeyField only makes sense on JSON objects.

@github-actions github-actions Bot added the docs label Dec 13, 2024
@harbu harbu requested a review from teogeb December 20, 2024 11:07
@harbu harbu merged commit 9e99462 into main Dec 20, 2024
@harbu harbu deleted the add-binary-support-to-cli-publish branch December 20, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli-tools Related to CLI Tools Package docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants