Open kbrownlees opened 7 years ago
Somehow it appears to me that we should avoid using null
as a key...
You're probably right. This type of key doesn't seem to be supported, mainly because the implementation was based on the JSON Patch https://tools.ietf.org/html/rfc6902, where all object keys are string.
Not sure what's the best way to go in representing non-string keys for the patch. Perhaps a escaped symbol to represent?
Feel free to submit Pull Requests or ideas!
The error comes from https://github.com/intelie/immutable-js-diff/blob/master/src/path.js#L14 where it is trying to determine the path of the key (https://github.com/intelie/immutable-js-diff/blob/master/src/diff.js#L56).