Skip to content

Commit

Permalink
Update mapbox-gl peer dependency version (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswhong authored Feb 27, 2023
1 parent 12e988d commit 3d81d65
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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=<YOUR ACCESS TOKEN> && yarn test
export MapboxAccessToken=<YOUR ACCESS TOKEN> && npm test

### Release process

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
]
},
"peerDependencies": {
"mapbox-gl": "^0.41.0 <2.0.0"
"mapbox-gl": "^1 || ^2"

This comment has been minimized.

Copy link
@kr4xkan

kr4xkan Apr 24, 2023

This change should require a patch update (like 4.1.2) on npm

},
"scripts": {
"prepublish": "npm run build",
Expand Down

0 comments on commit 3d81d65

Please sign in to comment.