-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fails for case of newly added property with a value of null #7
Comments
Yep, this happens :( |
Anyone wants to PR? |
Shit, I just wasted a lot of time before checking the issues here 🤦 Wonder why this hasn't been picked up in two years @viruschidai? But happy to find a solution. |
In the meantime you can do something like: |
@viruschidai Could you please release v2.0.1 with this fix? I waited a year before you merged the PR in April, but there has been no new release so I still can't use normal npm version control for this library. |
A simple test case:
Fails with "TypeError: Cannot read property 'length' of undefined"
diff-json/src/changesets.coffee
Line 212 in 4356e69
should probably be:
In its current form applyChanges calls applyBranchChanges for the add of a new property with a value of null. applyBranchChanges expects a changes array to exist on the change and calls length on undefined.
The text was updated successfully, but these errors were encountered: