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
{{ message }}
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.
When I get a readStream({reverse: true}), followed by a plain readStream(), I get the documents out in reverse order again, unless I specify reverse: false. start and end behave similarly, the last value for each option acting as the default value for the next call.
In other words, properties from this._options should be copied into a fresh object and that object should be extended by the options passed as an argument to db.readStrem. Currently, the code is extending this._options each time.
Thanks for picking this up @chesles, nice find! I have a unit test for this now and it's fixed in 0.1.1.
I'd be happy to hear about any issues you're having with the lib in pouchdb; my uses for it currently aren't as extensive as what you're going to put it through so I'm sure you'll pick up more things that I haven't run in to. I'm also happy to consider any functionality you think belongs at this level rather than in pouchdb.
When I get a
readStream({reverse: true})
, followed by a plainreadStream()
, I get the documents out in reverse order again, unless I specifyreverse: false
.start
andend
behave similarly, the last value for each option acting as the default value for the next call.Example:
The text was updated successfully, but these errors were encountered: