Skip to content

Commit 65d6885

Browse files
v8.0 what's new (#2478)
1 parent b5090d7 commit 65d6885

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Diff for: docs/upgrade-guide.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- All imports from `react-map-gl` should be replaced with one of the following endpoints:
66
+ If using with `mapbox-gl@>=3.5.0`: import from `react-map-gl/mapbox`
77
+ If using with `mapbox-gl@<3.5.0`: import from `react-map-gl/mapbox-legacy`
8+
- `maplibre-gl@<=3` is no longer supported.
89
- Some TypeScript types have been renamed to align with the official types from the base map libraries:
910

1011
| Old name | New name |

Diff for: docs/whats-new.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# What's new
22

3+
## react-map-gl v8.0
4+
5+
Release date: Jan 2025
6+
7+
- First version to support Mapbox GL JS' official types and MapLibre GL JS v5.
8+
This version fully separates the code that support each compatible map library:
9+
+ `react-map-gl/mapbox`: for use with `mapbox-gl>=3.5.0`
10+
+ `react-map-gl/maplibre`: for use with `maplibre-gl>=4`
11+
+ `react-map-gl/mapbox-legacy`: for use with `mapbox-gl` v1.x and v2.x and `@types/mapbox-gl`
12+
- As a result, each endpoint now have slightly smaller bundle size and more precise types.
13+
- Maplibre wrapper is expected to have better functionality and performance than v7 by utilizing an [upstream API](https://github.com/maplibre/maplibre-gl-js/issues/1545) for the React use case.
14+
15+
For a full list of breaking changes, please visit the [upgrade guide](./upgrade-guide.md#upgrading-to-v80).
16+
317
## react-map-gl v7.1
418

519
Release date: June 2023

0 commit comments

Comments
 (0)