Skip to content

v2.0.0

Choose a tag to compare

@bcomnes bcomnes released this 14 Jan 17:56
5cecab3

Breaking

  • level-hookdown now mutates the wrapped level. It does this in a correct and conventional way however, using prototype method override on the instance object. The methods get, del, and batch are added to the instance, and internally call the instance prototype methods between pre and post hooks.
  • Some of the leveldown baggage has been removed.
  • Most of the API is the same.
  • A protectHook option is added to preserve the batch object if the wrapped level mutates that object during its operation. Levels like subleveldown do this.

Added

  • added some new tests to cover concurrency options

Changed

  • minor readme improvements