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

Commit 9eaaea3

Browse files
committed
chore: release version v26.0.0
1 parent 3f927a9 commit 9eaaea3

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

CHANGELOG.md

+80
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,83 @@
1+
<a name="26.0.0"></a>
2+
# [26.0.0](https://github.com/ipfs/js-ipfs-api/compare/v25.0.0...v26.0.0) (2018-10-30)
3+
4+
5+
### Bug Fixes
6+
7+
* add missing and remove unused dependencies ([#879](https://github.com/ipfs/js-ipfs-api/issues/879)) ([979d8b5](https://github.com/ipfs/js-ipfs-api/commit/979d8b5))
8+
9+
10+
### Chores
11+
12+
* remove ipld formats re-export ([#872](https://github.com/ipfs/js-ipfs-api/issues/872)) ([c534375](https://github.com/ipfs/js-ipfs-api/commit/c534375))
13+
* update to ipld-dag-cbor 0.13 ([0652ac0](https://github.com/ipfs/js-ipfs-api/commit/0652ac0))
14+
15+
16+
### Features
17+
18+
* ipns over pubsub ([#846](https://github.com/ipfs/js-ipfs-api/issues/846)) ([ef49e95](https://github.com/ipfs/js-ipfs-api/commit/ef49e95))
19+
20+
21+
### BREAKING CHANGES
22+
23+
* dag-cbor nodes now represent links as CID objects
24+
25+
The API for [dag-cbor](https://github.com/ipld/js-ipld-dag-cbor) changed.
26+
Links are no longer represented as JSON objects (`{"/": "base-encoded-cid"}`,
27+
but as [CID objects](https://github.com/ipld/js-cid). `ipfs.dag.get()` and
28+
now always return links as CID objects. `ipfs.dag.put()` also expects links
29+
to be represented as CID objects. The old-style JSON objects representation
30+
is still supported, but deprecated.
31+
32+
Prior to this change:
33+
34+
```js
35+
const cid = new CID('QmXed8RihWcWFXRRmfSRG9yFjEbXNxu1bDwgCFAN8Dxcq5')
36+
// Link as JSON object representation
37+
const putCid = await ipfs.dag.put({link: {'/': cid.toBaseEncodedString()}})
38+
const result = await ipfs.dag.get(putCid)
39+
console.log(result.value)
40+
41+
```
42+
43+
Output:
44+
45+
```js
46+
{ link:
47+
{ '/':
48+
<Buffer 12 20 8a> } }
49+
```
50+
51+
Now:
52+
53+
```js
54+
const cid = new CID('QmXed8RihWcWFXRRmfSRG9yFjEbXNxu1bDwgCFAN8Dxcq5')
55+
// Link as CID object
56+
const putCid = await ipfs.dag.put({link: cid})
57+
const result = await ipfs.dag.get(putCid)
58+
console.log(result.value)
59+
```
60+
61+
Output:
62+
63+
```js
64+
{ link:
65+
CID {
66+
codec: 'dag-pb',
67+
version: 0,
68+
multihash:
69+
<Buffer 12 20 8a> } }
70+
```
71+
72+
See https://github.com/ipld/ipld/issues/44 for more information on why this
73+
change was made.
74+
* remove `types.dagCBOR` and `types.dagPB` from public API
75+
76+
If you need the `ipld-dag-cbor` or `ipld-dag-pb` module in the Browser,
77+
you need to bundle them yourself.
78+
79+
80+
181
<a name="25.0.0"></a>
282
# [25.0.0](https://github.com/ipfs/js-ipfs-api/compare/v24.0.2...v25.0.0) (2018-10-15)
383

0 commit comments

Comments
 (0)