It seems that we cannot apply patch on newStr to calculate oldStr now. I read source code https://github.com/kpdecker/jsdiff/blob/master/src/patch/apply.js#L85 , and thought that we can add an option to do so. If you accept this feature, I will create a pull request :-)