You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
BREAKING CHANGE: Remove .cid, .multihash and .serialized properties (#99)
* feat: remove .cid, .multihash and .serialized properties
Follows on from ipld/js-ipld#173 (comment)
BREAKING CHANGE:
These properties are removed from the DAGNode class.
* `.multihash` is removed because they aren't multihashes any more
* `.cid` is removed to bring dag-pb in line with other ipld types
* `.serialized` is removed because storing data buffers and the
serialized form uses too much memory - we can use the utils.serialize
method to create the serialized form when we need it, which in this
module is just during the tests
`.multihash` has also changed to `.cid` in the output of
`DAGLink.toJSON` and `DAGNode.toJSON` because since CIDv1 they are
not just multihashes any more; the multihash is contained within
the CID.
-[DAGLink instance methods and properties](#daglink-instance-methods-and-properties)
44
42
-[`link.name`](#linkname)
45
43
-[`link.size`](#linksize)
46
-
-[`link.multihash`](#linkmultihash)
44
+
-[`link.cid`](#linkcid)
47
45
-[`link.toJSON()`](#linktojson)
48
46
-[`link.toString()`](#linktostring)
49
47
-[[IPLD Format Specifics](https://github.com/ipld/interface-ipld-format) - Local (node/block scope) resolver](#ipld-format-specificshttpsgithubcomipldinterface-ipld-format---local-nodeblock-scope-resolver)
0 commit comments