react-leaflet v4.0.0-alpha.0 Release Notes

Release Date: 2022-01-05 // about 2 years ago
  • ๐Ÿ’ฅ 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 the MapContainer component.
    • โœ‚ Removed onOpen and onClose properties from Popup and Tooltip components.
    • โœ‚ Removed CommonJS distribution.
    • โœ‚ Removed UMD distribution.

    Other changes

    • โž• Added support for React v18 (concurrent mode).
    • โž• Added support for ref in the MapContainer and Pane components.
    • The created element and context objects are now frozen (immutable).