{"_id":"@dao-xyz/datastore-level","_rev":"2-e30abc55f8da272e6e425be3696c9e86","name":"@dao-xyz/datastore-level","dist-tags":{"latest":"11.2.0"},"versions":{"11.1.0":{"name":"@dao-xyz/datastore-level","version":"11.1.0","keywords":["datastore","interface","ipfs","key-value","leveldb","leveldown","levelup"],"license":"Apache-2.0 OR MIT","_id":"@dao-xyz/datastore-level@11.1.0","maintainers":[{"name":"marcus.pousette","email":"marcus.pousette@live.com"}],"homepage":"https://github.com/dao-xyz/js-stores/tree/main/packages/datastore-level#readme","bugs":{"url":"https://github.com/dao-xyz/js-stores/issues"},"dist":{"shasum":"5e1ddacf494e7f54bebd4cc074a32e25a2e15a80","tarball":"https://registry.npmjs.org/@dao-xyz/datastore-level/-/datastore-level-11.1.0.tgz","fileCount":9,"integrity":"sha512-vBe1YkSIQkO9IW3O9vpk2uNpDxE/41tjuG11zGtenNJRuak3kvSuZAxIQDUbld6j6cnlYo+1eKAjuiEioLi/IQ==","signatures":[{"sig":"MEUCIH9dAferJ8B68lnKutTkH5cCnBt7b8oxW8rCClZrCHllAiEAlVounTm9agZHcxxjhL8ecaTr6gDBfKK5liT5HLnQGw4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":152842},"type":"module","types":"./dist/src/index.d.ts","exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"}},"gitHead":"debff598b45796b922b808c14bf32bd18da9dbb3","release":{"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"release":"major","breaking":true},{"revert":true,"release":"patch"},{"type":"feat","release":"minor"},{"type":"fix","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","release":"patch"},{"type":"deps","release":"patch"},{"scope":"no-release","release":false}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Trivial Changes"},{"type":"docs","section":"Documentation"},{"type":"deps","section":"Dependencies"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"],"branches":["main"]},"scripts":{"lint":"aegir lint","test":"aegir test","build":"aegir build","clean":"aegir clean","release":"aegir release","dep-check":"aegir dep-check","test:node":"aegir test -t node --cov","test:chrome":"aegir test -t browser --cov","test:firefox":"aegir test -t browser -- --browser firefox","test:electron-main":"aegir test -t electron-main","test:chrome-webworker":"aegir test -t webworker","test:firefox-webworker":"aegir test -t webworker -- --browser firefox"},"_npmUser":{"name":"marcus.pousette","email":"marcus.pousette@live.com"},"repository":{"url":"git+https://github.com/dao-xyz/js-stores.git","type":"git"},"_npmVersion":"11.1.0","description":"Datastore implementation with level(up|down) backend","directories":{},"_nodeVersion":"22.13.1","dependencies":{"level":"^10.0.0","it-map":"^3.1.1","it-sort":"^3.0.6","it-take":"^3.0.6","it-filter":"^3.1.1","datastore-core":"^10.0.0","interface-store":"^6.0.0","interface-datastore":"^8.0.0"},"eslintConfig":{"extends":"ipfs","parserOptions":{"project":true,"sourceType":"module"}},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"aegir":"^44.1.1","ipfs-utils":"^9.0.14","memory-level":"^3.1.0","interface-datastore-tests":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/datastore-level_11.1.0_1746022636076_0.5506191806840468","host":"s3://npm-registry-packages-npm-production"}},"11.2.0":{"name":"@dao-xyz/datastore-level","version":"11.2.0","description":"Datastore implementation with level(up|down) backend","license":"Apache-2.0 OR MIT","homepage":"https://github.com/dao-xyz/js-stores/tree/main/packages/datastore-level#readme","repository":{"type":"git","url":"git+https://github.com/dao-xyz/js-stores.git"},"bugs":{"url":"https://github.com/dao-xyz/js-stores/issues"},"publishConfig":{"access":"public"},"keywords":["datastore","interface","ipfs","key-value","leveldb","leveldown","levelup"],"type":"module","types":"./dist/src/index.d.ts","exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"project":true,"sourceType":"module"}},"release":{"branches":["main"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"breaking":true,"release":"major"},{"revert":true,"release":"patch"},{"type":"feat","release":"minor"},{"type":"fix","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","release":"patch"},{"type":"deps","release":"patch"},{"scope":"no-release","release":false}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Trivial Changes"},{"type":"docs","section":"Documentation"},{"type":"deps","section":"Dependencies"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"]},"scripts":{"clean":"aegir clean","lint":"aegir lint","build":"aegir build","test":"aegir test","test:node":"aegir test -t node --cov","test:chrome":"aegir test -t browser --cov","test:chrome-webworker":"aegir test -t webworker","test:firefox":"aegir test -t browser -- --browser firefox","test:firefox-webworker":"aegir test -t webworker -- --browser firefox","test:electron-main":"aegir test -t electron-main","dep-check":"aegir dep-check","release":"aegir release"},"dependencies":{"datastore-core":"^11.0.2","interface-datastore":"^9.0.2","interface-store":"^7.0.1","it-filter":"^3.1.1","it-map":"^3.1.1","it-sort":"^3.0.6","it-take":"^3.0.6","level":"^10.0.0"},"devDependencies":{"aegir":"^47.0.24","interface-datastore-tests":"^6.0.0","ipfs-utils":"^9.0.14","memory-level":"^3.1.0"},"_id":"@dao-xyz/datastore-level@11.2.0","gitHead":"c640d324bc9cc6c2ec00f77198b08a1c15164d59","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-0N/nAbnJdexfczjr+VH2/EQTqO8PJWpAvgmvJrtmJXWD6EXl+vQ5UTnTUw/YSiXCl+LR2LurXYAoPtJS+PRzgg==","shasum":"78cd90b33aa0f63daca76427be95717d21379211","tarball":"https://registry.npmjs.org/@dao-xyz/datastore-level/-/datastore-level-11.2.0.tgz","fileCount":11,"unpackedSize":705389,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCq2U0IbeYIHF+D7C0odSE2qjmpqWB5dMpC1qxA9pSyLQIhAJTbVu9vX8VCN6yaSv/0ffBFKePMiXkCuix8X+NCoaPY"}]},"_npmUser":{"name":"marcus.pousette","email":"marcus.pousette@live.com"},"directories":{},"maintainers":[{"name":"marcus.pousette","email":"marcus.pousette@live.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/datastore-level_11.2.0_1762960856006_0.765482634257105"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-30T14:17:16.012Z","modified":"2025-11-12T15:20:56.464Z","11.1.0":"2025-04-30T14:17:16.262Z","11.2.0":"2025-11-12T15:20:56.265Z"},"bugs":{"url":"https://github.com/dao-xyz/js-stores/issues"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/dao-xyz/js-stores/tree/main/packages/datastore-level#readme","keywords":["datastore","interface","ipfs","key-value","leveldb","leveldown","levelup"],"repository":{"type":"git","url":"git+https://github.com/dao-xyz/js-stores.git"},"description":"Datastore implementation with level(up|down) backend","maintainers":[{"name":"marcus.pousette","email":"marcus.pousette@live.com"}],"readme":"# datastore-level\n\n[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)\n[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-stores.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-stores)\n[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-stores/js-test-and-release.yml?branch=main\\&style=flat-square)](https://github.com/ipfs/js-stores/actions/workflows/js-test-and-release.yml?query=branch%3Amain)\n\n> Datastore implementation with level(up|down) backend\n\n# About\n\n<!--\n\n!IMPORTANT!\n\nEverything in this README between \"# About\" and \"# Install\" is automatically\ngenerated and will be overwritten the next time the doc generator is run.\n\nTo make changes to this section, please update the @packageDocumentation section\nof src/index.js or src/index.ts\n\nTo experiment with formatting, please run \"npm run docs\" from the root of this\nrepo and examine the changes made.\n\n-->\n\nA Datastore implementation that uses a flavour of [Level](https://leveljs.org/) as a backend.\n\nThis module is targetted at Node.js. It is possible to use it in a browser but you should probably use IDBDatastore instead.\n\n## Example\n\n```js\nimport { LevelDatastore } from 'datastore-level'\n\n// Default using level as backend for node or the browser\nconst store = new LevelDatastore('path/to/store')\n\n// another leveldown compliant backend like memory-level\nconst memStore = new LevelDatastore(\n  new MemoryLevel({\n    keyEncoding: 'utf8',\n    valueEncoding: 'view'\n  })\n)\n```\n\n## Browser Shimming Leveldown\n\n`LevelStore` uses the `level` module to automatically use `level` if a modern bundler is used which can detect bundle targets based on the `pkg.browser` property in your `package.json`.\n\nIf you are using a bundler that does not support `pkg.browser`, you will need to handle the shimming yourself, as was the case with versions of `LevelStore` 0.7.0 and earlier.\n\n## Database names\n\n`level-js@3` changed the database prefix from `IDBWrapper-` to `level-js-`, so please specify the old prefix if you wish to continue using databases created using `datastore-level` prior to `v0.12.0`.  E.g.\n\n```javascript\nimport leveljs from 'level-js'\nimport browserStore = new LevelDatastore(\n  new Level('my/db/name', {\n    prefix: 'IDBWrapper-'\n  })\n})\n```\n\nMore information: [https://github.com/Level/level-js/blob/master/UPGRADING.md#new-database-prefix](https://github.com/Level/level-js/blob/99831913e905d19e5f6dee56d512b7264fbed7bd/UPGRADING.md#new-database-prefix)\n\n# Install\n\n```console\n$ npm i datastore-level\n```\n\n## Browser `<script>` tag\n\nLoading this module through a script tag will make its exports available as `DatastoreLevel` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/datastore-level/dist/index.min.js\"></script>\n```\n\n# API Docs\n\n- <https://ipfs.github.io/js-stores/modules/datastore_level.html>\n\n# License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](https://github.com/ipfs/js-stores/blob/main/packages/datastore-level/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](https://github.com/ipfs/js-stores/blob/main/packages/datastore-level/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n# Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-stores/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md"}