From 1cb5c5c9cc4acebbc3e1f76a66d45ebadcafdcfc Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Fri, 8 Nov 2019 12:23:02 +0200 Subject: [PATCH] upgrade deps, remove Node 8 from Travis --- .github/workflows/nodejs.yml | 2 +- bench.js | 4 ++-- package.json | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index b70c4a3..96b4ce5 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: - node-version: [8.x, 10.x, 12.x] + node-version: [10.x, 12.x] steps: - uses: actions/checkout@v1 diff --git a/bench.js b/bench.js index 0c548b1..8affb42 100644 --- a/bench.js +++ b/bench.js @@ -1,6 +1,6 @@ import Flatbush from './index.js'; -import rbush from 'rbush'; +import RBush from 'rbush'; import rbushKNN from 'rbush-knn'; const N = 1000000; @@ -83,7 +83,7 @@ for (let i = 0; i < coords.length; i += 4) { console.log(''); console.time('rbush'); -const rbushIndex = rbush(nodeSize).load(dataForRbush); +const rbushIndex = new RBush(nodeSize).load(dataForRbush); console.timeEnd('rbush'); function benchSearchRBush(boxes, name, warmup) { diff --git a/package.json b/package.json index 904a24c..ae5520a 100644 --- a/package.json +++ b/package.json @@ -41,16 +41,16 @@ }, "homepage": "https://github.com/mourner/flatbush#readme", "devDependencies": { - "eslint": "^5.16.0", + "eslint": "^6.6.0", "eslint-config-mourner": "^3.0.0", - "esm": "^3.2.22", - "rbush": "^2.0.2", + "esm": "^3.2.25", + "rbush": "^3.0.1", "rbush-knn": "^2.1.0", - "rollup": "^1.10.1", - "rollup-plugin-buble": "^0.19.6", - "rollup-plugin-node-resolve": "^4.2.3", - "rollup-plugin-terser": "^4.0.4", - "tape": "^4.10.1" + "rollup": "^1.26.3", + "rollup-plugin-buble": "^0.19.8", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-terser": "^5.1.2", + "tape": "^4.11.0" }, "dependencies": { "flatqueue": "^1.1.0"