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

fixing a bug in arraybuffer binary data unwrapped v2 #428

Closed
wants to merge 6 commits into from

Conversation

rosejn
Copy link
Contributor

@rosejn rosejn commented Apr 6, 2023

Hey,
Thanks for getting the binary support updates I made merged into mainline sente! I've finally gotten back around to moving our platform over to your latest release, and I found one minor bug that pops up when using arraybuffers (msgpack) for the binary packed format. The sente/parse-packed function is expected to always return a tuple of packed + format, but in the non string case it is only returning the packed value. With this commit everything works as expected, although I'm not 100% familiar with the v1/v2 wrapp/unwrap scheme you are using for this transition so this might not be quite write. I'm thinking maybe the (string? packed) should be the first clause in the cond, and then it should return [packed :v2/unwrapped], but maybe there are string versions that also need to do that?

@ptaoussanis ptaoussanis self-assigned this Apr 6, 2023
@ptaoussanis ptaoussanis added the bug label Apr 6, 2023
@ptaoussanis
Copy link
Member

@rosejn Hi Jeff, thanks for catching this - and for the fix! Your fix looks good to me 👍 Apologies for the trouble.

Just taking care of one more PR, then will update the v1.18 snapshot. I'll ping back here when it's done 👍

@ptaoussanis
Copy link
Member

Merged manually, [com.taoensso/sente "1.18.0-SNAPSHOT"] is updated on Clojars 👍
Cheers :-)

@ptaoussanis ptaoussanis closed this Apr 7, 2023
@rosejn
Copy link
Contributor Author

rosejn commented Apr 7, 2023

Brilliant, thanks Peter!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants