Comparing version 4.3.0 to 4.3.1
@@ -5,2 +5,8 @@ # Changelog | ||
## [4.3.1] - 2019-10-03 | ||
### Fixed | ||
- Fix floating promise in constructor ([#680](https://github.com/Level/levelup/issues/680)) ([**@vweevers**](https://github.com/vweevers)) | ||
## [4.3.0] - 2019-09-30 | ||
@@ -1087,2 +1093,4 @@ | ||
[4.3.1]: https://github.com/Level/levelup/compare/v4.3.0...v4.3.1 | ||
[4.3.0]: https://github.com/Level/levelup/compare/v4.2.0...v4.3.0 | ||
@@ -1089,0 +1097,0 @@ |
@@ -34,2 +34,3 @@ var EventEmitter = require('events').EventEmitter | ||
var error | ||
var self = this | ||
@@ -59,3 +60,5 @@ EventEmitter.call(this) | ||
this.db = new DeferredLevelDOWN(db) | ||
this.open(callback) | ||
this.open(callback || function (err) { | ||
if (err) self.emit('error', err) | ||
}) | ||
@@ -62,0 +65,0 @@ // Create manifest based on deferred-leveldown's |
{ | ||
"name": "levelup", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "Fast & simple storage - a Node.js-style LevelDB wrapper", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -114,3 +114,3 @@ # levelup | ||
Calling `levelup(db)` will also open the underlying store. This is an asynchronous operation which will trigger your callback if you provide one. The callback should take the form `function (err, db) {}` where `db` is the `levelup` instance. If you don't provide a callback, any read & write operations are simply queued internally until the store is fully opened. | ||
Calling `levelup(db)` will also open the underlying store. This is an asynchronous operation which will trigger your callback if you provide one. The callback should take the form `function (err, db) {}` where `db` is the `levelup` instance. If you don't provide a callback, any read & write operations are simply queued internally until the store is fully opened, unless it fails to open, in which case an `error` event will be emitted. | ||
@@ -491,2 +491,3 @@ This leads to two alternative ways of managing a `levelup` instance: | ||
| `closed` | Store has closed. | - | | ||
| `error` | An error occurred | `error` (Error) | | ||
@@ -493,0 +494,0 @@ For example you can do: |
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
107325
363
537