Skip to content

v0.2

Latest
Compare
Choose a tag to compare
@matthewnanas matthewnanas released this 07 Nov 17:59
· 1 commit to main since this release
  1. When fetching content, the file size is human readable.
    • If content is pinned and available on local IPFS node, the entire file is read in. Relates to Issue 27
  2. New search functionality via searchSTAC method. returns a collection of items
    • A user can now pass in many of the query parameters options
      to search a STAC catalog
    • #39
    • Pairs nicely with the getAssetsFromItem and getAssetFromItem method.
  3. More control for how to upload content to ipfs:
    • By default, CIDv1 are created (Reason for defaulting to CIDv1 over CIDv0)
    • Select whether to pin content to your IPFS node
    • Option to add a (MFS reference) to the content on upload
    • Provide a filename to content that’s uploaded. Gives content a human readable name, especially when you run ipfs pin ls --names which lists the linked pin name i.e. filename
      • If a user uploads a file, the filename is extracted. You can override by passing in a value to this parameter.
    • Override the default (chunking method)
    • Issue 39 is sort of related to the update
  4. Improved how the ipfs daemon starts and stops (issue 34).
    • The Web3 library manages spinning up and shutting down the ipfs daemon by registering the process. If the process is already running, it’s not registered.
  5. Assets are no longer fetched by default issue 32.
    • The user has more control over what and when content should be fetched from IPFS.
  6. Retrieve the asset names from a collection or item. Issue 38 and issue 37
    • Useful in exploring what assets are available. Asset names are what’s passed into the getAssetsFromItem and getAssetFromItem method.
  7. New Web3 class property that automatically grabs all the collection id from the stac endpoint when instantiated.
    • You can quickly print out and identify all the collections available from the stac endpoint that you’re connected to.
    • Pairs nicely with any methods that use collection ids as an input such as the searcSTAC method to specify which collections to search from.
  8. pinned_list returns (recursively pinned) content by default. Meaning the (root) CID of the DAG i.e. the content itself (edited)