react-leaflet v4.0.0 Release Notes

Release Date: 2022-04-18 // about 1 month 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 the MapContainer component (a ref callback can be used instead).
    • โœ‚ 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.
    • โž• Added createLeafletContext function to core.
    • The created element and context objects are now frozen (immutable).

Previous changes from v4.0.0-beta.0

  • โšก๏ธ Updated React dependencies to v18 stable.