Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

feat: Add option to specify chunking algorithm when adding files #1469

Merged
merged 7 commits into from
Aug 24, 2018

Commits on Aug 23, 2018

  1. feat(core): add option to specify chunking algorithm

    This allows the chunking algorithm, and options to be specified when using the adding files.
    Specifying chunker and options are identical to go-ipfs and support the following formats:
    default, size-{size}, rabin, rabin-{avg}, rabin-{min}-{avg}-{max}
    This is required to achieve parity with go-ipfs.
    
    Fixes ipfs#1283
    
    License: MIT
    Signed-off-by: Dan Ordille <dordille@gmail.com>
    dordille authored and alanshaw committed Aug 23, 2018
    Configuration menu
    Copy the full SHA
    261d6d2 View commit details
    Browse the repository at this point in the history
  2. test: add tests for invalid chunker types and parameters

    License: MIT
    Signed-off-by: Dan Ordille <dordille@gmail.com>
    dordille authored and alanshaw committed Aug 23, 2018
    Configuration menu
    Copy the full SHA
    5867d52 View commit details
    Browse the repository at this point in the history
  3. perf(core): remove alternative rabin chunker format

    License: MIT
    Signed-off-by: Dan Ordille <dordille@gmail.com>
    dordille authored and alanshaw committed Aug 23, 2018
    Configuration menu
    Copy the full SHA
    f9cdfd5 View commit details
    Browse the repository at this point in the history
  4. perf(core): remove default as an accepted chunker format

    License: MIT
    Signed-off-by: Dan Ordille <dordille@gmail.com>
    dordille authored and alanshaw committed Aug 23, 2018
    Configuration menu
    Copy the full SHA
    d236470 View commit details
    Browse the repository at this point in the history
  5. perf(core): remove empty string check in parseChunkerString method

    License: MIT
    Signed-off-by: Dan Ordille <dordille@gmail.com>
    dordille authored and alanshaw committed Aug 23, 2018
    Configuration menu
    Copy the full SHA
    ee070f6 View commit details
    Browse the repository at this point in the history
  6. fix(api): add chunker to validated query keys in files.add

    License: MIT
    Signed-off-by: Dan Ordille <dordille@gmail.com>
    dordille authored and alanshaw committed Aug 23, 2018
    Configuration menu
    Copy the full SHA
    7b38101 View commit details
    Browse the repository at this point in the history
  7. fix(core): catch errors when parsing chunkerstring and return error p…

    …ull stream
    
    License: MIT
    Signed-off-by: Dan Ordille <dordille@gmail.com>
    dordille authored and alanshaw committed Aug 23, 2018
    Configuration menu
    Copy the full SHA
    f9c9d13 View commit details
    Browse the repository at this point in the history