Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Dec 20, 2024

Conversation

harbu
Copy link
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
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
24 checks passed
@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