mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-25 02:22:14 +00:00
chore: update datastore (#990)
`interface-datastore` now only contains the interface definition, `datastore-core` has the various implementations. BREAKING CHANGE: datastore implementations provided to libp2p must be compliant with interface-datastore@6.0.0
This commit is contained in:
parent
1c2e4d89ac
commit
83734ef520
@ -91,7 +91,7 @@
|
|||||||
"es6-promisify": "^7.0.0",
|
"es6-promisify": "^7.0.0",
|
||||||
"events": "^3.3.0",
|
"events": "^3.3.0",
|
||||||
"hashlru": "^2.3.0",
|
"hashlru": "^2.3.0",
|
||||||
"interface-datastore": "^5.1.1",
|
"interface-datastore": "^6.0.2",
|
||||||
"it-all": "^1.0.4",
|
"it-all": "^1.0.4",
|
||||||
"it-buffer": "^0.1.2",
|
"it-buffer": "^0.1.2",
|
||||||
"it-drain": "^1.0.3",
|
"it-drain": "^1.0.3",
|
||||||
@ -139,6 +139,7 @@
|
|||||||
"@types/varint": "^6.0.0",
|
"@types/varint": "^6.0.0",
|
||||||
"aegir": "^33.1.1",
|
"aegir": "^33.1.1",
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
|
"datastore-core": "^6.0.7",
|
||||||
"delay": "^5.0.0",
|
"delay": "^5.0.0",
|
||||||
"interop-libp2p": "^0.4.0",
|
"interop-libp2p": "^0.4.0",
|
||||||
"into-stream": "^7.0.0",
|
"into-stream": "^7.0.0",
|
||||||
|
@ -7,7 +7,7 @@ const log = Object.assign(debug('libp2p:keychain'), {
|
|||||||
const sanitize = require('sanitize-filename')
|
const sanitize = require('sanitize-filename')
|
||||||
const mergeOptions = require('merge-options')
|
const mergeOptions = require('merge-options')
|
||||||
const crypto = require('libp2p-crypto')
|
const crypto = require('libp2p-crypto')
|
||||||
const { Key } = require('interface-datastore')
|
const { Key } = require('interface-datastore/key')
|
||||||
const CMS = require('./cms')
|
const CMS = require('./cms')
|
||||||
const errcode = require('err-code')
|
const errcode = require('err-code')
|
||||||
const { toString: uint8ArrayToString } = require('uint8arrays/to-string')
|
const { toString: uint8ArrayToString } = require('uint8arrays/to-string')
|
||||||
|
@ -4,7 +4,7 @@ const debug = require('debug')
|
|||||||
const log = Object.assign(debug('libp2p:persistent-peer-store'), {
|
const log = Object.assign(debug('libp2p:persistent-peer-store'), {
|
||||||
error: debug('libp2p:persistent-peer-store:err')
|
error: debug('libp2p:persistent-peer-store:err')
|
||||||
})
|
})
|
||||||
const { Key } = require('interface-datastore')
|
const { Key } = require('interface-datastore/key')
|
||||||
const { Multiaddr } = require('multiaddr')
|
const { Multiaddr } = require('multiaddr')
|
||||||
const PeerId = require('peer-id')
|
const PeerId = require('peer-id')
|
||||||
const { base32 } = require('multiformats/bases/base32')
|
const { base32 } = require('multiformats/bases/base32')
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
const { expect } = require('aegir/utils/chai')
|
const { expect } = require('aegir/utils/chai')
|
||||||
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
|
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
|
||||||
const { toString: uint8ArrayToString } = require('uint8arrays/to-string')
|
const { toString: uint8ArrayToString } = require('uint8arrays/to-string')
|
||||||
const { MemoryDatastore } = require('interface-datastore')
|
const { MemoryDatastore } = require('datastore-core/memory')
|
||||||
const Keychain = require('../../src/keychain')
|
const Keychain = require('../../src/keychain')
|
||||||
|
|
||||||
describe('cms interop', () => {
|
describe('cms interop', () => {
|
||||||
|
@ -9,7 +9,8 @@ const { toString: uint8ArrayToString } = require('uint8arrays/to-string')
|
|||||||
|
|
||||||
const peerUtils = require('../utils/creators/peer')
|
const peerUtils = require('../utils/creators/peer')
|
||||||
|
|
||||||
const { MemoryDatastore, Key } = require('interface-datastore')
|
const { Key } = require('interface-datastore/key')
|
||||||
|
const { MemoryDatastore } = require('datastore-core/memory')
|
||||||
const Keychain = require('../../src/keychain')
|
const Keychain = require('../../src/keychain')
|
||||||
const PeerId = require('peer-id')
|
const PeerId = require('peer-id')
|
||||||
const crypto = require('libp2p-crypto')
|
const crypto = require('libp2p-crypto')
|
||||||
|
@ -9,7 +9,7 @@ const PeerRecord = require('../../src/record/peer-record')
|
|||||||
const PeerStore = require('../../src/peer-store/persistent')
|
const PeerStore = require('../../src/peer-store/persistent')
|
||||||
|
|
||||||
const { Multiaddr } = require('multiaddr')
|
const { Multiaddr } = require('multiaddr')
|
||||||
const { MemoryDatastore } = require('interface-datastore')
|
const { MemoryDatastore } = require('datastore-core/memory')
|
||||||
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
|
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
|
||||||
|
|
||||||
const peerUtils = require('../utils/creators/peer')
|
const peerUtils = require('../utils/creators/peer')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user