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

feat: preload object.new object.put object.patch.* #1471

Closed
wants to merge 15 commits into from

Commits on Jul 25, 2018

  1. feat: preload content

    This PR adds a new config property `preload`:
    
    ```js
    new IPFS({
      preload: {
        enabled: false,
        addresses: [{
          bootstrap: '/multiaddr/bootstrap/address/tcp/4001/ipfs/peerId',
          gateway: '/multiaddr/gateway/address/tcp/9090'
        }]
      }
    })
    ```
    
    * `preload.enabled` (default `false`) enables/disabled preloading
    * `preload.addresses` array of node addresses to preload content on
        * `preload.addresses.0.bootstrap` the swarm address of the preload node. This is added to the node's bootstrap addresses
        * `preload.addresses.0.gateway` the gateway address of the preload node. This is the address we make a HTTP HEAD request to, to initiate the preload
    
    After adding content with `ipfs.files.add*` or `ipfs.dag.put`, we make HTTP HEAD requests to _all_ preload gateway addresses (providing `preload.enabled` is true).
    
    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 25, 2018
    Configuration menu
    Copy the full SHA
    197335c View commit details
    Browse the repository at this point in the history
  2. test: add preload tests for ipfs.files.add and make fixes

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 25, 2018
    Configuration menu
    Copy the full SHA
    25a8c4f View commit details
    Browse the repository at this point in the history
  3. refactor: only create new CID if not already stringy

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 25, 2018
    Configuration menu
    Copy the full SHA
    d040f26 View commit details
    Browse the repository at this point in the history
  4. chore: appease the linters

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 25, 2018
    Configuration menu
    Copy the full SHA
    84d2830 View commit details
    Browse the repository at this point in the history
  5. chore: more linter changes

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 25, 2018
    Configuration menu
    Copy the full SHA
    02bfe13 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2018

  1. refactor: switch to /api/v0/refs

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 26, 2018
    Configuration menu
    Copy the full SHA
    aa2478a View commit details
    Browse the repository at this point in the history
  2. fix: many fixes

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 26, 2018
    Configuration menu
    Copy the full SHA
    993a5fb View commit details
    Browse the repository at this point in the history
  3. fix: remove .only

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 26, 2018
    Configuration menu
    Copy the full SHA
    869b305 View commit details
    Browse the repository at this point in the history
  4. fix: fallback in order

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 26, 2018
    Configuration menu
    Copy the full SHA
    dd7041c View commit details
    Browse the repository at this point in the history
  5. fix: start/stop fix and add preload request time logging

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 26, 2018
    Configuration menu
    Copy the full SHA
    73be955 View commit details
    Browse the repository at this point in the history
  6. fix: bootstrap default list in tests

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 26, 2018
    Configuration menu
    Copy the full SHA
    c8e2a23 View commit details
    Browse the repository at this point in the history
  7. fix: more fix bootstrap tests

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 26, 2018
    Configuration menu
    Copy the full SHA
    67300cc View commit details
    Browse the repository at this point in the history
  8. fix: more config fix

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 26, 2018
    Configuration menu
    Copy the full SHA
    1bb9961 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2018

  1. feat: preload object.* API

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 27, 2018
    Configuration menu
    Copy the full SHA
    50500e2 View commit details
    Browse the repository at this point in the history
  2. feat: preload block.put

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    alanshaw committed Jul 27, 2018
    Configuration menu
    Copy the full SHA
    22cd932 View commit details
    Browse the repository at this point in the history