Skip to content
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

Breaking: parent db must support deferredOpen #89

Merged
merged 1 commit into from
Apr 5, 2020
Merged

Commits on Apr 5, 2020

  1. Breaking: parent db must support deferredOpen

    DeferredOpen means that the db opens itself and defers operations
    until it's open. Currently that's only supported by levelup (and
    levelup factories like level). Previously, subleveldown would also
    accept abstract-leveldown db's that were not wrapped in levelup.
    
    Opening and closing a sublevel no longer opens or closes the parent
    db. The sublevel does wait for the parent to open (which in the
    case of levelup already happens automatically) but never initiates
    a state change.
    
    If one closes the parent but not the sublevel, subsequent
    operations (like get and put) on the sublevel will yield an error,
    to prevent segmentation faults from underlying stores.
    
    Drops support of old modules:
    
    - memdb (use level-mem instead)
    - deferred-leveldown < 2.0.0 (and thus levelup < 2.0.0)
    - abstract-leveldown < 2.4.0
    
    Closes #84, #83 and #60.
    vweevers committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    966f5d6 View commit details
    Browse the repository at this point in the history