react-leaflet v4.0.0 Release Notes
Release Date: 2022-04-18 // about 2 years ago-
๐ Changes from v3:
๐ฅ Breaking changes
- React v18 and Leaflet v1.8 are now required as peer dependency.
- ES2020 is the new compilation target version.
- โ Removed
useMapElement
hook. - โ Removed
MapConsumer
component. - โ Removed
whenCreated
property from theMapContainer
component (aref
callback can be used instead). - โ Removed
onOpen
andonClose
properties fromPopup
andTooltip
components. - โ Removed CommonJS distribution.
- โ Removed UMD distribution.
Other changes
- โ Added support for React v18 (concurrent mode).
- โ Added support for
ref
in theMapContainer
andPane
components. - โ Added
createLeafletContext
function to core. - The created element and context objects are now frozen (immutable).