Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement _serializeKey and _serializeValue
With undefined behavior for nullish targets (range options and seek targets). Previously, nullish range options were ignored and seek(null) and seek(undefined) would throw an error. Now they translate to String(null) and String(undefined). This change makes it explicit that leveldown only supports buffers and strings. Nullish targets do have a meaning in the ecosystem; that meaning should be given at a higher level like encoding-down. In other words, it isn't leveldown's concern anymore.
- Loading branch information