Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
- [Events](#events)
- [`opening`](#opening)
- [`open`](#open)
- [`ready` (deprecated)](#ready-deprecated)
- [`closing`](#closing)
- [`closed`](#closed)
- [`write`](#write)
Expand Down Expand Up @@ -993,10 +992,6 @@ db.once('open', function () {
})
```

#### `ready` (deprecated)

Alias for the `open` event. Deprecated in favor of the `open` event.

#### `closing`

Emitted when database is closing. Receives 0 arguments.
Expand Down
6 changes: 1 addition & 5 deletions abstract-level.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ class AbstractLevel extends EventEmitter {
{ name: 'write' },
{ name: 'put', deprecated: true, alt: 'write' },
{ name: 'del', deprecated: true, alt: 'write' },
{ name: 'batch', deprecated: true, alt: 'write' },
{ name: 'ready', deprecated: true, alt: 'open' }
{ name: 'batch', deprecated: true, alt: 'write' }
])

this[kTranscoder] = new Transcoder(formats(this))
Expand Down Expand Up @@ -236,9 +235,6 @@ class AbstractLevel extends EventEmitter {
// Only emit public event if pending state changes are done
if (this[kStatus] === 'open') this.emit('open')

// TODO (next major): remove this alias
if (this[kStatus] === 'open') this.emit('ready')

maybeOpened()
}
} else if (this[kStatus] === 'open') {
Expand Down