Skip to content

Commit

Permalink
fix: update multiformats (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias authored Jan 18, 2023
1 parent b5c0541 commit 2aaed3d
Show file tree
Hide file tree
Showing 4 changed files with 433 additions and 434 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
paths:
- "src**"
- ".github/workflows/ci.yml"
- "package.json"
workflow_dispatch:

jobs:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"test:convergence": "mocha test/convergence.js"
},
"dependencies": {
"multiformats": "^10.0.0",
"@ipld/dag-pb": "^2.1.18",
"multiformats": "^11.0.1",
"@ipld/dag-pb": "^4.0.0",
"@web-std/stream": "1.0.1",
"actor": "^2.3.1",
"protobufjs": "^7.1.2",
Expand Down Expand Up @@ -96,7 +96,7 @@
]
},
"devDependencies": {
"@ipld/car": "^4.1.5",
"@ipld/car": "^5.0.3",
"@types/chai": "^4.3.3",
"@types/mocha": "^10.0.0",
"@types/tsv": "^0.2.1",
Expand Down
2 changes: 0 additions & 2 deletions src/codec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const encodePB = (data, links) => {
Data: Data.encode(data).finish(),
// We can cast to mutable array as we know no mutation occurs there
Links:
// @ts-expect-error https://github.com/ipld/js-dag-pb/pull/59
/** @type {PB.PBLink[]} */ (links),
})
)
Expand Down Expand Up @@ -435,7 +434,6 @@ export const decode = bytes => {
...decodeMtime(mtime),
}
/** @type {UnixFS.PBLink[]} */
// @ts-expect-error - https://github.com/ipld/js-dag-pb/pull/59
const links = pb.Links

switch (message.Type) {
Expand Down
Loading

0 comments on commit 2aaed3d

Please sign in to comment.