包详细信息

interface-datastore-tests

ipfs205Apache-2.0 OR MIT6.0.3

Compliance tests for the datastore interface

datastore, interface, ipfs, key-value

自述文件

interface-datastore-tests

ipfs.tech Discuss codecov CI

Compliance tests for the datastore interface

About

A test suite that ensures a given implementation implements the Datastore interface properly.

Example

const MyDatastore from './path/to/my-datastore')
const suite from 'interface-datastore-tests')

describe('MyDatastore', () => {
  describe('interface-datastore compliance tests', () => {
    suite({
      setup () {
        return new MyDatastore()
      },
      teardown () {}
    })
  })
})

Install

$ npm i interface-datastore-tests

API Docs

License

Licensed under either of

Contribute

Contributions welcome! Please check out the issues.

Also see our contributing document for more information on how we work, and about contributing in general.

Please be aware that all interactions related to this repo are subject to the IPFS Code of Conduct.

Unless 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.

更新日志

1.0.0 (2024-08-02)

⚠ BREAKING CHANGES

  • To detect the type of error thrown, use .name instead of .code
  • s3 filenames are now all base32upper
  • the output of store.getMany is now a stream of pairs
  • open/close/batch/query methods have been removed from store interface, query/batch added to datastore, getAll added to blockstore
  • bump multiformats from 10.0.3 to 11.0.0 (#182)
  • this module is now ESM only
  • deep requires/imports are no longer possible, moves adapters/in-memory impls etc to core packages
  • the compliance tests for interface-datastore have been removed - use the interface-datastore-tests module instead

Features

Bug Fixes

Trivial Changes

Documentation

Dependencies