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.
Legacy range options have been removed (Level/community#86). If you previously did:
codec.encodeLtgt({ start: 'a', end: 'z' })
An error would now be thrown and you must instead do:
codec.encodeLtgt({ 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).
Dropped node 0.12, 4, 5 and 7.
Previously the "utf8" decoder always returned a string. This was a workaround for encoding-down
that is no longer needed. The return type now depends on the asBuffer
option, which is more optimal.
Dropped node 0.10 and iojs.
The createDecodeStream()
method (introduced in the last 5.x version) has been replaced with createStreamDecoder()
.
This is a rewrite of both internals and the public API. Please see the README for details.
Removed default encoding ("utf8"). If you relied on this behavior you must now define it yourself.
Removed the encoding
option in favor of keyEncoding
and valueEncoding
. Note: it was partially restored in v6.1.0.
The function signature of batch()
has changed from batch(ops, batchOptions, dbOptions)
to batch(ops, optionObjects)
.