Skip to content

v4.1.0

Latest
Compare
Choose a tag to compare
@harshzalavadiya harshzalavadiya released this 14 Mar 08:39
· 64 commits to master since this release
4ee7eef
  • move to react-map-gl@7.x from 6.x that brings many DX Improvements
  • moves entire monorepo to turborepo as monorepo manager and tsup as package builder making Improving DX

Breaking Changes / Migration Guide

Most functionality is kept same as is if you are just utilizing the component but few props are changed to keep things simple and to align with mapbox-gl package props

  • renamed prop gmapApiAccessToken to gmapAccessToken
  • renamed prop defaultViewPort to defaultViewState
  • renamed prop mapboxApiAccessToken to mapboxAccessToken
  • @ibp/naksha-mapbox-draw
    • renamed defaultFeatures to features
    • removed isPolygon prop
  • @ibp/naksha-mapbox-list
    • viewPort to defaultViewState
  • @ibp/naksha-mapbox-list is deprecated now use component directory directly since it's tightly bound to UI framework so it seemed better to not publish as npm module
  • since react-map-gl@7.x doesn't automatically import css files from mapbox-gl now you have to manually import them
    @import "mapbox-gl/dist/mapbox-gl.css";
    @import "@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css";
    

Full Changelog: v4.0.5...v4.1.0