Packages

mapbox-gl

3.34.2 · 3 Nov 2026SEE LICENSE IN LICENSE.txt6M / weekRepositoryHomepagenpmAtom feed

Upgrading mapbox-gl From 3.24.1 to 3.25.0

1 release in betweenevery note read

Other targets from 3.24.1Newest 3.x, Latest3.34.2
  1. 3.24.1yours
  2. 3.25.0target

Before you upgrade

Tick each one off as you go
  • breaking3.25.0

Security

  • Fix minor vulnerabilities related to Object prototype pollution from an untrusted style or tiles.

    3.25.0

Release by release

  1. 3.25.0

    Security fix17 Jun 202615 new · 8 fixes
    • security

      Fix minor vulnerabilities related to Object prototype pollution from an untrusted style or tiles.

    • breaking

      Switch the ESM entry point to named exports (import * as mapboxgl from 'mapbox-gl/esm') so that modern bundlers can eliminate small unused parts of the code. Replace mapboxgl.accessToken with Map accessToken option. Most of the bundle still can't be statically eliminated, but this release also improves lazy loading of code at runtime, with more improvements on the way.

    • new

      Extend Map getLayerProperty and setLayerProperty to support layer-level properties (minzoom, maxzoom, filter, slot, appearances)

    • new

      Extend TileProvider API to accept ImageBitmap for raster and raster-dem providers.