From 9e17ae314dd41aec435d4c84253fe51e93c3f472 Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sun, 6 Jan 2019 18:30:55 +0100 Subject: [PATCH 1/6] Add dependency-check --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index af32a7ff..675ae6d5 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "coverage": "nyc report --reporter=text-lcov | coveralls", "rebuild": "prebuild --compile", "prebuild": "prebuild -t 8.1.2 -t 6.11.0 -t 4.8.3 -t 7.10.0 --strip --verbose", - "hallmark": "hallmark --fix" + "hallmark": "hallmark --fix", + "dependency-check": "dependency-check . test/*.js bench/*.js", + "prepublishOnly": "npm run dependency-check" }, "dependencies": { "abstract-leveldown": "~5.0.0", @@ -23,6 +25,7 @@ "async": "^2.0.1", "coveralls": "^3.0.2", "delayed": "~1.0.1", + "dependency-check": "^3.3.0", "du": "~0.1.0", "hallmark": "^0.1.0", "iota-array": "~1.0.0", From fde5f1aada670a39f4ef86db79a44ee8c35a4ef8 Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sun, 6 Jan 2019 18:31:06 +0100 Subject: [PATCH 2/6] Add Donate section and badges to README.md --- README.md | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a86e842c..9122c5a6 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,16 @@ > A Low-level Node.js RocksDB binding [![level badge][level-badge]](https://github.com/level/awesome) -[![npm](https://img.shields.io/npm/v/rocksdb.svg)](https://www.npmjs.com/package/rocksdb) -![Node version](https://img.shields.io/node/v/rocksdb.svg) -[![Travis](https://img.shields.io/travis/Level/rocksdb.svg?label=travis)](http://travis-ci.org/Level/rocksdb) -[![AppVeyor](https://img.shields.io/appveyor/ci/Level/rocksdb.svg?label=appveyor)](https://ci.appveyor.com/project/Level/rocksdb) +[![npm](https://img.shields.io/npm/v/rocksdb.svg?label=&logo=npm)](https://www.npmjs.com/package/rocksdb) +[![Node version](https://img.shields.io/node/v/rocksdb.svg)](https://www.npmjs.com/package/rocksdb) +[![Travis](https://img.shields.io/travis/Level/rocksdb.svg?logo=travis&label=)](http://travis-ci.org/Level/rocksdb) +[![AppVeyor](https://img.shields.io/appveyor/ci/Level/rocksdb.svg?logo=appveyor&label=)](https://ci.appveyor.com/project/Level/rocksdb) [![dependencies](https://img.shields.io/david/Level/rocksdb.svg)](https://david-dm.org/level/rocksdb) -[![npm downloads](https://img.shields.io/npm/dm/rocksdb.svg)](https://www.npmjs.com/package/rocksdb) +[![npm downloads](https://img.shields.io/npm/dm/rocksdb.svg?label=dl)](https://www.npmjs.com/package/rocksdb) [![Coverage Status](https://coveralls.io/repos/github/Level/rocksdb/badge.svg)](https://coveralls.io/github/Level/rocksdb) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) +[![Backers on Open Collective](https://opencollective.com/level/backers/badge.svg?color=orange)](#backers) +[![Sponsors on Open Collective](https://opencollective.com/level/sponsors/badge.svg?color=orange)](#sponsors) **If you are upgrading:** please see [UPGRADING.md](UPGRADING.md). @@ -58,6 +60,18 @@ If you are working on `rocksdb` and want to re-compile the C++ code it's enough If you don't want to use the `prebuild` for the platform you are installing on, specify the `--build-from-source` flag when you install. +## Donate + +To sustain [`Level`](https://github.com/Level) and its activities, become a backer or sponsor on [Open Collective](https://opencollective.com/level). Your logo or avatar will be displayed on our 28+ [GitHub repositories](https://github.com/Level), [npm](https://www.npmjs.com/) packages and (soon) [our website](http://leveldb.org). 💖 + +### Backers + +[![Open Collective backers](https://opencollective.com/level/backers.svg?width=890)](https://opencollective.com/level) + +### Sponsors + +[![Open Collective sponsors](https://opencollective.com/level/sponsors.svg?width=890)](https://opencollective.com/level) + ## License [MIT](LICENSE.md) © 2012-present Rod Vagg and [Contributors](CONTRIBUTORS.md). From 75a35b83091bd92ba7c41fa0d5e193b4ede84c1c Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sun, 6 Jan 2019 18:31:06 +0100 Subject: [PATCH 3/6] Unlock 5 devDependencies --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 675ae6d5..e840c40a 100644 --- a/package.json +++ b/package.json @@ -24,14 +24,14 @@ "devDependencies": { "async": "^2.0.1", "coveralls": "^3.0.2", - "delayed": "~1.0.1", + "delayed": "^1.0.1", "dependency-check": "^3.3.0", "du": "~0.1.0", "hallmark": "^0.1.0", - "iota-array": "~1.0.0", + "iota-array": "^1.0.0", "level-community": "^3.0.0", - "lexicographic-integer": "~1.1.0", - "mkfiletree": "~1.0.1", + "lexicographic-integer": "^1.1.0", + "mkfiletree": "^1.0.1", "monotonic-timestamp": "~0.0.8", "nyc": "^12.0.2", "optimist": "~0.6.1", @@ -39,7 +39,7 @@ "prebuild-ci": "^2.0.0", "readfiletree": "~0.0.1", "rimraf": "^2.6.1", - "slump": "~3.0.0", + "slump": "^3.0.0", "standard": "^12.0.0", "tape": "^4.5.1", "uuid": "^3.2.1", From 4032d5efdcf22700dea3943554fea2d6eed03fb4 Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sun, 6 Jan 2019 18:31:07 +0100 Subject: [PATCH 4/6] Add .travis.yml, appveyor.yml, .dntrc to .npmignore --- .npmignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.npmignore b/.npmignore index ffb44ba7..9bae3374 100644 --- a/.npmignore +++ b/.npmignore @@ -18,3 +18,7 @@ AUTHORS Dockerfile .dockerignore .nyc_output/ + +.travis.yml +appveyor.yml +.dntrc From 272ec7cc19537d6981c20ca1b73cb535532985bf Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sun, 6 Jan 2019 18:31:19 +0100 Subject: [PATCH 5/6] Run hallmark --- CONTRIBUTORS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 54ce1664..07bcd8a6 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -7,8 +7,8 @@ | **David Björklund** | [**@kesla**](https://github.com/kesla) | [**@david_bjorklund@twitter**](https://twitter.com/david_bjorklund) | | **Julian Gruber** | [**@juliangruber**](https://github.com/juliangruber) | [**@juliangruber@twitter**](https://twitter.com/juliangruber) | | **Yichao 'Peak' Ji** | [**@peakji**](https://github.com/peakji) | | -| **Vincent Weevers** | [**@vweevers**](https://github.com/vweevers) | [**@vweevers@twitter**](https://twitter.com/vweevers) | | **Mathias Buus** | [**@mafintosh**](https://github.com/mafintosh) | [**@mafintosh@twitter**](https://twitter.com/mafintosh) | +| **Vincent Weevers** | [**@vweevers**](https://github.com/vweevers) | [**@vweevers@twitter**](https://twitter.com/vweevers) | | **Matteo Collina** | [**@mcollina**](https://github.com/mcollina) | [**@matteocollina@twitter**](https://twitter.com/matteocollina) | | **Dominic Tarr** | [**@dominictarr**](https://github.com/dominictarr) | [**@dominictarr@twitter**](https://twitter.com/dominictarr) | | **Raynos** | | | From b6d24de57ac408cc76f8138ee5355a64c1ec8d91 Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sun, 6 Jan 2019 20:01:53 +0100 Subject: [PATCH 6/6] Tweak badges and links in README.md --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9122c5a6..fe2a8e00 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,11 @@ > A Low-level Node.js RocksDB binding -[![level badge][level-badge]](https://github.com/level/awesome) +[![level badge][level-badge]](https://github.com/Level/awesome) [![npm](https://img.shields.io/npm/v/rocksdb.svg?label=&logo=npm)](https://www.npmjs.com/package/rocksdb) [![Node version](https://img.shields.io/node/v/rocksdb.svg)](https://www.npmjs.com/package/rocksdb) -[![Travis](https://img.shields.io/travis/Level/rocksdb.svg?logo=travis&label=)](http://travis-ci.org/Level/rocksdb) +[![Travis](https://img.shields.io/travis/Level/rocksdb.svg?logo=travis&label=)](https://travis-ci.org/Level/rocksdb) [![AppVeyor](https://img.shields.io/appveyor/ci/Level/rocksdb.svg?logo=appveyor&label=)](https://ci.appveyor.com/project/Level/rocksdb) -[![dependencies](https://img.shields.io/david/Level/rocksdb.svg)](https://david-dm.org/level/rocksdb) [![npm downloads](https://img.shields.io/npm/dm/rocksdb.svg?label=dl)](https://www.npmjs.com/package/rocksdb) [![Coverage Status](https://coveralls.io/repos/github/Level/rocksdb/badge.svg)](https://coveralls.io/github/Level/rocksdb) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) @@ -16,7 +15,7 @@ **If you are upgrading:** please see [UPGRADING.md](UPGRADING.md). -`rocksdb` is based on the [LevelDown](https://github.com/level/leveldown) code, which was extracted from [LevelUP](https://github.com/level/levelup) and now serves as a stand-alone binding for LevelDB. The native code in `rocksdb` is based on [Facebooks fork of LevelDB](https://github.com/facebook/rocksdb). +`rocksdb` is based on the [LevelDown](https://github.com/Level/leveldown) code, which was extracted from [LevelUP](https://github.com/Level/levelup) and now serves as a stand-alone binding for LevelDB. The native code in `rocksdb` is based on [Facebooks fork of LevelDB](https://github.com/facebook/rocksdb). It is **strongly recommended** that you use LevelUP in preference to `rocksdb` unless you have measurable performance reasons to do so. LevelUP is optimised for usability and safety. Although we are working to improve the safety of the `rocksdb` interface it is still easy to crash your Node process if you don't do things in just the right way. @@ -33,7 +32,7 @@ It is **strongly recommended** that you use LevelUP in preference to `rocksdb` u ## API -`rocksdb` implements the same API of [LevelDown](https://github.com/level/leveldown#api). +`rocksdb` implements the same API of [LevelDown](https://github.com/Level/leveldown#api). ## Getting Support