From 133ad55c21420960fcaeebbe4aa203a563a8502d Mon Sep 17 00:00:00 2001 From: Chris Whong Date: Mon, 27 Feb 2023 09:50:13 -0500 Subject: [PATCH] update mapboxgl peer dependency versions, update contributing.md --- CONTRIBUTING.md | 4 ++-- README.md | 2 +- example/index.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 57b5d16..afa8e07 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ ### Developing - yarn install & yarn start & open http://localhost:9966/example/ + npm install & npm start & open http://localhost:9966/ You'll need a [Mapbox access token](https://www.mapbox.com/help/create-api-access-token/) stored in localstorage. Set it via @@ -10,7 +10,7 @@ You'll need a [Mapbox access token](https://www.mapbox.com/help/create-api-acces Tests require an MapboxAccessToken env variable to be set. - export MapboxAccessToken= && yarn test + export MapboxAccessToken= && npm test ### Release process diff --git a/README.md b/README.md index c283b0a..7f58ab0 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ var directions = new MapboxDirections({ var map = new mapboxgl.Map({ container: 'map', - style: 'mapbox://styles/mapbox/streets-v9' + style: 'mapbox://styles/mapbox/streets-v12' }); map.addControl(directions, 'top-left'); diff --git a/example/index.js b/example/index.js index c0d5362..5d99276 100644 --- a/example/index.js +++ b/example/index.js @@ -15,7 +15,7 @@ mapDiv.style = 'position:absolute;top:0;right:0;left:0;bottom:0;'; var map = window.map = new mapboxgl.Map({ hash: true, container: mapDiv, - style: 'mapbox://styles/mapbox/streets-v9', + style: 'mapbox://styles/mapbox/streets-v12', center: [-79.4512, 43.6568], zoom: 13 }); diff --git a/package-lock.json b/package-lock.json index 51ce653..bc961b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "@mapbox/mapbox-gl-directions", - "version": "4.2.0", + "version": "4.1.1", "license": "ISC", "dependencies": { "@mapbox/polyline": "^1.1.1", @@ -43,7 +43,7 @@ "webworkify-webpack": "^2.1.5" }, "peerDependencies": { - "mapbox-gl": "^0.41.0 <2.0.0" + "mapbox-gl": "^2.13.0" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index 1e0a794..7f7d721 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ ] }, "peerDependencies": { - "mapbox-gl": "^0.41.0 <2.0.0" + "mapbox-gl": "^1 || ^2" }, "scripts": { "prepublish": "npm run build",