-
-
Notifications
You must be signed in to change notification settings - Fork 130
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(volume): now handling Buffer
as volume content
#880
Conversation
bump |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to apply prettier
Done. |
@shorwood are you able to rebase this please? |
This commit resolves cases when you want to inject raw binary (`Buffer`) data into your virtual volumes. For example when you want to validate an archive extracts files correctly.
Hi, it's done. Sorry for the close/reopen, I had to sync and cherry pick because rebase was taking too long on my PC. I have also taken the opportunity to reword them a bit for better understanding. Awaiting your feedback. |
# [4.5.0](v4.4.0...v4.5.0) (2023-09-25) ### Features * **volume:** `fromJSON` now accepts `Buffer` as volume content ([#880](#880)) ([9c0a6ff](9c0a6ff))
🎉 This PR is included in version 4.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Context
Hi ! While trying to inject some
Buffer
into amemfs
volume from thefromJSON
method, I noticed it creates a virtual folder. I expected the method to acceptBuffer
as content but I noticed onlystring
are "allowed".This PR resolves cases when you want to inject raw binary data into your volumes. For example when you have some test archives to validate.
Actions
I have written a small patch to fix the issue. I tried to make as few changes as possible. It comes with a new test and some adjustments to the documentation.
I hope it's enough for a quick merge. If not, feel free to share adjustments you would like to be done. I'll try to be as reactive as possible.
Best regards,
Stanley.