You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Didn't make it into the autogenerated changelog as the commit message wasn't quite in the correct format (6e6d7a2)
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13-3
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ Note that in the browser build the object attached to `window` is now `window.Ip
28
28
29
29
License: MIT
30
30
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
31
+
31
32
* Object API refactor.
32
33
33
34
Object API methods that write DAG nodes now return a CID instead of a DAG node. Affected methods:
@@ -65,6 +66,7 @@ See https://github.com/ipld/js-ipld-dag-pb/pull/99 for more information.
65
66
66
67
License: MIT
67
68
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
69
+
68
70
* Files API methods `add*`, `cat*`, `get*` have moved from `files` to the root namespace.
69
71
70
72
Specifically, the following changes have been made:
@@ -88,6 +90,17 @@ Additionally, `addFromFs`, `addFromUrl`, `addFromStream` have moved from `util`
88
90
License: MIT
89
91
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
90
92
93
+
* Previously `swarm.peers` would throw an uncaught error if any peer in the response could not have its peerId or multiaddr validated.
94
+
95
+
This change catches errors that occur while validating the peer info. The returned array will contain an entry for every peer in the ipfs response. peer-info objects that couldn't be validated, now have an `error` property and a `rawPeerInfo` property. This at least means the count of peers in the response will be accurate, and there the info is available to the caller.
96
+
97
+
This means that callers now have to deal with peer-info objects that may
98
+
not have a `peer` or `addr` property.
99
+
100
+
Adds `nock` tests to exercice the code under different error conditions. Doing so uncovered a bug in our legacy go-ipfs <= 0.4.4 peer info parsing, which is also fixed. The code was trying to decapusalate the peerId from the multiaddr, but doing so trims the peerId rather than returning it.
101
+
102
+
License: MIT
103
+
Signed-off-by: Oli Evans <oli@tableflip.io>
91
104
92
105
93
106
<aname="26.1.2"></a>
@@ -875,6 +888,3 @@ Signed-off-by: Alan Shaw <alan@tableflip.io>
875
888
### Bug Fixes
876
889
877
890
* new fixed aegir ([93ac472](https://github.com/ipfs/js-ipfs-http-client/commit/93ac472))
0 commit comments