From 12d07eac14aa833c5d0866ef4e4cfb8c8aabaf19 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Thu, 11 Aug 2022 16:37:35 +0100 Subject: [PATCH] deps: update all deps --- packages/ipfs-repo-migrations/package.json | 9 +++++---- packages/ipfs-repo/package.json | 22 +++++++++++----------- packages/ipfs-repo/src/idstore.js | 6 ++++-- packages/ipfs-repo/src/index.js | 3 ++- 4 files changed, 22 insertions(+), 18 deletions(-) diff --git a/packages/ipfs-repo-migrations/package.json b/packages/ipfs-repo-migrations/package.json index 9130dafd..92ca1d87 100644 --- a/packages/ipfs-repo-migrations/package.json +++ b/packages/ipfs-repo-migrations/package.json @@ -175,12 +175,12 @@ "it-length": "^1.0.1", "multiaddr": "^10.0.1", "multiformats": "^9.0.4", - "protobufjs": "^6.10.2", + "protobufjs": "^7.0.0", "uint8arrays": "^3.0.0", "varint": "^6.0.0" }, "devDependencies": { - "@ipld/car": "^3.0.0", + "@ipld/car": "^4.1.4", "@types/debug": "^4.1.5", "@types/rimraf": "^3.0.2", "@types/varint": "^6.0.0", @@ -191,12 +191,13 @@ "datastore-fs": "^7.0.0", "datastore-level": "^8.0.0", "datastore-s3": "^9.0.0", - "just-safe-set": "^2.1.0", + "protobufjs-cli": "^1.0.0", + "just-safe-set": "^4.1.1", "level-5": "npm:level@^5.0.0", "level-6": "npm:level@^6.0.0", "npm-run-all": "^4.1.5", "rimraf": "^3.0.2", - "sinon": "^12.0.1" + "sinon": "^14.0.0" }, "browser": { "datastore-fs": "datastore-level" diff --git a/packages/ipfs-repo/package.json b/packages/ipfs-repo/package.json index 1824fa03..aa875ff2 100644 --- a/packages/ipfs-repo/package.json +++ b/packages/ipfs-repo/package.json @@ -196,20 +196,20 @@ "it-map": "^1.0.5", "it-merge": "^1.0.2", "it-parallel-batch": "^1.0.9", - "it-pipe": "^1.1.0", - "it-pushable": "^1.4.0", - "just-safe-get": "^2.0.0", - "just-safe-set": "^2.1.0", + "it-pipe": "^2.0.4", + "it-pushable": "^3.1.0", + "just-safe-get": "^4.1.1", + "just-safe-set": "^4.1.1", "merge-options": "^3.0.4", - "mortice": "^2.0.1", + "mortice": "^3.0.0", "multiformats": "^9.0.4", - "p-queue": "^6.0.0", + "p-queue": "^7.3.0", "proper-lockfile": "^4.0.0", - "sort-keys": "^4.2.0", + "sort-keys": "^5.0.0", "uint8arrays": "^3.0.0" }, "devDependencies": { - "@ipld/dag-cbor": "^6.0.4", + "@ipld/dag-cbor": "^7.0.2", "@types/bytes": "^3.1.0", "@types/debug": "^4.1.5", "@types/proper-lockfile": "^4.1.1", @@ -217,11 +217,11 @@ "aegir": "^37.5.0", "blockstore-core": "^1.0.2", "blockstore-datastore-adapter": "^2.0.1", - "ipfs-utils": "^8.1.3", + "ipfs-utils": "^9.0.7", "it-all": "^1.0.2", - "just-range": "^2.1.0", + "just-range": "^4.1.1", "rimraf": "^3.0.2", - "sinon": "^12.0.1" + "sinon": "^14.0.0" }, "browser": { "rimraf": false diff --git a/packages/ipfs-repo/src/idstore.js b/packages/ipfs-repo/src/idstore.js index bfcda9fa..cf7fc43c 100644 --- a/packages/ipfs-repo/src/idstore.js +++ b/packages/ipfs-repo/src/idstore.js @@ -1,6 +1,6 @@ import filter from 'it-filter' -import pushable from 'it-pushable' +import { pushable } from 'it-pushable' import drain from 'it-drain' import { CID } from 'multiformats/cid' import errCode from 'err-code' @@ -63,7 +63,9 @@ export function createIdStore (store) { // in order to return all blocks. we're going to assemble a seperate iterable // return rather than return the resolves of store.putMany using the same // process used by blockstore.putMany - const output = pushable() + const output = pushable({ + objectMode: true + }) // process.nextTick runs on the microtask queue, setImmediate runs on the next // event loop iteration so is slower. Use process.nextTick if it is available. diff --git a/packages/ipfs-repo/src/index.js b/packages/ipfs-repo/src/index.js index 2b4f8ed2..3f3f54f2 100644 --- a/packages/ipfs-repo/src/index.js +++ b/packages/ipfs-repo/src/index.js @@ -81,7 +81,8 @@ class Repo { this.apiAddr = apiAddr(this.root) /** @type {GCLock} */ - this.gcLock = mortice(path, { + this.gcLock = mortice({ + name: path, singleProcess: this.options.repoOwner !== false })