{"name":"datastore-core","version":"9.0.2","description":"Wrapper implementation for interface-datastore","author":{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-datastore-core#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-datastore-core.git"},"bugs":{"url":"https://github.com/ipfs/js-datastore-core/issues"},"keywords":["datastore","interface","ipfs","key-value"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./dist/src/index.js"},"./base":{"types":"./dist/src/base.d.ts","import":"./dist/src/base.js"},"./errors":{"types":"./dist/src/errors.d.ts","import":"./dist/src/errors.js"},"./keytransform":{"types":"./dist/src/keytransform.d.ts","import":"./dist/src/keytransform.js"},"./memory":{"types":"./dist/src/memory.d.ts","import":"./dist/src/memory.js"},"./mount":{"types":"./dist/src/mount.d.ts","import":"./dist/src/mount.js"},"./namespace":{"types":"./dist/src/namespace.d.ts","import":"./dist/src/namespace.js"},"./shard":{"types":"./dist/src/shard.d.ts","import":"./dist/src/shard.js"},"./sharding":{"types":"./dist/src/sharding.d.ts","import":"./dist/src/sharding.js"},"./tiered":{"types":"./dist/src/tiered.d.ts","import":"./dist/src/tiered.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"release":{"branches":["master"],"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","release":"aegir release","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"},"dependencies":{"@libp2p/logger":"^2.0.0","err-code":"^3.0.1","interface-store":"^4.0.0","it-all":"^2.0.0","it-drain":"^2.0.0","it-filter":"^2.0.0","it-map":"^2.0.0","it-merge":"^2.0.0","it-pipe":"^2.0.3","it-pushable":"^3.0.0","it-sort":"^2.0.1","it-take":"^2.0.0","uint8arrays":"^4.0.2"},"devDependencies":{"aegir":"^38.1.7","interface-datastore":"^8.0.0","interface-datastore-tests":"^4.0.0"},"gitHead":"33bd252a41add01d10ff1f32d9faa261815915ea","_id":"datastore-core@9.0.2","_nodeVersion":"18.14.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-PIW8SmSFgiWstvO1lShKWTh2VhUy1ZEAGP209q0+79UrNW/r6MQ9LtBIPnrG7lKt7k7vOxCvwK5GU8wiHpr09g==","shasum":"375421274e434fe16bbdecb202234731beed2802","tarball":"http://registry-npm.ywwl.com/datastore-core/download/datastore-core-9.0.2.tgz","fileCount":59,"unpackedSize":152150,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAaVemc43LSeZSt7gcBzpiVA8elBkJo+UtDAdEAv9RscAiBzT0Eg1vS2CGREveD+A+zIw85j2hjs+suELg4kutcfuQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD3XqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmprzg/+KKaVSPUZW7lwG3HT/ZJGpgWvUeKtXhqfRaRztyQn191lPFs3\r\nEvihjuZRAczYm9R/Pd7qW8gwe+QSOxKBJzSKvsxtqqPXs/rn/cGhx2hyJYIV\r\nDRvuK4chngoMtQ6tBkDpkVKS8WUg/W+bOqSMr34dLQsTsMEH3v+r0aEqtWwM\r\n6WKMs9MaYbUlA3TNqSrAI1x+9kFLkomBEePgKBzJtch3OoZla6DWstQ6vBdX\r\n5PEs3nmla6fa4i3KaYZjKNFaFmtFYV53cfDKYZn6xvEXb2iGdd8n7f5nQHaw\r\nqqFKzcCHZjLwnGIzz6wYP0oBSA1z/bUQWlYGprl2j5fLptvdH2GuBjUUebgw\r\nDn1+BZ/o54s0KdUEHLr3H8nicb4Bt0zwVCfGh1Fp2815UreJaoDCv0vSRSCc\r\nSVRcIipXS9/6911dKkxuhyF/w3UCoEi1kFpKSxhRCegQrBvMM3bLNpO5plO/\r\ngd0ujv8sBwC3m3Bed9ndWxbRmFWaH3J+4ZHxbdWGpTXas9rECw8Nwrsf9u2P\r\nDZGYi+gbiD+Z9jdIpHw7yPRiggN4I1aSWqyWBZOC+QR3A2o2G3bLfd9zYSvI\r\nHi7wIDfqKuBYTFBava+gdds4oxaNV/uH5chGMLp1do800UIjv/zb6VL4FKYo\r\nOU3qgfLEmNY3+6QHEH7mf1xqW1MjllzeicI=\r\n=hPQH\r\n-----END PGP SIGNATURE-----\r\n","size":34290,"noattachment":false,"key":"/datastore-core/-/datastore-core-9.0.2.tgz"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"daviddias","email":"mail@daviddias.me"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/datastore-core_9.0.2_1678734826133_0.6601398661074451"},"_hasShrinkwrap":false,"readme":"# datastore-core\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> Wrapper implementation for interface-datastore\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\nVarious Datastore implementations are available.\n\n## Implementations\n\n- Mount: [`src/mount`](src/mount.ts)\n- Keytransform: [`src/keytransform`](src/keytransform.ts)\n- Sharding: [`src/sharding`](src/sharding.ts)\n- Tiered: [`src/tiered`](src/tirered.ts)\n- Namespace: [`src/namespace`](src/namespace.ts)\n- BlackHole: [`src/black-hole`](src/black-hole.ts)\n\n## Example - BaseDatastore\n\nAn base store is made available to make implementing your own datastore easier:\n\n```javascript\nimport { BaseDatastore } from 'datastore-core'\n\nclass MyDatastore extends BaseDatastore {\n  constructor () {\n    super()\n  }\n\n  async put (key, val) {\n    // your implementation here\n  }\n\n  async get (key) {\n    // your implementation here\n  }\n\n  // etc...\n}\n```\n\nSee the [MemoryDatastore](./src/memory.js) for an example of how it is used.\n\n## Example - Wrapping Stores\n\n```js\nimport { Key } from 'interface-datastore'\nimport {\n  MemoryStore,\n  MountStore\n} from 'datastore-core'\n\nconst store = new MountStore({prefix: new Key('/a'), datastore: new MemoryStore()})\n```\n\n## Example - BlackHoleDatastore\n\nA datastore that does not store any data.\n\n```js\nimport { BlackHoleDatastore } from 'datastore-core/black-hole'\n\nconst store = new BlackHoleDatastore()\n```\n\n# Install\n\n```console\n$ npm i datastore-core\n```\n\n## Browser `<script>` tag\n\nLoading this module through a script tag will make it's exports available as `DatastoreCore` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/datastore-core/dist/index.min.js\"></script>\n```\n\n# API Docs\n\n- <https://ipfs.github.io/js-stores/modules/datastore_core.html>\n\n# License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](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","publish_time":1678734826321,"_cnpm_publish_time":1678734826321,"dist-tags":{"latest":"12.0.1"}}