This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
refactor: object APIs write methods now return CIDs #1730
Merged
Merged
Commits on Nov 26, 2018
-
fix: better input validation for add
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Alan Shaw committedNov 26, 2018 Configuration menu - View commit details
-
Copy full SHA for c0bb784 - Browse repository at this point
Copy the full SHA c0bb784View commit details -
chore: update interface-ipfs-core dependency
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Alan Shaw committedNov 26, 2018 Configuration menu - View commit details
-
Copy full SHA for f23eda9 - Browse repository at this point
Copy the full SHA f23eda9View commit details
Commits on Nov 27, 2018
-
refactor: object APIs write methods now return CIDs
For the back story on this change, please see: ipfs-inactive/interface-js-ipfs-core#388 (review) BREAKING CHANGE: Object API refactor. Object API methods that write DAG nodes now return a [CID](https://www.npmjs.com/package/cids) instead of a DAG node. Affected methods: * `ipfs.object.new` * `ipfs.object.patch.addLink` * `ipfs.object.patch.appendData` * `ipfs.object.patch.rmLink` * `ipfs.object.patch.setData` * `ipfs.object.put` Example: ```js // Before const dagNode = await ipfs.object.new() ``` ```js // After const cid = await ipfs.object.new() // now returns a CID const dagNode = await ipfs.object.get(cid) // fetch the DAG node that was created ``` IMPORTANT: `DAGNode` instances, which are part of the IPLD dag-pb format have been refactored. These instances no longer have `multihash`, `cid` or `serialized` properties. This effects the following API methods that return these types of objects: * `ipfs.object.get` * `ipfs.dag.get` See ipld/js-ipld-dag-pb#99 for more information. License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Alan Shaw committedNov 27, 2018 Configuration menu - View commit details
-
Copy full SHA for bdc6f4d - Browse repository at this point
Copy the full SHA bdc6f4dView commit details -
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Alan Shaw committedNov 27, 2018 Configuration menu - View commit details
-
Copy full SHA for d6bc706 - Browse repository at this point
Copy the full SHA d6bc706View commit details
Commits on Nov 28, 2018
-
chore: use latest ipfs-http-client
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Alan Shaw committedNov 28, 2018 Configuration menu - View commit details
-
Copy full SHA for 4a8cba2 - Browse repository at this point
Copy the full SHA 4a8cba2View commit details -
chore: update ipfsd-ctl dependency
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Alan Shaw committedNov 28, 2018 Configuration menu - View commit details
-
Copy full SHA for 9fffa2f - Browse repository at this point
Copy the full SHA 9fffa2fView commit details -
chore: update ipfsd-ctl dependency
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Alan Shaw committedNov 28, 2018 Configuration menu - View commit details
-
Copy full SHA for 2702aea - Browse repository at this point
Copy the full SHA 2702aeaView commit details -
Merge branch 'fix/files-add' into refactor/object-api
Alan Shaw committedNov 28, 2018 Configuration menu - View commit details
-
Copy full SHA for 680ebc7 - Browse repository at this point
Copy the full SHA 680ebc7View commit details -
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Alan Shaw committedNov 28, 2018 Configuration menu - View commit details
-
Copy full SHA for 0fc03c3 - Browse repository at this point
Copy the full SHA 0fc03c3View commit details -
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Alan Shaw committedNov 28, 2018 Configuration menu - View commit details
-
Copy full SHA for a1bac03 - Browse repository at this point
Copy the full SHA a1bac03View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.