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
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ updates:
schedule:
interval: monthly
ignore:
- dependency-name: standard
- dependency-name: ts-standard
- dependency-name: neostandard
- dependency-name: eslint
- dependency-name: "@types/node"
- dependency-name: voxpelli/tsconfig
- dependency-name: typescript
Expand Down
5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict'

module.exports = require('neostandard')({
ts: true
})
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "index.js",
"types": "./index.d.ts",
"scripts": {
"test": "standard && hallmark && (nyc -s node test/self.js | tap-arc) && nyc report",
"test": "eslint && hallmark && (nyc -s node test/self.js | tap-arc) && nyc report",
"test-pessimistic": "node test/self.js | tap-arc -pv",
"test-browsers": "airtap --coverage test/self.js",
"test-electron": "airtap -p electron --coverage test/self.js | tap-arc",
Expand Down Expand Up @@ -34,20 +34,21 @@
"module-error": "^1.0.1"
},
"devDependencies": {
"@babel/preset-env": "^7.26.0",
"@types/node": "^22.10.2",
"@voxpelli/tsconfig": "^15.1.0",
"@babel/preset-env": "^7.28.3",
"@types/node": "^24.6.0",
"@voxpelli/tsconfig": "^16.1.0",
"airtap": "^5.0.0",
"airtap-electron": "^1.0.0",
"airtap-playwright": "^1.0.1",
"babelify": "^10.0.0",
"electron": "^33.2.1",
"eslint": "^9.36.0",
"hallmark": "^5.0.1",
"neostandard": "^0.12.2",
"nyc": "^17.1.0",
"standard": "^17.1.2",
"tap-arc": "^1.3.2",
"tape": "^5.9.0",
"typescript": "^5.7.2"
"typescript": "^5.9.2"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@voxpelli/tsconfig/node16.json",
"extends": "@voxpelli/tsconfig/node18.json",
"compilerOptions": {
"checkJs": false
},
Expand Down
6 changes: 2 additions & 4 deletions types/abstract-chained-batch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import * as Transcoder from 'level-transcoder'
import { AbstractSublevel } from './abstract-sublevel'
import { AbstractResource } from './interfaces'

export class AbstractChainedBatch<TDatabase, KDefault, VDefault>
implements AbstractResource {
export class AbstractChainedBatch<TDatabase, KDefault, VDefault> implements AbstractResource {
constructor (db: TDatabase)

/**
Expand Down Expand Up @@ -59,7 +58,7 @@ export class AbstractChainedBatch<TDatabase, KDefault, VDefault>
/**
* Close the batch.
*/
[Symbol.asyncDispose](): Promise<void>
[Symbol.asyncDispose] (): Promise<void>
}

/**
Expand Down Expand Up @@ -120,7 +119,6 @@ export interface AbstractChainedBatchDelOptions<TDatabase, K> {
/**
* Options for the {@link AbstractChainedBatch.write} method.
*/
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface AbstractChainedBatchWriteOptions {
// There are no abstract options but implementations may add theirs.
}
2 changes: 1 addition & 1 deletion types/abstract-iterator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ declare class CommonIterator<TDatabase, T> implements AbstractResource {
/**
* Close the iterator.
*/
[Symbol.asyncDispose](): Promise<void>
[Symbol.asyncDispose] (): Promise<void>
}

export class AbstractIterator<TDatabase, K, V> extends CommonIterator<TDatabase, [K, V]> {
Expand Down
6 changes: 3 additions & 3 deletions types/abstract-level.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ declare class AbstractLevel<TFormat, KDefault = string, VDefault = string>
/**
* Close the database.
*/
[Symbol.asyncDispose](): Promise<void>
[Symbol.asyncDispose] (): Promise<void>

/**
* Get a value from the database by {@link key}.
Expand Down Expand Up @@ -321,12 +321,12 @@ declare class AbstractLevel<TFormat, KDefault = string, VDefault = string>
* resources like iterators and sublevels, and is publicly exposed for custom
* resources.
*/
attachResource(resource: AbstractResource): void
attachResource (resource: AbstractResource): void

/**
* Stop tracking the given {@link resource}.
*/
detachResource(resource: AbstractResource): void
detachResource (resource: AbstractResource): void
}

export { AbstractLevel }
Expand Down
2 changes: 1 addition & 1 deletion types/abstract-snapshot.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ export class AbstractSnapshot implements AbstractResource {
/**
* Close the snapshot.
*/
[Symbol.asyncDispose](): Promise<void>
[Symbol.asyncDispose] (): Promise<void>
}
3 changes: 2 additions & 1 deletion types/interfaces.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { AbstractLevel } from './abstract-level'
import { AbstractSnapshot } from './abstract-snapshot'

Expand Down Expand Up @@ -38,5 +39,5 @@ export interface AbstractResource extends AsyncDisposable {
/**
* Close the resource. Identical in functionality to {@link close}.
*/
[Symbol.asyncDispose](): Promise<void>
[Symbol.asyncDispose] (): Promise<void>
}