From 43097220ca08dab18a85c817d7591b2c05fd2a2a Mon Sep 17 00:00:00 2001 From: David Halls Date: Thu, 1 Feb 2024 22:16:34 +0000 Subject: [PATCH] Update deps --- .github/workflows/ci.yml | 14 +- Gruntfile.js | 2 +- bench/common/index.js | 9 +- coverage/lcov-report/index.html | 2 +- coverage/lcov-report/qlobber/aedes/index.html | 2 +- .../qlobber/aedes/qlobber-sub.js.html | 2 +- coverage/lcov-report/qlobber/index.html | 2 +- coverage/lcov-report/qlobber/index.js.html | 2 +- coverage/lcov-report/qlobber/lib/index.html | 2 +- .../lcov-report/qlobber/lib/qlobber.js.html | 2 +- .../qlobber/lib/wrap_native.js.html | 2 +- .../lcov-report/qlobber/native/index.html | 2 +- .../lcov-report/qlobber/native/index.js.html | 2 +- native/package-lock.json | 37 +- native/package.json | 6 +- package-lock.json | 462 ++++++++++-------- package.json | 17 +- test/aedes.js | 6 +- test/dedup.js | 8 +- test/dedup_threads.js | 8 +- test/fixtures/worker.js | 6 +- test/json.js | 6 +- test/match_count.js | 6 +- test/shortcut.js | 6 +- test/split_cache.js | 6 +- test/topic.js | 8 +- test/topic_async.js | 8 +- test/topic_count.js | 6 +- test/true.js | 6 +- 29 files changed, 361 insertions(+), 286 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8205589..21e354f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,11 +8,11 @@ jobs: strategy: matrix: - node-version: [16, 18] + node-version: [16, 18, 20] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Update APT run: sudo apt update @@ -21,7 +21,7 @@ jobs: run: sudo apt install libboost-dev libboost-context-dev - name: Use Node ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} @@ -32,15 +32,15 @@ jobs: run: npx grunt lint - name: Test - if: matrix.node-version != '18' + if: matrix.node-version != '20' run: npm test - name: Coverage - if: matrix.node-version == '18' + if: matrix.node-version == '20' run: npm run coverage - name: Coveralls - if: matrix.node-version == '18' - uses: coverallsapp/github-action@master + if: matrix.node-version == '20' + uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Gruntfile.js b/Gruntfile.js index 5579bc1..a5c0b00 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -10,7 +10,7 @@ module.exports = function (grunt) jshint: { all: [ 'Gruntfile.js', 'index.js', 'lib/*.js', 'aedes/**/*.js', 'test/*.js', 'bench/**/*.js' ], options: { - esversion: 9, + esversion: 11, node: true } }, diff --git a/bench/common/index.js b/bench/common/index.js index 5f752f0..956f6e6 100644 --- a/bench/common/index.js +++ b/bench/common/index.js @@ -9,9 +9,12 @@ var assert = require('assert'); var qlobber = require('../..').set_native(require('../../native')); var MapValQlobber = require('../options/_mapval').MapValQlobber; -var expect = require('chai').expect; require('../../test/rabbitmq.js'); +function arrays_equal(x, y) { + return (x.length === y.length) && x.every((el, i) => el === y[i]); +} + function remove_duplicates_filter(item, index, arr) { return item !== arr[index - 1]; @@ -66,7 +69,7 @@ exports.remove_bindings = function(matcher) vals = remove_duplicates(vals); } - expect(vals).to.eql(test[1].sort()); + assert(arrays_equal(vals, test[1].sort())); } } }; @@ -98,7 +101,7 @@ exports.match = function(matcher) vals = Array.from(vals.keys()).sort(); } - expect(vals).to.eql(test[1].sort()); + assert(arrays_equal(vals, test[1].sort())); } } }; diff --git a/coverage/lcov-report/index.html b/coverage/lcov-report/index.html index c4ecbb3..84b21f4 100644 --- a/coverage/lcov-report/index.html +++ b/coverage/lcov-report/index.html @@ -146,7 +146,7 @@

All files