From a8a162875e48f23611190c3fb31e439da1d2d64b Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Mon, 13 Mar 2023 18:45:47 +0100 Subject: [PATCH] fix!: update datastore dependency (#58) Updates to new version of `interface-datastore`. BREAKING CHANGE: requires most recent datastore implementation --- package.json | 4 ++-- test/keychain.spec.ts | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 2259b67bd2..f9d025a1c9 100644 --- a/package.json +++ b/package.json @@ -150,7 +150,7 @@ "@libp2p/interfaces": "^3.3.1", "@libp2p/logger": "^2.0.5", "@libp2p/peer-id": "^2.0.1", - "interface-datastore": "^7.0.3", + "interface-datastore": "^8.0.0", "merge-options": "^3.0.4", "sanitize-filename": "^1.6.3", "uint8arrays": "^4.0.3" @@ -158,7 +158,7 @@ "devDependencies": { "@libp2p/peer-id-factory": "^2.0.1", "aegir": "^38.1.0", - "datastore-core": "^8.0.4", + "datastore-core": "^9.0.1", "multiformats": "^11.0.1" } } diff --git a/test/keychain.spec.ts b/test/keychain.spec.ts index 9353b3b9bd..3ec4618bda 100644 --- a/test/keychain.spec.ts +++ b/test/keychain.spec.ts @@ -28,12 +28,6 @@ describe('keychain', () => { ks = new DefaultKeyChain({ datastore: datastore2 }, { pass: passPhrase }) - - await datastore2.open() - }) - - after(async () => { - await datastore2.close() }) it('can start without a password', async () => { @@ -455,7 +449,6 @@ describe('keychain', () => { kc = new DefaultKeyChain({ datastore: ds }, options) - await ds.open() }) it('should validate newPass is a string', async () => {