This repository was 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
                    Changes from 3 commits
      Commits
    
    
            Show all changes
          
          
            10 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      c0bb784
              
                fix: better input validation for add
              
              
                 f23eda9
              
                chore: update interface-ipfs-core dependency
              
              
                 bdc6f4d
              
                refactor: object APIs write methods now return CIDs
              
              
                 d6bc706
              
                refactor: object API in CLI
              
              
                 4a8cba2
              
                chore: use latest ipfs-http-client
              
              
                 9fffa2f
              
                chore: update ipfsd-ctl dependency
              
              
                 2702aea
              
                chore: update ipfsd-ctl dependency
              
              
                 680ebc7
              
                Merge branch 'fix/files-add' into refactor/object-api
              
              
                 0fc03c3
              
                fix: tests
              
              
                 a1bac03
              
                fix: more test fix
              
              
                 File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
          
            
          
           | 
    @@ -186,7 +186,7 @@ Commands: | |
| 
     | 
||
| ### IPFS Daemon | ||
| 
     | 
||
| The IPFS Daemon exposes the API defined [`http-api-spec`](https://github.com/ipfs/http-api-spec). You can use any of the IPFS HTTP-API client libraries with it, such as: [js-ipfs-api](https://github.com/ipfs/js-ipfs-api). | ||
| The IPFS Daemon exposes the API defined [`http-api-spec`](https://github.com/ipfs/http-api-spec). You can use any of the IPFS HTTP-API client libraries with it, such as: [js-ipfs-http-client](https://github.com/ipfs/js-ipfs-http-client). | ||
| 
     | 
||
| If you want a programmatic way to spawn a IPFS Daemon using JavaScript, check out [ipfsd-ctl module](https://github.com/ipfs/js-ipfsd-ctl) | ||
| 
     | 
||
| 
          
            
          
           | 
    @@ -884,7 +884,7 @@ Listing of the main packages used in the IPFS ecosystem. There are also three sp | |
| | [`libp2p-crypto`](//github.com/libp2p/js-libp2p-crypto) | [](//github.com/libp2p/js-libp2p-crypto/releases) | [](https://david-dm.org/libp2p/js-libp2p-crypto) | [](https://ci.ipfs.team/job/libp2p/job/js-libp2p-crypto/job/master/) | [](https://codecov.io/gh/libp2p/js-libp2p-crypto) | [Friedel Ziegelmayer](mailto:[email protected]) | | ||
| | [`libp2p-keychain`](//github.com/libp2p/js-libp2p-keychain) | [](//github.com/libp2p/js-libp2p-keychain/releases) | [](https://david-dm.org/libp2p/js-libp2p-keychain) | N/A | [](https://codecov.io/gh/libp2p/js-libp2p-keychain) | [Vasco Santos](mailto:[email protected]) | | ||
| | **Generics/Utils** | | ||
| | [`ipfs-api`](//github.com/ipfs/js-ipfs-api) | [](//github.com/ipfs/js-ipfs-api/releases) | [](https://david-dm.org/ipfs/js-ipfs-api) | [](https://ci.ipfs.team/job/ipfs/job/js-ipfs-api/job/master/) | [](https://codecov.io/gh/ipfs/js-ipfs-api) | [Alan Shaw](mailto:[email protected]) | | ||
| | [`ipfs-http-client`](//github.com/ipfs/js-ipfs-http-client) | [](//github.com/ipfs/js-ipfs-http-client/releases) | [](https://david-dm.org/ipfs/js-ipfs-http-client) | [](https://ci.ipfs.team/job/ipfs/job/js-ipfs-http-client/job/master/) | [](https://codecov.io/gh/ipfs/js-ipfs-http-client) | [Alan Shaw](mailto:[email protected]) | | ||
| | [`ipfs-multipart`](//github.com/ipfs/ipfs-multipart) | [](//github.com/ipfs/ipfs-multipart/releases) | [](https://david-dm.org/ipfs/ipfs-multipart) | N/A | [](https://codecov.io/gh/ipfs/ipfs-multipart) | N/A | | ||
| | [`is-ipfs`](//github.com/ipfs/is-ipfs) | [](//github.com/ipfs/is-ipfs/releases) | [](https://david-dm.org/ipfs/is-ipfs) | [](https://ci.ipfs.team/job/ipfs/job/is-ipfs/job/master/) | [](https://codecov.io/gh/ipfs/is-ipfs) | [Marcin Rataj](mailto:[email protected]) | | ||
| | [`multihashing`](//github.com/multiformats/js-multihashing) | [](//github.com/multiformats/js-multihashing/releases) | [](https://david-dm.org/multiformats/js-multihashing) | [](https://ci.ipfs.team/job/multiformats/job/js-multihashing/job/master/) | [](https://codecov.io/gh/multiformats/js-multihashing) | N/A | | ||
| 
          
            
          
           | 
    ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| offline mode - uses IPFS core directly | ||
| ┌───────────────────────────────────────────┐ | ||
| │ │ | ||
| │ │ | ||
| │ online mode - uses IPFS through http-api │ | ||
| ┌────────────┐ │ ┌────────────────────┐ │ ┌──────────┐ | ||
| │ │ │ ┌ ─ ─ ─ ─ ─ ─ │ │ │ │ │ | ||
| │ CLI │───┴── ipfs-api ├──▶│ HTTP-API │───┴───▶│IPFS Core │ | ||
| │ │ └ ─ ─ ─ ─ ─ ─ │ │ │ │ | ||
| └────────────┘ └────────────────────┘ └──────────┘ | ||
| △ △ △ | ||
| ├───────────────────────────────────────┴────────────────────────┘ | ||
| │ | ||
| ┌────────────┐ | ||
| │ Tests │ | ||
| └────────────┘ | ||
| 
     | 
||
| offline mode - uses IPFS core directly | ||
| ┌────────────────────────────────────────────┐ | ||
| │ │ | ||
| │ │ | ||
| │ online mode - uses IPFS through http-api │ | ||
| ┌────────────┐ │ ┌─────────────┐ │ ┌─────────┐ | ||
| │ │ │ ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ │ │ │ │ │ | ||
| │ CLI │───┴── ipfs-http-client ├──▶│ HTTP-API │───┴───▶│IPFS Core│ | ||
| │ │ └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ │ │ │ │ | ||
| └────────────┘ └─────────────┘ └─────────┘ | ||
| △ △ △ | ||
| ├───────────────────────────────────────────┴────────────────────┘ | ||
| │ | ||
| ┌────────────┐ | ||
| │ Tests │ | ||
| └────────────┘ | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  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.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes so much more sense now! :D