Skip to content

Commit e56c6b1

Browse files
committed
Remove legacy range options from README (Level/community#86)
1 parent 40741c3 commit e56c6b1

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

README.md

+4-10
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ If no callback is passed, a promise is returned.
247247
Each operation is contained in an object having the following properties: `type`, `key`, `value`, where the _type_ is either `'put'` or `'del'`. In the case of `'del'` the `value` property is ignored. Any entries with a `key` of `null` or `undefined` will cause an error to be returned on the `callback` and any `type: 'put'` entry with a `value` of `null` or `undefined` will return an error.
248248

249249
```js
250-
var ops = [
250+
const ops = [
251251
{ type: 'del', key: 'father' },
252252
{ type: 'put', key: 'name', value: 'Yuri Irsenovich Kim' },
253253
{ type: 'put', key: 'dob', value: '16 February 1941' },
@@ -367,12 +367,6 @@ You can supply an options object as the first parameter to `createReadStream()`
367367

368368
- `values` _(boolean, default: `true`)_: whether the results should contain values. If set to `true` and `keys` set to `false` then results will simply be values, rather than objects with a `value` property. Used internally by the `createValueStream()` method.
369369

370-
Legacy options:
371-
372-
- `start`: instead use `gte`
373-
374-
- `end`: instead use `lte`
375-
376370
Underlying stores may have additional options.
377371

378372
<a name="createKeyStream"></a>
@@ -458,7 +452,7 @@ The only exception is the `level` constructor itself, which if no callback is pa
458452
Example:
459453

460454
```js
461-
var db = level('my-db')
455+
const db = level('my-db')
462456

463457
db.put('foo', 'bar')
464458
.then(function () { return db.get('foo') })
@@ -469,8 +463,8 @@ db.put('foo', 'bar')
469463
Or using `async/await`:
470464

471465
```js
472-
var main = async () => {
473-
var db = level('my-db')
466+
const main = async () => {
467+
const db = level('my-db')
474468

475469
await db.put('foo', 'bar')
476470
console.log(await db.get('foo'))

0 commit comments

Comments
 (0)