Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.6 KB

UPGRADING.md

File metadata and controls

40 lines (24 loc) · 1.6 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.

6.0.0

Legacy range options have been removed (Level/community#86). If you previously did:

db.createReadStream({ start: 'a', end: 'z' })

An error would now be thrown and you must instead do:

db.createReadStream({ gte: 'a', lte: 'z' })

The same applies to db.iterator(), db.createKeyStream() and db.createValueStream().

This release also drops support of legacy runtime environments (Level/community#98):

  • Node.js 6 and 8
  • Internet Explorer 11
  • Safari 9-11
  • Stock Android browser (AOSP).

Lastly, in browsers, process.nextTick() has been replaced with queue-microtask, except in streams. In the future we might use queueMicrotask() in Node.js too.

5.0.0

Upgraded to levelup@4 and encoding-down@6. We recommend to pair level-packager@5 only with a store based on abstract-leveldown >= 6. Please follow the earlier links for more information.

4.0.0

The test.js file was rewritten to test the level-packager api and is no longer part of the api. Implementations based on level-packager should instead use the tests in the abstract/ folder.

3.0.0

Dropped support for node 4. No other breaking changes.