{"name":"datastore-core","version":"12.0.1","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-stores/tree/main/packages/datastore-core#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-stores.git"},"bugs":{"url":"https://github.com/ipfs/js-stores/issues"},"publishConfig":{"access":"public","provenance":true},"keywords":["datastore","interface","ipfs","key-value"],"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","module-sync":"./src/index.js"},"./base":{"types":"./dist/src/base.d.ts","import":"./dist/src/base.js","module-sync":"./dist/src/base.js"},"./black-hole":{"types":"./dist/src/black-hole.d.ts","import":"./dist/src/black-hole.js","module-sync":"./dist/src/black-hole.js"},"./errors":{"types":"./dist/src/errors.d.ts","import":"./dist/src/errors.js","module-sync":"./dist/src/errors.js"},"./keytransform":{"types":"./dist/src/keytransform.d.ts","import":"./dist/src/keytransform.js","module-sync":"./dist/src/keytransform.js"},"./memory":{"types":"./dist/src/memory.d.ts","import":"./dist/src/memory.js","module-sync":"./dist/src/memory.js"},"./mount":{"types":"./dist/src/mount.d.ts","import":"./dist/src/mount.js","module-sync":"./dist/src/mount.js"},"./namespace":{"types":"./dist/src/namespace.d.ts","import":"./dist/src/namespace.js","module-sync":"./dist/src/namespace.js"},"./shard":{"types":"./dist/src/shard.d.ts","import":"./dist/src/shard.js","module-sync":"./dist/src/shard.js"},"./sharding":{"types":"./dist/src/sharding.d.ts","import":"./dist/src/sharding.js","module-sync":"./dist/src/sharding.js"},"./tiered":{"types":"./dist/src/tiered.d.ts","import":"./dist/src/tiered.js","module-sync":"./dist/src/tiered.js"}},"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",{"assets":["CHANGELOG.md","package.json"]}]]},"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":{"@libp2p/logger":"^6.2.4","abort-error":"^1.0.2","interface-datastore":"^10.0.0","interface-store":"^8.0.0","it-drain":"^3.0.10","it-filter":"^3.1.4","it-map":"^3.1.4","it-merge":"^3.0.12","it-pipe":"^3.0.1","it-sort":"^3.0.9","it-take":"^3.0.9"},"devDependencies":{"aegir":"^48.0.4","interface-datastore-tests":"^7.0.0","it-all":"^3.0.9","uint8arrays":"^6.1.1"},"gitHead":"b03562e11217c481cb5271e91443ab2a76955cc1","_id":"datastore-core@12.0.1","_nodeVersion":"24.14.1","_npmVersion":"11.14.1","dist":{"integrity":"sha512-pfgIE5LG0Z5oyc6TxiLaF/0j4Gh1Yrs2+Ck/qssf9Oxw4s4YKC3zpqifuzThnKakAFWONr/vRv+66Koc0yJvyA==","shasum":"00f7d8ce22abef0443a0ad78e2a38a0615f45898","tarball":"http://registry-npm.ywwl.com/datastore-core/download/datastore-core-12.0.1.tgz","fileCount":60,"unpackedSize":456598,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/datastore-core@12.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCcbjbne1jGxwGvtSZktQoEF3LbP/f+jX5v+5TFgwWOaQIgN8slZkNle9C/FCytaOqdeHvtwwiRLH+SZNk79Uq0ALA="}],"size":105592,"noattachment":false,"key":"/datastore-core/-/datastore-core-12.0.1.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7c212df3-2506-465b-9fc5-8e6af29aad0b"}},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@ipfs.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/datastore-core_12.0.1_1778515496017_0.8932521639004882"},"_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## BaseDatastore\n\nAn base store is made available to make implementing your own datastore easier.\n\n## Example\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](https://github.com/ipfs/js-stores/blob/main/packages/datastore-core/src/memory.ts) for an example of how it is used.\n\n## Wrapping Stores\n\n## Example\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## BlackHoleDatastore\n\n## Example\n\nA datastore that does not store any data.\n\n```js\nimport { BlackHoleDatastore } from 'datastore-core'\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 its 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](https://github.com/ipfs/js-stores/blob/main/packages/datastore-core/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](https://github.com/ipfs/js-stores/blob/main/packages/datastore-core/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":1778515496168,"_cnpm_publish_time":1778515496168,"dist-tags":{"latest":"12.0.1"}}