Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
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/js-ipfs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.30.1
Choose a base ref
...
head repository: ipfs/js-ipfs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.31.0
Choose a head ref
  • 12 commits
  • 36 files changed
  • 6 contributors

Commits on Jul 17, 2018

  1. chore: enable dag.put with hashAlg test (#1448)

    License: MIT
    Signed-off-by: Alan Shaw <alan@tableflip.io>
    alanshaw authored Jul 17, 2018
    Configuration menu
    Copy the full SHA
    33bbe94 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2018

  1. docs: fix incorrect npm run test line (#1449)

    I believe you meant to write `npm run test:node` in the instructions on how to run the unit tests. The `npm run test:node:core` line was written twice. Cheers
    robbsolter authored and alanshaw committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    d28d13d View commit details
    Browse the repository at this point in the history
  2. docs: add migration note about upgrading from < 0.30.0 (#1450)

    Closes #1444
    
    License: MIT
    Signed-off-by: Pascal Precht <pascal.precht@gmail.com>
    0x-r4bbit authored and alanshaw committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    48aceb1 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2018

  1. revert: docs: add migration note about upgrading from < 0.30.0 (#1450) (

    #1456)
    
    This reverts commit 48aceb1.
    
    This issue was fixed upstream in git-validate with the release of
    version 2.2.4. AEgir 15.0.1 uses that fixed release. As we use
    version ranges for dependencies, it is automatically fixed now.
    Hence reverting the original commit.
    vmx authored and alanshaw committed Jul 20, 2018
    Configuration menu
    Copy the full SHA
    f4344b0 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2018

  1. feat: support --raw-leaves (#1454)

    Also updates pinning to support CIDv1
    achingbrain authored and alanshaw committed Jul 25, 2018
    Configuration menu
    Copy the full SHA
    1f63e8c View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2018

  1. fix: emit boot error only once (#1472)

    `init` and `start` both emit any error they encounter. `boot` will then receive that error and also emit it! This PR adds an `emitted` property in `boot` to errors that came from `init` or `start` so that later in the code it knows whether to emit it or not!
    
    License: MIT
    Signed-off-by: Alan Shaw <alan@tableflip.io>
    alanshaw authored Jul 27, 2018
    Configuration menu
    Copy the full SHA
    45b80a0 View commit details
    Browse the repository at this point in the history
  2. feat: preload content (#1464)

    refs #1459
    
    This PR adds a new config property `preload`:
    
    ```js
    new IPFS({
      preload: {
        enabled: false,
        addresses: ['/multiaddr/api/address']
      }
    })
    ```
    
    * `preload.enabled` (default `false`) enables/disabled preloading - **should the default be false?**
    * `preload.addresses` array of node API addresses to preload content on. This are the addresses we make a `/api/v0/refs?arg=QmHash` request to, to initiate the preload
    
    **This PR upgrades the following APIs to preload content**. After adding content with `ipfs.files.add` (for example), we make a request to the first preload gateway addresses (providing `preload.enabled` is true), and will fall back to the second etc.
    
    * [x] `dag.put`
    * [x] `block.put`
    * [x] `object.new`
    * [x] `object.put`
    * [x] `object.patch.*`
    * [x] `mfs.*`
    
    MFS preloading is slightly different - we periodically submit your MFS root to the preload nodes when it changes.
    
    NOTE: this PR adds an option to `dag`, `block` and `object` APIs allowing users to opt out of preloading by specifying `preload: false` in their options object.
    
    License: MIT
    Signed-off-by: Alan Shaw <alan@tableflip.io>
    alanshaw authored Jul 27, 2018
    Configuration menu
    Copy the full SHA
    bffe080 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2018

  1. Configuration menu
    Copy the full SHA
    e3868f4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    90e9f68 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2018

  1. feat: preload on content fetch requests (#1475)

    When JS IPFS requests content not stored locally it needs to ask the peers it knows about to provide it if they have it. The peers are not relays so if they don't have it, they won't find it and provide it to JS IPFS. However, if we issue a preload request prior to these requests we prompt the preload nodes to fetch the content using their DHT and they can then provide it to JS IPFS.
    
    License: MIT
    Signed-off-by: Alan Shaw <alan@tableflip.io>
    
    * chore: update dependencies (#1473)
    
    * chore: update libp2p and is-ipfs dependencies
    
    License: MIT
    Signed-off-by: Alan Shaw <alan@tableflip.io>
    
    * chore: update all the deps
    
    * fix: rm non used boostrappers from tests
    
    * test: increase mfs preload timeout
    
    * test: pin-set timeout increase
    
    * test: add preload tests for content retrieval
    
    License: MIT
    Signed-off-by: Alan Shaw <alan@tableflip.io>
    
    * fix: GET request not HEAD
    
    License: MIT
    Signed-off-by: Alan Shaw <alan@tableflip.io>
    alanshaw authored Jul 29, 2018
    Configuration menu
    Copy the full SHA
    649b755 View commit details
    Browse the repository at this point in the history
  2. chore: update contributors

    alanshaw committed Jul 29, 2018
    Configuration menu
    Copy the full SHA
    21b3015 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    581816a View commit details
    Browse the repository at this point in the history
Loading