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

update all deps, fix standard linting#14

Closed
achingbrain wants to merge 1 commit into
Level:masterfrom
achingbrain:master
Closed

update all deps, fix standard linting#14
achingbrain wants to merge 1 commit into
Level:masterfrom
achingbrain:master

Conversation

@achingbrain
Copy link
Copy Markdown

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

@achingbrain
Copy link
Copy Markdown
Author

Depends on Level/codec#51

Comment thread test/basic.js
var memdown = require('memdown')
var concat = require('concat-stream')
var levelup = require('levelup')
var level = require('level-mem')
Copy link
Copy Markdown
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).

Comment thread server.js
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
Copy Markdown
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
Copy Markdown
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