-
Notifications
You must be signed in to change notification settings - Fork 38
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
API messed up 1.0.0 -> 1.0.3 #14
Comments
Yea, the change happened here https://github.com/JackuB/diff-match-patch/pull/13/files#diff-168726dbe96b3ce427e7fedce31bb0bcR76 It's emulating array for backward compatibility. But the destructing use case is not taken care of.
diff_match_patch.Diff = function(op, text) {
return [op, text];
}; Wondering if there is any reason they did that - most likely to keep the API 1:1 with rest of the implementations. Will try to look into it a bit more. |
I was going to submit an issue in google but saw yours , thanks. |
Released 1.0.4 with a rollback https://github.com/JackuB/diff-match-patch/releases/tag/1.0.4 |
1.0.0 worked.
In 1.0.3, the API is somehow messed up. The test harness does not detect it.
And it breaks ES6 clients:
The text was updated successfully, but these errors were encountered: