Package detail

level-packager

Level2.5mMITdeprecated6.0.1

Superseded by abstract-level (https://github.com/Level/community#faq)

levelup package helper for distributing with an abstract-leveldown store

level, leveldb, stream, database

readme

level-packager

levelup package helper for distributing with an abstract-leveldown store.

level badge npm Node version Test Coverage Standard Common Changelog Donate

API

Exports a single function which takes a single argument, an abstract-leveldown compatible storage back-end for levelup. The function returns a constructor function that will bundle levelup with the given abstract-leveldown replacement. The full API is supported, including optional functions, destroy(), and repair(). Encoding functionality is provided by encoding-down.

The constructor function has a .errors property which provides access to the different error types from level-errors.

For example use-cases, see:

Also available is a test.js file that can be used to verify that the user-package works as expected.

If you are upgrading: please see UPGRADING.md.

Contributing

Level/packager is an OPEN Open Source Project. This means that:

Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.

See the Contribution Guide for more details.

Donate

Support us with a monthly donation on Open Collective and help us continue our work.

License

MIT

changelog

Changelog

6.0.1 - 2021-10-02

Fixed

  • Bump levelup and encoding-down to prevent dedupe (d3a8fc2) (Vincent Weevers)

6.0.0 - 2021-04-17

If you are upgrading: please see UPGRADING.md.

Changed

  • Breaking: modernize syntax and bump standard (Level/community#98) (4770d17) (Vincent Weevers)
  • Breaking: bump levelup and encoding-down (c92e054) (Vincent Weevers)
  • Add files to package.json (809fb8e) (Vincent Weevers)

Removed

5.1.1 - 2019-11-29

Fixed

  • Pass options to abstract-leveldown store (#96) (@achingbrain). In addition to passing options to the levelup wrapper.

5.1.0 - 2019-10-13

Added

Fixed

5.0.3 - 2019-09-08

Changed

  • Upgrade hallmark devDependency from ^0.1.0 to ^2.0.0 (#90, #93) (@vweevers)
  • Upgrade standard devDependency from ^12.0.0 to ^14.0.0 (#89, #92) (@vweevers)

Fixed

5.0.2 - 2019-06-08

Changed

  • Upgrade nyc devDependency from ^13.2.0 to ^14.0.0 (#85) (@vweevers)

Added

Fixed

5.0.1 - 2019-03-31

Changed

5.0.0 - 2018-12-27

If you are upgrading: please see UPGRADING.md.

Changed

Added

Removed

4.0.1 - 2018-06-23

Changed

Added

Removed

4.0.0 - 2018-06-13

If you are upgrading: please see UPGRADING.md.

Changed

3.1.0 - 2018-05-28

Changed

Removed

3.0.0 - 2018-05-23

If you are upgrading: please see UPGRADING.md.

Added

Changed

Removed

2.1.1 - 2018-02-13

Added

Changed

Fixed

  • Test: clean up level-test-* dbs after tests are done (@ralphtheninja)

2.1.0 - 2017-12-13

Added

Changed

2.0.2 - 2017-11-11

Changed

Fixed

2.0.1 - 2017-10-12

Added

  • Test that encoding options default to utf8 (@ralphtheninja)
  • Test that .keyEncoding and .valueEncoding are passed to encoding-down (@ralphtheninja)

Fixed

2.0.0 - 2017-10-11

Added

Changed

Removed

2.0.0-rc3 - 2017-09-16

Changed

2.0.0-rc2 - 2017-09-12

Changed

2.0.0-rc1 - 2017-09-04

Added

Changed

Removed

1.2.1 - 2016-12-27

Added

Changed

Removed

1.2.0 - 2015-11-27

Added

Changed

1.1.0 - 2015-06-09

Changed

1.0.0 - 2015-05-19

Changed

1.0.0-0 - 2015-05-16

Added

Changed

Removed

0.19.7 - 2015-05-10

Added

Changed

0.19.6 - 2015-05-10

Fixed

0.19.5 - 2015-05-10

Fixed

0.19.4 - 2015-05-10

Changed

0.19.3 - 2015-05-10

Fixed

0.19.2 - 2015-05-10

Fixed

0.19.1 - 2015-05-10

Fixed

  • null options should not be treated as object (@deian)

0.19.0 - 2015-05-04

Changed

0.18.0 - 2013-11-18

Changed

0.17.0 - 2013-10-09

This changelog is ordered by semver-version, but the first few releases here did not use semver-valid tags.

:seedling: Initial release.

0.17.0-5 - 2013-10-12

Changed

  • Clean up debugging noise (@rvagg)

0.17.0-4 - 2013-10-12

Removed

Fixed

  • Fix repair() and destroy() (@rvagg)

0.17.0-3 - 2013-10-12

Fixed

  • Made tests compatible with node 0.8 (@rvagg)

0.17.0-2 - 2013-10-12

Added

  • Add options to exported tests to handle memdown (@rvagg)

Changed

  • README: level -> level-packager (@rvagg)

0.17.0-1 - 2013-10-09

Removed

  • Remove tape from devDependencies, allow callers to pass in custom test function (@rvagg)