Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.7 KB

CHANGELOG.md

File metadata and controls

59 lines (41 loc) · 1.7 KB

[v0.4.0]

July 10, 2016

  • Add custom typeKey support #22
  • Add option to set custom type for deletedBy
  • Support instance method delete promise
  • Add specification about remove() to README

[v0.3.4]

June 20, 2016

  • Methods override fix for existent DB #11
  • Option to create indexes for deleted, deletedAt, deletedBy, related to #12

[v0.3.3]

July 1, 2016

  • Default delete set to false #10

[v0.3.2]

April 26, 2016

  • Correct field name into documentation, validateBeforeDelete

[v0.3.1]

April 20, 2016

  • Add option to disable validation on delete #6

[v0.3.0]

Mar 11, 2016

  • Bulk delete and restore
  • Remove requirement for callback in delete() and restore()

[v0.2.1]

Feb 1, 2016

  • Add option to override static model methods (count, find, findOne, findOneAndUpdate, update)
  • Add additional methods for overridden static methods:
only not deleted documents only deleted documents all documents
count() countDeleted countWithDeleted
find() findDeleted findWithDeleted
findOne() findOneDeleted findOneWithDeleted
findOneAndUpdate() findOneAndUpdateDeleted findOneAndUpdateWithDeleted
update() updateDeleted updateWithDeleted

[v0.1.1]

Aug 1, 2014

  • Initial version
  • Add deleted (true-false) key on document
  • Add deletedAt key to store time of deletion
  • Add deletedBy key to record who deleted document
  • Restore deleted documents, restore() method