load()ing adds deleted docs into _docs
aheckmann opened this issue · 1 comments
aheckmann commented
After loading from disk, deleted docs show up in the _docs
array and are returned from filter()
calls. Deleted docs shouldn't be added to the _docs
array during load()
.
My proposed patch: [ http://github.com/aheckmann/node-dirty/commit/050a32dde338eff91ab413da1d01c875197cda77 ]
felixge commented
Thanks for reporting!
Added a test case for the bug here:
http://github.com/felixge/node-dirty/commit/5eeb84598844087c405c514d4d9389abf5e21b7b
And merged your patch:
http://github.com/felixge/node-dirty/commit/75c2bba237dce1f03b27e204d115861f4dd86ea6