# What changed in react-map-gl

> 9 changes in react-map-gl 8 from its official release notes, upgrade guides and advisories: 2 new APIs and options. Each one cited. Sources checked 2026-10-25. HTML: https://unstale.sh/npm/react-map-gl/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## react-map-gl 8

### New APIs and options

- Exports GlobeControl from the MapLibre entry point. (8.1.2) — [release notes](https://github.com/visgl/react-map-gl/releases/tag/v8.1.2)
- Adds GlobeControl for maplibre. (8.1.1) — [release notes](https://github.com/visgl/react-map-gl/releases/tag/v8.1.1)

### Performance

- Declares published packages side-effect free so unused components can be tree-shaken. (8.1.3) — [release notes](https://github.com/visgl/react-map-gl/releases/tag/v8.1.3)

### Behavior and default changes

- Adds support for MapLibre GL JS v6. (8.1.2) — [release notes](https://github.com/visgl/react-map-gl/releases/tag/v8.1.2)

### Fixes and other changes

- Prevents an app-wide crash when terrain properties are undefined. (8.1.3) — [release notes](https://github.com/visgl/react-map-gl/releases/tag/v8.1.3)
- Calls MapLibre zoom and pitch constraint setters in a valid order. (8.1.2) — [release notes](https://github.com/visgl/react-map-gl/releases/tag/v8.1.2)
- Fixes a max depth exceeded error when map settings are changed dynamically. (8.1.1) — [release notes](https://github.com/visgl/react-map-gl/releases/tag/v8.1.1)
- Guards against undefined map.style when updating style components. (8.1.1) — [release notes](https://github.com/visgl/react-map-gl/releases/tag/v8.1.1)
- Invokes the setter with a default when a prop is missing. (8.1.1) — [release notes](https://github.com/visgl/react-map-gl/releases/tag/v8.1.1)
