From 2c040bd85d4fba8ee91c24bb6db95fcb1de601b0 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Tue, 9 Mar 2021 12:40:13 +0100 Subject: [PATCH 1/3] fix: conn mgr access to moving averages record object --- .aegir.js | 2 +- src/metrics/stats.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.aegir.js b/.aegir.js index 656414f86a..7c482a515d 100644 --- a/.aegir.js +++ b/.aegir.js @@ -48,7 +48,7 @@ const after = async () => { } module.exports = { - bundlesize: { maxSize: '220kB' }, + bundlesize: { maxSize: '222kB' }, hooks: { pre: before, post: after diff --git a/src/metrics/stats.js b/src/metrics/stats.js index f820c5b429..a445a705f2 100644 --- a/src/metrics/stats.js +++ b/src/metrics/stats.js @@ -82,7 +82,7 @@ class Stats extends EventEmitter { /** * Returns a clone of the internal movingAverages * - * @returns {MovingAverage} + * @returns {Object} */ get movingAverages () { return Object.assign({}, this._movingAverages) From ac5c7f430859a8fe5671d821cf14f35305556f31 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Tue, 9 Mar 2021 14:39:04 +0100 Subject: [PATCH 2/3] chore: remove node 12 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7d5934910d..6a3a59b81f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,7 +27,7 @@ jobs: strategy: matrix: os: [windows-latest, ubuntu-latest, macos-latest] - node: [12, 14] + node: [14] fail-fast: true steps: - uses: actions/checkout@v2 From 0cd432c2c91b0a36e5cd6dd49d69a3ef3c2bfaa0 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Tue, 9 Mar 2021 15:11:11 +0100 Subject: [PATCH 3/3] chore: add parcel workaround --- examples/libp2p-in-the-browser/package.json | 8 ++++---- examples/webrtc-direct/package.json | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/libp2p-in-the-browser/package.json b/examples/libp2p-in-the-browser/package.json index b59c8cdbf9..5a93afd81a 100644 --- a/examples/libp2p-in-the-browser/package.json +++ b/examples/libp2p-in-the-browser/package.json @@ -15,7 +15,7 @@ "author": "", "license": "ISC", "dependencies": { - "@babel/preset-env": "^7.8.3", + "@babel/preset-env": "^7.13.0", "libp2p": "../../", "libp2p-bootstrap": "^0.12.1", "libp2p-mplex": "^0.10.0", @@ -24,11 +24,11 @@ "libp2p-websockets": "^0.14.0" }, "devDependencies": { - "@babel/cli": "^7.8.3", - "@babel/core": "^7.8.3", + "@babel/cli": "^7.13.10", + "@babel/core": "^7.13.0", "babel-plugin-syntax-async-functions": "^6.13.0", "babel-plugin-transform-regenerator": "^6.26.0", "babel-polyfill": "^6.26.0", - "parcel-bundler": "^1.12.4" + "parcel-bundler": "1.12.3" } } diff --git a/examples/webrtc-direct/package.json b/examples/webrtc-direct/package.json index 33f2250d58..f5491c7ba0 100644 --- a/examples/webrtc-direct/package.json +++ b/examples/webrtc-direct/package.json @@ -10,12 +10,12 @@ }, "license": "ISC", "devDependencies": { - "@babel/cli": "^7.8.3", - "@babel/core": "^7.8.3", + "@babel/cli": "^7.13.10", + "@babel/core": "^7.13.10", "babel-plugin-syntax-async-functions": "^6.13.0", "babel-plugin-transform-regenerator": "^6.26.0", "babel-polyfill": "^6.26.0", - "parcel-bundler": "^1.12.4" + "parcel-bundler": "1.12.3" }, "dependencies": { "libp2p": "../../",