-
-
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
fix: add parentPath
to Dirent
#1058
Conversation
parentPath
to Dirnet
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.
thanks - would you mind adding a test to assert that parentPath
has the same value as path
?
it'd also be great if you could double check that we're using parentPath
everywhere ourselves (I'm not sure if we do actually use Dirent#path
)
I fixed the tests that were broken due to the new Initially, I wanted to make |
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.
thanks!
🎉 This PR is included in version 4.11.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* streamich#735 - add parentPath property to Dirent * streamich#735 - fix tests for parentPath property * streamich#735 - use Dirent parentPath instead of path in Volume
## [4.11.2](streamich/memfs@v4.11.1...v4.11.2) (2024-09-17) ### Bug Fixes * add `parentPath` to `Dirent` ([streamich#1058](streamich#1058)) ([9156c84](streamich@9156c84)), closes [streamich#735](streamich#735) [streamich#735](streamich#735)
Changes
parentPath
property toDirent
which is equal to thepath
propertyThe
parentPath
property will replace thepath
property onDirent
in future node versions (see Docs).References #735