You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #3, but applies to records with deletions. I believe this applies to both deep-diff and deep-diff2.
This arises from invoking the record as a function in diff-map which works for maps, but not records since they don't automatically implement IFn.
I can put together a minimal repro and a PR in the next couple days.
lambdaisland.deep-diff.diff> (defrecordMyRecord [])
lambdaisland.deep_diff.diff.MyRecord
lambdaisland.deep-diff.diff> (diff (map->MyRecord {:foo"bar"}) (map->MyRecord {}))
Execution error (ClassCastException) at lambdaisland.deep-diff.diff/diff-map$fn (diff.clj:116).
class lambdaisland.deep_diff.diff.MyRecord cannot be cast to class clojure.lang.IFn (lambdaisland.deep_diff.diff.MyRecord is in unnamed module of loader clojure.lang.DynamicClassLoader @11f4ce76; clojure.lang.IFn is in unnamed module of loader 'app')
Activity
[-]Records with insertions break[/-][+]Records with deletions break[/+][-]Records with deletions break[/-][+]Fails with records with deleted keys[/+]Fix bug where records with deletions are not handled
Fix bug where records with deletions are not handled
Fix bug where records with deletions are not handled
Fix bug where records with deletions are not handled
# 2.4.138 (2022-09-01 / 6196130)