Skip to content

Releases: akursat/react-leaflet-cluster

v4.1.3

31 Mar 14:49

Choose a tag to compare

docs: fixes readme rendering and update license for npm
Full Changelog: v4.1.0...v4.1.3

v4.1.0

31 Mar 13:20

Choose a tag to compare

What's Changed

  • Perf: Buffer all incoming addLayer() calls into an array instead of processing immediately
    Schedule a flush using queueMicrotask() to run on the next microtask
    Flush once by calling addLayers()/removeLayers() with the entire batch by @kaprests in #49

Full Changelog: v4.0.0...v4.1.0

v4.0.0

20 Nov 14:55

Choose a tag to compare

Breaking Changes

This release updates key peer dependencies to support React 19 and React-Leaflet 5. Make sure your project is upgraded before installing this version.

- react: ^18.x
- react-dom: ^18.x
- react-leaflet: ^4.x
+ @react-leaflet/core: ^3.0.0
+ leaflet: ^1.9.0
+ react: ^19.0.0
+ react-dom: ^19.0.0
+ react-leaflet: ^5.0.0

Improvements

Added support for detecting marker cluster updates when component props change, enabling dynamic UI refreshes and more reactive map state.

Check for removed or renamed APIs in React-Leaflet 5 if you encounter breaking layout or rendering issues.

v3.1.0

31 Jul 20:31

Choose a tag to compare

The package no longer automatically configures Leaflet's default marker icons. If you need to use default markers, you'll need to configure the icon URLs yourself. Add this configuration to your component or entry file:

import L from 'leaflet'

// Configure default marker icons
delete (L.Icon.Default as any).prototype._getIconUrl
L.Icon.Default.mergeOptions({
  iconRetinaUrl: 'https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon-2x.png',
  iconUrl: 'https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png',
  shadowUrl: 'https://unpkg.com/leaflet@1.9.4/dist/images/marker-shadow.png',
})

v2.1.0

28 Dec 20:05

Choose a tag to compare

Notable Changes:

  • Fixes Hooks order problem
  • Fixes Nextjs css loader issue.

v.2.0.0

12 Jun 20:20

Choose a tag to compare

Breaking Changes:

"peerDependencies": {
  "leaflet": "^1.8.0",
  "react": "^18.0.0",
  "react-dom": "^18.0.0",
  "react-leaflet": "^4.0.0"
},

1.0.3

12 Jun 19:29

Choose a tag to compare

Notable Changes:

  • Update leaflet to v1.8.0
  • Update react-leaflet to v3.2.0
  • Fix browserlist problem of examples