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

fix: ensure files in subdirectories are returned as buffers when calling toJSON with asBuffer #1041

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

elegaanz
Copy link
Contributor

@elegaanz elegaanz commented Jul 1, 2024

Without that, asBuffer only works for files at the root of the volume, not those in sub-directories.

@G-Rath G-Rath changed the title Volume.toJSON: correctly propagate asBuffer in recursive calls fix: ensure files in subdirectories are returned as buffers when calling toJSON with asBuffer Jul 20, 2024
@G-Rath
Copy link
Collaborator

G-Rath commented Jul 20, 2024

Thanks, I think this make sense - any chance you could add a test though?

Copy link
Collaborator

@G-Rath G-Rath left a comment

Choose a reason for hiding this comment

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

🥳

@G-Rath G-Rath merged commit c3d4cf3 into streamich:master Jul 23, 2024
9 of 10 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 23, 2024
## [4.9.4](v4.9.3...v4.9.4) (2024-07-23)

### Bug Fixes

* ensure files in subdirectories are returned as buffers when calling `toJSON` with `asBuffer` ([#1041](#1041)) ([c3d4cf3](c3d4cf3))
Copy link

🎉 This PR is included in version 4.9.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@elegaanz elegaanz deleted the patch-1 branch July 24, 2024 08:13
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