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
- 1
- change to make
- 0
- advisories fixed
- 15
- new
- 8
- fixes
Before you upgrade
Tick each one off as you go- breaking3.25.0
Security
- 3.25.0
Fix minor vulnerabilities related to Object prototype pollution from an untrusted style or tiles.
Release by release
- 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. Replacemapboxgl.accessTokenwithMapaccessTokenoption. 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
MapgetLayerPropertyandsetLayerPropertyto support layer-level properties (minzoom,maxzoom,filter,slot,appearances) - new
Extend
TileProviderAPI to acceptImageBitmapforrasterandraster-demproviders.
- security