Closed joffreyvillard closed 8 months ago
Thank you!
Any chance this can make it to npm, too? ❤️
Will do in the next few days, @martolini!
It's unfortunate that @type/diff doesn't expose this yet :|
@leonardobsjr I'm hoping to do https://github.com/kpdecker/jsdiff/issues/303 soon and have jsdiff take over its own type definitions instead of deferring the provision of them to DefinitelyTyped. I have absolutely no idea how to do this yet - first time! - so any help would be welcome. But if I succeed then the @typed/diff
package will be deprecated and there'll be full and correct type in diff
itself.
@ExplodingCabbage Did a super-barebones types inclusion: https://github.com/kpdecker/jsdiff/pull/496
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
diff@5.1.0
for the project I'm working on.I'd like to use the provided
formatPatch
function along withstructuredPatch
, so that to only display a diff if relevant to my application (cannot apply the conditions on a string representation of the diff, sounds pretty hacky and fragile!).I think that
formatPatch
should hence be exported, to be used together withstructuredPatch
as I see fit, instead of directly viacreateTwoFilesPatch
that simply combines (and is very suitable anyway!)Here is the diff that solved my problem:
This issue body was partially generated by patch-package.