You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I propose that we remove the start and end options from iterators & streams. Without doing a soft deprecation, because they were documented as legacy options 5 years ago. I prefer ripping off the band aid and throwing an error if start or end properties are present in options.
@Level/core Anyone opposed? Give a thumbs up or down. Keep reading for the motivation.
The start/end options are more surprising in reverse mode. While ltgte options fulfill the documented promise of "the returned entries are the same, but in reverse", start/end options must be swapped by the user to achieve that.
The relevant code to handle the whole set of options - which I think in many implementations has been built up through trial & error, putting trust in the extensive tests - is hard to follow, and hard to change.
In addition, there are rules of precedence between start/end and ltgte although a formal decision was never made (Level/abstract-leveldown#70) and tests don't cover it.
@juliangruber It'll be released as semver-major across the board, with the usual changelogs and upgrade guides. For the folks that missed both the 5-year-long documented notice and the upgrade guides, we'll throw an error. I think that's more than enough.
Activity
juliangruber commentedon Oct 20, 2019
I would still favor a soft deprecation, so we don't surprise anyone, but if you want to go ahead and remove it right away that should work too I guess
vweevers commentedon Oct 20, 2019
@juliangruber It'll be released as semver-major across the board, with the usual changelogs and upgrade guides. For the folks that missed both the 5-year-long documented notice and the upgrade guides, we'll throw an error. I think that's more than enough.
ralphtheninja commentedon Oct 20, 2019
This will greatly simplify the leveldown C++ code.
Breaking: remove legacy range options (start & end)
Remove legacy range options (Level/community#86)
Breaking: remove legacy range options (start & end)
Remove legacy range options (Level/community#86)
vweevers commentedon Apr 9, 2021
Work is tracked in #98.
Breaking: bump abstract-leveldown
Breaking: bump abstract-leveldown
Breaking: bump abstract-leveldown
Remove legacy range options from readme and tests (Level/community#86)
Remove legacy range options from readme and tests (Level/community#86)
Remove legacy range options from README (Level/community#86)
Breaking: bump abstract-leveldown
Remove legacy range options from README (Level/community#86)
Breaking: bump abstract-leveldown, encoding-down, levelup