subleveldown
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -5,2 +5,12 @@ # Changelog | ||
## [5.0.1] - 2020-06-26 | ||
### Added | ||
- Run `abstract-leveldown` tests on `levelup` interface ([#90](https://github.com/level/subleveldown/issues/90)) ([`8928189`](https://github.com/level/subleveldown/commit/8928189)) ([**@vweevers**](https://github.com/vweevers)) | ||
### Fixed | ||
- Don't mutate arguments object, which fails in strict mode ([#93](https://github.com/level/subleveldown/issues/93)) ([`5513c83`](https://github.com/level/subleveldown/commit/5513c83)) ([**@andymatuschak**](https://github.com/andymatuschak)) | ||
## [5.0.0] - 2020-04-05 | ||
@@ -243,2 +253,4 @@ | ||
[5.0.1]: https://github.com/level/subleveldown/compare/v5.0.0...v5.0.1 | ||
[5.0.0]: https://github.com/level/subleveldown/compare/v4.1.4...v5.0.0 | ||
@@ -245,0 +257,0 @@ |
@@ -9,2 +9,3 @@ # Contributors | ||
| **Meirion Hughes** | [**@MeirionHughes**](https://github.com/MeirionHughes) | | | ||
| **Andy Matuschak** | | | | ||
| **Nocory** | [**@Nocory**](https://github.com/Nocory) | | |
@@ -35,3 +35,3 @@ var inherits = require('inherits') | ||
if (key) key = key.slice(self.prefix.length) | ||
cb.apply(null, arguments) | ||
cb(err, key, value) | ||
}) | ||
@@ -38,0 +38,0 @@ } |
{ | ||
"name": "subleveldown", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Split a levelup database into sublevels with their own keyspace, encoding and events", | ||
@@ -19,7 +19,7 @@ "author": "Mathias Buus (@mafintosh)", | ||
"dependencies": { | ||
"abstract-leveldown": "^6.2.3", | ||
"abstract-leveldown": "^6.3.0", | ||
"encoding-down": "^6.2.0", | ||
"inherits": "^2.0.3", | ||
"level-option-wrap": "^1.1.0", | ||
"levelup": "^4.3.1", | ||
"levelup": "^4.4.0", | ||
"reachdown": "^1.1.0" | ||
@@ -26,0 +26,0 @@ }, |
@@ -68,2 +68,24 @@ var test = require('tape') | ||
// Test levelup interface | ||
suite({ | ||
test: test, | ||
factory: function () { | ||
// This is a levelup instance, but we're testing it as abstract-leveldown :) | ||
return subdb(levelup(encoding(memdown())), 'test') | ||
}, | ||
// Unsupported features | ||
seek: false, | ||
createIfMissing: false, | ||
errorIfExists: false, | ||
// Opt-in to new clear() tests | ||
clear: true, | ||
// Adapt for levelup | ||
promises: true, | ||
status: false, | ||
serialize: false, | ||
encodings: true | ||
}) | ||
// Additional tests for this implementation | ||
@@ -70,0 +92,0 @@ test('SubDown constructor', function (t) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55711
810
Updatedabstract-leveldown@^6.3.0
Updatedlevelup@^4.4.0