Skip to content
This repository was 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: bdea5bc95073f568a3b0ff75ec5c26a64dd2bee0
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: 7f241319856719f2d9f2c1fc4a6b1062ed1ad398
Choose a head ref

Commits on May 11, 2021

  1. Copy the full SHA
    bff33c4 View commit details

Commits on May 13, 2021

  1. feat: allow passing the id of a network peer to ipfs.id (#3386)

    Adds parity with go-IPFS and allows looking up known peer IDs using
    the `ipfs.id` command.
    achingbrain authored May 13, 2021
    Copy the full SHA
    00fd709 View commit details

Commits on May 25, 2021

  1. chore: allow bundlesize gh action to fail (#3700)

    Sometimes it's because there's a duplicate dep version that needs to
    be fixed.
    
    Usually it's because some transitive dep increases it's bundle size
    by a kilobyte or two and has nothing to do with the current PR, so all
    we do is increase the bundlesizeMax value to make it pass.
    
    Let's just make the check informational instead.
    achingbrain authored May 25, 2021
    Copy the full SHA
    51b9105 View commit details
  2. chore: fix commit message for updating example deps (#3699)

    Removes extraneous quotation marks as they are not needed.
    achingbrain authored May 25, 2021
    Copy the full SHA
    724b4eb View commit details
  3. chore: fix commit message for updating example deps (#3699)

    Removes extraneous quotation marks as they are not needed.
    achingbrain authored May 25, 2021
    Copy the full SHA
    2bcec6a View commit details
  4. chore: fix commit message for updating example deps (#3699)

    Removes extraneous quotation marks as they are not needed.
    achingbrain authored May 25, 2021
    Copy the full SHA
    8225bc8 View commit details
  5. fix: remove optional chaining from code that will be transpiled (#3698)

    Optional chaining is supported in node and in browsers but tools that
    transpile code to run in older browsers doesn't understand the syntax.
    
    Specifically the version of acorn that at least vue uses via a dependency
    on webpack 4 does not support this.
    
    It'll be fixed by them upgrading to webpack 5 but the timescale on that
    is unclear, which is why we're using a prerelease version in our examples.
    
    The short term fix is to just remove optional chaining from where we
    are using it in code that will be transpiled for browser use.
    achingbrain authored May 25, 2021
    Copy the full SHA
    96b3909 View commit details

Commits on May 26, 2021

  1. chore: publish

     - interface-ipfs-core@0.146.0
     - ipfs-cli@0.6.0
     - ipfs-client@0.4.1
     - ipfs-core-types@0.5.0
     - ipfs-core-utils@0.8.1
     - ipfs-core@0.7.0
     - ipfs-daemon@0.7.0
     - ipfs-grpc-client@0.3.1
     - ipfs-grpc-server@0.3.2
     - ipfs-http-client@50.1.0
     - ipfs-http-gateway@0.4.1
     - ipfs-http-server@0.5.0
     - ipfs-message-port-client@0.6.2
     - ipfs-message-port-protocol@0.7.1
     - ipfs-message-port-server@0.7.1
     - ipfs@0.55.2
    achingbrain committed May 26, 2021
    Copy the full SHA
    c409603 View commit details
  2. Copy the full SHA
    e294067 View commit details

Commits on Jun 1, 2021

  1. fix: stalling subscription on (node) http-client when daemon is stopp…

    …ed (#3468)
    
    This change fixes #3465 by upgrading to a temporary fork of node-fetch with
    node-fetch/node-fetch#1172 applied.
    
    Co-authored-by: achingbrain <alex@achingbrain.net>
    Gozala and achingbrain authored Jun 1, 2021
    Copy the full SHA
    0266abf View commit details
  2. fix: move wrtc to optional deps (#3705)

    npm7 has started installing peer deps by default, which means if you
    are running a future tech node.js version you may end up compiling
    native addons that may fail.  These addons should be opt-in so move
    them to optional deps which means if they fail to install, the whole
    installation does not fail.
    
    Also adds `@mapbox/node-pre-gyp` as a dependency so we can attempt to 
    compile modules that have native addons where no prebuilt binary is
    available instead of requiring users to install it globally which is
    required due to a misconfiguration in the `webrtc` module.
    achingbrain authored Jun 1, 2021
    Copy the full SHA
    7cf404c View commit details

Commits on Jun 4, 2021

  1. fix: add onError to pubsub.subscribe types (#3706)

    This was missed in #3468.  Also runs the type checker on the pubsub http client
    tests to ensure typing is correct.
    achingbrain authored Jun 4, 2021
    Copy the full SHA
    d910aea View commit details

Commits on Jun 5, 2021

  1. Copy the full SHA
    176eb8e View commit details
  2. chore: publish

     - interface-ipfs-core@0.146.1
     - ipfs-cli@0.6.1
     - ipfs-client@0.4.2
     - ipfs-core-types@0.5.1
     - ipfs-core-utils@0.8.2
     - ipfs-core@0.7.1
     - ipfs-daemon@0.7.1
     - ipfs-grpc-client@0.3.2
     - ipfs-grpc-server@0.3.3
     - ipfs-http-client@50.1.1
     - ipfs-http-gateway@0.4.2
     - ipfs-http-server@0.5.1
     - ipfs-message-port-client@0.6.3
     - ipfs-message-port-protocol@0.7.2
     - ipfs-message-port-server@0.7.2
     - ipfs@0.55.3
    achingbrain committed Jun 5, 2021
    Copy the full SHA
    08be8be View commit details
  3. Copy the full SHA
    c91ef59 View commit details

Commits on Jun 15, 2021

  1. chore: update libp2p noise (#3714)

    With ChainSafe/js-libp2p-noise#100 in, we can now have a smaller bundle size. Also fixes node build
    
    `libp2p-noise`: ~27% decrease on its bundle size, from 191.5kb to 141.2kb (minified+gzipped)
    `ipfs`: ~10% decrease on its bundle size.
    
    Closes #3704
    vasco-santos authored Jun 15, 2021
    Copy the full SHA
    d4a1bf0 View commit details

Commits on Jun 16, 2021

  1. fix: repo auto-migration regression (#3718)

    The recent js-ipfs-repo release changed how options are merged which resulted in the wrong `autoMigrate` value being used.
    
    Pass it in explicitly and add a test to prevent future regressions.
    
    Fixes #3712
    achingbrain authored Jun 16, 2021
    Copy the full SHA
    b5470d4 View commit details

Commits on Jun 18, 2021

  1. chore: simplify streaming http response code and use instances of pub…

    …sub tracker instead of a singleton (#3719)
    
    Simplifies deps, pass peer id as string instead of cid.
    achingbrain authored Jun 18, 2021
    Copy the full SHA
    9e48da3 View commit details
  2. feat: support v2 ipns signatures (#3708)

    Upgrades `ipns` to support v2 sigs. Should be a backwards-compatible change.
    
    Co-authored-by: Vasco Santos <vasco.santos@moxy.studio>
    achingbrain and vasco-santos authored Jun 18, 2021
    Copy the full SHA
    ade01d1 View commit details
  3. chore: publish

     - interface-ipfs-core@0.147.0
     - ipfs-cli@0.6.2
     - ipfs-client@0.4.3
     - ipfs-core-types@0.5.2
     - ipfs-core-utils@0.8.3
     - ipfs-core@0.8.0
     - ipfs-daemon@0.7.2
     - ipfs-grpc-client@0.3.3
     - ipfs-grpc-server@0.3.4
     - ipfs-http-client@50.1.2
     - ipfs-http-gateway@0.4.3
     - ipfs-http-server@0.5.2
     - ipfs-message-port-client@0.6.4
     - ipfs-message-port-protocol@0.7.3
     - ipfs-message-port-server@0.7.3
     - ipfs@0.55.4
    achingbrain committed Jun 18, 2021
    Copy the full SHA
    81f9441 View commit details
  4. Copy the full SHA
    57c3413 View commit details

Commits on Jun 25, 2021

  1. Copy the full SHA
    54478b0 View commit details

Commits on Jul 1, 2021

  1. chore: fix pkg.homepage for ipfs-core-types (#3733)

    I linked from the npm package listing and was suprised to end up at the interface-ipfs-core package.
    olizilla authored Jul 1, 2021
    Copy the full SHA
    cd548e6 View commit details

Commits on Jul 5, 2021

  1. docs: examples/browser-create-react-app (#3694)

    Co-authored-by: kvutien <kvutien@VTKT5.fritz.box>
    Co-authored-by: Marcin Rataj <lidel@lidel.org>
    3 people authored Jul 5, 2021
    Copy the full SHA
    dc041aa View commit details

Commits on Jul 19, 2021

  1. feat: upgrade to the new multiformats (#3556)

    - Replaces the old [interface-ipld-format](https://github.com/ipld/interface-ipld-format) stack with the new [multiformats](https://github.com/multiformats/js-multiformats) stack.
    - The Block API takes/returns `Uint8Array`s instead of [ipld-block](https://github.com/ipld/js-ipld-block) objects
    
    BREAKING CHANGE: ipld-formats no longer supported, use multiformat BlockCodecs instead
    
    Co-authored-by: Rod Vagg <rod@vagg.org>
    Co-authored-by: achingbrain <alex@achingbrain.net>
    3 people authored Jul 19, 2021
    Copy the full SHA
    d13d15f View commit details
  2. fix: make "ipfs resolve" cli command recursive by default (#3707)

    This changes the default behaviour of the `jsipfs resolve` cli command to be recursive by default. Closes #3692.
    
    ```shell
    # in packages/ipfs
    node src/cli.js resolve /ipns/ipfs.io
    /ipfs/bafybeiagozluzfopjadeigrjlsmktseozde2xc5prvighob7452imnk76a
    ```
    
    BREAKING CHANGE: resolve is now recursive by default
    
    Co-authored-by: Alex Potsides <alex@achingbrain.net>
    yusefnapora and achingbrain authored Jul 19, 2021
    Copy the full SHA
    399ce36 View commit details
  3. docs: update browser ipns publish example (#3596)

    Applying all the magic from #3584, updating the dependencies, adding tips (address example) for working with a local node
    
    Co-authored-by: Vasco Santos <vasco.santos@ua.pt>
    Co-authored-by: Alen Šiljak <code@alensiljak.eu.org>
    Co-authored-by: achingbrain <alex@achingbrain.net>
    4 people authored Jul 19, 2021
    Copy the full SHA
    91a84e4 View commit details

Commits on Jul 27, 2021

  1. feat: implement dag import/export (#3728)

    Adds `ipfs.dag.import` and `ipfs.dag.export` commands to import/export CAR files,
    e.g. single-file archives that contain blocks and root CIDs.
    
    Supersedes #2953
    Fixes #2745
    
    Co-authored-by: achingbrain <alex@achingbrain.net>
    rvagg and achingbrain authored Jul 27, 2021
    Copy the full SHA
    700765b View commit details
  2. fix(ipfs-core-types): wrong extension (#3753)

    `.ts` should be `.d.ts`
    bluelovers authored Jul 27, 2021
    Copy the full SHA
    4bad1c6 View commit details
  3. fix: round bandwidth stats (#3735)

    Dividing the bandwidth stats sometimes results in a fraction which we cannot
    convert to a `BigInteger` since it's not an integer...
    
    Fixes #3726
    shikaan authored Jul 27, 2021
    Copy the full SHA
    58fb802 View commit details
  4. fix: support @web-std/file in normalize input (#3750)

    * fix: support @web-std/file in normalize input
    * chore: validate blob/file have a stream property
    * chore: fallback to web-std blob
    * fix: tests
    * chore: use latest file version
    vasco-santos authored Jul 27, 2021
    Copy the full SHA
    6fd7776 View commit details
  5. fix: fix flaky pubsub test (#3761)

    In the http client, when we subscribe to a topic we open a HTTP connection
    which we keep open for the duration of the subscription.
    
    When we unsubscribe we abort the connection but it can remain open for a
    little while after the abort, even if we try to wait on the `fetch` command
    ending before continuting, which leads to the topic still being present in the
    subs list, so retry asserting that the subs list is empty in the tests within
    a certain time window.
    
    Fixes this sort of error:
    
    ```
    ipfs:   1) interface-ipfs-core over ipfs-http-client tests against go-ipfs
    ipfs:        .pubsub.unsubscribe
    ipfs:          should subscribe 5 handlers and unsubscribe once with no reference to the handlers:
    ipfs:       AssertionError: expected [ Array(1) ] to deeply equal []
    ipfs:       + expected - actual
    ipfs:       -[
    ipfs:       -  "pubsub-tests-SVOFzpM5DtbcI7jBETrmm"
    ipfs:       -]
    ipfs:       +[]
    ```
    achingbrain authored Jul 27, 2021
    Copy the full SHA
    8bcf56f View commit details
  6. docs: improve README of browser-create-react-app (#3737)

    Co-authored-by: kvutien <kvutien@VTKT5.fritz.box>
    Co-authored-by: Alex Potsides <alex@achingbrain.net>
    3 people authored Jul 27, 2021
    Copy the full SHA
    9852d14 View commit details
  7. Upgrade to GitHub-native Dependabot (#3658)

    * Upgrade to GitHub-native Dependabot
    * chore: remove ignores
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    Co-authored-by: Alex Potsides <alex@achingbrain.net>
    dependabot-preview[bot] and achingbrain authored Jul 27, 2021
    Copy the full SHA
    3d91be2 View commit details
  8. fix: root datastore extension (#3768)

    Fixes docker build problems
    achingbrain authored Jul 27, 2021
    Copy the full SHA
    62311f8 View commit details
  9. fix: flaky timeout test (#3767)

    If we run a node in offline mode only, it'll never go to the network
    to fetch a CID it doesn't have, so we can't really test timeouts properly.
    achingbrain authored Jul 27, 2021
    Copy the full SHA
    55afc2f View commit details
  10. fix: export ipfs http client type and use option extension for client (

    …#3763)
    
    Bubbles the `OptionExtension` up to the root type for use by the HTTP client and exports an interface for use by consuming modules.
    
    Supersedes #3749 and #3736
    achingbrain authored Jul 27, 2021
    Copy the full SHA
    31bddd4 View commit details
  11. docs: update api docs

    achingbrain committed Jul 27, 2021
    Copy the full SHA
    166d341 View commit details
  12. Copy the full SHA
    1bed859 View commit details
  13. chore: publish

     - interface-ipfs-core@0.148.0
     - ipfs-cli@0.7.0
     - ipfs-client@0.5.0
     - ipfs-core-types@0.6.0
     - ipfs-core-utils@0.9.0
     - ipfs-core@0.9.0
     - ipfs-daemon@0.8.0
     - ipfs-grpc-client@0.4.0
     - ipfs-grpc-server@0.4.0
     - ipfs-http-client@51.0.0
     - ipfs-http-gateway@0.5.0
     - ipfs-http-server@0.6.0
     - ipfs-message-port-client@0.7.0
     - ipfs-message-port-protocol@0.8.0
     - ipfs-message-port-server@0.8.0
     - ipfs@0.56.0
    achingbrain committed Jul 27, 2021
    Copy the full SHA
    ef41f92 View commit details
  14. Copy the full SHA
    4b79dcb View commit details

Commits on Jul 28, 2021

  1. chore: restore git and eth graph traversal examples (#3770)

    These were removed during the multiformats upgrade but they are quite
    useful as a demo of how to configure extra multiformat blockcodecs/hashers
    achingbrain authored Jul 28, 2021
    Copy the full SHA
    d4090e0 View commit details
  2. chore: only run example tests if code has changed (#3773)

    No need to run example tests if we've just changed docs etc.
    achingbrain authored Jul 28, 2021
    Copy the full SHA
    bb6113a View commit details
  3. chore: use multiformats sha3 impl (#3772)

    Use the `@multiformats/sha3` module instead of rolling our own
    achingbrain authored Jul 28, 2021
    Copy the full SHA
    349cbd0 View commit details
  4. docs: update ipld/multiformats docs (#3771)

    Improve docs around how to configure custom block codecs/multibase
    codecs, etc.
    achingbrain authored Jul 28, 2021
    Copy the full SHA
    bf23e48 View commit details

Commits on Jul 30, 2021

  1. Copy the full SHA
    8380d71 View commit details
  2. fix: typo in 'multiformats' type defs (#3778)

    Fixes: #3776
    
    Co-authored-by: achingbrain <alex@achingbrain.net>
    rvagg and achingbrain authored Jul 30, 2021
    Copy the full SHA
    1bf35f8 View commit details
  3. Copy the full SHA
    8178225 View commit details
  4. chore: publish

     - ipfs-cli@0.7.1
     - ipfs-client@0.5.1
     - ipfs-core-types@0.6.1
     - ipfs-core-utils@0.9.1
     - ipfs-core@0.9.1
     - ipfs-daemon@0.8.1
     - ipfs-grpc-client@0.4.1
     - ipfs-grpc-server@0.4.1
     - ipfs-http-client@51.0.1
     - ipfs-http-gateway@0.5.1
     - ipfs-http-server@0.6.1
     - ipfs-message-port-client@0.7.1
     - ipfs-message-port-protocol@0.8.1
     - ipfs-message-port-server@0.8.1
     - ipfs@0.56.1
    achingbrain committed Jul 30, 2021
    Copy the full SHA
    dde3d28 View commit details
  5. Copy the full SHA
    fdc03ab View commit details
Showing 661 changed files with 13,230 additions and 7,997 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "11:00"
open-pull-requests-limit: 10
5 changes: 3 additions & 2 deletions .github/workflows/bundlesize.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest # https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md
strategy:
matrix:
node-version: [15.x]
node-version: [16.x]
project:
- packages/ipfs
- packages/ipfs-core
@@ -25,9 +25,10 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v2
- run: npm install -g @mapbox/node-pre-gyp && npm install
- run: npm install
- name: Bundlesize ${{ matrix.project }}
uses: ipfs/aegir/actions/bundle-size@v32.1.0
continue-on-error: true
with:
project: ${{ matrix.project }}
github_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
project:
- packages/ipfs
- packages/ipfs-cli
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ dist
build
bundle.js
tsconfig-types.aegir.json
tsconfig-check.aegir.json
.tsbuildinfo

# Deployment files
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -66,8 +66,6 @@ before_install:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then export PATH=/c/PROGRA~1/Git/usr/bin:/c/PROGRA~1/Git/mingw64/libexec/git-core:$PATH ; fi
# only run jobs in packages that have changed since master in PR builds
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export RUN_SINCE='--since master' ; fi
# modules with pre-built binaries may not have deployed versions for bleeding-edge node so this lets us fall back to building from source
- npm install -g @mapbox/node-pre-gyp

script:
- npm run test:node -- $RUN_SINCE -- -- --timeout 10000 --bail -- --exit # TODO remove --exit https://mochajs.org/#-exit
@@ -86,6 +84,7 @@ jobs:
- stage: test
name: lint
script:
- npm run build
- npm run lint -- $RUN_SINCE --concurrency 1

- stage: test
@@ -293,7 +292,7 @@ jobs:
script:
# Travis lets scripts continue even if previous steps fail so need to use &&: https://github.com/travis-ci/travis-ci/issues/1066
- npm run configure-examples &&
npm run test -- --scope=example* --concurrency=1
npm run test -- $RUN_SINCE --scope=example* --concurrency=1

- stage: release-rc
# only run on changes to master
2 changes: 0 additions & 2 deletions Dockerfile.latest
Original file line number Diff line number Diff line change
@@ -8,11 +8,9 @@ ENV BUILD_DEPS='libnspr4 libnspr4-dev libnss3'
RUN apk add --no-cache git python3 build-base

# Hopefully remove when https://github.com/node-webrtc/node-webrtc/pull/694 is merged
RUN npm install -g @mapbox/node-pre-gyp
RUN npm install -g ipfs@"$IPFS_VERSION"

# Make the image a bit smaller
RUN npm uninstall -g @mapbox/node-pre-gyp
RUN npm cache clear --force
RUN apk del build-base python3 git

2 changes: 0 additions & 2 deletions Dockerfile.next
Original file line number Diff line number Diff line change
@@ -8,11 +8,9 @@ ENV BUILD_DEPS='libnspr4 libnspr4-dev libnss3'
RUN apk add --no-cache git python3 build-base

# Hopefully remove when https://github.com/node-webrtc/node-webrtc/pull/694 is merged
RUN npm install -g @mapbox/node-pre-gyp
RUN npm install -g ipfs@"$IPFS_VERSION"

# Make the image a bit smaller
RUN npm uninstall -g @mapbox/node-pre-gyp
RUN npm cache clear --force
RUN apk del build-base python3 git

Loading