Skip to content

Releases: PaulLeCam/react-leaflet

v4.0.0-alpha.1

05 Feb 12:23
v4.0.0-alpha.1
e48128e
Compare
Choose a tag to compare
v4.0.0-alpha.1 Pre-release
Pre-release

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).
  • Updated docs for v4 support.

Links

v3.2.5

15 Jan 10:56
v3.2.5
ca1e765
Compare
Choose a tag to compare

Fix supporting mutable whenCreated with unmounting MapContainer.

v3.2.4

09 Jan 11:27
v3.2.4
9f88d11
Compare
Choose a tag to compare

Fix removing the map handlers when MapContainer is unmounted.

v3.2.3

08 Jan 11:55
v3.2.3
5bfbc45
Compare
Choose a tag to compare

v3.2.2

09 Oct 15:58
v3.2.2
fd9ad72
Compare
Choose a tag to compare

Fix layer unmount (PR #916 by piitaya).

v3.2.1

02 Aug 12:00
v3.2.1
7c63621
Compare
Choose a tag to compare
  • Fix Popup unmounting logic to unbind from container.
  • Fix links to point to Leaflet 1.7.1 docs (PR #889 by zerekw).

v3.2.0

15 May 18:51
v3.2.0
d18c8fb
Compare
Choose a tag to compare
  • Change unmounting logic for some layers, which should fix issues related to removing or updating elements.
  • Make the style prop of GeoJSON mutable, this prop should be used instead of pathOptions (pathOptions can still be used but should be considered deprecated).
  • Fix documentation about bounds prop being an instance of LatLngBounds.

v3.1.0

30 Jan 15:36
v3.1.0
85d68d1
Compare
Choose a tag to compare

v3.0.5

19 Dec 11:30
v3.0.5
e2e3664
Compare
Choose a tag to compare

Use useState hook rather than useMemo to store immutable values in MapContainer and Pane.

v3.0.3/3.0.4

13 Dec 15:28
v3.0.4
1610998
Compare
Choose a tag to compare
  • Document pathOptions for GeoJSON (PR #785 by bb)
  • Ensure MapContainer props are immutable
  • Fix TypeScript definition for MapContainer props
  • Update README