Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs/helia
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: mfs-v4.0.3
Choose a base ref
...
head repository: ipfs/helia
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: mfs-v5.0.0
Choose a head ref
  • 3 commits
  • 21 files changed
  • 3 contributors

Commits on Mar 13, 2025

  1. fix!: require path in addFile call (#754)

    To ensure metadata is always stored, the CID returned from `addFile` will resolve to a directory.
    
    The `path` property is now required of the import candidate passed to `addFile`, if it's not necessary to store a path as part of a file, use `addBytes` or `addByteStream`.
    
    Since `urlSource` returns a `{ content, path }` candidate, it can be used with `addFile`.
    
    To import directly from a URL without a path, a `urlByteStream` function has been added for use with `addByteStream`.
    
    Fixes #707
    
    BREAKING CHANGE: addFile requires the import candidate to have `path` and `content` properties and the returned CID will always resolve to a directory
    
    ---------
    
    Co-authored-by: Daniel N <2color@users.noreply.github.com>
    achingbrain and 2color authored Mar 13, 2025
    Configuration menu
    Copy the full SHA
    c0bf36e View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2025

  1. fix!: return simple stats or extended stats (#760)

    Splits the unixfs/mfs stat command return types into two types - "regular" stats (these only return stats available on the root node of the DAG) and "extended" - these collect stats from the DAG, potentially going to the network to fetch missing blocks.
    
    There are separate simple and extended types for files and dirs, but raw/leaf nodes only get one type since there are never any nodes linked to from them.
    
    As a bonus we can now calculate the size of directories correctly, (as the combination of all child files/directories), assuming all blocks are present in the blockstore or fetchable from the network.
    
    Fixes #580
    
    BREAKING CHANGE: Fields that would involve DAG traversal have been removed from the output of `fs.stat` - pass the `extended` option to have them returned
    
    ---------
    
    Co-authored-by: Daniel Norman <1992255+2color@users.noreply.github.com>
    Co-authored-by: Daniel N <2color@users.noreply.github.com>
    3 people authored Mar 20, 2025
    Configuration menu
    Copy the full SHA
    325b36f View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2025

  1. Configuration menu
    Copy the full SHA
    7e32123 View commit details
    Browse the repository at this point in the history
Loading