Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update datastore #990

Merged
merged 1 commit into from
Sep 24, 2021
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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"es6-promisify": "^6.1.1",
"events": "^3.3.0",
"hashlru": "^2.3.0",
"interface-datastore": "^5.1.1",
"interface-datastore": "^6.0.2",
"it-all": "^1.0.4",
"it-buffer": "^0.1.2",
"it-drain": "^1.0.3",
Expand Down Expand Up @@ -139,6 +139,7 @@
"abortable-iterator": "^3.0.0",
"aegir": "^33.1.1",
"buffer": "^6.0.3",
"datastore-core": "^6.0.7",
"delay": "^5.0.0",
"interop-libp2p": "^0.4.0",
"into-stream": "^6.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/keychain/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const log = Object.assign(debug('libp2p:keychain'), {
const sanitize = require('sanitize-filename')
const mergeOptions = require('merge-options')
const crypto = require('libp2p-crypto')
const { Key } = require('interface-datastore')
const { Key } = require('interface-datastore/key')
const CMS = require('./cms')
const errcode = require('err-code')
const { toString: uint8ArrayToString } = require('uint8arrays/to-string')
Expand Down
2 changes: 1 addition & 1 deletion src/peer-store/persistent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const debug = require('debug')
const log = Object.assign(debug('libp2p:persistent-peer-store'), {
error: debug('libp2p:persistent-peer-store:err')
})
const { Key } = require('interface-datastore')
const { Key } = require('interface-datastore/key')
const { Multiaddr } = require('multiaddr')
const PeerId = require('peer-id')
const { base32 } = require('multiformats/bases/base32')
Expand Down
2 changes: 1 addition & 1 deletion test/keychain/cms-interop.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
const { expect } = require('aegir/utils/chai')
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
const { toString: uint8ArrayToString } = require('uint8arrays/to-string')
const { MemoryDatastore } = require('interface-datastore')
const { MemoryDatastore } = require('datastore-core/memory')
const Keychain = require('../../src/keychain')

describe('cms interop', () => {
Expand Down
3 changes: 2 additions & 1 deletion test/keychain/keychain.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const { toString: uint8ArrayToString } = require('uint8arrays/to-string')

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 PeerId = require('peer-id')
const crypto = require('libp2p-crypto')
Expand Down
2 changes: 1 addition & 1 deletion test/peer-store/persisted-peer-store.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const PeerRecord = require('../../src/record/peer-record')
const PeerStore = require('../../src/peer-store/persistent')

const { Multiaddr } = require('multiaddr')
const { MemoryDatastore } = require('interface-datastore')
const { MemoryDatastore } = require('datastore-core/memory')
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')

const peerUtils = require('../utils/creators/peer')
Expand Down