diff --git a/.gitignore b/.gitignore index 83ea039..7ad9e67 100644 --- a/.gitignore +++ b/.gitignore @@ -1,44 +1,9 @@ -docs -package-lock.json -yarn.lock -**/node_modules/ -**/*.log -test/repo-tests* -test/test-repo/datastore/* - -# Logs -logs -*.log - -coverage - -# Runtime data -pids -*.pid -*.seed - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# node-waf configuration -.lock-wscript - -build - -# Dependency directory -# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git node_modules - -lib +build dist -test/test-repo/datastore -init-default -datastore-test +.docs +.coverage +node_modules +package-lock.json +yarn.lock .vscode -types diff --git a/README.md b/README.md index f8a4efd..329f418 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,21 @@ # datastore-level -[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io) -[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) -[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs) +[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech) +[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech) [![codecov](https://img.shields.io/codecov/c/github/ipfs/js-datastore-level.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-datastore-level) -[![CI](https://img.shields.io/github/workflow/status/ipfs/js-datastore-level/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-datastore-level/actions/workflows/js-test-and-release.yml) +[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-datastore-level/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/ipfs/js-datastore-level/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) > Datastore implementation with level(up|down) backend ## Table of contents - [Install](#install) + - [Browser ` +``` + ## Usage ```js @@ -62,14 +69,6 @@ import browserStore = new LevelDatastore( More 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) -## Contribute - -Feel free to join in. All welcome. Open an [issue](https://github.com/ipfs/js-datastore-level/issues)! - -This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md). - -[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md) - ## License Licensed under either of @@ -79,8 +78,12 @@ Licensed under either of ## Contribute -Feel free to join in. All welcome. Open an [issue](https://github.com/ipfs/js-ipfs-unixfs-importer/issues)! +Contributions welcome! Please check out [the issues](https://github.com/ipfs/js-datastore-level/issues). + +Also 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. + +Please 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). -This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md). +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. [![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md) diff --git a/package.json b/package.json index fc66bf2..53fa432 100644 --- a/package.json +++ b/package.json @@ -27,22 +27,6 @@ }, "type": "module", "types": "./dist/src/index.d.ts", - "typesVersions": { - "*": { - "*": [ - "*", - "dist/*", - "dist/src/*", - "dist/src/*/index" - ], - "src/*": [ - "*", - "dist/*", - "dist/src/*", - "dist/src/*/index" - ] - } - }, "files": [ "src", "dist", diff --git a/test/index.spec.ts b/test/index.spec.ts index 41b7cb2..b4f58e7 100644 --- a/test/index.spec.ts +++ b/test/index.spec.ts @@ -10,7 +10,7 @@ import { interfaceDatastoreTests } from 'interface-datastore-tests' describe('LevelDatastore', () => { describe('initialization', () => { it('should default to a leveldown database', async () => { - const levelStore = new LevelDatastore('init-default') + const levelStore = new LevelDatastore(`${tempdir()}/init-default-${Date.now()}`) await levelStore.open() expect(levelStore.db).to.be.an.instanceOf(Level)