Closes #234. I copied over the seek function from leveldown, but without the type checks (because that's up to the implementation).
Can be released as a minor because AFAIK leveldown is the only implementation that supports seeking atm, and it does so by defining seek rather than _seek, so effectively there's no change.
When this lands in leveldown and we rename its seek to _seek, there's one change: the seek target will be serialized. That's fine, because leveldown can only seek to Buffer or strings anyway. It can only be considered a breaking change if someone does seek(3) and is expecting it to throw.
Next step is to copy over tests from leveldown, but I prefer to first land it in leveldown and see that its current tests pass.
Closes #234. I copied over the
seek
function fromleveldown
, but without the type checks (because that's up to the implementation).Can be released as a minor because AFAIK
leveldown
is the only implementation that supports seeking atm, and it does so by definingseek
rather than_seek
, so effectively there's no change.When this lands in
leveldown
and we rename itsseek
to_seek
, there's one change: the seek target will be serialized. That's fine, becauseleveldown
can only seek to Buffer or strings anyway. It can only be considered a breaking change if someone doesseek(3)
and is expecting it to throw.Next step is to copy over tests from
leveldown
, but I prefer to first land it inleveldown
and see that its current tests pass.cc @peakji