Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit b6e3451

Browse files
committed
feat: convert to async/await
BREAKING CHANGES: 1. Everything is now async/await 2. No more callbacks, Readable Streams or Pull Streams 3. `stat` and `ls` commands return `cid` objects instead of string hashes 4. `stat` and `ls` commands return all fields, `hash`, `long` etc options are now ignored
1 parent 25bf86b commit b6e3451

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2024
-3038
lines changed

package.json

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"release": "aegir release",
1919
"release-minor": "aegir release --type minor",
2020
"release-major": "aegir release --type major",
21-
"coverage": "aegir coverage"
21+
"coverage": "aegir coverage",
22+
"dep-check": "aegir dep-check"
2223
},
2324
"repository": {
2425
"type": "git",
@@ -42,37 +43,30 @@
4243
"detect-node": "^2.0.4",
4344
"detect-webworker": "^1.0.0",
4445
"dirty-chai": "^2.0.1",
45-
"ipld": "~0.21.1",
46-
"ipld-in-memory": "^2.0.0",
47-
"multihashes": "~0.4.14",
48-
"pull-buffer-stream": "^1.0.1",
49-
"pull-traverse": "^1.0.3",
46+
"ipfs-block-service": "~0.15.2",
47+
"ipfs-repo": "~0.26.4",
48+
"ipld": "~0.22.0",
49+
"memdown": "^4.0.0",
5050
"temp-write": "^3.4.0"
5151
},
5252
"dependencies": {
53-
"async": "^2.6.1",
5453
"cids": "~0.5.5",
5554
"debug": "^4.1.0",
56-
"filereader-stream": "^2.0.0",
55+
"err-code": "^1.1.2",
5756
"hamt-sharding": "~0.0.2",
5857
"interface-datastore": "~0.6.0",
5958
"ipfs-multipart": "~0.1.0",
6059
"ipfs-unixfs": "~0.1.16",
6160
"ipfs-unixfs-exporter": "~0.36.1",
6261
"ipfs-unixfs-importer": "~0.38.5",
6362
"ipld-dag-pb": "~0.15.2",
64-
"is-pull-stream": "~0.0.0",
65-
"is-stream": "^1.1.0",
6663
"joi": "^14.3.0",
6764
"joi-browser": "^13.4.0",
6865
"mortice": "^1.2.1",
66+
"multicodec": "~0.5.0",
67+
"multihashes": "~0.4.14",
6968
"once": "^1.4.0",
70-
"promisify-es6": "^1.0.3",
71-
"pull-cat": "^1.1.11",
72-
"pull-defer": "~0.2.3",
73-
"pull-stream": "^3.6.9",
74-
"pull-stream-to-stream": "^1.3.4",
75-
"stream-to-pull-stream": "^1.7.2"
69+
"promisify-es6": "^1.0.3"
7670
},
7771
"contributors": [
7872
"Alan Shaw <[email protected]>",

src/cli/flush.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const {
44
FILE_SEPARATOR
5-
} = require('../core/utils')
5+
} = require('../core/utils/constants')
66

77
module.exports = {
88
command: 'flush [path]',

src/cli/ls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const {
99
} = require('./utils')
1010
const {
1111
FILE_SEPARATOR
12-
} = require('../core/utils')
12+
} = require('../core/utils/constants')
1313

1414
module.exports = {
1515
command: 'ls [path]',

0 commit comments

Comments
 (0)