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: 2f526025a3603026553b320e050e57e2ee564562
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: f9099fd0b24c0f474f5a9a3309c16adad5574b83
Choose a head ref

Commits on Jan 22, 2021

  1. Copy the full SHA
    899d529 View commit details

Commits on Jan 29, 2021

  1. fix: updates webpack example to use v5 (#3512)

    Takes the config from the service worker example and uses it to patch up the webpack example to use v5
    
    fixes: #3511
    achingbrain authored Jan 29, 2021
    Copy the full SHA
    c7110db View commit details
  2. feat: enable upnp nat hole punching (#3426)

    On by default, set [Swarm.DisableNatPortMap](https://github.com/ipfs/go-ipfs/blob/master/docs/config.md#swarmdisablenatportmap) to `true` to disable.
    achingbrain authored Jan 29, 2021
    Copy the full SHA
    65dc161 View commit details

Commits on Jan 30, 2021

  1. feat: support remote pinning services in ipfs-http-client (#3293)

    Implement [remote pinning service API](https://github.com/ipfs/pinning-services-api-spec) in ipfs-http-client.
    lidel authored Jan 30, 2021
    Copy the full SHA
    ba240fd View commit details
  2. fix: run the update example deps script in master and not in ci (#3515)

    Do the work all in the js script, not half in js and half in the npm
    script.
    achingbrain authored Jan 30, 2021
    Copy the full SHA
    7e188f2 View commit details

Commits on Jan 31, 2021

  1. chore: update deps (#3514)

    BREAKING CHANGE: ipfs-repo upgrade requires repo migration to v10
    achingbrain authored Jan 31, 2021
    Copy the full SHA
    061d77c View commit details

Commits on Feb 1, 2021

  1. Copy the full SHA
    1eb37be View commit details
  2. Copy the full SHA
    eaf5a28 View commit details
  3. chore: publish

     - test-ipfs-example@3.0.0
     - interface-ipfs-core@0.144.0
     - ipfs-cli@0.4.0
     - ipfs-client@0.3.0
     - ipfs-core-types@0.3.0
     - ipfs-core-utils@0.7.0
     - ipfs-core@0.5.0
     - ipfs-daemon@0.5.0
     - ipfs-grpc-client@0.2.0
     - ipfs-grpc-protocol@0.2.0
     - ipfs-grpc-server@0.2.0
     - ipfs-http-client@49.0.0
     - ipfs-http-gateway@0.3.0
     - ipfs-http-server@0.3.0
     - ipfs-message-port-client@0.5.0
     - ipfs-message-port-protocol@0.6.0
     - ipfs-message-port-server@0.6.0
     - ipfs@0.54.0
    achingbrain committed Feb 1, 2021
    Copy the full SHA
    91df292 View commit details

Commits on Feb 2, 2021

  1. Copy the full SHA
    d2632ff View commit details
  2. Copy the full SHA
    8daa153 View commit details
  3. Copy the full SHA
    e1f1374 View commit details
  4. Copy the full SHA
    53399d6 View commit details
  5. chore: publish

     - ipfs-cli@0.4.1
     - ipfs-client@0.3.1
     - ipfs-core@0.5.1
     - ipfs-daemon@0.5.1
     - ipfs-grpc-client@0.2.1
     - ipfs-grpc-server@0.2.1
     - ipfs-http-client@49.0.1
     - ipfs-http-server@0.3.1
     - ipfs-message-port-client@0.5.1
     - ipfs-message-port-server@0.6.1
     - ipfs@0.54.1
    achingbrain committed Feb 2, 2021
    Copy the full SHA
    10fc290 View commit details
  6. Copy the full SHA
    9cbc09c View commit details

Commits on Feb 7, 2021

  1. fix: ts types after multihashing-async release (#3529)

    The new types in multihashing-async are unsurprisingly stricter than using no types at all.
    
    fixes #3527
    achingbrain authored Feb 7, 2021
    Copy the full SHA
    95b891f View commit details

Commits on Feb 8, 2021

  1. chore: update native-abort-controller module (#3521)

    To avoid extending built-in classes you now need to use named exports when importing `native-abort-controller`.
    
    Fixes #3509
    achingbrain authored Feb 8, 2021
    Copy the full SHA
    516505b View commit details
  2. chore: publish

     - interface-ipfs-core@0.144.1
     - ipfs-cli@0.4.2
     - ipfs-client@0.3.2
     - ipfs-core-utils@0.7.1
     - ipfs-core@0.5.2
     - ipfs-daemon@0.5.2
     - ipfs-grpc-client@0.2.2
     - ipfs-grpc-server@0.2.2
     - ipfs-http-client@49.0.2
     - ipfs-http-gateway@0.3.1
     - ipfs-http-server@0.3.2
     - ipfs-message-port-client@0.5.2
     - ipfs@0.54.2
    achingbrain committed Feb 8, 2021
    Copy the full SHA
    ff76e7c View commit details
  3. Copy the full SHA
    a153d91 View commit details

Commits on Feb 18, 2021

  1. chore: fix rc publishing (#3561)

    Lerna doesn't work with npm automation tokens out of the box, need
    to disable auth verification for the time being.
    
    Refs: lerna/lerna#2788
    achingbrain authored Feb 18, 2021
    Copy the full SHA
    49840cd View commit details

Commits on Feb 19, 2021

  1. Copy the full SHA
    d05a084 View commit details
  2. Copy the full SHA
    27e31ad View commit details

Commits on Feb 22, 2021

  1. Copy the full SHA
    e25091c View commit details

Commits on Feb 25, 2021

  1. docs: fix webrtc-star link (#3571)

    - fixes a broken link in docs
    - replaces deprecated webrtc-star used for demo purposes with two redundant ones
    lidel authored Feb 25, 2021
    Copy the full SHA
    7e33d82 View commit details

Commits on Mar 7, 2021

  1. fix: update to new aegir (#3528)

    - update aegir
    - fix some linting
    - enable multiple test runs at the same time (all servers now try to find free ports)
    
    Co-authored-by: achingbrain <alex@achingbrain.net>
    hugomrdias and achingbrain authored Mar 7, 2021
    Copy the full SHA
    49f7880 View commit details

Commits on Mar 8, 2021

  1. fix: bitswap related typedefs (#3580)

    Fixes up types so they align here ipfs/js-ipfs-bitswap#261
    
    Co-authored-by: achingbrain <alex@achingbrain.net>
    Gozala and achingbrain authored Mar 8, 2021
    Copy the full SHA
    1af82d1 View commit details

Commits on Mar 9, 2021

  1. Copy the full SHA
    549d560 View commit details
  2. Copy the full SHA
    328deaf View commit details
  3. chore: publish

     - interface-ipfs-core@0.144.2
     - ipfs-cli@0.4.3
     - ipfs-client@0.3.3
     - ipfs-core-types@0.3.1
     - ipfs-core-utils@0.7.2
     - ipfs-core@0.5.3
     - ipfs-daemon@0.5.3
     - ipfs-grpc-client@0.2.3
     - ipfs-grpc-server@0.2.3
     - ipfs-http-client@49.0.3
     - ipfs-http-gateway@0.3.2
     - ipfs-http-server@0.3.3
     - ipfs-message-port-client@0.5.3
     - ipfs-message-port-protocol@0.6.1
     - ipfs-message-port-server@0.6.2
     - ipfs@0.54.3
    achingbrain committed Mar 9, 2021
    Copy the full SHA
    0af3b76 View commit details
  4. Copy the full SHA
    d521a06 View commit details

Commits on Mar 10, 2021

  1. chore: create bundle during prepare step

    aegir release runs build then npm publish.  npm publish runs prepare
    which removes the dist folder and creates type defs.
    
    We need typedefs and the bundle so just run the build step. This will
    make building take a little longer.
    achingbrain committed Mar 10, 2021
    Copy the full SHA
    611b8a4 View commit details
  2. chore: publish

     - ipfs-cli@0.4.4
     - ipfs-client@0.3.4
     - ipfs-core@0.5.4
     - ipfs-daemon@0.5.4
     - ipfs-grpc-client@0.2.4
     - ipfs-grpc-server@0.2.4
     - ipfs-http-client@49.0.4
     - ipfs-http-server@0.3.4
     - ipfs-message-port-client@0.5.4
     - ipfs-message-port-server@0.6.3
     - ipfs@0.54.4
    achingbrain committed Mar 10, 2021
    Copy the full SHA
    511147b View commit details
  3. Copy the full SHA
    c47a633 View commit details

Commits on Mar 22, 2021

  1. Copy the full SHA
    a192944 View commit details

Commits on Mar 31, 2021

  1. chore: upgrade deps with new typedefs (#3550)

    Upgrades to new version with types
    
    - Uses default aegir ts config
    - Fixes all ts errors
    - Fully types core-api in ipfs-core-types package
    - Makes ipfs-core implement types from ipfs-core-types package
    - Removes duplicate types, ipfs-core-types as single source of type truth
    - Reduces use of external APIs by internal components in ipfs-core
    - Switches to named exports
    
    BREAKING CHANGE: all core api methods now have types, some method signatures have changed, named exports are now used by the http, grpc and ipfs client modules
    achingbrain authored Mar 31, 2021
    Copy the full SHA
    a418a52 View commit details

Commits on Apr 1, 2021

  1. chore: update node version in docker build (#3603)

    The optional chaining operator requires a supported node.
    
    Also updates the engines field where defined to reflect this.
    
    BREAKING CHANGE: Minimum supported node version is 14
    achingbrain authored Apr 1, 2021
    Copy the full SHA
    087fd1e View commit details
  2. chore: update it-to-buffer dep (#3606)

    Updates dep to get version without Buffer dependency
    achingbrain authored Apr 1, 2021
    Copy the full SHA
    6870873 View commit details

Commits on Apr 7, 2021

  1. chore: fix types (#3608)

    Updates deps, fixes typos.
    
    Not sure why the compiler doesn't pick up things like this.
    achingbrain authored Apr 7, 2021
    Copy the full SHA
    74bfce3 View commit details

Commits on Apr 19, 2021

  1. docs: ipfs.object.get typo fix (#3600)

    AFAIK it is `Data` and `Links`, not `data`
    lidel authored Apr 19, 2021
    Copy the full SHA
    63b11e5 View commit details

Commits on Apr 27, 2021

  1. chore: update buffer deps (#3607)

    Updates deps to pull in Buffer@6.x.x
    
    Refs #3604
    Fixes #3389
    
    Co-authored-by: Vasco Santos <vasco.santos@moxy.studio>
    achingbrain and vasco-santos authored Apr 27, 2021
    Copy the full SHA
    c79d3d6 View commit details
  2. fix: update data type for ws message event handler (#3641)

    The data type was wrong so use the version from the `ws` module
    achingbrain authored Apr 27, 2021
    Copy the full SHA
    4a14d20 View commit details

Commits on Apr 28, 2021

  1. fix: do not republish self key twice (#3634)

    * fix: do not republish self key twice
    
    * chore: decrease brodcast initial delay
    
    * chore: decrease other test timers
    vasco-santos authored Apr 28, 2021
    Copy the full SHA
    8545a76 View commit details
  2. chore: update ipld-dag-cbor (#3642)

    Pulls in the latest borc for the latest buffer, also ipld and ipld-dag-cbor, all for the latest buffer.
    achingbrain authored Apr 28, 2021
    Copy the full SHA
    d46559d View commit details
  3. Copy the full SHA
    3d68a44 View commit details
  4. chore: fix docker images (#3651)

    The python package has gone, we need to use python3 instead.
    
    There's a futher problem with npm not setting the $PATH properly so
    it fails as it can't find pbjs, but this is only necessary with gh
    dep versions which should go away with the next libp2p-kad-dht/libp2p-gossipsub
    releases.
    achingbrain authored Apr 28, 2021
    Copy the full SHA
    93e7dc4 View commit details
  5. chore: update libp2p to final release version (#3652)

    Also libp2p-kad-dht and libp2p-gossipsub.
    achingbrain authored Apr 28, 2021
    Copy the full SHA
    9e5afd6 View commit details
  6. feat: support identity hash in block.get + dag.get (#3616)

    - Adds support for identity hashes in ipfs-repo blockstore
    - Add core interface tests for block.get and dag.get when fetching identity hashes
    
    Refs: ipfs/js-ipfs-repo#297
    Closes:  #3289
    
    Co-authored-by: Alex Potsides <alex@achingbrain.net>
    hannahhoward and achingbrain authored Apr 28, 2021
    Copy the full SHA
    28ad9ad View commit details

Commits on Apr 29, 2021

  1. fix: ignore the ts error caused by the recent protobufjs type change (#…

    …3656)
    
    The json generated by protobufjs is now not compatible with the types on
    protobufjs's `fromJSON` method.
    achingbrain authored Apr 29, 2021
    Copy the full SHA
    084589c View commit details
  2. chore: fix docker images (#3654)

    Install node-pre-gyp before IPFS and switch to official node image
    as the size difference is now quite small.
    achingbrain authored Apr 29, 2021
    Copy the full SHA
    7e61fbf View commit details

Commits on Apr 30, 2021

  1. fix: update types after feedback from ceramic (#3657)

    Some of the types need a little correcting.
    
    Fixes #3640
    achingbrain authored Apr 30, 2021
    Copy the full SHA
    0ddbb1b View commit details
Showing 1,032 changed files with 27,851 additions and 15,887 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
23 changes: 9 additions & 14 deletions .github/workflows/bundlesize.yml
Original file line number Diff line number Diff line change
@@ -7,33 +7,28 @@ on:
name: Bundlesize
jobs:
check:
runs-on: ubuntu-latest
runs-on: ubuntu-latest # https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md
strategy:
matrix:
node-version: [12.x]
node-version: [16.x]
project:
- packages/ipfs-core-utils
- packages/ipfs
- packages/ipfs-core
- packages/ipfs-client
- packages/ipfs-grpc-client
- packages/ipfs-http-client
- packages/ipfs
- packages/ipfs-message-port-protocol
- packages/ipfs-message-port-client
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Restore dependencies
id: cache-modules
uses: actions/checkout@v2
with:
path: node_modules
key: ${{ matrix.node-version }}-${{ runner.OS }}-build-${{ hashFiles('package.json') }}
- name: Install dependencies
run: npm install
- uses: actions/checkout@v2
- run: npm install
- name: Bundlesize ${{ matrix.project }}
uses: ipfs/aegir/actions/bundle-size@v29.0.0
uses: ipfs/aegir/actions/bundle-size@v32.1.0
continue-on-error: true
with:
project: ${{ matrix.project }}
github_token: ${{ secrets.GITHUB_TOKEN }}
25 changes: 13 additions & 12 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
@@ -9,32 +9,33 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [16.x]
project:
- packages/ipfs-core-utils
- packages/ipfs-core
- packages/ipfs-http-client
- packages/ipfs
- packages/ipfs-cli
- packages/ipfs-http-server
- packages/ipfs-client
- packages/ipfs-core
- packages/ipfs-core-types
- packages/ipfs-core-utils
- packages/ipfs-daemon
- packages/ipfs-grpc-client
- packages/ipfs-grpc-server
- packages/ipfs-http-client
- packages/ipfs-http-gateway
- packages/ipfs-http-server
- packages/ipfs-message-port-client
- packages/ipfs-message-port-protocol
- packages/ipfs-message-port-server
- packages/ipfs-message-port-client
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Restore dependencies
id: cache-modules
uses: actions/checkout@v2
with:
path: node_modules
key: ${{ matrix.node-version }}-${{ runner.OS }}-build-${{ hashFiles('package.json') }}
- name: Install dependencies
run: npm install
- name: Build types
run: npm run build
- name: Typecheck ${{ matrix.project }}
uses: gozala/typescript-error-reporter-action@v1.0.8
with:
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ coverage
tests_output
cache
.cache
.parcel-cache

# Dependency directory
node_modules
@@ -19,6 +20,9 @@ node_modules
dist
build
bundle.js
tsconfig-types.aegir.json
tsconfig-check.aegir.json
.tsbuildinfo

# Deployment files
.npmrc
92 changes: 51 additions & 41 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
language: node_js
dist: bionic

cache:
# https://travis-ci.community/t/npm-cache-on-windows-supplies-incorrect-dependency-versions/11335
npm: false

services:
- xvfb
@@ -31,25 +36,39 @@ env:
addons:
apt:
packages:
# Fixes error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
# https://github.com/electron/electron/issues/1518
- libgconf-2-4
# Ensure chrome is the latest version
# https://stackoverflow.com/questions/57903415/travis-ci-chrome-62-instead-of-77
- dpkg
# # These are required to run webkit
# - libwoff1
# - libopus0
# - libwebp6
# - libwebpdemux2
# - libenchant1c2a
# - libgudev-1.0-0
# - libsecret-1-0
# - libhyphen0
# - libgdk-pixbuf2.0-0
# - libegl1
# - libgles2
# - libevent-2.1-6
# - libnotify4
# - libxslt1.1
# - libvpx5
# # gstreamer and plugins to support video playback in WebKit.
# - gstreamer1.0-gl
# - gstreamer1.0-plugins-base
# - gstreamer1.0-plugins-good
# - gstreamer1.0-plugins-bad
# This is required to run chromium
- libgbm1
chrome: stable
firefox: latest

before_install:
# prevents windows error: npm ERR! ... git-sh-setup: file not found
- 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 node-pre-gyp

script:
- npm run test:node -- $RUN_SINCE -- -- --timeout 10000 --bail
- npm run test:node -- $RUN_SINCE -- -- --timeout 10000 --bail -- --exit # TODO remove --exit https://mochajs.org/#-exit

jobs:
allow_failures:
@@ -60,13 +79,12 @@ jobs:
- name: external - service-worker-gateway
- name: external - orbit-db
- name: external - ipfs-log
- name: external - sidetree

include:
# manual install step, we do this to cache the installed files for subsequent steps
- stage: test
name: lint
script:
- npm run build
- npm run lint -- $RUN_SINCE --concurrency 1

- stage: test
@@ -92,12 +110,12 @@ jobs:
- stage: test
name: firefox
script:
- npm run test:browser -- $RUN_SINCE -- -- --bail --browsers FirefoxHeadless
- npm run test:browser -- $RUN_SINCE -- -- --bail -- --browser firefox

- stage: test
name: firefox webworker
script:
- npm run test:webworker -- $RUN_SINCE -- -- --bail --browsers FirefoxHeadless --timeout 60000
- npm run test:webworker -- $RUN_SINCE -- -- --bail --timeout 60000 -- --browser firefox

- stage: test
name: electron-main
@@ -132,7 +150,7 @@ jobs:
- stage: test
name: js-ipfs interface tests - node
script:
- npm run test:interface:core -- $RUN_SINCE -- -- --bail -t node
- npm run test:interface:core -- $RUN_SINCE -- -- --bail -t node -- --exit # TODO remove --exit https://mochajs.org/#-exit

- stage: test
name: js-ipfs interface tests - chrome
@@ -147,12 +165,12 @@ jobs:
- stage: test
name: js-ipfs interface tests - firefox
script:
- npm run test:interface:core -- $RUN_SINCE -- -- --bail -t browser --browsers FirefoxHeadless
- npm run test:interface:core -- $RUN_SINCE -- -- --bail -t browser -- --browser firefox

- stage: test
name: js-ipfs interface tests - firefox webworker
script:
- npm run test:interface:core -- $RUN_SINCE -- -- --bail -t webworker --browsers FirefoxHeadless --timeout 60000
#- stage: test
# name: js-ipfs interface tests - firefox webworker
# script:
# - npm run test:interface:core -- $RUN_SINCE -- -- --bail -t webworker --timeout 60000 -- --browser firefox

- stage: test
name: js-ipfs interface tests - electron main
@@ -167,7 +185,7 @@ jobs:
- stage: test
name: js-ipfs interface tests - ipfs-client - node
script:
- npm run test:interface:client -- $RUN_SINCE -- -- --bail -t node
- npm run test:interface:client -- $RUN_SINCE -- -- --bail -t node -- --exit # TODO remove --exit https://mochajs.org/#-exit

- stage: test
name: js-ipfs interface tests - ipfs-client - chrome
@@ -182,12 +200,12 @@ jobs:
- stage: test
name: js-ipfs interface tests - ipfs-client - firefox
script:
- npm run test:interface:client -- $RUN_SINCE -- -- --bail -t browser --browsers FirefoxHeadless
- npm run test:interface:client -- $RUN_SINCE -- -- --bail -t browser -- --browser firefox

- stage: test
name: js-ipfs interface tests - ipfs-client - firefox webworker
script:
- npm run test:interface:client -- $RUN_SINCE -- -- --bail -t webworker --browsers FirefoxHeadless --timeout 60000
- npm run test:interface:client -- $RUN_SINCE -- -- --bail -t webworker --timeout 60000 -- --browser firefox

- stage: test
name: js-ipfs interface tests - ipfs-client - electron main
@@ -202,7 +220,7 @@ jobs:
- stage: test
name: http-api-client interface tests vs go-ipfs - node
script:
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t node
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t node -- --exit # TODO remove --exit https://mochajs.org/#-exit

- stage: test
name: http-api-client interface tests vs go-ipfs - chrome
@@ -217,17 +235,17 @@ jobs:
- stage: test
name: http-api-client interface tests vs go-ipfs - firefox
script:
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t browser --browsers FirefoxHeadless
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t browser -- --browser firefox

- stage: test
name: http-api-client interface tests vs go-ipfs - firefox webworker
script:
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t webworker --browsers FirefoxHeadless --timeout 60000
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t webworker --timeout 60000 -- --browser firefox

- stage: test
name: http-api-client interface tests vs js-ipfs - node
script:
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t node
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t node -- --exit # TODO remove --exit https://mochajs.org/#-exit

- stage: test
name: http-api-client interface tests vs js-ipfs - chrome
@@ -242,12 +260,12 @@ jobs:
- stage: test
name: http-api-client interface tests vs js-ipfs - firefox
script:
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t browser --browsers FirefoxHeadless
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t browser --browser firefox

- stage: test
name: http-api-client interface tests vs js-ipfs - firefox webworker
script:
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t webworker --browsers FirefoxHeadless --timeout 60000
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t webworker --timeout 60000 -- --browser firefox

- stage: test
name: http-api-client interface tests vs js-ipfs - electron main
@@ -267,15 +285,14 @@ jobs:
- stage: test
name: ipfs-message-port-client interface tests - firefox
script:
- npm run test:interface:message-port-client -- $RUN_SINCE -- -- --bail -t browser --browsers FirefoxHeadless
- npm run test:interface:message-port-client -- $RUN_SINCE -- -- --bail -t browser -- --browser firefox

- stage: test
name: examples
script:
# Travis lets scripts continue even if previous steps fail: https://github.com/travis-ci/travis-ci/issues/1066
- npm run build -- --scope={ipfs-core,ipfs,ipfs-http-client,ipfs-message-port-*} &&
npm run configure-examples &&
npm run test -- --scope=example* --concurrency=1
# 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 -- $RUN_SINCE --scope=example* --concurrency=1

- stage: release-rc
# only run on changes to master
@@ -352,12 +369,5 @@ jobs:
script:
- npm run test:external -- -- -- https://github.com/orbitdb/ipfs-log.git --deps=ipfs@next

- stage: test-external
# only run on changes to master
if: branch = master AND type = push AND fork = false
name: external - sidetree
script:
- npm run test:external -- -- -- https://github.com/decentralized-identity/sidetree.git --deps=ipfs@next

notifications:
email: false
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ Please see the individual package changelogs for what's new:
* [`/packages/ipfs/CHANGELOG.md`](./packages/ipfs/CHANGELOG.md)
* [`/packages/ipfs-core-utils/CHANGELOG.md`](./packages/ipfs-core-utils/CHANGELOG.md)
* [`/packages/ipfs-http-client/CHANGELOG.md`](./packages/ipfs-http-client/CHANGELOG.md)
* [`/packages/ipfs-message-port-client/CHANGELOG.md`](./packages/ipfs-http-client/CHANGELOG.md)
* [`/packages/ipfs-http-server/CHANGELOG.md`](./packages/ipfs-http-server/CHANGELOG.md)
* [`/packages/ipfs-message-port-client/CHANGELOG.md`](./packages/ipfs-message-port-client/CHANGELOG.md)
* [`/packages/ipfs-message-port-protocol/CHANGELOG.md`](./packages/ipfs-message-port-protocol/CHANGELOG.md)
* [`/packages/ipfs-message-port-server/CHANGELOG.md`](./packages/ipfs-message-port-server/CHANGELOG.md)
9 changes: 5 additions & 4 deletions Dockerfile.latest
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
FROM mhart/alpine-node:12
FROM node:16-alpine

ENV IPFS_VERSION=latest
ENV IPFS_MONITORING=1
ENV IPFS_PATH=/root/.jsipfs
ENV BUILD_DEPS='libnspr4 libnspr4-dev libnss3'

RUN apk add --no-cache git python build-base
RUN apk add --no-cache git python3 build-base

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

# Make the image a bit smaller
RUN npm cache clear --force
RUN apk del build-base python git
RUN apk del build-base python3 git

# Configure jsipfs
RUN jsipfs init
9 changes: 5 additions & 4 deletions Dockerfile.next
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
FROM mhart/alpine-node:12
FROM node:16-alpine

ENV IPFS_VERSION=next
ENV IPFS_MONITORING=1
ENV IPFS_PATH=/root/.jsipfs
ENV BUILD_DEPS='libnspr4 libnspr4-dev libnss3'

RUN apk add --no-cache git python build-base
RUN apk add --no-cache git python3 build-base

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

# Make the image a bit smaller
RUN npm cache clear --force
RUN apk del build-base python git
RUN apk del build-base python3 git

# Configure jsipfs
RUN jsipfs init
Loading