1 | # Change Log
|
2 |
|
3 | All notable changes to this project will be documented in this file.
|
4 | See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5 |
|
6 | ## [47.0.1](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@47.0.0...ipfs-http-client@47.0.1) (2020-09-09)
|
7 |
|
8 | **Note:** Version bump only for package ipfs-http-client
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | ## [46.1.1](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@46.1.0...ipfs-http-client@46.1.1) (2020-09-04)
|
15 |
|
16 | **Note:** Version bump only for package ipfs-http-client
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | # [46.1.0](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@46.0.1...ipfs-http-client@46.1.0) (2020-09-03)
|
23 |
|
24 |
|
25 | ### Bug Fixes
|
26 |
|
27 | * handle progress for empty files ([#3260](https://github.com/ipfs/js-ipfs/issues/3260)) ([9c36cb8](https://github.com/ipfs/js-ipfs/commit/9c36cb8f0c122e78c3cda3d0769d66c4d380787a)), closes [#3255](https://github.com/ipfs/js-ipfs/issues/3255)
|
28 |
|
29 |
|
30 | ### Features
|
31 |
|
32 | * add protocol list to ipfs id ([#3250](https://github.com/ipfs/js-ipfs/issues/3250)) ([1b6cf60](https://github.com/ipfs/js-ipfs/commit/1b6cf600a6b1348199457ca1fe6f314b6eff8c46))
|
33 | * add typeScript support ([#3236](https://github.com/ipfs/js-ipfs/issues/3236)) ([be26dd7](https://github.com/ipfs/js-ipfs/commit/be26dd723ed8c76efee149a993a8ade7f75f960e)), closes [#2945](https://github.com/ipfs/js-ipfs/issues/2945) [#1166](https://github.com/ipfs/js-ipfs/issues/1166)
|
34 | * add typescript support ([#3267](https://github.com/ipfs/js-ipfs/issues/3267)) ([6816bc6](https://github.com/ipfs/js-ipfs/commit/6816bc64ccb9bf852c2b9a26d9ddd19b9439dae6)), closes [#2945](https://github.com/ipfs/js-ipfs/issues/2945) [#1166](https://github.com/ipfs/js-ipfs/issues/1166)
|
35 | * ipns publish example ([#3207](https://github.com/ipfs/js-ipfs/issues/3207)) ([91faec6](https://github.com/ipfs/js-ipfs/commit/91faec6e3d89b0d9883b8d7815c276d44048e739))
|
36 | * store pins in datastore instead of a DAG ([#2771](https://github.com/ipfs/js-ipfs/issues/2771)) ([64b7fe4](https://github.com/ipfs/js-ipfs/commit/64b7fe41738cbe96d5a9075f0c01156c6f889c40))
|
37 | * update hapi to v20 ([#3245](https://github.com/ipfs/js-ipfs/issues/3245)) ([1aeef89](https://github.com/ipfs/js-ipfs/commit/1aeef89c73f42a2f6cceb7f0598400141ce40e23))
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | ## [46.0.1](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@46.0.0...ipfs-http-client@46.0.1) (2020-08-24)
|
44 |
|
45 |
|
46 | ### Bug Fixes
|
47 |
|
48 | * validate ipns records with inline public keys ([#3224](https://github.com/ipfs/js-ipfs/issues/3224)) ([5cc0e08](https://github.com/ipfs/js-ipfs/commit/5cc0e086b036e7ba40b09768b67b7067adca43c1))
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 | # [46.0.0](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@45.0.0...ipfs-http-client@46.0.0) (2020-08-12)
|
55 |
|
56 |
|
57 | ### Bug Fixes
|
58 |
|
59 | * support keychain without pass ([#3212](https://github.com/ipfs/js-ipfs/issues/3212)) ([7e0e85c](https://github.com/ipfs/js-ipfs/commit/7e0e85c2f003a09845b1dbe4200ca61366933b05))
|
60 | * **http-client:** allow stream option to be overridden ([#3205](https://github.com/ipfs/js-ipfs/issues/3205)) ([7aba835](https://github.com/ipfs/js-ipfs/commit/7aba8354134d0d1d8132892c338b474e20e56b76))
|
61 | * send blobs when running ipfs-http-client in the browser ([#3184](https://github.com/ipfs/js-ipfs/issues/3184)) ([6b24463](https://github.com/ipfs/js-ipfs/commit/6b24463431497bd13b579a730ad7063345729ad9)), closes [#3138](https://github.com/ipfs/js-ipfs/issues/3138)
|
62 |
|
63 |
|
64 | ### Features
|
65 |
|
66 | * share IPFS node between browser tabs ([#3081](https://github.com/ipfs/js-ipfs/issues/3081)) ([1b8b1b8](https://github.com/ipfs/js-ipfs/commit/1b8b1b822a252498889c54972a1f57e1fedc39d0)), closes [#3022](https://github.com/ipfs/js-ipfs/issues/3022)
|
67 |
|
68 |
|
69 | ### BREAKING CHANGES
|
70 |
|
71 | * remove support for key.export over the http api
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 | # [45.0.0](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@44.3.0...ipfs-http-client@45.0.0) (2020-07-16)
|
78 |
|
79 |
|
80 | ### Bug Fixes
|
81 |
|
82 | * optional arguments go in the options object ([#3118](https://github.com/ipfs/js-ipfs/issues/3118)) ([8cb8c73](https://github.com/ipfs/js-ipfs/commit/8cb8c73037e44894d756b70f344b3282463206f9))
|
83 | * small whitespace change ([0d4604d](https://github.com/ipfs/js-ipfs/commit/0d4604dde995edb69483c03622e38448d31eeb88))
|
84 | * still load dag-pb, dag-cbor and raw when specifying custom formats ([#3132](https://github.com/ipfs/js-ipfs/issues/3132)) ([a96e3bc](https://github.com/ipfs/js-ipfs/commit/a96e3bc9e3763004beafc24b98efa85ffa665622)), closes [#3129](https://github.com/ipfs/js-ipfs/issues/3129)
|
85 |
|
86 |
|
87 | ### Features
|
88 |
|
89 | * add interface and http client versions to version output ([#3125](https://github.com/ipfs/js-ipfs/issues/3125)) ([65f8b23](https://github.com/ipfs/js-ipfs/commit/65f8b23f550f939e94aaf6939894a513519e6d68)), closes [#2878](https://github.com/ipfs/js-ipfs/issues/2878)
|
90 | * store blocks by multihash instead of CID ([#3124](https://github.com/ipfs/js-ipfs/issues/3124)) ([03b17f5](https://github.com/ipfs/js-ipfs/commit/03b17f5e2d290e84aa0cb541079b79e468e7d1bd))
|
91 |
|
92 |
|
93 | ### BREAKING CHANGES
|
94 |
|
95 | * - not really
|
96 |
|
97 |
|
98 |
|
99 |
|
100 |
|
101 | # [44.3.0](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@44.2.0...ipfs-http-client@44.3.0) (2020-06-24)
|
102 |
|
103 |
|
104 | ### Features
|
105 |
|
106 | * add config.getAll ([#3071](https://github.com/ipfs/js-ipfs/issues/3071)) ([16587f1](https://github.com/ipfs/js-ipfs/commit/16587f16e1b3ae525c099b1975748510638aceee))
|
107 | * support loading arbitrary ipld formats in the http client ([#3073](https://github.com/ipfs/js-ipfs/issues/3073)) ([bd12773](https://github.com/ipfs/js-ipfs/commit/bd127730039ab79dd7ad22b31245939ee01a6514))
|
108 |
|
109 |
|
110 |
|
111 |
|
112 |
|
113 | # [44.2.0](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@44.1.1...ipfs-http-client@44.2.0) (2020-06-05)
|
114 |
|
115 |
|
116 | ### Features
|
117 |
|
118 | * sync with go-ipfs 0.5 ([#3013](https://github.com/ipfs/js-ipfs/issues/3013)) ([0900bb9](https://github.com/ipfs/js-ipfs/commit/0900bb9b8123edb689a137a006c5507d8503f693))
|
119 |
|
120 |
|
121 |
|
122 |
|
123 |
|
124 | ## [44.1.1](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@44.1.0...ipfs-http-client@44.1.1) (2020-05-29)
|
125 |
|
126 | **Note:** Version bump only for package ipfs-http-client
|
127 |
|
128 |
|
129 |
|
130 |
|
131 |
|
132 | # [44.1.0](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@44.0.3...ipfs-http-client@44.1.0) (2020-05-18)
|
133 |
|
134 |
|
135 | ### Bug Fixes
|
136 |
|
137 | * fixes browser script tag example ([#3034](https://github.com/ipfs/js-ipfs/issues/3034)) ([ee8b769](https://github.com/ipfs/js-ipfs/commit/ee8b769b96f7e3c8414bbf85853ab4e21e8fd11c)), closes [#3027](https://github.com/ipfs/js-ipfs/issues/3027)
|
138 | * remove node globals ([#2932](https://github.com/ipfs/js-ipfs/issues/2932)) ([d0d2f74](https://github.com/ipfs/js-ipfs/commit/d0d2f74cef4e439c6d2baadba1f1f9f52534fcba))
|
139 | * typeof bug when passing timeout to dag.get ([#3035](https://github.com/ipfs/js-ipfs/issues/3035)) ([026a542](https://github.com/ipfs/js-ipfs/commit/026a5423e00992968840c9236afe47bdab9ee834))
|
140 |
|
141 |
|
142 | ### Features
|
143 |
|
144 | * cancellable api calls ([#2993](https://github.com/ipfs/js-ipfs/issues/2993)) ([2b24f59](https://github.com/ipfs/js-ipfs/commit/2b24f590041a0df9da87b75ae2344232fe22fe3a)), closes [#3015](https://github.com/ipfs/js-ipfs/issues/3015)
|
145 |
|
146 |
|
147 |
|
148 |
|
149 |
|
150 | ## [44.0.3](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@44.0.2...ipfs-http-client@44.0.3) (2020-05-05)
|
151 |
|
152 | **Note:** Version bump only for package ipfs-http-client
|
153 |
|
154 |
|
155 |
|
156 |
|
157 |
|
158 | ## [44.0.2](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@44.0.1...ipfs-http-client@44.0.2) (2020-05-05)
|
159 |
|
160 |
|
161 | ### Bug Fixes
|
162 |
|
163 | * pass headers to request ([#3018](https://github.com/ipfs/js-ipfs/issues/3018)) ([3ba00f8](https://github.com/ipfs/js-ipfs/commit/3ba00f8c6a8a057c5776d539a671a74d9565fb29)), closes [#3017](https://github.com/ipfs/js-ipfs/issues/3017)
|
164 |
|
165 |
|
166 |
|
167 |
|
168 |
|
169 | ## [44.0.1](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@44.0.0...ipfs-http-client@44.0.1) (2020-04-28)
|
170 |
|
171 |
|
172 | ### Bug Fixes
|
173 |
|
174 | * do not abort dht operation on error responses ([#3001](https://github.com/ipfs/js-ipfs/issues/3001)) ([a69f782](https://github.com/ipfs/js-ipfs/commit/a69f7828ccd77ab502689e45ed1112c9f804b386)), closes [#2991](https://github.com/ipfs/js-ipfs/issues/2991)
|
175 | * fix gc tests ([#3008](https://github.com/ipfs/js-ipfs/issues/3008)) ([9f7f03e](https://github.com/ipfs/js-ipfs/commit/9f7f03e1ea672834b7f984657c7d7d7c768bcd6c))
|
176 |
|
177 |
|
178 |
|
179 |
|
180 |
|
181 | # [44.0.0](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@43.0.1...ipfs-http-client@44.0.0) (2020-04-16)
|
182 |
|
183 |
|
184 | ### Bug Fixes
|
185 |
|
186 | * make http api only accept POST requests ([#2977](https://github.com/ipfs/js-ipfs/issues/2977)) ([943d4a8](https://github.com/ipfs/js-ipfs/commit/943d4a8cf2d4c4ff5ecd4814c59cb0aae0cfa1fd))
|
187 | * pass timeout arg to server ([#2979](https://github.com/ipfs/js-ipfs/issues/2979)) ([049f085](https://github.com/ipfs/js-ipfs/commit/049f085fd206a1afb729fa825d8df38bf7aa8549))
|
188 |
|
189 |
|
190 | ### BREAKING CHANGES
|
191 |
|
192 | * Where we used to accept all and any HTTP methods, now only POST is
|
193 | accepted. The API client will now only send POST requests too.
|
194 |
|
195 | * test: add tests to make sure we are post-only
|
196 |
|
197 | * chore: upgrade ipfs-utils
|
198 |
|
199 | * fix: return 405 instead of 404 for bad methods
|
200 |
|
201 | * fix: reject browsers that do not send an origin
|
202 |
|
203 | Also fixes running interface tests over http in browsers against
|
204 | js-ipfs
|
205 |
|
206 |
|
207 |
|
208 |
|
209 |
|
210 | ## [43.0.1](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@43.0.0...ipfs-http-client@43.0.1) (2020-04-08)
|
211 |
|
212 |
|
213 | ### Bug Fixes
|
214 |
|
215 | * dht.findPeer API endpoint returns ndjson ([#2965](https://github.com/ipfs/js-ipfs/issues/2965)) ([524ff32](https://github.com/ipfs/js-ipfs/commit/524ff32901e43460fe5b364bc4903ab249792874))
|
216 |
|
217 |
|
218 |
|
219 |
|
220 |
|
221 | # 43.0.0 (2020-03-31)
|
222 |
|
223 |
|
224 | ### Bug Fixes
|
225 |
|
226 | * add default args for ipfs.add ([#2950](https://github.com/ipfs/js-ipfs/issues/2950)) ([a01f5b6](https://github.com/ipfs/js-ipfs/commit/a01f5b63cd92d225b10eff497f79caf4baab1973))
|
227 | * dont include util.textencoder in the browser ([#2919](https://github.com/ipfs/js-ipfs/issues/2919)) ([3207e3b](https://github.com/ipfs/js-ipfs/commit/3207e3b35c9c250332c03dd2a066e8ebcda35e43))
|
228 |
|
229 |
|
230 | ### chore
|
231 |
|
232 | * move mfs and multipart files into core ([#2811](https://github.com/ipfs/js-ipfs/issues/2811)) ([82b9e08](https://github.com/ipfs/js-ipfs/commit/82b9e085330e6c6290e6f3dd29678247984ffdce))
|
233 | * update dep version and ignore interop test for raw leaves ([#2747](https://github.com/ipfs/js-ipfs/issues/2747)) ([6376cec](https://github.com/ipfs/js-ipfs/commit/6376cec2b4beccef4751c498088f600ec7788118))
|
234 |
|
235 |
|
236 | ### Features
|
237 |
|
238 | * remove ky from http-client and utils ([#2810](https://github.com/ipfs/js-ipfs/issues/2810)) ([9bc9625](https://github.com/ipfs/js-ipfs/commit/9bc96252686d0bbbfdb2a3300bb17b80eafdaf00)), closes [#2801](https://github.com/ipfs/js-ipfs/issues/2801)
|
239 |
|
240 |
|
241 | ### BREAKING CHANGES
|
242 |
|
243 | * When the path passed to `ipfs.files.stat(path)` was a hamt sharded dir, the resovled
|
244 | value returned by js-ipfs previously had a `type` property of with a value of
|
245 | `'hamt-sharded-directory'`. To bring it in line with go-ipfs this value is now
|
246 | `'directory'`.
|
247 | * Files that fit into one block imported with either `--cid-version=1`
|
248 | or `--raw-leaves=true` previously returned a CID that resolved to
|
249 | a raw node (e.g. a buffer). Returned CIDs now resolve to a `dag-pb`
|
250 | node that contains a UnixFS entry. This is to allow setting metadata
|
251 | on small files with CIDv1.
|
252 |
|
253 |
|
254 |
|
255 |
|
256 |
|
257 | <a name="42.0.0"></a>
|
258 | # [42.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v42.0.0-pre.2...v42.0.0) (2020-02-04)
|
259 |
|
260 | There are significant and breaking API changes in this release. Please see the [migration guide](https://gist.github.com/alanshaw/04b2ddc35a6fff25c040c011ac6acf26).
|
261 |
|
262 | ### Bug Fixes
|
263 |
|
264 | * interface tests ([#1233](https://github.com/ipfs/js-ipfs-http-client/issues/1233)) ([d3eee0d](https://github.com/ipfs/js-ipfs-http-client/commit/d3eee0d))
|
265 |
|
266 | ### Features
|
267 |
|
268 | * `add` results now include `mode` and `mtime` properties if they were set.
|
269 |
|
270 | * `files.chmod` has been added. See the [core interface docs](https://github.com/ipfs/js-ipfs/blob/master/packages/interface-ipfs-core/SPEC/FILES.md#fileschmod) for info.
|
271 |
|
272 | * `files.flush` now returns the root CID for the path that was flushed (`/` by default)
|
273 |
|
274 | * `files.ls` results now include `mode` and `mtime` properties if they were set. See the [core interface docs](https://github.com/ipfs/js-ipfs/blob/master/packages/interface-ipfs-core/SPEC/FILES.md#ls) for more info.
|
275 |
|
276 | * `files.mkdir` now accepts `mode` and `mtime` options to allow setting mode and mtime metadata. See the [core interface docs](https://github.com/ipfs/js-ipfs/blob/master/packages/interface-ipfs-core/SPEC/FILES.md#filesmkdir) for more info.
|
277 |
|
278 | * `files.stat` result now includes `mode` and `mtime` properties if they were set. See the [core interface docs](https://github.com/ipfs/js-ipfs/blob/master/packages/interface-ipfs-core/SPEC/FILES.md#filesstat) for more info.
|
279 |
|
280 | * `files.touch` has been added. See the [core interface docs](https://github.com/ipfs/js-ipfs/blob/master/packages/interface-ipfs-core/SPEC/FILES.md#filestouch) for info.
|
281 |
|
282 | * `files.write` now accepts `mode` and `mtime` options to allow setting mode and mtime metadata. See the [core interface docs](https://github.com/ipfs/js-ipfs/blob/master/packages/interface-ipfs-core/SPEC/FILES.md#fileswrite) for more info.
|
283 |
|
284 | * `object.get` now accepts a `timeout` option. It will cause the method to throw with a `TimeoutError` if no data is received within the timeout window. It can be passed as a `number` or a `string`. If a `number` is passed it is interpreted as milliseconds, if a string is passed it is interpreted as a [human readable duration](https://www.npmjs.com/package/parse-duration).
|
285 |
|
286 | * `pin.add` now accepts a `timeout` option. It will cause the method to throw with a `TimeoutError` if no data is received within the timeout window. It can be passed as a `number` or a `string`. If a `number` is passed it is interpreted as milliseconds, if a string is passed it is interpreted as a [human readable duration](https://www.npmjs.com/package/parse-duration).
|
287 |
|
288 | * `refs` now accepts a `timeout` option. It will cause the method to throw with a `TimeoutError` if no data is received within the timeout window. It can be passed as a `number` or a `string`. If a `number` is passed it is interpreted as milliseconds, if a string is passed it is interpreted as a [human readable duration](https://www.npmjs.com/package/parse-duration).
|
289 |
|
290 | ### BREAKING CHANGES
|
291 |
|
292 | * Callbacks are no longer supported on any API methods. Please use a utility such as [`callbackify`](https://www.npmjs.com/package/callbackify) on API methods that return Promises to emulate previous behaviour. See the [migration guide](https://gist.github.com/alanshaw/04b2ddc35a6fff25c040c011ac6acf26#migrating-from-callbacks) for more info.
|
293 |
|
294 | * `add` now returns an async iterable.
|
295 |
|
296 | * `add` now accepts `mode` and `mtime` options on inputs to allow setting mode and mtime metadata for added files. See the [core interface docs](https://github.com/ipfs/js-ipfs/blob/master/packages/interface-ipfs-core/SPEC/FILES.md#add) for more info.
|
297 |
|
298 | * `add` results now contain a `cid` property (a [CID instance](https://github.com/multiformats/js-cid)) instead of a string `hash` property.
|
299 |
|
300 | * `addReadableStream`, `addPullStream` have been removed. Please see the [migration guide](https://gist.github.com/alanshaw/04b2ddc35a6fff25c040c011ac6acf26#migrating-to-async-iterables) for more info.
|
301 |
|
302 | * `addFromStream` has been removed. Use `add` instead.
|
303 |
|
304 | * `addFromFs` has been removed. Please use the exported `globSource` utility and pass the result to `add`. See the [glob source documentation](https://github.com/ipfs/js-ipfs-http-client#glob-source) for more details and an example.
|
305 |
|
306 | * `addFromURL` has been removed. Please use the exported `urlSource` utility and pass the result to `add`. See the [URL source documentation](https://github.com/ipfs/js-ipfs-http-client#url-source) for more details and an example.
|
307 |
|
308 | * `bitswap.stat` result has changed - `wantlist` and values are now an array of [CID](https://github.com/multiformats/js-cid) instances and `peers` is now a `string[]` of peer IDs.
|
309 |
|
310 | * `bitswap.wantlist` now returns an array of [CID](https://github.com/multiformats/js-cid) instances.
|
311 |
|
312 | * `block.rm` now returns an async iterable.
|
313 |
|
314 | * `block.rm` now yields objects of `{ cid: CID, error: Error }`.
|
315 |
|
316 | * `block.stat` result now contains a `cid` property (whose value is a [CID instance](https://github.com/multiformats/js-cid)) instead of a `key` property.
|
317 |
|
318 | * `dht.findProvs`, `dht.provide`, `dht.put` and `dht.query` now all return an async iterable.
|
319 |
|
320 | * `dht.findPeer`, `dht.findProvs`, `dht.provide`, `dht.put` and `dht.query` now yield/return an object `{ id: string, addrs: Multiaddr[] }` instead of a `PeerInfo` instance(s).
|
321 |
|
322 | * `files.lsPullStream` and `files.lsReadableStream` have been removed. Please see the [migration guide](https://gist.github.com/alanshaw/04b2ddc35a6fff25c040c011ac6acf26#migrating-to-async-iterables) for more info.
|
323 |
|
324 | * `files.ls` now returns an async iterable.
|
325 |
|
326 | * `files.ls` results now contain a `cid` property (whose value is a [CID instance](https://github.com/multiformats/js-cid)) instead of a `hash` property.
|
327 |
|
328 | * `files.ls` no longer takes a `long` option (in core) - you will receive all data by default.
|
329 |
|
330 | * `files.readPullStream` and `files.readReadableStream` have been removed. Please see the [migration guide](https://gist.github.com/alanshaw/04b2ddc35a6fff25c040c011ac6acf26#migrating-to-async-iterables) for more info.
|
331 |
|
332 | * `files.read` now returns an async iterable.
|
333 |
|
334 | * `files.stat` result now contains a `cid` property (whose value is a [CID instance](https://github.com/multiformats/js-cid)) instead of a `hash` property.
|
335 |
|
336 | * `get` now returns an async iterable. The `content` property value for objects yielded from the iterator is now an async iterable that yields [`BufferList`](https://github.com/rvagg/bl) objects.
|
337 |
|
338 | * `id` result has changed, the `addresses` property is now a `Multiaddr[]`
|
339 |
|
340 | * `name.resolve` now returns an async iterable. It yields increasingly more accurate resolved values as they are discovered until the best value is selected from the quorum of 16. The "best" resolved value is the last item yielded from the iterator. If you are interested only in this best value you could use `it-last` to extract it like so:
|
341 |
|
342 | ```js
|
343 | const last = require('it-last')
|
344 | await last(ipfs.name.resolve('/ipns/QmHash'))
|
345 | ```
|
346 |
|
347 | * `ls` now returns an async iterable.
|
348 |
|
349 | * `ls` results now contain a `cid` property (whose value is a [CID instance](https://github.com/multiformats/js-cid)) instead of a `hash` property.
|
350 |
|
351 | * `ls` results now include `mode` and `mtime` properties if they were set. See the [core interface docs](https://github.com/ipfs/js-ipfs/blob/master/packages/interface-ipfs-core/SPEC/FILES.md#ls) for more info.
|
352 |
|
353 | * `pin.add` results now contain a `cid` property (a [CID instance](https://github.com/multiformats/js-cid)) instead of a string `hash` property.
|
354 |
|
355 | * `pin.ls` now returns an async iterable.
|
356 |
|
357 | * `pin.ls` results now contain a `cid` property (a [CID instance](https://github.com/multiformats/js-cid)) instead of a string `hash` property.
|
358 |
|
359 | * `pin.rm` results now contain a `cid` property (a [CID instance](https://github.com/multiformats/js-cid)) instead of a string `hash` property.
|
360 |
|
361 | * `ping` now returns an async iterable.
|
362 |
|
363 | * `refs` and `refs.local` now return an async iterable.
|
364 |
|
365 | * `repo.gc` now returns an async iterable.
|
366 |
|
367 | * `stats.bw` now returns an async iterable.
|
368 |
|
369 | * `swarm.peers` now returns an array of objects with a `peer` property that is a `string`, instead of a `PeerId` instance.
|
370 |
|
371 | * `swarm.addrs` now returns an array of objects `{ id: string, addrs: Multiaddr[] }` instead of `PeerInfo` instances.
|
372 |
|
373 | * The protocol _name_ for peer IDs in multiaddrs has changed from 'ipfs' to 'p2p'. There's no changes to data on the wire but this change is seen when multiaddrs are converted to strings.
|
374 |
|
375 |
|
376 |
|
377 | <a name="42.0.0-pre.0"></a>
|
378 | # [42.0.0-pre.0](https://github.com/ipfs/js-ipfs-http-client/compare/v41.0.1...v42.0.0-pre.0) (2020-01-23)
|
379 |
|
380 |
|
381 |
|
382 | <a name="41.0.1"></a>
|
383 | ## [41.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v41.0.0...v41.0.1) (2020-01-23)
|
384 |
|
385 |
|
386 |
|
387 | <a name="41.0.0"></a>
|
388 | # [41.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v40.2.1...v41.0.0) (2020-01-12)
|
389 |
|
390 |
|
391 | ### Bug Fixes
|
392 |
|
393 | * return CIDs from files.flush ([#1216](https://github.com/ipfs/js-ipfs-http-client/issues/1216)) ([13f8d7a](https://github.com/ipfs/js-ipfs-http-client/commit/13f8d7a))
|
394 |
|
395 |
|
396 | ### Code Refactoring
|
397 |
|
398 | * removes format option ([#1218](https://github.com/ipfs/js-ipfs-http-client/issues/1218)) ([4ef26cd](https://github.com/ipfs/js-ipfs-http-client/commit/4ef26cd))
|
399 |
|
400 |
|
401 | ### BREAKING CHANGES
|
402 |
|
403 | * `format` option is no longer supported as everything is `dag-pb` all
|
404 | of the time.
|
405 |
|
406 | Follows on from https://github.com/ipfs/js-ipfs-mfs/pull/69
|
407 |
|
408 |
|
409 |
|
410 | <a name="40.2.1"></a>
|
411 | ## [40.2.1](https://github.com/ipfs/js-ipfs-http-client/compare/v40.2.0...v40.2.1) (2020-01-09)
|
412 |
|
413 |
|
414 |
|
415 | <a name="40.2.0"></a>
|
416 | # [40.2.0](https://github.com/ipfs/js-ipfs-http-client/compare/v40.1.0...v40.2.0) (2020-01-09)
|
417 |
|
418 |
|
419 | ### Features
|
420 |
|
421 | * support UnixFSv1.5 metadata ([#1186](https://github.com/ipfs/js-ipfs-http-client/issues/1186)) ([da9d17a](https://github.com/ipfs/js-ipfs-http-client/commit/da9d17a))
|
422 |
|
423 |
|
424 |
|
425 | <a name="40.1.0"></a>
|
426 | # [40.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v40.0.1...v40.1.0) (2019-12-10)
|
427 |
|
428 |
|
429 | ### Features
|
430 |
|
431 | * expose import concurrency controls ([#1187](https://github.com/ipfs/js-ipfs-http-client/issues/1187)) ([47093d5](https://github.com/ipfs/js-ipfs-http-client/commit/47093d5))
|
432 |
|
433 |
|
434 |
|
435 | <a name="40.0.1"></a>
|
436 | ## [40.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v40.0.0...v40.0.1) (2019-11-27)
|
437 |
|
438 |
|
439 | ### Bug Fixes
|
440 |
|
441 | * pin ls with multiple CIDs ([#1184](https://github.com/ipfs/js-ipfs-http-client/issues/1184)) ([2f3763f](https://github.com/ipfs/js-ipfs-http-client/commit/2f3763f))
|
442 |
|
443 |
|
444 |
|
445 | <a name="40.0.0"></a>
|
446 | # [40.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v39.0.2...v40.0.0) (2019-11-22)
|
447 |
|
448 |
|
449 | ### Code Refactoring
|
450 |
|
451 | * async await roundup ([#1173](https://github.com/ipfs/js-ipfs-http-client/issues/1173)) ([3e5967a](https://github.com/ipfs/js-ipfs-http-client/commit/3e5967a)), closes [#1103](https://github.com/ipfs/js-ipfs-http-client/issues/1103)
|
452 | * convert config API to async await ([#1155](https://github.com/ipfs/js-ipfs-http-client/issues/1155)) ([621973c](https://github.com/ipfs/js-ipfs-http-client/commit/621973c))
|
453 | * move files to root level ([#1150](https://github.com/ipfs/js-ipfs-http-client/issues/1150)) ([559a97d](https://github.com/ipfs/js-ipfs-http-client/commit/559a97d))
|
454 |
|
455 |
|
456 | ### Features
|
457 |
|
458 | * support name.resolve of peerid as cid ([#1145](https://github.com/ipfs/js-ipfs-http-client/issues/1145)) ([2d9afc8](https://github.com/ipfs/js-ipfs-http-client/commit/2d9afc8))
|
459 |
|
460 |
|
461 | ### Reverts
|
462 |
|
463 | * chore: update multiaddr to version 7.2.0 ([#1136](https://github.com/ipfs/js-ipfs-http-client/issues/1136)) ([#1143](https://github.com/ipfs/js-ipfs-http-client/issues/1143)) ([4131d09](https://github.com/ipfs/js-ipfs-http-client/commit/4131d09))
|
464 |
|
465 |
|
466 | ### BREAKING CHANGES
|
467 |
|
468 | * The `log.tail` method now returns an async iterator that yields log messages. Use it like:
|
469 | ```js
|
470 | for await (const message of ipfs.log.tail()) {
|
471 | console.log(message)
|
472 | }
|
473 | ```
|
474 | * The response to a call to `log.level` now returns an object that has camel cased keys. i.e. `Message` and `Error` properties have changed to `message` and `error`.
|
475 | * Dropped support for go-ipfs <= 0.4.4 in `swarm.peers` response.
|
476 | * The signature for `ipfs.mount` has changed from `ipfs.mount([ipfsPath], [ipnsPath])` to `ipfs.mount([options])`. Where `options` is an optional object that may contain two boolean properties `ipfsPath` and `ipnsPath`. The response object has also changed to be camel case. See https://docs.ipfs.io/reference/api/http/#api-v0-mount.
|
477 | * Default ping `count` of 1 in client has been removed. The default ping count is now whatever the IPFS node defaults it to (currently 10). If you specifically need 1 ping message then please pass `count: 1` in options for `ipfs.ping()`.
|
478 | * Multi parameter constructor options are no longer supported. To create a new IPFS HTTP client, pass a single parameter to the constructor. The parameter can be one of:
|
479 | * String, formatted as one of:
|
480 | * Multiaddr e.g. /ip4/127.0.0.1/tcp/5001
|
481 | * URL e.g. http://127.0.0.1:5001
|
482 | * [Multiaddr](https://www.npmjs.com/package/multiaddr) instance
|
483 | * Object, in format of either:
|
484 | * Address and path e.g. `{ apiAddr: '/ip4/127.0.0.1/tcp/5001': apiPath: '/api/v0' }` (Note: `apiAddr` can also be a string in URL form or a Multiaddr instance)
|
485 | * Node.js style address e.g. `{ host: '127.0.0.1', port: 5001, protocol: 'http' }`
|
486 | * Errors returned from request failures are now all [`HTTPError`](https://github.com/sindresorhus/ky/blob/c0d9d2bb07e4c122a08f019b39e9c55a4c9324f3/index.js#L117-L123)s which carry a `response` property. This is a [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response) that can be used to inspect _all_ information relating to the HTTP response. This means that the `err.status` or `err.statusCode` property should now be accessed via `err.response.status`.
|
487 | * files in `src/files-regular` have moved to `src`. The `src/files-mfs` directory has been renamed to `src/files`. If you were previously requiring files from these directories e.g. `require('ipfs-http-client/src/files-regular/add')` then please be aware that they have moved.
|
488 | * Kebab case options are no longer supported. Please use camel case option names as defined in the [`interface-ipfs-core`](https://github.com/ipfs/js-ipfs/tree/master/packages/interface-ipfs-core/SPEC) docs. e.g. the `allow-offline` option to `name.publish` should be passed as `allowOffline`.
|
489 | * Note that you can pass [additional query string parameters](https://github.com/ipfs/js-ipfs-http-client#additional-options) in the `searchParams` option available to all API methods.
|
490 |
|
491 |
|
492 |
|
493 | <a name="39.0.2"></a>
|
494 | ## [39.0.2](https://github.com/ipfs/js-ipfs-http-client/compare/v39.0.1...v39.0.2) (2019-10-23)
|
495 |
|
496 |
|
497 | ### Bug Fixes
|
498 |
|
499 | * use non-strict equivalence for options.preload ([#1134](https://github.com/ipfs/js-ipfs-http-client/issues/1134)) ([432e1e8](https://github.com/ipfs/js-ipfs-http-client/commit/432e1e8))
|
500 |
|
501 |
|
502 |
|
503 | <a name="39.0.1"></a>
|
504 | ## [39.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v39.0.0...v39.0.1) (2019-10-21)
|
505 |
|
506 |
|
507 | ### Bug Fixes
|
508 |
|
509 | * expose preload argument ([#1129](https://github.com/ipfs/js-ipfs-http-client/issues/1129)) ([c82b031](https://github.com/ipfs/js-ipfs-http-client/commit/c82b031))
|
510 | * increase default timeout and respect value passed to `ky.extend` ([#1130](https://github.com/ipfs/js-ipfs-http-client/issues/1130)) ([25b6043](https://github.com/ipfs/js-ipfs-http-client/commit/25b6043))
|
511 |
|
512 |
|
513 |
|
514 | <a name="39.0.0"></a>
|
515 | # [39.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v38.2.0...v39.0.0) (2019-10-15)
|
516 |
|
517 |
|
518 |
|
519 | <a name="38.2.0"></a>
|
520 | # [38.2.0](https://github.com/ipfs/js-ipfs-http-client/compare/v38.1.0...v38.2.0) (2019-10-06)
|
521 |
|
522 |
|
523 | ### Features
|
524 |
|
525 | * adds ipfs.block.rm method ([#1123](https://github.com/ipfs/js-ipfs-http-client/issues/1123)) ([2f0eff7](https://github.com/ipfs/js-ipfs-http-client/commit/2f0eff7))
|
526 |
|
527 |
|
528 |
|
529 | <a name="38.1.0"></a>
|
530 | # [38.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v38.0.1...v38.1.0) (2019-10-04)
|
531 |
|
532 |
|
533 | ### Bug Fixes
|
534 |
|
535 | * get correct remote node config ([5b53e22](https://github.com/ipfs/js-ipfs-http-client/commit/5b53e22))
|
536 | * pull in preconfigured chai from interface tests ([93765c1](https://github.com/ipfs/js-ipfs-http-client/commit/93765c1))
|
537 |
|
538 |
|
539 | ### Features
|
540 |
|
541 | * add methods for listing config profiles ([1c3d92a](https://github.com/ipfs/js-ipfs-http-client/commit/1c3d92a))
|
542 |
|
543 |
|
544 | ### BREAKING CHANGES
|
545 |
|
546 | * Configuration profiles API has changed:
|
547 | ```javascript
|
548 | Promise<{oldCfg, newCfg}> ipfs.config.profile(name, opts)
|
549 |
|
550 | // is now
|
551 | Promise<{old, new}> ipfs.config.profiles.apply(name, opts)
|
552 | ```
|
553 |
|
554 | * Possibly contentious; Adds `callbackify` as a dependency, see https://github.com/ipfs/js-ipfs/issues/2506
|
555 | for discussion.
|
556 |
|
557 |
|
558 |
|
559 | <a name="38.0.1"></a>
|
560 | ## [38.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v38.0.0...v38.0.1) (2019-10-04)
|
561 |
|
562 |
|
563 | ### Bug Fixes
|
564 |
|
565 | * pull in preconfigured chai from interface tests ([6a7eb8a](https://github.com/ipfs/js-ipfs-http-client/commit/6a7eb8a))
|
566 |
|
567 |
|
568 |
|
569 | <a name="38.0.0"></a>
|
570 | # [38.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v37.0.3...v38.0.0) (2019-09-25)
|
571 |
|
572 |
|
573 |
|
574 | <a name="37.0.3"></a>
|
575 | ## [37.0.3](https://github.com/ipfs/js-ipfs-http-client/compare/v37.0.2...v37.0.3) (2019-09-25)
|
576 |
|
577 |
|
578 |
|
579 | <a name="37.0.2"></a>
|
580 | ## [37.0.2](https://github.com/ipfs/js-ipfs-http-client/compare/v37.0.1...v37.0.2) (2019-09-20)
|
581 |
|
582 |
|
583 | ### Bug Fixes
|
584 |
|
585 | * only do the big file workaround in node and electron main ([077c997](https://github.com/ipfs/js-ipfs-http-client/commit/077c997))
|
586 |
|
587 |
|
588 |
|
589 | <a name="37.0.1"></a>
|
590 | ## [37.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v37.0.0...v37.0.1) (2019-09-17)
|
591 |
|
592 |
|
593 |
|
594 | <a name="37.0.0"></a>
|
595 | # [37.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v36.1.0...v37.0.0) (2019-09-17)
|
596 |
|
597 |
|
598 | ### Bug Fixes
|
599 |
|
600 | * big downloads in electron ([9c9aac8](https://github.com/ipfs/js-ipfs-http-client/commit/9c9aac8))
|
601 |
|
602 |
|
603 |
|
604 | <a name="36.1.0"></a>
|
605 | # [36.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v36.0.0...v36.1.0) (2019-09-17)
|
606 |
|
607 |
|
608 | ### Bug Fixes
|
609 |
|
610 | * fix electron renderer tests and a couple more bugs ([#1105](https://github.com/ipfs/js-ipfs-http-client/issues/1105)) ([a631a21](https://github.com/ipfs/js-ipfs-http-client/commit/a631a21))
|
611 |
|
612 |
|
613 |
|
614 | <a name="36.0.0"></a>
|
615 | # [36.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v35.1.0...v36.0.0) (2019-09-11)
|
616 |
|
617 |
|
618 |
|
619 | <a name="35.1.0"></a>
|
620 | # [35.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v35.0.0...v35.1.0) (2019-09-04)
|
621 |
|
622 |
|
623 | ### Features
|
624 |
|
625 | * add config profile endpoint ([#1030](https://github.com/ipfs/js-ipfs-http-client/issues/1030)) ([3aaa3ee](https://github.com/ipfs/js-ipfs-http-client/commit/3aaa3ee))
|
626 |
|
627 |
|
628 |
|
629 | <a name="35.0.0"></a>
|
630 | # [35.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v34.0.0...v35.0.0) (2019-09-04)
|
631 |
|
632 | ### BREAKING CHANGES
|
633 |
|
634 | Kebab case options (e.g. `wrap-with-directory`) are no longer supported in `ipfs.add`. Use camel case instead (e.g. `wrapWithDirectory`).
|
635 |
|
636 | <a name="34.0.0"></a>
|
637 | # [34.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v33.1.1...v34.0.0) (2019-08-29)
|
638 |
|
639 |
|
640 | ### Bug Fixes
|
641 |
|
642 | * **package:** update err-code to version 2.0.0 ([#1053](https://github.com/ipfs/js-ipfs-http-client/issues/1053)) ([3515070](https://github.com/ipfs/js-ipfs-http-client/commit/3515070))
|
643 |
|
644 |
|
645 | ### Features
|
646 |
|
647 | * browser pubsub ([#1059](https://github.com/ipfs/js-ipfs-http-client/issues/1059)) ([3764d06](https://github.com/ipfs/js-ipfs-http-client/commit/3764d06))
|
648 | * expose pin and preload arguments ([#1079](https://github.com/ipfs/js-ipfs-http-client/issues/1079)) ([e3ed6e9](https://github.com/ipfs/js-ipfs-http-client/commit/e3ed6e9))
|
649 | * support adding files via async iterator ([#1078](https://github.com/ipfs/js-ipfs-http-client/issues/1078)) ([377042b](https://github.com/ipfs/js-ipfs-http-client/commit/377042b))
|
650 |
|
651 |
|
652 |
|
653 | <a name="33.1.1"></a>
|
654 | ## [33.1.1](https://github.com/ipfs/js-ipfs-http-client/compare/v33.1.0...v33.1.1) (2019-07-26)
|
655 |
|
656 |
|
657 | ### Bug Fixes
|
658 |
|
659 | * allow passing timeout option to object stat ([#1055](https://github.com/ipfs/js-ipfs-http-client/issues/1055)) ([92b0594](https://github.com/ipfs/js-ipfs-http-client/commit/92b0594))
|
660 |
|
661 |
|
662 |
|
663 | <a name="33.1.0"></a>
|
664 | # [33.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v33.0.2...v33.1.0) (2019-07-11)
|
665 |
|
666 |
|
667 | ### Bug Fixes
|
668 |
|
669 | * changelog for 33.x does not include breaking change ([cd41a16](https://github.com/ipfs/js-ipfs-http-client/commit/cd41a16))
|
670 | * invalid multipart/form-data ([#948](https://github.com/ipfs/js-ipfs-http-client/issues/948)) ([9e6dfe7](https://github.com/ipfs/js-ipfs-http-client/commit/9e6dfe7)), closes [/tools.ietf.org/html/rfc7578#section-4](https://github.com//tools.ietf.org/html/rfc7578/issues/section-4)
|
671 |
|
672 |
|
673 | ### Features
|
674 |
|
675 | * add support for js-ipfs dag api and also some tests ([#957](https://github.com/ipfs/js-ipfs-http-client/issues/957)) ([8f378a3](https://github.com/ipfs/js-ipfs-http-client/commit/8f378a3))
|
676 |
|
677 |
|
678 |
|
679 | <a name="33.0.2"></a>
|
680 | ## [33.0.2](https://github.com/ipfs/js-ipfs-http-client/compare/v33.0.1...v33.0.2) (2019-07-11)
|
681 |
|
682 |
|
683 | ### Bug Fixes
|
684 |
|
685 | * make findprovs return all responses ([#1041](https://github.com/ipfs/js-ipfs-http-client/issues/1041)) ([63103bd](https://github.com/ipfs/js-ipfs-http-client/commit/63103bd))
|
686 |
|
687 |
|
688 |
|
689 | <a name="33.0.1"></a>
|
690 | ## [33.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v33.0.0...v33.0.1) (2019-07-10)
|
691 |
|
692 |
|
693 | ### Bug Fixes
|
694 |
|
695 | * response for findpeer and findprovs ([#1039](https://github.com/ipfs/js-ipfs-http-client/issues/1039)) ([5252f50](https://github.com/ipfs/js-ipfs-http-client/commit/5252f50))
|
696 |
|
697 |
|
698 |
|
699 | <a name="33.0.0"></a>
|
700 | # [33.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v32.0.1...v33.0.0) (2019-07-10)
|
701 |
|
702 |
|
703 | ### Bug Fixes
|
704 |
|
705 | * link to ipfs.io ([70cdf25](https://github.com/ipfs/js-ipfs-http-client/commit/70cdf25))
|
706 | * prepare for aegir release ([#1021](https://github.com/ipfs/js-ipfs-http-client/issues/1021)) ([806b206](https://github.com/ipfs/js-ipfs-http-client/commit/806b206))
|
707 | * sometimes no Addrs element is present in the response ([#1037](https://github.com/ipfs/js-ipfs-http-client/issues/1037)) ([a74b8f7](https://github.com/ipfs/js-ipfs-http-client/commit/a74b8f7))
|
708 | * **package:** update bignumber.js to version 9.0.0 ([#1024](https://github.com/ipfs/js-ipfs-http-client/issues/1024)) ([a04edac](https://github.com/ipfs/js-ipfs-http-client/commit/a04edac))
|
709 |
|
710 | ### BREAKING CHANGES
|
711 |
|
712 | `repo.gc` response objects have changed to `{ err, cid }`, where `err` is an `Error` instance and `cid` is a [`CID`](https://github.com/multiformats/js-cid) instance.
|
713 |
|
714 |
|
715 |
|
716 | <a name="32.0.1"></a>
|
717 | ## [32.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v32.0.0...v32.0.1) (2019-05-21)
|
718 |
|
719 |
|
720 | ### Bug Fixes
|
721 |
|
722 | * error reporting for non-JSON responses ([#1016](https://github.com/ipfs/js-ipfs-http-client/issues/1016)) ([4251c88](https://github.com/ipfs/js-ipfs-http-client/commit/4251c88)), closes [#912](https://github.com/ipfs/js-ipfs-http-client/issues/912) [#1000](https://github.com/ipfs/js-ipfs-http-client/issues/1000) [#1001](https://github.com/ipfs/js-ipfs-http-client/issues/1001)
|
723 | * send trickle param to trigger trickle dag builder ([#1015](https://github.com/ipfs/js-ipfs-http-client/issues/1015)) ([a28b009](https://github.com/ipfs/js-ipfs-http-client/commit/a28b009))
|
724 |
|
725 |
|
726 |
|
727 | <a name="32.0.0"></a>
|
728 | # [32.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v31.1.0...v32.0.0) (2019-05-21)
|
729 |
|
730 |
|
731 | ### Bug Fixes
|
732 |
|
733 | * handle empty array return value in dht.findProvs ([#1003](https://github.com/ipfs/js-ipfs-http-client/issues/1003)) ([15ab7c5](https://github.com/ipfs/js-ipfs-http-client/commit/15ab7c5))
|
734 |
|
735 |
|
736 | ### Chores
|
737 |
|
738 | * update ipld formats ([#1010](https://github.com/ipfs/js-ipfs-http-client/issues/1010)) ([a423d7f](https://github.com/ipfs/js-ipfs-http-client/commit/a423d7f))
|
739 |
|
740 |
|
741 | ### BREAKING CHANGES
|
742 |
|
743 | * The default string encoding for version 1 CIDs has changed to `base32`.
|
744 |
|
745 | IPLD formats have been updated to the latest versions. IPLD nodes returned by `ipfs.dag` and `ipfs.object` commands have significant breaking changes. If you are using these commands in your application you are likely to encounter the following changes to `dag-pb` nodes (the default node type that IPFS creates):
|
746 |
|
747 | * `DAGNode` properties have been renamed as follows:
|
748 | * `data` => `Data`
|
749 | * `links` => `Links`
|
750 | * `size` => `size` (Note: no change)
|
751 | * `DAGLink` properties have been renamed as follows:
|
752 | * `cid` => `Hash`
|
753 | * `name` => `Name`
|
754 | * `size` => `Tsize`
|
755 |
|
756 | See CHANGELOGs for each IPLD format for it's respective changes, you can read more about the [`dag-pb` changes in the CHANGELOG](https://github.com/ipld/js-ipld-dag-pb/blob/master)
|
757 |
|
758 | License: MIT
|
759 | Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
|
760 |
|
761 |
|
762 |
|
763 | <a name="31.1.0"></a>
|
764 | # [31.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v31.0.2...v31.1.0) (2019-05-16)
|
765 |
|
766 |
|
767 | ### Features
|
768 |
|
769 | * add support for File DOM API to files-regular ([#986](https://github.com/ipfs/js-ipfs-http-client/issues/986)) ([7b49f7e](https://github.com/ipfs/js-ipfs-http-client/commit/7b49f7e))
|
770 |
|
771 |
|
772 |
|
773 | <a name="31.0.2"></a>
|
774 | ## [31.0.2](https://github.com/ipfs/js-ipfs-http-client/compare/v31.0.1...v31.0.2) (2019-05-16)
|
775 |
|
776 |
|
777 | ### Bug Fixes
|
778 |
|
779 | * error handling for refs/refs local ([#997](https://github.com/ipfs/js-ipfs-http-client/issues/997)) ([391351d](https://github.com/ipfs/js-ipfs-http-client/commit/391351d))
|
780 |
|
781 |
|
782 |
|
783 | <a name="31.0.1"></a>
|
784 | ## [31.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v31.0.0...v31.0.1) (2019-05-15)
|
785 |
|
786 |
|
787 | ### Bug Fixes
|
788 |
|
789 | * config set with number ([#998](https://github.com/ipfs/js-ipfs-http-client/issues/998)) ([4f21bef](https://github.com/ipfs/js-ipfs-http-client/commit/4f21bef)), closes [#881](https://github.com/ipfs/js-ipfs-http-client/issues/881)
|
790 |
|
791 |
|
792 |
|
793 | <a name="31.0.0"></a>
|
794 | # [31.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v30.1.4...v31.0.0) (2019-05-13)
|
795 |
|
796 |
|
797 | ### Features
|
798 |
|
799 | * refs endpoint ([#978](https://github.com/ipfs/js-ipfs-http-client/issues/978)) ([a741e10](https://github.com/ipfs/js-ipfs-http-client/commit/a741e10))
|
800 |
|
801 |
|
802 | ### BREAKING CHANGES
|
803 |
|
804 | * ipfs.refs now returns objects with camelCase properties not PascalCase properties. i.e. `{ ref, err }` not `{ Ref, Err }`
|
805 |
|
806 |
|
807 |
|
808 | <a name="30.1.4"></a>
|
809 | ## [30.1.4](https://github.com/ipfs/js-ipfs-http-client/compare/v30.1.3...v30.1.4) (2019-04-29)
|
810 |
|
811 |
|
812 | ### Bug Fixes
|
813 |
|
814 | * uncaught error: stream.push() after EOF ([#980](https://github.com/ipfs/js-ipfs-http-client/issues/980)) ([cc677f0](https://github.com/ipfs/js-ipfs-http-client/commit/cc677f0)), closes [#967](https://github.com/ipfs/js-ipfs-http-client/issues/967)
|
815 | * update Babel in upload-file-via-browser example ([#968](https://github.com/ipfs/js-ipfs-http-client/issues/968)) ([#970](https://github.com/ipfs/js-ipfs-http-client/issues/970)) ([17d49de](https://github.com/ipfs/js-ipfs-http-client/commit/17d49de))
|
816 |
|
817 |
|
818 |
|
819 | <a name="30.1.3"></a>
|
820 | ## [30.1.3](https://github.com/ipfs/js-ipfs-http-client/compare/v30.1.2...v30.1.3) (2019-04-11)
|
821 |
|
822 |
|
823 | ### Bug Fixes
|
824 |
|
825 | * fix missing buffer bundling with browserify ([#966](https://github.com/ipfs/js-ipfs-http-client/issues/966)) ([944a64b](https://github.com/ipfs/js-ipfs-http-client/commit/944a64b)), closes [#964](https://github.com/ipfs/js-ipfs-http-client/issues/964)
|
826 |
|
827 |
|
828 |
|
829 | <a name="30.1.2"></a>
|
830 | ## [30.1.2](https://github.com/ipfs/js-ipfs-http-client/compare/v30.1.1...v30.1.2) (2019-04-09)
|
831 |
|
832 |
|
833 | ### Bug Fixes
|
834 |
|
835 | * https multiaddr support in constructor ([#965](https://github.com/ipfs/js-ipfs-http-client/issues/965)) ([5da0bcd](https://github.com/ipfs/js-ipfs-http-client/commit/5da0bcd))
|
836 |
|
837 |
|
838 |
|
839 | <a name="30.1.1"></a>
|
840 | ## [30.1.1](https://github.com/ipfs/js-ipfs-http-client/compare/v30.1.0...v30.1.1) (2019-03-28)
|
841 |
|
842 |
|
843 |
|
844 | <a name="30.1.0"></a>
|
845 | # [30.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v30.0.0...v30.1.0) (2019-03-15)
|
846 |
|
847 |
|
848 | ### Bug Fixes
|
849 |
|
850 | * dht.findProvs.js handle valid hash but no providers ([#950](https://github.com/ipfs/js-ipfs-http-client/issues/950)) ([c3cde76](https://github.com/ipfs/js-ipfs-http-client/commit/c3cde76))
|
851 |
|
852 |
|
853 | ### Features
|
854 |
|
855 | * provide access to multicodec ([#954](https://github.com/ipfs/js-ipfs-http-client/issues/954)) ([0c109ab](https://github.com/ipfs/js-ipfs-http-client/commit/0c109ab))
|
856 |
|
857 |
|
858 | ### Performance Improvements
|
859 |
|
860 | * reduce bundle size ([#915](https://github.com/ipfs/js-ipfs-http-client/issues/915)) ([87dff04](https://github.com/ipfs/js-ipfs-http-client/commit/87dff04))
|
861 |
|
862 |
|
863 |
|
864 | <a name="30.0.0"></a>
|
865 | # [30.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v29.1.1...v30.0.0) (2019-03-13)
|
866 |
|
867 |
|
868 | ### Bug Fixes
|
869 |
|
870 | * windows travis build ([#952](https://github.com/ipfs/js-ipfs-http-client/issues/952)) ([05f2f6c](https://github.com/ipfs/js-ipfs-http-client/commit/05f2f6c))
|
871 |
|
872 |
|
873 | ### Code Refactoring
|
874 |
|
875 | * export types and utilities statically ([#951](https://github.com/ipfs/js-ipfs-http-client/issues/951)) ([d1e99e7](https://github.com/ipfs/js-ipfs-http-client/commit/d1e99e7)), closes [#902](https://github.com/ipfs/js-ipfs-http-client/issues/902)
|
876 |
|
877 |
|
878 | ### Features
|
879 |
|
880 | * pubsub unsubscribe all ([#956](https://github.com/ipfs/js-ipfs-http-client/issues/956)) ([a57a411](https://github.com/ipfs/js-ipfs-http-client/commit/a57a411))
|
881 |
|
882 |
|
883 | ### BREAKING CHANGES
|
884 |
|
885 | * `ipfs.util.isIPFS` has moved to a static export and should be accessed via `const { isIPFS } = require('ipfs-http-client')`.
|
886 |
|
887 | The modules available under `ipfs.types.*` have also become static exports.
|
888 |
|
889 | `ipfs.util.crypto` has been removed as it is not a dependency of `ipfs-http-client` so reduces the bundle size. If you need to use libp2p crypto primitives then please see the [js-libp2p-crypto](https://github.com/libp2p/js-libp2p-crypto) project for info on how to use it in your project.
|
890 |
|
891 | Finally `ipfs.util.getEndpointConfig` is now a direct instance method, `ipfs.getEndpointConfig`
|
892 |
|
893 | License: MIT
|
894 | Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
|
895 |
|
896 |
|
897 |
|
898 | <a name="29.1.1"></a>
|
899 | ## [29.1.1](https://github.com/ipfs/js-ipfs-http-client/compare/v29.1.0...v29.1.1) (2019-02-13)
|
900 |
|
901 |
|
902 | ### Performance Improvements
|
903 |
|
904 | * use test profile ([#942](https://github.com/ipfs/js-ipfs-http-client/issues/942)) ([2c90620](https://github.com/ipfs/js-ipfs-http-client/commit/2c90620))
|
905 |
|
906 |
|
907 |
|
908 | <a name="29.1.0"></a>
|
909 | # [29.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v29.0.1...v29.1.0) (2019-01-29)
|
910 |
|
911 |
|
912 | ### Bug Fixes
|
913 |
|
914 | * throw on invalid multiaddr to constructor ([#934](https://github.com/ipfs/js-ipfs-http-client/issues/934)) ([bcbf0d2](https://github.com/ipfs/js-ipfs-http-client/commit/bcbf0d2))
|
915 |
|
916 |
|
917 | ### Features
|
918 |
|
919 | * return protocol from getEndpointConfig ([#935](https://github.com/ipfs/js-ipfs-http-client/issues/935)) ([12ddaa3](https://github.com/ipfs/js-ipfs-http-client/commit/12ddaa3))
|
920 |
|
921 |
|
922 |
|
923 | <a name="29.0.1"></a>
|
924 | ## [29.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v29.0.0...v29.0.1) (2019-01-24)
|
925 |
|
926 |
|
927 | ### Bug Fixes
|
928 |
|
929 | * bundle in meteor ([#931](https://github.com/ipfs/js-ipfs-http-client/issues/931)) ([431c442](https://github.com/ipfs/js-ipfs-http-client/commit/431c442)), closes [#10411](https://github.com/ipfs/js-ipfs-http-client/issues/10411)
|
930 |
|
931 |
|
932 |
|
933 | <a name="29.0.0"></a>
|
934 | # [29.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v28.1.2...v29.0.0) (2019-01-15)
|
935 |
|
936 |
|
937 | ### Code Refactoring
|
938 |
|
939 | * switch to bignumber.js ([#927](https://github.com/ipfs/js-ipfs-http-client/issues/927)) ([1a54ae5](https://github.com/ipfs/js-ipfs-http-client/commit/1a54ae5))
|
940 |
|
941 |
|
942 | ### BREAKING CHANGES
|
943 |
|
944 | * All API methods that returned [`big.js`](https://github.com/MikeMcl/big.js/) instances now return [`bignumber.js`](https://github.com/MikeMcl/bignumber.js/) instances.
|
945 |
|
946 | License: MIT
|
947 | Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
|
948 |
|
949 |
|
950 |
|
951 | <a name="28.1.2"></a>
|
952 | ## [28.1.2](https://github.com/ipfs/js-ipfs-http-client/compare/v28.1.1...v28.1.2) (2019-01-14)
|
953 |
|
954 |
|
955 |
|
956 | <a name="28.1.1"></a>
|
957 | ## [28.1.1](https://github.com/ipfs/js-ipfs-http-client/compare/v28.1.0...v28.1.1) (2019-01-04)
|
958 |
|
959 |
|
960 |
|
961 | <a name="28.1.0"></a>
|
962 | # [28.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v28.0.3...v28.1.0) (2018-12-16)
|
963 |
|
964 |
|
965 | ### Features
|
966 |
|
967 | * add cidBase option to resolve ([#893](https://github.com/ipfs/js-ipfs-http-client/issues/893)) ([ec6285d](https://github.com/ipfs/js-ipfs-http-client/commit/ec6285d))
|
968 |
|
969 |
|
970 |
|
971 | <a name="28.0.3"></a>
|
972 | ## [28.0.3](https://github.com/ipfs/js-ipfs-http-client/compare/v28.0.2...v28.0.3) (2018-12-15)
|
973 |
|
974 |
|
975 | ### Bug Fixes
|
976 |
|
977 | * re-allow passing path to ls ([#914](https://github.com/ipfs/js-ipfs-http-client/issues/914)) ([442bcdd](https://github.com/ipfs/js-ipfs-http-client/commit/442bcdd))
|
978 |
|
979 |
|
980 |
|
981 | <a name="28.0.2"></a>
|
982 | ## [28.0.2](https://github.com/ipfs/js-ipfs-http-client/compare/v28.0.1...v28.0.2) (2018-12-14)
|
983 |
|
984 |
|
985 |
|
986 | <a name="28.0.1"></a>
|
987 | ## [28.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v28.0.0...v28.0.1) (2018-12-13)
|
988 |
|
989 |
|
990 | ### Bug Fixes
|
991 |
|
992 | * disable just the rule we're breaking ([bed2687](https://github.com/ipfs/js-ipfs-http-client/commit/bed2687))
|
993 | * properly serialize CID instances ([45b344c](https://github.com/ipfs/js-ipfs-http-client/commit/45b344c))
|
994 | * skip test that go-ipfs cannot pass ([0e15761](https://github.com/ipfs/js-ipfs-http-client/commit/0e15761))
|
995 |
|
996 |
|
997 |
|
998 | <a name="28.0.0"></a>
|
999 | # [28.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v27.1.0...v28.0.0) (2018-12-11)
|
1000 |
|
1001 |
|
1002 | ### Bug Fixes
|
1003 |
|
1004 | * case for addFromURL ([#907](https://github.com/ipfs/js-ipfs-http-client/issues/907)) ([99ac7be](https://github.com/ipfs/js-ipfs-http-client/commit/99ac7be))
|
1005 |
|
1006 |
|
1007 | ### Code Refactoring
|
1008 |
|
1009 | * dht api ([#890](https://github.com/ipfs/js-ipfs-http-client/issues/890)) ([05a84a4](https://github.com/ipfs/js-ipfs-http-client/commit/05a84a4))
|
1010 |
|
1011 |
|
1012 | ### BREAKING CHANGES
|
1013 |
|
1014 | * DHT API methods renamed and return types changed
|
1015 |
|
1016 | * `ipfs.dht.findprovs` renamed to `ipfs.dht.findProvs` and returns an array of [PeerInfo](https://github.com/libp2p/js-peer-info)
|
1017 | * `ipfs.dht.findpeer` renamed to `ipfs.dht.findPeer` and returns a [PeerInfo](https://github.com/libp2p/js-peer-info)
|
1018 | * `ipfs.dht.query` now returns an array of [PeerId](https://github.com/libp2p/js-peer-id)
|
1019 | * [More info](https://github.com/ipfs/js-ipfs/blob/master/packages/interface-ipfs-core/SPEC/DHT.md)
|
1020 |
|
1021 |
|
1022 |
|
1023 | <a name="27.1.0"></a>
|
1024 | # [27.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v27.0.0...v27.1.0) (2018-12-05)
|
1025 |
|
1026 |
|
1027 | ### Bug Fixes
|
1028 |
|
1029 | * add docs for breaking change ([#898](https://github.com/ipfs/js-ipfs-http-client/issues/898)) ([3e794ac](https://github.com/ipfs/js-ipfs-http-client/commit/3e794ac))
|
1030 |
|
1031 |
|
1032 | ### Features
|
1033 |
|
1034 | * add files.ls*Stream methods ([#903](https://github.com/ipfs/js-ipfs-http-client/issues/903)) ([705855e](https://github.com/ipfs/js-ipfs-http-client/commit/705855e))
|
1035 |
|
1036 |
|
1037 |
|
1038 | <a name="27.0.0"></a>
|
1039 | # [27.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v26.1.2...v27.0.0) (2018-11-28)
|
1040 |
|
1041 |
|
1042 | ### Bug Fixes
|
1043 |
|
1044 | * also retry with misnemed format "dag-cbor" as "cbor" ([#888](https://github.com/ipfs/js-ipfs-http-client/issues/888)) ([348a144](https://github.com/ipfs/js-ipfs-http-client/commit/348a144))
|
1045 | * better input validation for add ([#876](https://github.com/ipfs/js-ipfs-http-client/issues/876)) ([315b7f7](https://github.com/ipfs/js-ipfs-http-client/commit/315b7f7))
|
1046 | * fix log.tail by calling add after listening for events ([#882](https://github.com/ipfs/js-ipfs-http-client/issues/882)) ([da35b0f](https://github.com/ipfs/js-ipfs-http-client/commit/da35b0f))
|
1047 | * handle peer-info validation errors ([#887](https://github.com/ipfs/js-ipfs-http-client/issues/887)) ([6e6d7a2](https://github.com/ipfs/js-ipfs-http-client/commit/6e6d7a2)), closes [#885](https://github.com/ipfs/js-ipfs-http-client/issues/885)
|
1048 | * updates ipld-dag-pb dep to version without .cid properties ([#889](https://github.com/ipfs/js-ipfs-http-client/issues/889)) ([ac30a82](https://github.com/ipfs/js-ipfs-http-client/commit/ac30a82))
|
1049 |
|
1050 |
|
1051 | ### Code Refactoring
|
1052 |
|
1053 | * object API write methods now return CIDs ([#896](https://github.com/ipfs/js-ipfs-http-client/issues/896)) ([38bed14](https://github.com/ipfs/js-ipfs-http-client/commit/38bed14))
|
1054 | * rename library to ipfs-http-client ([#897](https://github.com/ipfs/js-ipfs-http-client/issues/897)) ([d40cb6c](https://github.com/ipfs/js-ipfs-http-client/commit/d40cb6c))
|
1055 | * updated files API ([#878](https://github.com/ipfs/js-ipfs-http-client/issues/878)) ([39f4733](https://github.com/ipfs/js-ipfs-http-client/commit/39f4733))
|
1056 |
|
1057 |
|
1058 | ### BREAKING CHANGES
|
1059 |
|
1060 | * the `ipfs-api` library has been renamed to `ipfs-http-client`.
|
1061 |
|
1062 | Now install via `npm install ipfs-http-client`.
|
1063 |
|
1064 | Note that in the browser build the object attached to `window` is now `window.IpfsHttpClient`.
|
1065 |
|
1066 | License: MIT
|
1067 | Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
|
1068 |
|
1069 | * Object API refactor.
|
1070 |
|
1071 | Object API methods that write DAG nodes now return a CID instead of a DAG node. Affected methods:
|
1072 |
|
1073 | * `ipfs.object.new`
|
1074 | * `ipfs.object.patch.addLink`
|
1075 | * `ipfs.object.patch.appendData`
|
1076 | * `ipfs.object.patch.rmLink`
|
1077 | * `ipfs.object.patch.setData`
|
1078 | * `ipfs.object.put`
|
1079 |
|
1080 | Example:
|
1081 |
|
1082 | ```js
|
1083 | // Before
|
1084 | const dagNode = await ipfs.object.new()
|
1085 | ```
|
1086 |
|
1087 | ```js
|
1088 | // After
|
1089 | const cid = await ipfs.object.new() // now returns a CID
|
1090 | const dagNode = await ipfs.object.get(cid) // fetch the DAG node that was created
|
1091 | ```
|
1092 |
|
1093 | IMPORTANT: `DAGNode` instances, which are part of the IPLD dag-pb format have been refactored.
|
1094 |
|
1095 | These instances no longer have `multihash`, `cid` or `serialized` properties.
|
1096 |
|
1097 | This effects the following API methods that return these types of objects:
|
1098 |
|
1099 | * `ipfs.object.get`
|
1100 | * `ipfs.dag.get`
|
1101 |
|
1102 | See https://github.com/ipld/js-ipld-dag-pb/pull/99 for more information.
|
1103 |
|
1104 | License: MIT
|
1105 | Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
|
1106 |
|
1107 | * Files API methods `add*`, `cat*`, `get*` have moved from `files` to the root namespace.
|
1108 |
|
1109 | Specifically, the following changes have been made:
|
1110 |
|
1111 | * `ipfs.files.add` => `ipfs.add`
|
1112 | * `ipfs.files.addPullStream` => `ipfs.addPullStream`
|
1113 | * `ipfs.files.addReadableStream` => `ipfs.addReadableStream`
|
1114 | * `ipfs.files.cat` => `ipfs.cat`
|
1115 | * `ipfs.files.catPullStream` => `ipfs.catPullStream`
|
1116 | * `ipfs.files.catReadableStream` => `ipfs.catReadableStream`
|
1117 | * `ipfs.files.get` => `ipfs.get`
|
1118 | * `ipfs.files.getPullStream` => `ipfs.getPullStream`
|
1119 | * `ipfs.files.getReadableStream` => `ipfs.getReadableStream`
|
1120 |
|
1121 | Additionally, `addFromFs`, `addFromURL`, `addFromStream` have moved from `util` to the root namespace:
|
1122 |
|
1123 | * `ipfs.util.addFromFs` => `ipfs.addFromFs`
|
1124 | * `ipfs.util.addFromURL` => `ipfs.addFromURL`
|
1125 | * `ipfs.util.addFromStream` => `ipfs.addFromStream`
|
1126 |
|
1127 | License: MIT
|
1128 | Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
|
1129 |
|
1130 | * Previously `swarm.peers` would throw an uncaught error if any peer in the response could not have its peerId or multiaddr validated.
|
1131 |
|
1132 | 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.
|
1133 |
|
1134 | This means that callers now have to deal with peer-info objects that may
|
1135 | not have a `peer` or `addr` property.
|
1136 |
|
1137 | 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.
|
1138 |
|
1139 | License: MIT
|
1140 | Signed-off-by: Oli Evans <oli@tableflip.io>
|
1141 |
|
1142 |
|
1143 | <a name="26.1.2"></a>
|
1144 | ## [26.1.2](https://github.com/ipfs/js-ipfs-http-client/compare/v26.1.0...v26.1.2) (2018-11-03)
|
1145 |
|
1146 |
|
1147 | ### Features
|
1148 |
|
1149 | * go-ipfs 0.4.18 ([e3e4d6c](https://github.com/ipfs/js-ipfs-http-client/commit/e3e4d6c))
|
1150 | * upload example works with big files ([62b844f](https://github.com/ipfs/js-ipfs-http-client/commit/62b844f))
|
1151 |
|
1152 |
|
1153 |
|
1154 | <a name="26.1.1"></a>
|
1155 | ## [26.1.1](https://github.com/ipfs/js-ipfs-http-client/compare/v26.1.0...v26.1.1) (2018-11-03)
|
1156 |
|
1157 |
|
1158 | ### Features
|
1159 |
|
1160 | * go-ipfs 0.4.18 ([9178e7d](https://github.com/ipfs/js-ipfs-http-client/commit/9178e7d))
|
1161 |
|
1162 |
|
1163 |
|
1164 | <a name="26.1.0"></a>
|
1165 | # [26.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v26.0.3...v26.1.0) (2018-10-31)
|
1166 |
|
1167 |
|
1168 | ### Bug Fixes
|
1169 |
|
1170 | * make ping not mix errors with responses ([#883](https://github.com/ipfs/js-ipfs-http-client/issues/883)) ([80725f2](https://github.com/ipfs/js-ipfs-http-client/commit/80725f2))
|
1171 |
|
1172 |
|
1173 |
|
1174 | <a name="26.0.3"></a>
|
1175 | ## [26.0.3](https://github.com/ipfs/js-ipfs-http-client/compare/v26.0.2...v26.0.3) (2018-10-31)
|
1176 |
|
1177 |
|
1178 |
|
1179 | <a name="26.0.2"></a>
|
1180 | ## [26.0.2](https://github.com/ipfs/js-ipfs-http-client/compare/v26.0.0...v26.0.2) (2018-10-31)
|
1181 |
|
1182 |
|
1183 | ### Bug Fixes
|
1184 |
|
1185 | * pin.ls ignored opts when hash was present ([#875](https://github.com/ipfs/js-ipfs-http-client/issues/875)) ([0b46750](https://github.com/ipfs/js-ipfs-http-client/commit/0b46750)), closes [/github.com/ipfs-shipyard/ipfs-companion/issues/360#issuecomment-427525801](https://github.com//github.com/ipfs-shipyard/ipfs-companion/issues/360/issues/issuecomment-427525801)
|
1186 |
|
1187 |
|
1188 |
|
1189 | <a name="26.0.1"></a>
|
1190 | ## [26.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v26.0.0...v26.0.1) (2018-10-30)
|
1191 |
|
1192 |
|
1193 |
|
1194 | <a name="26.0.0"></a>
|
1195 | # [26.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v25.0.0...v26.0.0) (2018-10-30)
|
1196 |
|
1197 |
|
1198 | ### Bug Fixes
|
1199 |
|
1200 | * add missing and remove unused dependencies ([#879](https://github.com/ipfs/js-ipfs-http-client/issues/879)) ([979d8b5](https://github.com/ipfs/js-ipfs-http-client/commit/979d8b5))
|
1201 |
|
1202 |
|
1203 | ### Chores
|
1204 |
|
1205 | * remove ipld formats re-export ([#872](https://github.com/ipfs/js-ipfs-http-client/issues/872)) ([c534375](https://github.com/ipfs/js-ipfs-http-client/commit/c534375))
|
1206 | * update to ipld-dag-cbor 0.13 ([0652ac0](https://github.com/ipfs/js-ipfs-http-client/commit/0652ac0))
|
1207 |
|
1208 |
|
1209 | ### Features
|
1210 |
|
1211 | * ipns over pubsub ([#846](https://github.com/ipfs/js-ipfs-http-client/issues/846)) ([ef49e95](https://github.com/ipfs/js-ipfs-http-client/commit/ef49e95))
|
1212 |
|
1213 |
|
1214 | ### BREAKING CHANGES
|
1215 |
|
1216 | * dag-cbor nodes now represent links as CID objects
|
1217 |
|
1218 | The API for [dag-cbor](https://github.com/ipld/js-ipld-dag-cbor) changed.
|
1219 | Links are no longer represented as JSON objects (`{"/": "base-encoded-cid"}`,
|
1220 | but as [CID objects](https://github.com/ipld/js-cid). `ipfs.dag.get()` and
|
1221 | now always return links as CID objects. `ipfs.dag.put()` also expects links
|
1222 | to be represented as CID objects. The old-style JSON objects representation
|
1223 | is still supported, but deprecated.
|
1224 |
|
1225 | Prior to this change:
|
1226 |
|
1227 | ```js
|
1228 | const cid = new CID('QmXed8RihWcWFXRRmfSRG9yFjEbXNxu1bDwgCFAN8Dxcq5')
|
1229 | // Link as JSON object representation
|
1230 | const putCid = await ipfs.dag.put({link: {'/': cid.toBaseEncodedString()}})
|
1231 | const result = await ipfs.dag.get(putCid)
|
1232 | console.log(result.value)
|
1233 |
|
1234 | ```
|
1235 |
|
1236 | Output:
|
1237 |
|
1238 | ```js
|
1239 | { link:
|
1240 | { '/':
|
1241 | <Buffer 12 20 8a…> } }
|
1242 | ```
|
1243 |
|
1244 | Now:
|
1245 |
|
1246 | ```js
|
1247 | const cid = new CID('QmXed8RihWcWFXRRmfSRG9yFjEbXNxu1bDwgCFAN8Dxcq5')
|
1248 | // Link as CID object
|
1249 | const putCid = await ipfs.dag.put({link: cid})
|
1250 | const result = await ipfs.dag.get(putCid)
|
1251 | console.log(result.value)
|
1252 | ```
|
1253 |
|
1254 | Output:
|
1255 |
|
1256 | ```js
|
1257 | { link:
|
1258 | CID {
|
1259 | codec: 'dag-pb',
|
1260 | version: 0,
|
1261 | multihash:
|
1262 | <Buffer 12 20 8a…> } }
|
1263 | ```
|
1264 |
|
1265 | See https://github.com/ipld/ipld/issues/44 for more information on why this
|
1266 | change was made.
|
1267 | * remove `types.dagCBOR` and `types.dagPB` from public API
|
1268 |
|
1269 | If you need the `ipld-dag-cbor` or `ipld-dag-pb` module in the Browser,
|
1270 | you need to bundle them yourself.
|
1271 |
|
1272 |
|
1273 |
|
1274 | <a name="25.0.0"></a>
|
1275 | # [25.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v24.0.2...v25.0.0) (2018-10-15)
|
1276 |
|
1277 |
|
1278 | ### Bug Fixes
|
1279 |
|
1280 | * >150mb bodies no longer crashing Chromium ([#868](https://github.com/ipfs/js-ipfs-http-client/issues/868)) ([180da77](https://github.com/ipfs/js-ipfs-http-client/commit/180da77)), closes [#654](https://github.com/ipfs/js-ipfs-http-client/issues/654)
|
1281 | * add bl module to package dependencies ([#853](https://github.com/ipfs/js-ipfs-http-client/issues/853)) ([#854](https://github.com/ipfs/js-ipfs-http-client/issues/854)) ([834934f](https://github.com/ipfs/js-ipfs-http-client/commit/834934f))
|
1282 | * add lodash dependency ([#873](https://github.com/ipfs/js-ipfs-http-client/issues/873)) ([c510cb7](https://github.com/ipfs/js-ipfs-http-client/commit/c510cb7)), closes [#870](https://github.com/ipfs/js-ipfs-http-client/issues/870)
|
1283 |
|
1284 |
|
1285 |
|
1286 | <a name="24.0.2"></a>
|
1287 | ## [24.0.2](https://github.com/ipfs/js-ipfs-http-client/compare/v24.0.1...v24.0.2) (2018-09-21)
|
1288 |
|
1289 |
|
1290 | ### Bug Fixes
|
1291 |
|
1292 | * block.put options ([#844](https://github.com/ipfs/js-ipfs-http-client/issues/844)) ([e290a38](https://github.com/ipfs/js-ipfs-http-client/commit/e290a38))
|
1293 |
|
1294 |
|
1295 |
|
1296 | <a name="24.0.1"></a>
|
1297 | ## [24.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v24.0.0...v24.0.1) (2018-08-21)
|
1298 |
|
1299 |
|
1300 |
|
1301 | <a name="24.0.0"></a>
|
1302 | # [24.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v23.0.0...v24.0.0) (2018-08-15)
|
1303 |
|
1304 |
|
1305 | ### Bug Fixes
|
1306 |
|
1307 | * add test data to IPFS before fetching it ([#832](https://github.com/ipfs/js-ipfs-http-client/issues/832)) ([b2a77d6](https://github.com/ipfs/js-ipfs-http-client/commit/b2a77d6))
|
1308 | * BREAKING CHANGE use data-encoding arg so data is not corrupted ([#806](https://github.com/ipfs/js-ipfs-http-client/issues/806)) ([553c3fb](https://github.com/ipfs/js-ipfs-http-client/commit/553c3fb))
|
1309 | * dag.get return error on missing multicodec ([#831](https://github.com/ipfs/js-ipfs-http-client/issues/831)) ([ff7c7e5](https://github.com/ipfs/js-ipfs-http-client/commit/ff7c7e5))
|
1310 | * remove external urls from addFromURL tests ([#834](https://github.com/ipfs/js-ipfs-http-client/issues/834)) ([7cf7998](https://github.com/ipfs/js-ipfs-http-client/commit/7cf7998)), closes [#803](https://github.com/ipfs/js-ipfs-http-client/issues/803)
|
1311 |
|
1312 |
|
1313 | ### BREAKING CHANGES
|
1314 |
|
1315 | * Requires go-ipfs 0.4.17 as it allows for specifying the data encoding format when requesting object data.
|
1316 |
|
1317 |
|
1318 |
|
1319 | <a name="23.0.0"></a>
|
1320 | # [23.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v22.3.0...v23.0.0) (2018-08-06)
|
1321 |
|
1322 |
|
1323 | ### Bug Fixes
|
1324 |
|
1325 | * config get ([#825](https://github.com/ipfs/js-ipfs-http-client/issues/825)) ([ef5a4a3](https://github.com/ipfs/js-ipfs-http-client/commit/ef5a4a3))
|
1326 |
|
1327 |
|
1328 | ### Features
|
1329 |
|
1330 | * add resolve cmd ([#826](https://github.com/ipfs/js-ipfs-http-client/issues/826)) ([c7ad0e4](https://github.com/ipfs/js-ipfs-http-client/commit/c7ad0e4))
|
1331 |
|
1332 |
|
1333 |
|
1334 | <a name="22.3.0"></a>
|
1335 | # [22.3.0](https://github.com/ipfs/js-ipfs-http-client/compare/v22.2.4...v22.3.0) (2018-08-02)
|
1336 |
|
1337 |
|
1338 | ### Bug Fixes
|
1339 |
|
1340 | * config.set rejects buffer values ([#800](https://github.com/ipfs/js-ipfs-http-client/issues/800)) ([f3e6bf1](https://github.com/ipfs/js-ipfs-http-client/commit/f3e6bf1))
|
1341 |
|
1342 |
|
1343 | ### Features
|
1344 |
|
1345 | * compatible with go-ipfs 0.4.16 ([8536ee4](https://github.com/ipfs/js-ipfs-http-client/commit/8536ee4))
|
1346 | * expose mfs files.read*Stream methods ([#823](https://github.com/ipfs/js-ipfs-http-client/issues/823)) ([70c9df1](https://github.com/ipfs/js-ipfs-http-client/commit/70c9df1))
|
1347 |
|
1348 |
|
1349 |
|
1350 | <a name="22.2.4"></a>
|
1351 | ## [22.2.4](https://github.com/ipfs/js-ipfs-http-client/compare/v22.2.3...v22.2.4) (2018-07-17)
|
1352 |
|
1353 |
|
1354 | ### Bug Fixes
|
1355 |
|
1356 | * increase browserNoActivityTimeout to account for before ([328e338](https://github.com/ipfs/js-ipfs-http-client/commit/328e338))
|
1357 | * increase timeout for .name after all ([3dc4313](https://github.com/ipfs/js-ipfs-http-client/commit/3dc4313))
|
1358 | * missing debug dependency fixes [#809](https://github.com/ipfs/js-ipfs-http-client/issues/809) ([#810](https://github.com/ipfs/js-ipfs-http-client/issues/810)) ([0f1fe95](https://github.com/ipfs/js-ipfs-http-client/commit/0f1fe95))
|
1359 |
|
1360 |
|
1361 |
|
1362 | <a name="22.2.3"></a>
|
1363 | ## [22.2.3](https://github.com/ipfs/js-ipfs-http-client/compare/v22.2.2...v22.2.3) (2018-07-10)
|
1364 |
|
1365 |
|
1366 | ### Bug Fixes
|
1367 |
|
1368 | * Request logging broken in Electron ([#808](https://github.com/ipfs/js-ipfs-http-client/issues/808)) ([52298ae](https://github.com/ipfs/js-ipfs-http-client/commit/52298ae))
|
1369 |
|
1370 |
|
1371 |
|
1372 | <a name="22.2.2"></a>
|
1373 | ## [22.2.2](https://github.com/ipfs/js-ipfs-http-client/compare/v22.2.1...v22.2.2) (2018-07-05)
|
1374 |
|
1375 |
|
1376 | ### Bug Fixes
|
1377 |
|
1378 | * ignore response body for some mfs commands ([#805](https://github.com/ipfs/js-ipfs-http-client/issues/805)) ([b604a64](https://github.com/ipfs/js-ipfs-http-client/commit/b604a64))
|
1379 |
|
1380 |
|
1381 | ### Features
|
1382 |
|
1383 | * modular interface tests ([#785](https://github.com/ipfs/js-ipfs-http-client/issues/785)) ([2426072](https://github.com/ipfs/js-ipfs-http-client/commit/2426072)), closes [#339](https://github.com/ipfs/js-ipfs-http-client/issues/339) [#802](https://github.com/ipfs/js-ipfs-http-client/issues/802) [#801](https://github.com/ipfs/js-ipfs-http-client/issues/801)
|
1384 |
|
1385 |
|
1386 |
|
1387 | <a name="22.2.1"></a>
|
1388 | ## [22.2.1](https://github.com/ipfs/js-ipfs-http-client/compare/v22.2.0...v22.2.1) (2018-06-29)
|
1389 |
|
1390 |
|
1391 | ### Bug Fixes
|
1392 |
|
1393 | * res.req only in Node.js, in browser use res.url instead ([#798](https://github.com/ipfs/js-ipfs-http-client/issues/798)) ([e8a5ab9](https://github.com/ipfs/js-ipfs-http-client/commit/e8a5ab9))
|
1394 |
|
1395 |
|
1396 |
|
1397 | <a name="22.2.0"></a>
|
1398 | # [22.2.0](https://github.com/ipfs/js-ipfs-http-client/compare/v22.1.1...v22.2.0) (2018-06-29)
|
1399 |
|
1400 |
|
1401 | ### Features
|
1402 |
|
1403 | * logs path & querystring for requests ([#796](https://github.com/ipfs/js-ipfs-http-client/issues/796)) ([4e55d19](https://github.com/ipfs/js-ipfs-http-client/commit/4e55d19))
|
1404 |
|
1405 |
|
1406 |
|
1407 | <a name="22.1.1"></a>
|
1408 | ## [22.1.1](https://github.com/ipfs/js-ipfs-http-client/compare/v22.1.0...v22.1.1) (2018-06-25)
|
1409 |
|
1410 |
|
1411 | ### Bug Fixes
|
1412 |
|
1413 | * get block with empty data ([#789](https://github.com/ipfs/js-ipfs-http-client/issues/789)) ([88edd83](https://github.com/ipfs/js-ipfs-http-client/commit/88edd83))
|
1414 |
|
1415 |
|
1416 |
|
1417 | <a name="22.1.0"></a>
|
1418 | # [22.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v22.0.2...v22.1.0) (2018-06-18)
|
1419 |
|
1420 |
|
1421 | ### Features
|
1422 |
|
1423 | * add support for custom headers to send-request ([#741](https://github.com/ipfs/js-ipfs-http-client/issues/741)) ([7fb2e07](https://github.com/ipfs/js-ipfs-http-client/commit/7fb2e07))
|
1424 | * implement bitswap wantlist peer ID param and bitswap unwant ([#761](https://github.com/ipfs/js-ipfs-http-client/issues/761)) ([73a153e](https://github.com/ipfs/js-ipfs-http-client/commit/73a153e))
|
1425 |
|
1426 |
|
1427 |
|
1428 | <a name="22.0.2"></a>
|
1429 | ## [22.0.2](https://github.com/ipfs/js-ipfs-http-client/compare/v22.0.1...v22.0.2) (2018-06-14)
|
1430 |
|
1431 |
|
1432 | ### Bug Fixes
|
1433 |
|
1434 | * json-loader error in upload-file-via-browser example ([#784](https://github.com/ipfs/js-ipfs-http-client/issues/784)) ([5e7b7c4](https://github.com/ipfs/js-ipfs-http-client/commit/5e7b7c4))
|
1435 |
|
1436 |
|
1437 |
|
1438 | <a name="22.0.1"></a>
|
1439 | ## [22.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v22.0.0...v22.0.1) (2018-05-30)
|
1440 |
|
1441 |
|
1442 | ### Bug Fixes
|
1443 |
|
1444 | * configure webpack to not use esmodules in dependencies ([dc14333](https://github.com/ipfs/js-ipfs-http-client/commit/dc14333))
|
1445 | * correctly differentiate pong responses ([4ad25a3](https://github.com/ipfs/js-ipfs-http-client/commit/4ad25a3))
|
1446 | * util.addFromURL with URL-escaped file ([a3bd811](https://github.com/ipfs/js-ipfs-http-client/commit/a3bd811))
|
1447 |
|
1448 |
|
1449 |
|
1450 | <a name="22.0.0"></a>
|
1451 | # [22.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v21.0.0...v22.0.0) (2018-05-20)
|
1452 |
|
1453 |
|
1454 | ### Bug Fixes
|
1455 |
|
1456 | * callback from unsub after stream ends ([51a80f2](https://github.com/ipfs/js-ipfs-http-client/commit/51a80f2))
|
1457 | * do not fail stop node if failed start node ([533760f](https://github.com/ipfs/js-ipfs-http-client/commit/533760f))
|
1458 | * **ping:** convert the ping messages to lowercase ([632af40](https://github.com/ipfs/js-ipfs-http-client/commit/632af40))
|
1459 | * more robust ping tests ([fc6d301](https://github.com/ipfs/js-ipfs-http-client/commit/fc6d301))
|
1460 | * remove .only ([0e21c8a](https://github.com/ipfs/js-ipfs-http-client/commit/0e21c8a))
|
1461 | * result.Peers can be null, ensure callback is called ([f5f2e83](https://github.com/ipfs/js-ipfs-http-client/commit/f5f2e83))
|
1462 | * update asserted error message ([17c1f1c](https://github.com/ipfs/js-ipfs-http-client/commit/17c1f1c))
|
1463 | * use async/setImmediate vs process.nextTick ([faa51b4](https://github.com/ipfs/js-ipfs-http-client/commit/faa51b4))
|
1464 |
|
1465 |
|
1466 |
|
1467 | <a name="21.0.0"></a>
|
1468 | # [21.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v20.2.1...v21.0.0) (2018-05-12)
|
1469 |
|
1470 |
|
1471 | ### Bug Fixes
|
1472 |
|
1473 | * make pubsub.unsubscribe async and alter pubsub.subscribe signature ([b98f8f3](https://github.com/ipfs/js-ipfs-http-client/commit/b98f8f3))
|
1474 |
|
1475 |
|
1476 | ### BREAKING CHANGES
|
1477 |
|
1478 | * pubsub.unsubscribe is now async and argument order for pubsub.subscribe has changed
|
1479 |
|
1480 | License: MIT
|
1481 | Signed-off-by: Alan Shaw <alan@tableflip.io>
|
1482 |
|
1483 |
|
1484 |
|
1485 | <a name="20.2.1"></a>
|
1486 | ## [20.2.1](https://github.com/ipfs/js-ipfs-http-client/compare/v20.2.0...v20.2.1) (2018-05-06)
|
1487 |
|
1488 |
|
1489 |
|
1490 | <a name="20.2.0"></a>
|
1491 | # [20.2.0](https://github.com/ipfs/js-ipfs-http-client/compare/v20.0.1...v20.2.0) (2018-04-30)
|
1492 |
|
1493 |
|
1494 | ### Bug Fixes
|
1495 |
|
1496 | * adding files by pull stream ([2fa16c5](https://github.com/ipfs/js-ipfs-http-client/commit/2fa16c5))
|
1497 | * handle request errors in addFromURL ([7c5cea5](https://github.com/ipfs/js-ipfs-http-client/commit/7c5cea5))
|
1498 | * increase timeout for name.publish and fix setup code ([ceb1106](https://github.com/ipfs/js-ipfs-http-client/commit/ceb1106))
|
1499 | * ipfs add url wrap doesn't work ([#750](https://github.com/ipfs/js-ipfs-http-client/issues/750)) ([f6f1bf0](https://github.com/ipfs/js-ipfs-http-client/commit/f6f1bf0))
|
1500 |
|
1501 |
|
1502 | ### Features
|
1503 |
|
1504 | * Add offset/length arguments to files.cat ([17967c1](https://github.com/ipfs/js-ipfs-http-client/commit/17967c1))
|
1505 | * get it ready for release ([#751](https://github.com/ipfs/js-ipfs-http-client/issues/751)) ([1885af4](https://github.com/ipfs/js-ipfs-http-client/commit/1885af4))
|
1506 |
|
1507 |
|
1508 |
|
1509 | <a name="20.1.0"></a>
|
1510 | # [20.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v20.0.1...v20.1.0) (2018-04-30)
|
1511 |
|
1512 |
|
1513 | ### Bug Fixes
|
1514 |
|
1515 | * adding files by pull stream ([2fa16c5](https://github.com/ipfs/js-ipfs-http-client/commit/2fa16c5))
|
1516 | * handle request errors in addFromURL ([7c5cea5](https://github.com/ipfs/js-ipfs-http-client/commit/7c5cea5))
|
1517 | * increase timeout for name.publish and fix setup code ([ceb1106](https://github.com/ipfs/js-ipfs-http-client/commit/ceb1106))
|
1518 | * ipfs add url wrap doesn't work ([#750](https://github.com/ipfs/js-ipfs-http-client/issues/750)) ([f6f1bf0](https://github.com/ipfs/js-ipfs-http-client/commit/f6f1bf0))
|
1519 |
|
1520 |
|
1521 | ### Features
|
1522 |
|
1523 | * Add offset/length arguments to files.cat ([17967c1](https://github.com/ipfs/js-ipfs-http-client/commit/17967c1))
|
1524 | * get it ready for release ([#751](https://github.com/ipfs/js-ipfs-http-client/issues/751)) ([1885af4](https://github.com/ipfs/js-ipfs-http-client/commit/1885af4))
|
1525 |
|
1526 |
|
1527 |
|
1528 | <a name="20.0.1"></a>
|
1529 | ## [20.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v20.0.0...v20.0.1) (2018-04-12)
|
1530 |
|
1531 |
|
1532 |
|
1533 | <a name="20.0.0"></a>
|
1534 | # [20.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v19.0.0...v20.0.0) (2018-04-05)
|
1535 |
|
1536 |
|
1537 | ### Bug Fixes
|
1538 |
|
1539 | * **dag:** js-ipld format resolver take the raw block ([2683c7e](https://github.com/ipfs/js-ipfs-http-client/commit/2683c7e))
|
1540 | * **dag:** path logic for DAG get was wrong ([d2b203b](https://github.com/ipfs/js-ipfs-http-client/commit/d2b203b))
|
1541 | * **dag:** use SendOneFile for dag put ([9c37213](https://github.com/ipfs/js-ipfs-http-client/commit/9c37213))
|
1542 |
|
1543 |
|
1544 | ### Features
|
1545 |
|
1546 | * dag.put ([9463d3a](https://github.com/ipfs/js-ipfs-http-client/commit/9463d3a))
|
1547 | * **dag:** proper get implementation ([7ba0343](https://github.com/ipfs/js-ipfs-http-client/commit/7ba0343))
|
1548 | * **dag:** rebase, use waterfall for put ([ad9eab8](https://github.com/ipfs/js-ipfs-http-client/commit/ad9eab8))
|
1549 | * **dag:** update option names to reflect go-ipfs API ([9bf1c6c](https://github.com/ipfs/js-ipfs-http-client/commit/9bf1c6c))
|
1550 | * Provide access to bundled libraries when in browser ([#732](https://github.com/ipfs/js-ipfs-http-client/issues/732)) ([994bdad](https://github.com/ipfs/js-ipfs-http-client/commit/994bdad)), closes [#406](https://github.com/ipfs/js-ipfs-http-client/issues/406)
|
1551 | * public-readonly-method-for-getting-host-and-port ([41d32e3](https://github.com/ipfs/js-ipfs-http-client/commit/41d32e3)), closes [#580](https://github.com/ipfs/js-ipfs-http-client/issues/580)
|
1552 | * Wrap with dir ([#730](https://github.com/ipfs/js-ipfs-http-client/issues/730)) ([160860e](https://github.com/ipfs/js-ipfs-http-client/commit/160860e))
|
1553 |
|
1554 |
|
1555 |
|
1556 | <a name="19.0.0"></a>
|
1557 | # [19.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v18.2.1...v19.0.0) (2018-03-28)
|
1558 |
|
1559 |
|
1560 | ### Bug Fixes
|
1561 |
|
1562 | * **bitswap:** 0.4.14 returns empty array instead of null ([5e37a54](https://github.com/ipfs/js-ipfs-http-client/commit/5e37a54))
|
1563 | * **ping:** tests were failing and there it was missing to catch when count and n are used at the same time ([2181568](https://github.com/ipfs/js-ipfs-http-client/commit/2181568))
|
1564 |
|
1565 |
|
1566 | ### Features
|
1567 |
|
1568 | * streamable ping and optional packet number ([#723](https://github.com/ipfs/js-ipfs-http-client/issues/723)) ([3f3ce8a](https://github.com/ipfs/js-ipfs-http-client/commit/3f3ce8a))
|
1569 |
|
1570 |
|
1571 |
|
1572 | <a name="18.2.1"></a>
|
1573 | ## [18.2.1](https://github.com/ipfs/js-ipfs-http-client/compare/v18.2.0...v18.2.1) (2018-03-22)
|
1574 |
|
1575 |
|
1576 | ### Features
|
1577 |
|
1578 | * add ability to files.cat with a cid instance ([aeeb94e](https://github.com/ipfs/js-ipfs-http-client/commit/aeeb94e))
|
1579 |
|
1580 |
|
1581 |
|
1582 | <a name="18.2.0"></a>
|
1583 | # [18.2.0](https://github.com/ipfs/js-ipfs-http-client/compare/v18.1.2...v18.2.0) (2018-03-16)
|
1584 |
|
1585 |
|
1586 | ### Bug Fixes
|
1587 |
|
1588 | * disable Browser test on Windows ([385a6c3](https://github.com/ipfs/js-ipfs-http-client/commit/385a6c3))
|
1589 | * don't create one webpack bundle for every test file ([3967e96](https://github.com/ipfs/js-ipfs-http-client/commit/3967e96))
|
1590 | * last fixes for green ([#719](https://github.com/ipfs/js-ipfs-http-client/issues/719)) ([658bad2](https://github.com/ipfs/js-ipfs-http-client/commit/658bad2))
|
1591 | * set the FileResultStreamConverter explicitly ([dfad55e](https://github.com/ipfs/js-ipfs-http-client/commit/dfad55e)), closes [#696](https://github.com/ipfs/js-ipfs-http-client/issues/696)
|
1592 | * use a different remote server for test ([1fc15a5](https://github.com/ipfs/js-ipfs-http-client/commit/1fc15a5))
|
1593 |
|
1594 |
|
1595 | ### Features
|
1596 |
|
1597 | * --only-hash ([#717](https://github.com/ipfs/js-ipfs-http-client/issues/717)) ([1137401](https://github.com/ipfs/js-ipfs-http-client/commit/1137401)), closes [#700](https://github.com/ipfs/js-ipfs-http-client/issues/700)
|
1598 | * add support for ipfs files stat --with-local ([#695](https://github.com/ipfs/js-ipfs-http-client/issues/695)) ([b08f21a](https://github.com/ipfs/js-ipfs-http-client/commit/b08f21a))
|
1599 |
|
1600 |
|
1601 |
|
1602 | <a name="18.1.2"></a>
|
1603 | ## [18.1.2](https://github.com/ipfs/js-ipfs-http-client/compare/v18.1.1...v18.1.2) (2018-03-09)
|
1604 |
|
1605 |
|
1606 | ### Bug Fixes
|
1607 |
|
1608 | * regression on files.add and update deps ([#709](https://github.com/ipfs/js-ipfs-http-client/issues/709)) ([85cc2a8](https://github.com/ipfs/js-ipfs-http-client/commit/85cc2a8))
|
1609 | * remove argument from .stats.bw* ([#699](https://github.com/ipfs/js-ipfs-http-client/issues/699)) ([f81dce5](https://github.com/ipfs/js-ipfs-http-client/commit/f81dce5))
|
1610 |
|
1611 |
|
1612 |
|
1613 | <a name="18.1.1"></a>
|
1614 | ## [18.1.1](https://github.com/ipfs/js-ipfs-http-client/compare/v18.0.0...v18.1.1) (2018-02-20)
|
1615 |
|
1616 |
|
1617 | ### Features
|
1618 |
|
1619 | * support recursive ipfs ls ([cfe95f6](https://github.com/ipfs/js-ipfs-http-client/commit/cfe95f6))
|
1620 |
|
1621 |
|
1622 |
|
1623 | <a name="18.1.0"></a>
|
1624 | # [18.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v18.0.0...v18.1.0) (2018-02-20)
|
1625 |
|
1626 |
|
1627 | ### Features
|
1628 |
|
1629 | * support recursive ipfs ls ([cfe95f6](https://github.com/ipfs/js-ipfs-http-client/commit/cfe95f6))
|
1630 |
|
1631 |
|
1632 |
|
1633 | <a name="18.0.0"></a>
|
1634 | # [18.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v17.5.0...v18.0.0) (2018-02-14)
|
1635 |
|
1636 |
|
1637 | ### Bug Fixes
|
1638 |
|
1639 | * exception when dir is empty ([#680](https://github.com/ipfs/js-ipfs-http-client/issues/680)) ([ec04f6e](https://github.com/ipfs/js-ipfs-http-client/commit/ec04f6e))
|
1640 | * support all the Buffer shims and load fixtures correctly ([066988f](https://github.com/ipfs/js-ipfs-http-client/commit/066988f))
|
1641 | * update stats API ([#684](https://github.com/ipfs/js-ipfs-http-client/issues/684)) ([4f7999d](https://github.com/ipfs/js-ipfs-http-client/commit/4f7999d))
|
1642 |
|
1643 |
|
1644 | ### Features
|
1645 |
|
1646 | * (breaking change) stats spec, spec repo, stream to value on files read ([#679](https://github.com/ipfs/js-ipfs-http-client/issues/679)) ([118456e](https://github.com/ipfs/js-ipfs-http-client/commit/118456e))
|
1647 | * **breaking change:** use stream on stats.bw ([#686](https://github.com/ipfs/js-ipfs-http-client/issues/686)) ([895760e](https://github.com/ipfs/js-ipfs-http-client/commit/895760e))
|
1648 | * ipfs.stop ([5091115](https://github.com/ipfs/js-ipfs-http-client/commit/5091115))
|
1649 |
|
1650 |
|
1651 |
|
1652 | <a name="17.5.0"></a>
|
1653 | # [17.5.0](https://github.com/ipfs/js-ipfs-http-client/compare/v17.3.0...v17.5.0) (2018-01-24)
|
1654 |
|
1655 |
|
1656 | ### Bug Fixes
|
1657 |
|
1658 | * normalize stats fields ([#669](https://github.com/ipfs/js-ipfs-http-client/issues/669)) ([5803d39](https://github.com/ipfs/js-ipfs-http-client/commit/5803d39))
|
1659 |
|
1660 |
|
1661 | ### Features
|
1662 |
|
1663 | * /api/v0/repo/version ([#676](https://github.com/ipfs/js-ipfs-http-client/issues/676)) ([ecf70b9](https://github.com/ipfs/js-ipfs-http-client/commit/ecf70b9))
|
1664 | * integrate new ipfsd-ctl ([2b1820b](https://github.com/ipfs/js-ipfs-http-client/commit/2b1820b))
|
1665 |
|
1666 |
|
1667 |
|
1668 | <a name="17.4.0"></a>
|
1669 | # [17.4.0](https://github.com/ipfs/js-ipfs-http-client/compare/v17.3.0...v17.4.0) (2018-01-24)
|
1670 |
|
1671 |
|
1672 | ### Bug Fixes
|
1673 |
|
1674 | * normalize stats fields ([#669](https://github.com/ipfs/js-ipfs-http-client/issues/669)) ([5803d39](https://github.com/ipfs/js-ipfs-http-client/commit/5803d39))
|
1675 |
|
1676 |
|
1677 | ### Features
|
1678 |
|
1679 | * integrate new ipfsd-ctl ([2b1820b](https://github.com/ipfs/js-ipfs-http-client/commit/2b1820b))
|
1680 |
|
1681 |
|
1682 |
|
1683 | <a name="17.3.0"></a>
|
1684 | # [17.3.0](https://github.com/ipfs/js-ipfs-http-client/compare/v17.2.7...v17.3.0) (2018-01-12)
|
1685 |
|
1686 |
|
1687 | ### Features
|
1688 |
|
1689 | * /api/v0/dns ([#665](https://github.com/ipfs/js-ipfs-http-client/issues/665)) ([81016bb](https://github.com/ipfs/js-ipfs-http-client/commit/81016bb))
|
1690 |
|
1691 |
|
1692 |
|
1693 | <a name="17.2.7"></a>
|
1694 | ## [17.2.7](https://github.com/ipfs/js-ipfs-http-client/compare/v17.2.6...v17.2.7) (2018-01-11)
|
1695 |
|
1696 |
|
1697 | ### Bug Fixes
|
1698 |
|
1699 | * name and key tests ([#661](https://github.com/ipfs/js-ipfs-http-client/issues/661)) ([5ab1d02](https://github.com/ipfs/js-ipfs-http-client/commit/5ab1d02))
|
1700 |
|
1701 |
|
1702 | ### Features
|
1703 |
|
1704 | * normalize KEY API ([#659](https://github.com/ipfs/js-ipfs-http-client/issues/659)) ([1b10821](https://github.com/ipfs/js-ipfs-http-client/commit/1b10821))
|
1705 | * normalize NAME API ([#658](https://github.com/ipfs/js-ipfs-http-client/issues/658)) ([9b8ef48](https://github.com/ipfs/js-ipfs-http-client/commit/9b8ef48))
|
1706 |
|
1707 |
|
1708 |
|
1709 | <a name="17.2.6"></a>
|
1710 | ## [17.2.6](https://github.com/ipfs/js-ipfs-http-client/compare/v17.2.5...v17.2.6) (2017-12-28)
|
1711 |
|
1712 |
|
1713 | ### Features
|
1714 |
|
1715 | * support key/export and key/import ([#653](https://github.com/ipfs/js-ipfs-http-client/issues/653)) ([496f08e](https://github.com/ipfs/js-ipfs-http-client/commit/496f08e))
|
1716 |
|
1717 |
|
1718 |
|
1719 | <a name="17.2.5"></a>
|
1720 | ## [17.2.5](https://github.com/ipfs/js-ipfs-http-client/compare/v17.2.4...v17.2.5) (2017-12-20)
|
1721 |
|
1722 |
|
1723 | ### Bug Fixes
|
1724 |
|
1725 | * **files.add:** handle weird directory names ([#646](https://github.com/ipfs/js-ipfs-http-client/issues/646)) ([012b86c](https://github.com/ipfs/js-ipfs-http-client/commit/012b86c))
|
1726 |
|
1727 |
|
1728 | ### Features
|
1729 |
|
1730 | * add files/flush ([#643](https://github.com/ipfs/js-ipfs-http-client/issues/643)) ([5c254eb](https://github.com/ipfs/js-ipfs-http-client/commit/5c254eb))
|
1731 | * support key/rm and key/rename ([#641](https://github.com/ipfs/js-ipfs-http-client/issues/641)) ([113030a](https://github.com/ipfs/js-ipfs-http-client/commit/113030a))
|
1732 |
|
1733 |
|
1734 |
|
1735 | <a name="17.2.4"></a>
|
1736 | ## [17.2.4](https://github.com/ipfs/js-ipfs-http-client/compare/v17.2.3...v17.2.4) (2017-12-06)
|
1737 |
|
1738 |
|
1739 | ### Bug Fixes
|
1740 |
|
1741 | * stats/bw uses stream ([#640](https://github.com/ipfs/js-ipfs-http-client/issues/640)) ([c4e922e](https://github.com/ipfs/js-ipfs-http-client/commit/c4e922e))
|
1742 |
|
1743 |
|
1744 |
|
1745 | <a name="17.2.3"></a>
|
1746 | ## [17.2.3](https://github.com/ipfs/js-ipfs-http-client/compare/v17.2.2...v17.2.3) (2017-12-05)
|
1747 |
|
1748 |
|
1749 |
|
1750 | <a name="17.2.2"></a>
|
1751 | ## [17.2.2](https://github.com/ipfs/js-ipfs-http-client/compare/v17.2.1...v17.2.2) (2017-12-05)
|
1752 |
|
1753 |
|
1754 |
|
1755 | <a name="17.2.1"></a>
|
1756 | ## [17.2.1](https://github.com/ipfs/js-ipfs-http-client/compare/v17.2.0...v17.2.1) (2017-12-05)
|
1757 |
|
1758 |
|
1759 | ### Features
|
1760 |
|
1761 | * add the stat commands ([#639](https://github.com/ipfs/js-ipfs-http-client/issues/639)) ([76c3068](https://github.com/ipfs/js-ipfs-http-client/commit/76c3068))
|
1762 |
|
1763 |
|
1764 |
|
1765 | <a name="17.2.0"></a>
|
1766 | # [17.2.0](https://github.com/ipfs/js-ipfs-http-client/compare/v17.1.3...v17.2.0) (2017-12-01)
|
1767 |
|
1768 |
|
1769 | ### Bug Fixes
|
1770 |
|
1771 | * propagate trailer errors correctly ([#636](https://github.com/ipfs/js-ipfs-http-client/issues/636)) ([62d733e](https://github.com/ipfs/js-ipfs-http-client/commit/62d733e))
|
1772 |
|
1773 |
|
1774 |
|
1775 | <a name="17.1.3"></a>
|
1776 | ## [17.1.3](https://github.com/ipfs/js-ipfs-http-client/compare/v17.1.2...v17.1.3) (2017-11-23)
|
1777 |
|
1778 |
|
1779 |
|
1780 | <a name="17.1.2"></a>
|
1781 | ## [17.1.2](https://github.com/ipfs/js-ipfs-http-client/compare/v17.1.1...v17.1.2) (2017-11-22)
|
1782 |
|
1783 |
|
1784 | ### Bug Fixes
|
1785 |
|
1786 | * config.replace ([#634](https://github.com/ipfs/js-ipfs-http-client/issues/634)) ([79d79c5](https://github.com/ipfs/js-ipfs-http-client/commit/79d79c5)), closes [#633](https://github.com/ipfs/js-ipfs-http-client/issues/633)
|
1787 |
|
1788 |
|
1789 |
|
1790 | <a name="17.1.1"></a>
|
1791 | ## [17.1.1](https://github.com/ipfs/js-ipfs-http-client/compare/v17.1.0...v17.1.1) (2017-11-22)
|
1792 |
|
1793 |
|
1794 | ### Bug Fixes
|
1795 |
|
1796 | * pubsub do not eat error messages ([#632](https://github.com/ipfs/js-ipfs-http-client/issues/632)) ([5a1bf9b](https://github.com/ipfs/js-ipfs-http-client/commit/5a1bf9b))
|
1797 |
|
1798 |
|
1799 |
|
1800 | <a name="17.1.0"></a>
|
1801 | # [17.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v17.0.1...v17.1.0) (2017-11-20)
|
1802 |
|
1803 |
|
1804 | ### Features
|
1805 |
|
1806 | * send files HTTP request should stream ([#629](https://github.com/ipfs/js-ipfs-http-client/issues/629)) ([dae62cb](https://github.com/ipfs/js-ipfs-http-client/commit/dae62cb))
|
1807 |
|
1808 |
|
1809 |
|
1810 | <a name="17.0.1"></a>
|
1811 | ## [17.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v17.0.0...v17.0.1) (2017-11-20)
|
1812 |
|
1813 |
|
1814 | ### Bug Fixes
|
1815 |
|
1816 | * allow topicCIDs from older peers ([#631](https://github.com/ipfs/js-ipfs-http-client/issues/631)) ([fe7cc22](https://github.com/ipfs/js-ipfs-http-client/commit/fe7cc22))
|
1817 |
|
1818 |
|
1819 |
|
1820 | <a name="17.0.0"></a>
|
1821 | # [17.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v16.0.0...v17.0.0) (2017-11-17)
|
1822 |
|
1823 |
|
1824 | ### Features
|
1825 |
|
1826 | * Implementing the new interfaces ([#619](https://github.com/ipfs/js-ipfs-http-client/issues/619)) ([e1b38bf](https://github.com/ipfs/js-ipfs-http-client/commit/e1b38bf))
|
1827 |
|
1828 |
|
1829 |
|
1830 | <a name="16.0.0"></a>
|
1831 | # [16.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v15.1.0...v16.0.0) (2017-11-16)
|
1832 |
|
1833 |
|
1834 | ### Bug Fixes
|
1835 |
|
1836 | * pubsub message fields ([#627](https://github.com/ipfs/js-ipfs-http-client/issues/627)) ([470777d](https://github.com/ipfs/js-ipfs-http-client/commit/470777d))
|
1837 |
|
1838 |
|
1839 |
|
1840 | <a name="15.1.0"></a>
|
1841 | # [15.1.0](https://github.com/ipfs/js-ipfs-http-client/compare/v15.0.2...v15.1.0) (2017-11-14)
|
1842 |
|
1843 |
|
1844 | ### Bug Fixes
|
1845 |
|
1846 | * adapting HTTP API to the interface-ipfs-core spec ([#625](https://github.com/ipfs/js-ipfs-http-client/issues/625)) ([8e58225](https://github.com/ipfs/js-ipfs-http-client/commit/8e58225))
|
1847 |
|
1848 |
|
1849 | ### Features
|
1850 |
|
1851 | * windows interop ([#624](https://github.com/ipfs/js-ipfs-http-client/issues/624)) ([40557d0](https://github.com/ipfs/js-ipfs-http-client/commit/40557d0))
|
1852 |
|
1853 |
|
1854 |
|
1855 | <a name="15.0.2"></a>
|
1856 | ## [15.0.2](https://github.com/ipfs/js-ipfs-http-client/compare/v15.0.1...v15.0.2) (2017-11-13)
|
1857 |
|
1858 |
|
1859 |
|
1860 | <a name="15.0.1"></a>
|
1861 | ## [15.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v15.0.0...v15.0.1) (2017-10-22)
|
1862 |
|
1863 |
|
1864 |
|
1865 | <a name="15.0.0"></a>
|
1866 | # [15.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v14.3.7...v15.0.0) (2017-10-22)
|
1867 |
|
1868 |
|
1869 | ### Features
|
1870 |
|
1871 | * update pin API to match interface-ipfs-core ([9102643](https://github.com/ipfs/js-ipfs-http-client/commit/9102643))
|
1872 |
|
1873 |
|
1874 |
|
1875 | <a name="14.3.7"></a>
|
1876 | ## [14.3.7](https://github.com/ipfs/js-ipfs-http-client/compare/v14.3.6...v14.3.7) (2017-10-18)
|
1877 |
|
1878 |
|
1879 |
|
1880 | <a name="14.3.6"></a>
|
1881 | ## [14.3.6](https://github.com/ipfs/js-ipfs-http-client/compare/v14.3.5...v14.3.6) (2017-10-18)
|
1882 |
|
1883 |
|
1884 | ### Bug Fixes
|
1885 |
|
1886 | * pass the config protocol to http requests ([#609](https://github.com/ipfs/js-ipfs-http-client/issues/609)) ([38d7289](https://github.com/ipfs/js-ipfs-http-client/commit/38d7289))
|
1887 |
|
1888 |
|
1889 | ### Features
|
1890 |
|
1891 | * avoid doing multiple RPC requests for files.add, fixes [#522](https://github.com/ipfs/js-ipfs-http-client/issues/522) ([#595](https://github.com/ipfs/js-ipfs-http-client/issues/595)) ([0ea5f57](https://github.com/ipfs/js-ipfs-http-client/commit/0ea5f57))
|
1892 | * report progress on ipfs add ([e2d894c](https://github.com/ipfs/js-ipfs-http-client/commit/e2d894c))
|
1893 |
|
1894 |
|
1895 |
|
1896 | <a name="14.3.5"></a>
|
1897 | ## [14.3.5](https://github.com/ipfs/js-ipfs-http-client/compare/v14.3.4...v14.3.5) (2017-09-08)
|
1898 |
|
1899 |
|
1900 | ### Features
|
1901 |
|
1902 | * Support specify hash algorithm in files.add ([#597](https://github.com/ipfs/js-ipfs-http-client/issues/597)) ([ed68657](https://github.com/ipfs/js-ipfs-http-client/commit/ed68657))
|
1903 |
|
1904 |
|
1905 |
|
1906 | <a name="14.3.4"></a>
|
1907 | ## [14.3.4](https://github.com/ipfs/js-ipfs-http-client/compare/v14.3.3...v14.3.4) (2017-09-07)
|
1908 |
|
1909 |
|
1910 |
|
1911 | <a name="14.3.3"></a>
|
1912 | ## [14.3.3](https://github.com/ipfs/js-ipfs-http-client/compare/v14.3.2...v14.3.3) (2017-09-07)
|
1913 |
|
1914 |
|
1915 | ### Features
|
1916 |
|
1917 | * support options for .add / files.add ([8c717b2](https://github.com/ipfs/js-ipfs-http-client/commit/8c717b2))
|
1918 |
|
1919 |
|
1920 |
|
1921 | <a name="14.3.2"></a>
|
1922 | ## [14.3.2](https://github.com/ipfs/js-ipfs-http-client/compare/v14.3.1...v14.3.2) (2017-09-04)
|
1923 |
|
1924 |
|
1925 | ### Bug Fixes
|
1926 |
|
1927 | * new fixed aegir ([93ac472](https://github.com/ipfs/js-ipfs-http-client/commit/93ac472))
|