Replies: 2 comments 3 replies
-
Never mind, the implementation is fine, looks like no surprises here (https://github.com/vfile/vfile-rename/blob/main/index.js). There is something very odd going on with my TypeScript setup. Sorry, feel free to close/delete this. |
Beta Was this translation helpful? Give feedback.
-
Ah yes, that was probably it. Although I'm sure had the latest & greatest of all dependencies, I guess both Thanks for the swift response! |
Beta Was this translation helpful? Give feedback.
-
The
vfile-rename
function works fine, but it was pretty subtle to me that the providedfile
was not renamed:However, the returned
file
does include the rename and has the fullhistory
:Is this intentional? I'd think a rename would modify the passed file. Alternatively, I guess this should be documented more clearly.
Beta Was this translation helpful? Give feedback.
All reactions