Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove defined behavior for nullish targets
By targets I mean range options as well as 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 means `{ gt: null }` and `{ gt: undefined }` are *not* the same as `{}`. 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