Skip to content

Conversation

@XiNiHa
Copy link
Contributor

@XiNiHa XiNiHa commented Nov 15, 2024

  • Add encode interface, counterpart of the existing decode interface
  • Enable usage of encode and decode with Future API

@changeset-bot
Copy link

changeset-bot bot commented Nov 15, 2024

🦋 Changeset detected

Latest commit: 5a9b0de

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stackflow/plugin-history-sync Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Nov 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
stackflow-docs ✅ Ready (Inspect) Visit Preview Nov 16, 2024 6:25am

articleId: String(id),
}),
decode: ({ articleId }) => ({
id: Number(articleId),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm pretty surprised that the decode function can be used to make non-string activity params, which clashes with the assumption of ActivityBaseParams that expects Record<string, string | unknown>. Is it okay?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant