Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

fix: swap leveldown/level.js for level #20

Merged
merged 4 commits into from
Jun 26, 2019

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Jun 25, 2019

The level module bundles leveldown, encoding-down and levelup, as well as substituting level.js for leveldown in the browser.

This change uses level over all those other modules.

The `level` module bundles `leveldown`, `encoding-down` and `levelup`, as
well as subsituting `level.js` for `leveldown` in the browser.

This change uses `level` over all those other modules.
@achingbrain achingbrain requested review from alanshaw and dirkmc June 25, 2019 09:54
src/index.js Outdated
compression: false // same default as go
})

this.db.put = promisify(this.db.put)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed? In case a custom db (opts.db) is passed in?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was seeing errors like 'get() requires a callback argument' ...and now I'm not. Have removed.

@achingbrain achingbrain merged commit d16e212 into master Jun 26, 2019
@achingbrain achingbrain deleted the swap-level-for-leveldown-and-friends branch June 26, 2019 08:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants