Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

update all deps, fix standard linting #14

Closed
wants to merge 1 commit into from

Conversation

achingbrain
Copy link

Uses most recent everything & adds the encoding-down module to wrap the returned client.

@achingbrain
Copy link
Author

Depends on Level/codec#51

var concat = require('concat-stream')
var levelup = require('levelup')
var level = require('level-mem')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer using level-compose because it's easier to take out encoding-down when needed. See https://github.com/vweevers/multileveldown/blob/wip-upgrade (and the discussion in Level/community#71 that spurred it).

if (req.options.gte === null) req.options.gte = undefined
if (req.options.lt === null) req.options.lt = undefined
if (req.options.lte === null) req.options.lte = undefined
if (!req.options.gt) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This excludes falsy yet valid range options. A better check is == null, although that might exclude range options that are valid in bytewise. So the best solution would be if ('gt' in req.options), if we can make that work in the client-server protocol.

@vweevers
Copy link
Member

Closing in favor of #15.

@vweevers vweevers closed this Oct 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants