From ddf401661f2cae562e3d41a7bf7f1e88cdbde73b Mon Sep 17 00:00:00 2001 From: Lauren Budorick Date: Thu, 19 Oct 2017 18:09:36 -0700 Subject: [PATCH 1/2] Bump mapbox-gl version --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fd60060..4e7b31a 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "insert-css": "^2.0.0", "json-loader": "0.5.4", "lodash.once": "^4.0.0", - "mapbox-gl": "^0.27.0", + "mapbox-gl": "^0.41.0", "smokestack": "^3.3.1", "tap-status": "^1.0.1", "tape": "^4.6.0", @@ -57,9 +57,9 @@ "webworkify-webpack": "1.1.7" }, "dependencies": { - "babelify": "^7.3.0", "babel-plugin-transform-inline-environment-variables": "^6.8.0", "babel-preset-es2015": "^6.9.0", + "babelify": "^7.3.0", "deep-assign": "^2.0.0", "lodash.debounce": "^4.0.6", "lodash.isequal": "^4.2.0", From 4168a2dc169f6ab5763073af64163e4682ca2403 Mon Sep 17 00:00:00 2001 From: Lauren Budorick Date: Thu, 19 Oct 2017 18:23:31 -0700 Subject: [PATCH 2/2] Update peer dependency + fix tests --- package.json | 2 +- test/test.inputs.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4e7b31a..6c83d2a 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ ] }, "peerDependencies": { - "mapbox-gl": "^0.27.0 || ^0.28.0" + "mapbox-gl": "^0.41.0" }, "scripts": { "prepublish": "npm run build", diff --git a/test/test.inputs.js b/test/test.inputs.js index ff6dde7..90d95da 100644 --- a/test/test.inputs.js +++ b/test/test.inputs.js @@ -21,7 +21,7 @@ test('Directions#inputControl', tt => { } tt.test('profiles', (t) => { - setup({ profile: 'cycling' }); + setup({ profile: 'mapbox/cycling' }); t.plan(3); var drivingEl = container.querySelector('#mapbox-directions-profile-driving'); @@ -31,7 +31,7 @@ test('Directions#inputControl', tt => { t.equal(cyclingEl.checked, true, 'cycling profile is active'); directions.on('profile', once((e) => { - t.equal(e.profile, 'driving', 'driving profile is set and event emitted'); + t.equal(e.profile, 'mapbox/driving', 'driving profile is set and event emitted'); })); drivingEl.dispatchEvent(changeEvent);