From a24ef683055b0a9e4a59a33f424ff49d620d6278 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 16 Apr 2021 17:31:25 +0100 Subject: [PATCH 1/3] chore: update deps Pull in latest multiaddr, mafmt, etc for new buffer --- package.json | 6 +++--- src/index.js | 2 +- test/test-multiaddr.spec.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 410c427..d1e0938 100644 --- a/package.json +++ b/package.json @@ -43,14 +43,14 @@ "dependencies": { "cids": "^1.1.6", "iso-url": "^1.1.3", - "mafmt": "^8.0.4", - "multiaddr": "^8.1.2", + "mafmt": "^9.0.0", + "multiaddr": "^9.0.1", "multibase": "^4.0.2", "multihashes": "^4.0.2", "uint8arrays": "^2.1.3" }, "devDependencies": { - "aegir": "^31.0.3", + "aegir": "^33.1.0", "pre-commit": "^1.2.2" }, "engines": { diff --git a/src/index.js b/src/index.js index 70ba37b..2809799 100644 --- a/src/index.js +++ b/src/index.js @@ -2,7 +2,7 @@ const multihash = require('multihashes') const multibase = require('multibase') -const Multiaddr = require('multiaddr') +const { Multiaddr } = require('multiaddr') const mafmt = require('mafmt') const CID = require('cids') const { URL } = require('iso-url') diff --git a/test/test-multiaddr.spec.js b/test/test-multiaddr.spec.js index 8f1cd97..2a784c3 100644 --- a/test/test-multiaddr.spec.js +++ b/test/test-multiaddr.spec.js @@ -2,7 +2,7 @@ 'use strict' const { expect } = require('aegir/utils/chai') -const Multiaddr = require('multiaddr') +const { Multiaddr } = require('multiaddr') const isIPFS = require('../src/index') const uint8ArrayFromString = require('uint8arrays/from-string') From da7fabc21b02bea182044dd4e57f6b3338894f0b Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 16 Apr 2021 17:33:03 +0100 Subject: [PATCH 2/3] chore: do not use nyc for coverage --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b437ba0..87907bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ os: - osx - windows -script: npx nyc -s npm run test:node -- --bail +script: npx aegir run test -t node --cov --bail after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov jobs: From 7bb9d77888939fb9c6f364c8085d37201c661b1f Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 16 Apr 2021 17:38:54 +0100 Subject: [PATCH 3/3] chore: use correct aegir command --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 87907bf..e6e7b53 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ os: - osx - windows -script: npx aegir run test -t node --cov --bail +script: npx aegir test -t node --cov --bail after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov jobs: