Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.74 KB

UPGRADING.md

File metadata and controls

27 lines (17 loc) · 1.74 KB

Upgrade Guide

This document describes breaking changes and how to upgrade. For a complete list of changes including minor and patch releases, please refer to the changelog.

v2

Dropped support for node 0.12, 4, 5 and 7.

This is an upgrade to leveldown-hyper@~2.0.0 which depends on abstract-leveldown@~5.0.0 which in turn contains breaking changes to .batch(). Though this is negated by levelup, we decided to release a new major version in the event of dependents reaching down into db.db.

The parts that make up level-hyper have been refactored to increase modularity. This is an upgrade to level-packager@~4.0.0, which in turn upgraded to levelup@^3.0.0. The responsibility of encoding keys and values moved from levelup to encoding-down, which comes bundled with level-packager.

Being a convenience package, level-hyper glues the parts back together to form a drop-in replacement for the users of levelup@1, while staying fully compatible with level-hyper@1. One thing we do get for free, is native Promise support.

const db = level('db')
await db.put('foo', 'bar')
console.log(await db.get('foo'))

This does not affect the existing callback API, functionality-wise or performance-wise.

For more information please check the corresponding CHANGELOG.md for: