-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
override _setupIteratorOptions, without clobbering ranges #45
Conversation
We can make it part of the official public api.
That's not good. What are the other types of problems you have been running in to?
Assuming it's part of the official api, this isn't that much different from implementing
We write tests for this. |
sure if you want to make _setupIteratorOptions part of the official api, then i'm 👍 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@dominictarr How urgent is this? We can throw out a patch immediately if you like and fix the tests + docs later. |
This mutates the options. @dominictarr can you throw in a Re: stability of Down the line it should be solved in |
@vweevers fixed to use xtend |
@ralphtheninja a patch soon would be helpful |
I don't see it. Did you push? |
4.0.1 |
and in 5.0.1 |
@ralphtheninja thanks! need a patch to level though, 3.0.1 still has leveldown@3, but master is leveldown@4 |
@dominictarr we'll get that out asap, we're also squeezing in other updates. |
@dominictarr Hmm I don't understand. Installing |
@ralphtheninja sorry you are right! I see there is a patch version of level-packager! |
Cool. Let us know if there's anything else that's borked! |
follows the patterns in #44 except it preserves ranges.
I'm a little wary of doing it this way, because
_setupIteratorOptions
is not an official public api of leveldown (not mentioned in the documentation). I've already been bitten by depending on obsecure edgecases in level, that have been removing in the course of routine maintainence. I would be more confidant about the stability of https://github.com/Level/encoding-down/pull/43/files because I knowiterator
isn't going anywere. But I can easily imagine someone forgetting about _setupIteratorOptions, refactoring it, and this then stops working.