Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

refactor: async await roundup #1173

Merged
merged 37 commits into from
Nov 22, 2019
Merged

refactor: async await roundup #1173

merged 37 commits into from
Nov 22, 2019

Commits on Nov 19, 2019

  1. refactor: convert key API to async/await

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    f281b20 View commit details
    Browse the repository at this point in the history
  2. refactor: convert log API to async/await

    BREAKING CHANGE: The `log.tail` method now returns an async iterator that yields log messages. Use it like:
    
    ```js
    for await (const message of ipfs.log.tail()) {
      console.log(message)
    }
    ```
    
    Secondly, the response to a call to `log.level` now returns an object that has camel cased keys. i.e. `Message` and `Error` properties have changed to `message` and `error`.
    
    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    acf2233 View commit details
    Browse the repository at this point in the history
  3. fix: tests

    Alan Shaw committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    0ad3897 View commit details
    Browse the repository at this point in the history
  4. fix: tests

    Alan Shaw committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    e0a4ffd View commit details
    Browse the repository at this point in the history
  5. refactor: convert name API to async/await

    Depends on:
    
    * [ ] ipfs-inactive/interface-js-ipfs-core#561
    
    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    cdf9390 View commit details
    Browse the repository at this point in the history
  6. fix: tests

    Alan Shaw committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    2895384 View commit details
    Browse the repository at this point in the history
  7. refactor: convert misc root level APIs to async/await

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    96b86f5 View commit details
    Browse the repository at this point in the history
  8. Merge branch 'master' into refactor/key-async-await

    Alan Shaw authored Nov 19, 2019
    Configuration menu
    Copy the full SHA
    8638f9c View commit details
    Browse the repository at this point in the history
  9. Merge branch 'master' into refactor/log-async-await

    Alan Shaw authored Nov 19, 2019
    Configuration menu
    Copy the full SHA
    aa33b9a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2c110a5 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2019

  1. Merge branch 'master' into refactor/key-async-await

    Alan Shaw authored Nov 20, 2019
    Configuration menu
    Copy the full SHA
    e673f91 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into refactor/log-async-await

    Alan Shaw authored Nov 20, 2019
    Configuration menu
    Copy the full SHA
    373d1e0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f4476cc View commit details
    Browse the repository at this point in the history
  4. refactor: convert repo API to async await

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Nov 20, 2019
    Configuration menu
    Copy the full SHA
    29cce3a View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2019

  1. refactor: convert stats API to async/await

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    a891032 View commit details
    Browse the repository at this point in the history
  2. refactor: convert swarm API to async/await

    BREAKING CHANGE: Dropped support for go-ipfs <= 0.4.4 in swarm.peers response
    
    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    a88767f View commit details
    Browse the repository at this point in the history
  3. fix: tests

    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    1363199 View commit details
    Browse the repository at this point in the history
  4. refactor: convert mount API to async/await

    BREAKING CHANGE: The signature for `ipfs.mount` has changed from `ipfs.mount([ipfsPath], [ipnsPath])` to `ipfs.mount([options])`. Where `options` is an optional object that may contain two boolean properties `ipfsPath` and `ipnsPath`. The response object has also changed to be camel case. See https://docs.ipfs.io/reference/api/http/#api-v0-mount.
    
    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    c3cd680 View commit details
    Browse the repository at this point in the history
  5. fix: load mount

    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    e011c8e View commit details
    Browse the repository at this point in the history
  6. fix: post all the things

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    4186327 View commit details
    Browse the repository at this point in the history
  7. refactor: convert version API to async/await

    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    2281599 View commit details
    Browse the repository at this point in the history
  8. refactor: convert ping API to async/await

    BREAKING CHANGE: Default ping `count` of 1 in client has been removed. The default ping count is now whatever the IPFS node defaults it to (currently 10). If you specifically need 1 ping message then please pass `count: 1` in options for `ipfs.ping()`.
    
    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    d8da835 View commit details
    Browse the repository at this point in the history
  9. refactor: convert update API to async/await

    Other endpoints are not supported by go-ipfs or js-ipfs and so have been removed.
    
    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    aa83f91 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f0d2aca View commit details
    Browse the repository at this point in the history
  11. fix: remove tests for go-ipfs 0.4.4 peer response

    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    09afe67 View commit details
    Browse the repository at this point in the history
  12. fix: ping sub modules test

    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    3840f40 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    1980530 View commit details
    Browse the repository at this point in the history
  14. Merge branch 'refactor/name-async-await' into refactor/async-await-ro…

    …undup
    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    81e72b3 View commit details
    Browse the repository at this point in the history
  15. Merge branch 'refactor/misc-async-await' into refactor/async-await-ro…

    …undup
    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    12ff0d8 View commit details
    Browse the repository at this point in the history
  16. Merge branch 'refactor/repo-async-await' into refactor/async-await-ro…

    …undup
    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    6ecf79b View commit details
    Browse the repository at this point in the history
  17. Merge branch 'refactor/swarm-async-await' into refactor/async-await-r…

    …oundup
    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    d2beb18 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    78b430a View commit details
    Browse the repository at this point in the history
  19. fix: browser and Node.js configuration

    resolves #1103
    
    BREAKING CHANGE: Multi parameter constructor options are no longer supported. To create a new IPFS HTTP client, pass a single parameter to the constructor. The parameter can be one of:
    
    * String, formatted as one of:
        * Multiaddr e.g. /ip4/127.0.0.1/tcp/5001
        * URL e.g. http://127.0.0.1:5001
    * [Multiaddr](https://www.npmjs.com/package/multiaddr) instance
    * Object, in format of either:
        * Address and path e.g. `{ apiAddr: '/ip4/127.0.0.1/tcp/5001': apiPath: '/api/v0' }` (Note: `apiAddr` can also be a string in URL form or a Multiaddr instance)
        * Node.js style address e.g. `{ host: '127.0.0.1', port: 5001, protocol: 'http' }`
    
    License: MIT
    Signed-off-by: Alan Shaw <[email protected]>
    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    d7adafc View commit details
    Browse the repository at this point in the history
  20. fix: dev dependencies

    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    ec0e66c View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    b9d6d1b View commit details
    Browse the repository at this point in the history
  22. fix: inconsistent error message in browsers

    Alan Shaw committed Nov 21, 2019
    Configuration menu
    Copy the full SHA
    31881e5 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2019

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