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: bump abstract-level to 2.0.0 #52

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

Breaking: bump abstract-level to 2.0.0 #52

wants to merge 18 commits into from

Commits on Feb 3, 2024

  1. Configuration menu
    Copy the full SHA
    9f4fee2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e179505 View commit details
    Browse the repository at this point in the history
  3. Replace callbacks with promises

    And `LEVEL_NOT_FOUND` with `undefined`.
    
    Passes the abstract test suite. Most other tests are commented out.
    
    The `iterator.next()` method required a small change: previously we
    had the callback signature `(err, entries, finished)` where
    "finished" meant "reached the end of the data". Now we have a
    promise for only `entries`. So an extra `next()` call (end-to-end)
    is now needed to know that the end was reached.
    vweevers committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    5d62647 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    df393c7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2b3419d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1d6a329 View commit details
    Browse the repository at this point in the history
  7. Update types

    vweevers committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    8eb73fd View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fb7273a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    01c2a2d View commit details
    Browse the repository at this point in the history
  10. Create snapshot for get() synchronously

    Has a tiny performance cost, which I negated by optimizing the
    passing of options from JS to C++. The end result is faster than
    before. However, I didn't check if it blocks the event loop for
    a significant amount of time. Benchmarking concurrent gets might
    answer that, later.
    
    Ref Level/community#118.
    vweevers committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    b4404b3 View commit details
    Browse the repository at this point in the history
  11. Remove unnecessary throw

    vweevers committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    551b5f7 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b064215 View commit details
    Browse the repository at this point in the history
  13. Stop testing on FreeBSD

    Too much hassle.
    vweevers committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    72000a0 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2024

  1. Update README, with a new approach

    Instead of copying abstract-level docs and then tweaking it for
    classic-level (on every release, which was a bit of a pain) the
    README now only describes the differences.
    vweevers committed Feb 4, 2024
    Configuration menu
    Copy the full SHA
    c5a092d View commit details
    Browse the repository at this point in the history
  2. Update remaining tests

    vweevers committed Feb 4, 2024
    Configuration menu
    Copy the full SHA
    e7e2763 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6b7b282 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9a2d9d9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bd9b30a View commit details
    Browse the repository at this point in the history