@aztec/kv-store
Advanced tools
Comparing version 0.32.0 to 0.32.1
@@ -1,2 +0,2 @@ | ||
import { Key, Range } from './common.js'; | ||
import { type Key, type Range } from './common.js'; | ||
/** | ||
@@ -3,0 +3,0 @@ * A map that counts how many times it sees a key. Once 0 is reached, that key is removed from the map. |
@@ -1,2 +0,2 @@ | ||
import { Key, Range } from './common.js'; | ||
import { type Key, type Range } from './common.js'; | ||
/** | ||
@@ -3,0 +3,0 @@ * A map backed by a persistent store. |
@@ -1,6 +0,6 @@ | ||
import { AztecArray } from './array.js'; | ||
import { Key } from './common.js'; | ||
import { AztecCounter } from './counter.js'; | ||
import { AztecMap, AztecMultiMap } from './map.js'; | ||
import { AztecSingleton } from './singleton.js'; | ||
import { type AztecArray } from './array.js'; | ||
import { type Key } from './common.js'; | ||
import { type AztecCounter } from './counter.js'; | ||
import { type AztecMap, type AztecMultiMap } from './map.js'; | ||
import { type AztecSingleton } from './singleton.js'; | ||
/** A key-value store */ | ||
@@ -7,0 +7,0 @@ export interface AztecKVStore { |
@@ -1,3 +0,3 @@ | ||
import { Database, Key } from 'lmdb'; | ||
import { AztecArray } from '../interfaces/array.js'; | ||
import { type Database, type Key } from 'lmdb'; | ||
import { type AztecArray } from '../interfaces/array.js'; | ||
/** | ||
@@ -4,0 +4,0 @@ * An persistent array backed by LMDB. |
@@ -1,4 +0,4 @@ | ||
import { Key as BaseKey, Database } from 'lmdb'; | ||
import { Key, Range } from '../interfaces/common.js'; | ||
import { AztecCounter } from '../interfaces/counter.js'; | ||
import { type Key as BaseKey, type Database } from 'lmdb'; | ||
import { type Key, type Range } from '../interfaces/common.js'; | ||
import { type AztecCounter } from '../interfaces/counter.js'; | ||
/** | ||
@@ -5,0 +5,0 @@ * A counter implementation backed by LMDB |
/// <reference types="node" resolution-mode="require"/> | ||
import { Database } from 'lmdb'; | ||
import { Key, Range } from '../interfaces/common.js'; | ||
import { AztecMultiMap } from '../interfaces/map.js'; | ||
import { type Database } from 'lmdb'; | ||
import { type Key, type Range } from '../interfaces/common.js'; | ||
import { type AztecMultiMap } from '../interfaces/map.js'; | ||
/** The slot where a key-value entry would be stored */ | ||
@@ -6,0 +6,0 @@ type MapValueSlot<K extends Key | Buffer> = ['map', string, 'slot', K]; |
@@ -1,3 +0,3 @@ | ||
import { Database, Key } from 'lmdb'; | ||
import { AztecSingleton } from '../interfaces/singleton.js'; | ||
import { type Database, type Key } from 'lmdb'; | ||
import { type AztecSingleton } from '../interfaces/singleton.js'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Stores a single value in LMDB. |
@@ -1,7 +0,7 @@ | ||
import { RootDatabase } from 'lmdb'; | ||
import { AztecArray } from '../interfaces/array.js'; | ||
import { AztecCounter } from '../interfaces/counter.js'; | ||
import { AztecMap, AztecMultiMap } from '../interfaces/map.js'; | ||
import { AztecSingleton } from '../interfaces/singleton.js'; | ||
import { AztecKVStore } from '../interfaces/store.js'; | ||
import { type RootDatabase } from 'lmdb'; | ||
import { type AztecArray } from '../interfaces/array.js'; | ||
import { type AztecCounter } from '../interfaces/counter.js'; | ||
import { type AztecMap, type AztecMultiMap } from '../interfaces/map.js'; | ||
import { type AztecSingleton } from '../interfaces/singleton.js'; | ||
import { type AztecKVStore } from '../interfaces/store.js'; | ||
/** | ||
@@ -8,0 +8,0 @@ * A key-value store backed by LMDB. |
@@ -101,2 +101,2 @@ var _AztecLmdbStore_rootDb, _AztecLmdbStore_data, _AztecLmdbStore_multiMapData; | ||
_AztecLmdbStore_rootDb = new WeakMap(), _AztecLmdbStore_data = new WeakMap(), _AztecLmdbStore_multiMapData = new WeakMap(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbG1kYi9zdG9yZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHVC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ElBQUksQ0FBQyxDQUFDO0lBQzlDLENBQUM7SUFFRDs7OztPQUlHO0lBQ0gsYUFBYSxDQUFJLElBQVk7UUFDM0IsT0FBTyxJQUFJLGtCQUFrQixDQUFDLHVCQUFBLElBQUksNEJBQU0sRUFBRSxJQUFJLENBQUMsQ0FBQztJQUNsRCxDQUFDO0lBRUQ7Ozs7T0FJRztJQUNILFdBQVcsQ0FBSSxRQUFpQjtRQUM5QixPQUFPLHVCQUFBLElBQUksOEJBQVEsQ0FBQyxXQUFXLENBQUMsUUFBUSxDQUFDLENBQUM7SUFDNUMsQ0FBQztJQUVEOztPQUVHO0lBQ0gsS0FBSyxDQUFDLEtBQUs7UUFDVCxNQUFNLHVCQUFBLElBQUksOEJBQVEsQ0FBQyxVQUFVLEVBQUUsQ0FBQztJQUNsQyxDQUFDO0NBQ0YifQ== |
@@ -1,4 +0,4 @@ | ||
import { EthAddress } from '@aztec/foundation/eth-address'; | ||
import { Logger } from '@aztec/foundation/log'; | ||
import { AztecKVStore } from './interfaces/store.js'; | ||
import { type EthAddress } from '@aztec/foundation/eth-address'; | ||
import { type Logger } from '@aztec/foundation/log'; | ||
import { type AztecKVStore } from './interfaces/store.js'; | ||
/** | ||
@@ -5,0 +5,0 @@ * Clears the store if the rollup address does not match the one stored in the database. |
{ | ||
"name": "@aztec/kv-store", | ||
"version": "0.32.0", | ||
"version": "0.32.1", | ||
"type": "module", | ||
@@ -32,3 +32,3 @@ "exports": { | ||
"dependencies": { | ||
"@aztec/foundation": "0.32.0", | ||
"@aztec/foundation": "0.32.1", | ||
"lmdb": "^2.9.2" | ||
@@ -35,0 +35,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
import { Key, Range } from './common.js'; | ||
import { type Key, type Range } from './common.js'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { Key, Range } from './common.js'; | ||
import { type Key, type Range } from './common.js'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,6 +0,6 @@ | ||
import { AztecArray } from './array.js'; | ||
import { Key } from './common.js'; | ||
import { AztecCounter } from './counter.js'; | ||
import { AztecMap, AztecMultiMap } from './map.js'; | ||
import { AztecSingleton } from './singleton.js'; | ||
import { type AztecArray } from './array.js'; | ||
import { type Key } from './common.js'; | ||
import { type AztecCounter } from './counter.js'; | ||
import { type AztecMap, type AztecMultiMap } from './map.js'; | ||
import { type AztecSingleton } from './singleton.js'; | ||
@@ -7,0 +7,0 @@ /** A key-value store */ |
@@ -1,4 +0,4 @@ | ||
import { Database, Key } from 'lmdb'; | ||
import { type Database, type Key } from 'lmdb'; | ||
import { AztecArray } from '../interfaces/array.js'; | ||
import { type AztecArray } from '../interfaces/array.js'; | ||
import { LmdbAztecSingleton } from './singleton.js'; | ||
@@ -5,0 +5,0 @@ |
@@ -1,5 +0,5 @@ | ||
import { Key as BaseKey, Database } from 'lmdb'; | ||
import { type Key as BaseKey, type Database } from 'lmdb'; | ||
import { Key, Range } from '../interfaces/common.js'; | ||
import { AztecCounter } from '../interfaces/counter.js'; | ||
import { type Key, type Range } from '../interfaces/common.js'; | ||
import { type AztecCounter } from '../interfaces/counter.js'; | ||
import { LmdbAztecMap } from './map.js'; | ||
@@ -6,0 +6,0 @@ |
@@ -1,5 +0,5 @@ | ||
import { Database, RangeOptions } from 'lmdb'; | ||
import { type Database, type RangeOptions } from 'lmdb'; | ||
import { Key, Range } from '../interfaces/common.js'; | ||
import { AztecMultiMap } from '../interfaces/map.js'; | ||
import { type Key, type Range } from '../interfaces/common.js'; | ||
import { type AztecMultiMap } from '../interfaces/map.js'; | ||
@@ -6,0 +6,0 @@ /** The slot where a key-value entry would be stored */ |
@@ -1,4 +0,4 @@ | ||
import { Database, Key } from 'lmdb'; | ||
import { type Database, type Key } from 'lmdb'; | ||
import { AztecSingleton } from '../interfaces/singleton.js'; | ||
import { type AztecSingleton } from '../interfaces/singleton.js'; | ||
@@ -5,0 +5,0 @@ /** The slot where this singleton will store its value */ |
import { createDebugLogger } from '@aztec/foundation/log'; | ||
import { Database, Key, RootDatabase, open } from 'lmdb'; | ||
import { type Database, type Key, type RootDatabase, open } from 'lmdb'; | ||
import { AztecArray } from '../interfaces/array.js'; | ||
import { AztecCounter } from '../interfaces/counter.js'; | ||
import { AztecMap, AztecMultiMap } from '../interfaces/map.js'; | ||
import { AztecSingleton } from '../interfaces/singleton.js'; | ||
import { AztecKVStore } from '../interfaces/store.js'; | ||
import { type AztecArray } from '../interfaces/array.js'; | ||
import { type AztecCounter } from '../interfaces/counter.js'; | ||
import { type AztecMap, type AztecMultiMap } from '../interfaces/map.js'; | ||
import { type AztecSingleton } from '../interfaces/singleton.js'; | ||
import { type AztecKVStore } from '../interfaces/store.js'; | ||
import { LmdbAztecArray } from './array.js'; | ||
@@ -11,0 +11,0 @@ import { LmdbAztecCounter } from './counter.js'; |
@@ -1,5 +0,5 @@ | ||
import { EthAddress } from '@aztec/foundation/eth-address'; | ||
import { Logger } from '@aztec/foundation/log'; | ||
import { type EthAddress } from '@aztec/foundation/eth-address'; | ||
import { type Logger } from '@aztec/foundation/log'; | ||
import { AztecKVStore } from './interfaces/store.js'; | ||
import { type AztecKVStore } from './interfaces/store.js'; | ||
import { AztecLmdbStore } from './lmdb/store.js'; | ||
@@ -6,0 +6,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
83626
+ Added@aztec/bb.js@0.32.1(transitive)
+ Added@aztec/foundation@0.32.1(transitive)
- Removed@aztec/bb.js@0.32.0(transitive)
- Removed@aztec/foundation@0.32.0(transitive)
Updated@aztec/foundation@0.32.1