From d87c24bb70cfc2a99238ef5d2cd142c0e1ad93ac Mon Sep 17 00:00:00 2001 From: Hugo Dias Date: Tue, 2 Mar 2021 12:22:48 +0000 Subject: [PATCH] fix: update to aegir v31 and others deps --- .github/workflows/main.yml | 22 +++++++++++++++++----- package.json | 22 ++++++++++++++-------- tsconfig.json | 2 +- 3 files changed, 32 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9e81b21..a8241e9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,11 +14,12 @@ jobs: - uses: actions/checkout@v2 - run: npm install - run: npx aegir lint - - uses: gozala/typescript-error-reporter-action@v1.0.8 + - run: npx aegir ts -p check + # or + # - uses: gozala/typescript-error-reporter-action@v1.0.8 - run: npx aegir build - run: npx aegir dep-check - uses: ipfs/aegir/actions/bundle-size@master - name: size with: github_token: ${{ secrets.GITHUB_TOKEN }} test-node: @@ -35,22 +36,33 @@ jobs: with: node-version: ${{ matrix.node }} - run: npm install - - run: npx nyc --reporter=lcov aegir test -t node -- --bail + - run: npx aegir test -t node --bail --cov - uses: codecov/codecov-action@v1 test-chrome: needs: check runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: microsoft/playwright-github-action@v1 - run: npm install - - run: npx aegir test -t browser -t webworker --bail + - run: npx aegir test -t browser -t webworker --bail --cov + - uses: codecov/codecov-action@v1 test-firefox: needs: check runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: microsoft/playwright-github-action@v1 + - run: npm install + - run: npx aegir test -t browser -t webworker --bail -- --browser firefox + test-webkit: + needs: check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: microsoft/playwright-github-action@v1 - run: npm install - - run: npx aegir test -t browser -t webworker --bail -- --browsers FirefoxHeadless + - run: npx aegir test -t browser -t webworker --bail -- --browser webkit test-electron-main: needs: check runs-on: ubuntu-latest diff --git a/package.json b/package.json index 944e1f2..bbf7413 100644 --- a/package.json +++ b/package.json @@ -30,9 +30,9 @@ "check": "aegir ts -p check", "prepare": "aegir build --no-bundle", "docs": "aegir docs", - "release": "aegir release --docs", - "release-minor": "aegir release --type minor --docs", - "release-major": "aegir release --type major --docs", + "release": "aegir release", + "release-minor": "aegir release --type minor", + "release-major": "aegir release --type major", "build": "aegir build", "bench": "node benchmarks/hash.js" }, @@ -40,21 +40,27 @@ "blakejs": "^1.1.0", "err-code": "^3.0.0", "js-sha3": "^0.8.0", - "multihashes": "^3.1.2", + "multihashes": "^4.0.1", "murmurhash3js-revisited": "^3.0.0", - "uint8arrays": "^2.0.5" + "uint8arrays": "^2.1.3" }, "devDependencies": { "@types/sinon": "^9.0.10", - "aegir": "^30.3.0", + "aegir": "^31.0.1", "benchmark": "^2.1.4", - "sinon": "^9.0.2" + "sinon": "^9.0.2", + "util": "^0.12.3" }, "eslintConfig": { "extends": "ipfs" }, + "aegir": { + "build": { + "bundlesizeMax": "15kB" + } + }, "engines": { - "node": ">=10.0.0", + "node": ">=14.0.0", "npm": ">=6.0.0" }, "contributors": [ diff --git a/tsconfig.json b/tsconfig.json index 05372eb..7371337 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "aegir/src/config/tsconfig.aegir.json", + "extends": "./node_modules/aegir/src/config/tsconfig.aegir.json", "compilerOptions": { "outDir": "dist" },