Skip to content

v2.8.0

Choose a tag to compare

@rvagg rvagg released this 07 Mar 11:57
· 290 commits to master since this release

What's Changed

Notable items

  • go.mod now specifies Go 1.19.
  • ReadWrite: add an alternative FinalizeReadOnly+Close flow by @MichaelMure in #376
    • ReadWrite blockstores can now be left open, but read-only with a new FinalizeReadOnly() method which should be followed-up by a Close() when the blockstore is no longer needed. These two operations are currently combined in the Finalize() method.
  • blockstore: fast path for AllKeysChan using the index by @MichaelMure in #372
    • Iterating over the keys in a ReadWrite blockstore is now significantly faster and more efficient
  • Add WithTrustedCar() reader option by @hsanjuan in #381
    • A BlockReader can be opened with carv2.WithTrustedCAR(true) to disable block data being hashed and checked against the CID. Where a CAR is from a trusted source this can significantly speed up iterating through the blocks.
  • feat: extract specific path, accept stdin as streaming input by @rvagg in #384
    • The car extract command has new superpowers:
      • car extract without a -f input file will read streaming CAR data from stdin
      • car extract -p /path/to/data will apply UnixFS pathing to the extraction and extract a specific file, or directory (including subdirectories)
      • Supplying - as the destination for car extract will send the output to stdout where the output would be a single file.
      • Incomplete DAGs are no longer always fatal during car extract; where possible, missing parts will be skipped, with a notice about what is being skipped provided to stderr.

Other changes

  • deps(cmd): update go-internal dependency by @rvagg in #364
  • Update dependencies, upgrade unified-ci by @rvagg in #371
  • chore(deps): bump github.com/ipfs/go-unixfsnode from 1.5.1 to 1.5.2 in /v2 by @dependabot in #370
  • chore(deps): bump github.com/multiformats/go-multicodec from 0.8.0 to 0.8.1 in /v2 by @dependabot in #374
  • chore(deps): bump github.com/ipfs/go-libipfs from 0.5.0 to 0.6.0 by @dependabot in #377
  • chore(deps): bump github.com/ipfs/go-libipfs from 0.5.0 to 0.6.0 in /v2 by @dependabot in #379
  • chore(deps): bump github.com/ipfs/go-merkledag from 0.9.0 to 0.10.0 in /v2 by @dependabot in #380
  • chore(deps): bump github.com/ipfs/go-merkledag from 0.9.0 to 0.10.0 by @dependabot in #378
  • chore(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2 by @dependabot in #382
  • chore(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2 in /v2 by @dependabot in #383

New Contributors

Full Changelog: v2.7.0...v2.8.0