Releases: PaulLeCam/react-leaflet
Releases · PaulLeCam/react-leaflet
v4.0.0-beta.0
Updated React dependencies to v18 stable.
v4.0.0-alpha.2
- Added
createLeafletContext
function to core. - Updated React dependencies to v18 RC2.
- Changed Leaflet dependency range to v1.7.x until tested with v1.8.x.
v4.0.0-alpha.1
Breaking changes
- React v18 is now required as peer dependency.
- ES2020 is the new compilation target version.
- Removed
useMapElement
hook. - Removed
MapConsumer
component. - Removed
whenCreated
property from theMapContainer
component. - 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. - The created element and context objects are now frozen (immutable).
- Updated docs for v4 support.
Links
v3.2.5
v3.2.4
v3.2.3
v3.2.2
v3.2.1
v3.2.0
- Change unmounting logic for some layers, which should fix issues related to removing or updating elements.
- Make the
style
prop ofGeoJSON
mutable, this prop should be used instead ofpathOptions
(pathOptions
can still be used but should be considered deprecated). - Fix documentation about
bounds
prop being an instance ofLatLngBounds
.