support node v10 - test on all LTS version

This commit is contained in:
Dane Springmeyer
2018-06-26 07:49:29 -07:00
parent 0a215bd6a5
commit a71a19ec40
4 changed files with 9 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ language: node_js
sudo: false
node_js:
- "0.10"
- "4"
- "6"
- "9"
- "10"

View File

@@ -1,6 +1,8 @@
environment:
matrix:
- nodejs_version: 0.10
- nodejs_version: 6
- nodejs_version: 8
- nodejs_version: 10
platform:
- x86
@@ -16,4 +18,3 @@ install:
build: OFF
test: OFF
deploy: OFF

View File

@@ -30,8 +30,8 @@
"dependencies": {
"d3-queue": "~2.0.3",
"@mapbox/tiletype": "0.3.x",
"sqlite3": "3.x",
"@mapbox/sphericalmercator": "~1.0.1"
"sqlite3": "4.x",
"@mapbox/sphericalmercator": "~1.1.0"
},
"devDependencies": {
"tape": "~3.0.0",
@@ -39,7 +39,7 @@
"eslint-config-unstyled": "^1.1.0"
},
"engines": {
"node": ">= 0.10.0"
"node": ">= 4"
},
"scripts": {
"test": "eslint lib && tape test/*.js"

View File

@@ -62,7 +62,7 @@ tape('getGeocoderData (no table)', function(assert) {
tape('putGeocoderData', function(assert) {
to.startWriting(function(err) {
assert.ifError(err);
to.putGeocoderData('term', 0, new Buffer('asdf'), function(err) {
to.putGeocoderData('term', 0, Buffer.from('asdf'), function(err) {
assert.ifError(err);
to.stopWriting(function(err) {
assert.ifError(err);
@@ -223,4 +223,3 @@ tape('cleanup', function(assert) {
try { fs.rmdirSync(tmp); } catch(err) { throw err; }
assert.end();
});