Skip to content

Commit

Permalink
Remove properties that were true since abstract-level@1
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Nov 9, 2022
1 parent efb3b0d commit 43ba6b7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 169 deletions.
106 changes: 0 additions & 106 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,40 +134,6 @@ Do iterators support [`seek(..)`](https://github.com/Level/abstract-level/#itera

</details>

#### `clear` (boolean)

Does the database support `db.clear()`? Always true since `abstract-level@1`.

<details>
<summary>Support matrix</summary>

See also [Level/community#79](https://github.com/Level/community/issues/79).

| Module | Support | Optimized |
| :------------------------------ | :------ | :-------- |
| `abstract-level` and dependents | ✅ 1.0.0 | ✅ 1.0.0 |
| `abstract-leveldown` | ✅ 6.1.0 | n/a |
| `leveldown` | ✅ 5.2.0 | ✅ 6.0.3 |
| `rocksdb` | ✅ 4.1.0 | ✅ 5.2.0 |
| `memdown` | ✅ 5.0.0 | ✅ 6.1.1 |
| `level-js` | ✅ 5.0.0 | ✅ 5.0.0 |
| `encoding-down` | ✅ 6.2.0 | n/a |
| `deferred-leveldown` | ✅ 5.2.0 | n/a |
| `levelup` | ✅ 4.2.0 | n/a |
| `level-packager` | ✅ 5.0.3 | n/a |
| `level` | ✅ 6.0.0 | ✅ 7.0.1 |
| `level-mem` | ✅ 5.0.1 | ✅ 6.0.1 |
| `level-rocksdb` | ✅ 5.0.0 | ✅ 5.0.0 |
| `subleveldown` | ✅ 4.2.1 | ✅ 4.2.1 |
| `multileveldown` | ✅ 5.0.0 | ✅ 5.0.0 |
| `level-party` | ✅ 5.1.0 | ✅ 5.1.0 |

</details>

### `status` (boolean)

Does the database have a [`status`](https://github.com/Level/abstract-level/#dbstatus) property? Always true since `abstract-level@1`.

### `deferredOpen` (boolean)

Can operations like `db.put()` be called without explicitly opening the db? Like so:
Expand Down Expand Up @@ -199,35 +165,6 @@ Does `db.open()` support these options?

</details>

### `promises` (boolean)

Do all database methods (that don't otherwise have a return value) support promises, in addition to callbacks? Such that, when a callback argument is omitted, a promise is returned:

```js
db.put('key', 'value', callback)
await db.put('key', 'value')
```

Always true since `abstract-level@1`.

<details>
<summary>Support matrix</summary>

| Module | Support |
| :---------------------------------- | :------------------- |
| `abstract-level` and dependents ||
| `abstract-leveldown` and dependents | ❌ (except iterators) |
| `levelup` ||
| `level-packager` ||
| `level` ||
| `level-mem` ||
| `level-rocksdb` ||
| `subleveldown` ||
| `multileveldown` ||
| `level-party` ||

</details>

### `events` (object)

Which events does the database emit, as indicated by nested properties? For example:
Expand Down Expand Up @@ -314,49 +251,6 @@ _This matrix lists which encodings are supported as indicated by e.g. `db.suppor

</details>

### `getMany` (boolean)

Does the database support `db.getMany()`? Always true since `abstract-level@1`.

<details>
<summary>Support matrix</summary>

| Module | Support |
| :------------------------------ | :------ |
| `abstract-level` and dependents | ✅ 1.0.0 |
| `abstract-leveldown` | ✅ 7.2.0 |
| `leveldown` | ✅ 6.1.0 |
| `rocksdb` | ✅ 5.2.0 |
| `memdown` ||
| `level-js` | ✅ 6.1.0 |
| `encoding-down` | ✅ 7.1.0 |
| `deferred-leveldown` | ✅ 7.0.0 |
| `levelup` | ✅ 5.1.0 |
| `level` | ✅ 7.0.1 |
| `level-mem` | ✅ 6.0.1 |
| `level-rocksdb` | ✅ 5.0.0 |
| `subleveldown` | ✅ 6.0.0 |
| `multileveldown` | ✅ 5.0.0 |
| `level-party` | ✅ 5.1.0 |

</details>

### `keyIterator` (boolean)

Does the database have a `keys([options])` method that returns a key iterator? Always true since `abstract-level@1`.

### `valueIterator` (boolean)

Does the database have a `values([options])` method that returns a key iterator? Always true since `abstract-level@1`.

### `iteratorNextv` (boolean)

Do iterators have a `nextv(size[, options][, callback])` method? Always true since `abstract-level@1`.

### `iteratorAll` (boolean)

Do iterators have a `all([options][, callback])` method? Always true since `abstract-level@1`.

### `additionalMethods` (object)

Declares support of additional methods, that are not part of the `abstract-level` interface. In the form of:
Expand Down
55 changes: 0 additions & 55 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,47 +32,6 @@ export interface IManifest {
*/
seek: boolean

/**
* Does the database support `db.clear()`? Always true since `abstract-level@1`.
*/
clear: boolean

/**
* Does the database support `db.getMany()`? Always true since `abstract-level@1`.
*/
getMany: boolean

/**
* Does the database have a `keys([options])` method that returns a key iterator?
* Always true since `abstract-level@1`.
*/
keyIterator: boolean

/**
* Does the database have a `values([options])` method that returns a key iterator?
* Always true since `abstract-level@1`.
*/
valueIterator: boolean

/**
* Do iterators have a `nextv(size[, options][, callback])` method? Always true since
* `abstract-level@1`.
*/
iteratorNextv: boolean

/**
* Do iterators have a `all([options][, callback])` method? Always true since
* `abstract-level@1`.
*/
iteratorAll: boolean

/**
* Does the database have a
* [`status`](https://github.com/Level/abstract-level/#dbstatus) property? Always true
* since `abstract-level@1`.
*/
status: boolean

/**
* Does `db.open()` and the database constructor support this option?
*/
Expand All @@ -95,20 +54,6 @@ export interface IManifest {
*/
deferredOpen: boolean

/**
* Do all database methods (that don't otherwise have a return value) support promises,
* in addition to callbacks? Such that, when a callback argument is omitted, a promise
* is returned:
*
* ```js
* db.put('key', 'value', callback)
* await db.put('key', 'value')
* ```
*
* Always true since `abstract-level@1`.
*/
promises: boolean

/**
* Does database have the methods `createReadStream`, `createKeyStream` and
* `createValueStream`, following the API documented in `levelup`? For `abstract-level`
Expand Down
8 changes: 0 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,9 @@ exports.supports = function supports (...manifests) {
snapshots: manifest.snapshots || false,
permanence: manifest.permanence || false,
seek: manifest.seek || false,
clear: manifest.clear || false,
getMany: manifest.getMany || false,
keyIterator: manifest.keyIterator || false,
valueIterator: manifest.valueIterator || false,
iteratorNextv: manifest.iteratorNextv || false,
iteratorAll: manifest.iteratorAll || false,
status: manifest.status || false,
createIfMissing: manifest.createIfMissing || false,
errorIfExists: manifest.errorIfExists || false,
deferredOpen: manifest.deferredOpen || false,
promises: manifest.promises || false,
streams: manifest.streams || false,
encodings: Object.assign({}, manifest.encodings),
events: Object.assign({}, manifest.events),
Expand Down

0 comments on commit 43ba6b7

Please sign in to comment.