-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document lt/lte/gt/gte #201
Comments
I'd completely remove |
oh shit 😟. Are lt/lte/gt/gte supported in other leveldown implementations? |
@juliangruber I feel the same way but the problem is that there's so much documentation out there now that refer to start and end, I'm about to contribute even more tomorrow at lxjs with a bunch of start & end in my code examples. Best to explain why things are different and that you shouldn't rely on start and end cause we're liable to remove them without notice. @mcollina good question, I think we have lt/lte/gt/gte in the AbstractLevelDOWN test suite, if not, it should be! |
what about a deprecation notice? |
@rvagg it seems not, the tests still refers to start and end: https://github.com/rvagg/node-abstract-leveldown/blob/master/abstract/iterator-test.js#L376-L392 I think we should support all backends before deprecating them here. |
start & end should still be in all the tests and the new ones should just be additions, until we remove start/end (IF we remove them) they need to be in the tests so they don't rot. |
@mcollina: https://github.com/rvagg/node-abstract-leveldown/blob/master/abstract/ranges-test.js If a backend isn't pulling in this test then you should go and put a pull request to that backend to do it. But yeah, you're probably right, until we know that we have coverage from the 3 leveldb's, memdown, lmdb and level.js we should probably tread carefully. |
Oh that was new :). For sure level.js is not supporting it: https://github.com/maxogden/level.js/blob/master/test.js. |
Hi, yes there are tests in abstract leveldown - |
update - this is now supported in the important leveldowns - Level/level-js#32 |
oh... this actually just needs a pull request. doing it. |
This should be closed as #258 was merged. |
@TimothyGu Correct. Thanks! |
LevelDOWN has had this for a little while now but it's not documented. We should remove reference to
'start'
and'end'
(perhaps just note that they used to be the way to do it and they are kept for backward-compat).Docs need both here and in LevelDOWN.
The text was updated successfully, but these errors were encountered: