Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.53 KB

UPGRADING.md

File metadata and controls

46 lines (27 loc) · 1.53 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.

7.0.0

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

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

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

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

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).

6.0.0

Upgraded abstract-leveldown to v6.0.0. Please see the corresponding changelog entry for more information.

5.0.0

Dropped support for node 4. No other breaking changes.

4.0.0

Dropped support for node 7.

.batch(array) enforces objects

This major release contains an upgrade to abstract-leveldown with a breaking change for the array version of .batch(). This change ensures all elements in the batch array are objects.

If you previously passed arrays to .batch() that contained undefined or null, they would be silently ignored. Now this will produce an error.

3.0.0

Dropped support for node 0.12. No other breaking changes.