|
| 1 | +<a name="0.33.0"></a> |
| 2 | +# [0.33.0](https://github.com/ipfs/js-ipfs/compare/v0.33.0-rc.4...v0.33.0) (2018-11-01) |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | +<a name="0.33.0-rc.4"></a> |
| 7 | +# [0.33.0-rc.4](https://github.com/ipfs/js-ipfs/compare/v0.33.0-rc.3...v0.33.0-rc.4) (2018-11-01) |
| 8 | + |
| 9 | + |
| 10 | +### Bug Fixes |
| 11 | + |
| 12 | +* remove accidentally committed code ([66fa8ef](https://github.com/ipfs/js-ipfs/commit/66fa8ef)) |
| 13 | +* remove local option from global commands ([#1648](https://github.com/ipfs/js-ipfs/issues/1648)) ([8e963f9](https://github.com/ipfs/js-ipfs/commit/8e963f9)) |
| 14 | +* remove npm script ([df32ac4](https://github.com/ipfs/js-ipfs/commit/df32ac4)) |
| 15 | +* remove unused deps ([f7189fb](https://github.com/ipfs/js-ipfs/commit/f7189fb)) |
| 16 | +* use class is function on ipns ([#1617](https://github.com/ipfs/js-ipfs/issues/1617)) ([c240d49](https://github.com/ipfs/js-ipfs/commit/c240d49)), closes [js-peer-id#84](https://github.com/js-peer-id/issues/84) [interface-datastore#24](https://github.com/interface-datastore/issues/24) [#1615](https://github.com/ipfs/js-ipfs/issues/1615) |
| 17 | + |
| 18 | + |
| 19 | +### Chores |
| 20 | + |
| 21 | +* remove ipld formats re-export ([#1626](https://github.com/ipfs/js-ipfs/issues/1626)) ([3ee7b5e](https://github.com/ipfs/js-ipfs/commit/3ee7b5e)) |
| 22 | +* update to js-ipld 0.19 ([#1668](https://github.com/ipfs/js-ipfs/issues/1668)) ([74edafd](https://github.com/ipfs/js-ipfs/commit/74edafd)) |
| 23 | + |
| 24 | + |
| 25 | +### Features |
| 26 | + |
| 27 | +* add support to pass config in the init cmd ([#1662](https://github.com/ipfs/js-ipfs/issues/1662)) ([588891c](https://github.com/ipfs/js-ipfs/commit/588891c)) |
| 28 | +* get Ping to work properly ([27d5a57](https://github.com/ipfs/js-ipfs/commit/27d5a57)) |
| 29 | + |
| 30 | + |
| 31 | +### BREAKING CHANGES |
| 32 | + |
| 33 | +* dag-cbor nodes now represent links as CID objects |
| 34 | + |
| 35 | +The API for [dag-cbor](https://github.com/ipld/js-ipld-dag-cbor) changed. |
| 36 | +Links are no longer represented as JSON objects (`{"/": "base-encoded-cid"}`, |
| 37 | +but as [CID objects](https://github.com/ipld/js-cid). `ipfs.dag.get()` and now always return links as CID objects. `ipfs.dag.put()` also expects links to be represented as CID objects. The old-style JSON objects representation is still |
| 38 | +supported, but deprecated. |
| 39 | + |
| 40 | +Prior to this change: |
| 41 | + |
| 42 | +```js |
| 43 | +const cid = new CID('QmXed8RihWcWFXRRmfSRG9yFjEbXNxu1bDwgCFAN8Dxcq5') |
| 44 | +// Link as JSON object representation |
| 45 | +const putCid = await ipfs.dag.put({link: {'/': cid.toBaseEncodedString()}}) |
| 46 | +const result = await ipfs.dag.get(putCid) |
| 47 | +console.log(result.value) |
| 48 | + |
| 49 | +``` |
| 50 | + |
| 51 | +Output: |
| 52 | + |
| 53 | +```js |
| 54 | +{ link: |
| 55 | + { '/': |
| 56 | + <Buffer 12 20 8a…> } } |
| 57 | +``` |
| 58 | + |
| 59 | +Now: |
| 60 | + |
| 61 | +```js |
| 62 | +const cid = new CID('QmXed8RihWcWFXRRmfSRG9yFjEbXNxu1bDwgCFAN8Dxcq5') |
| 63 | +// Link as CID object |
| 64 | +const putCid = await ipfs.dag.put({link: cid}) |
| 65 | +const result = await ipfs.dag.get(putCid) |
| 66 | +console.log(result.value) |
| 67 | +``` |
| 68 | + |
| 69 | +Output: |
| 70 | + |
| 71 | +```js |
| 72 | +{ link: |
| 73 | + CID { |
| 74 | + codec: 'dag-pb', |
| 75 | + version: 0, |
| 76 | + multihash: |
| 77 | + <Buffer 12 20 8a…> } } |
| 78 | +``` |
| 79 | + |
| 80 | +See https://github.com/ipld/ipld/issues/44 for more information on why this |
| 81 | +change was made. |
| 82 | +* remove `types.dagCBOR` and `types.dagPB` from public API |
| 83 | + |
| 84 | +If you need the `ipld-dag-cbor` or `ipld-dag-pb` module in the Browser, |
| 85 | +you need to bundle them yourself. |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | +<a name="0.33.0-rc.3"></a> |
| 90 | +# [0.33.0-rc.3](https://github.com/ipfs/js-ipfs/compare/v0.33.0-rc.2...v0.33.0-rc.3) (2018-10-24) |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | +<a name="0.33.0-rc.2"></a> |
| 95 | +# [0.33.0-rc.2](https://github.com/ipfs/js-ipfs/compare/v0.33.0-rc.1...v0.33.0-rc.2) (2018-10-23) |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | +<a name="0.33.0-rc.1"></a> |
| 100 | +# [0.33.0-rc.1](https://github.com/ipfs/js-ipfs/compare/v0.32.3...v0.33.0-rc.1) (2018-10-19) |
| 101 | + |
| 102 | + |
| 103 | +### Bug Fixes |
| 104 | + |
| 105 | +* make ipfs.ping() options optional ([#1627](https://github.com/ipfs/js-ipfs/issues/1627)) ([08f06b6](https://github.com/ipfs/js-ipfs/commit/08f06b6)), closes [#1616](https://github.com/ipfs/js-ipfs/issues/1616) |
| 106 | + |
| 107 | + |
| 108 | +### Features |
| 109 | + |
| 110 | +* **gateway:** X-Ipfs-Path, Etag, Cache-Control, Suborigin ([#1537](https://github.com/ipfs/js-ipfs/issues/1537)) ([fc5bef7](https://github.com/ipfs/js-ipfs/commit/fc5bef7)) |
| 111 | +* add cid command ([#1560](https://github.com/ipfs/js-ipfs/issues/1560)) ([a22c791](https://github.com/ipfs/js-ipfs/commit/a22c791)) |
| 112 | +* show Web UI url in daemon output ([#1595](https://github.com/ipfs/js-ipfs/issues/1595)) ([9a82b05](https://github.com/ipfs/js-ipfs/commit/9a82b05)) |
| 113 | +* update to Web UI 2.0 ([#1647](https://github.com/ipfs/js-ipfs/issues/1647)) ([aea85aa](https://github.com/ipfs/js-ipfs/commit/aea85aa)) |
| 114 | + |
| 115 | + |
| 116 | + |
1 | 117 | <a name="0.32.3"></a>
|
2 | 118 | ## [0.32.3](https://github.com/ipfs/js-ipfs/compare/v0.32.2...v0.32.3) (2018-09-28)
|
3 | 119 |
|
|
0 commit comments