Skip to content

Releases: mapbox/supercluster

v6.0.1

24 Jan 10:44
Compare
Choose a tag to compare

Fixed a bug introduced in v6.0.0 where some aggregated cluster properties were calculated incorrectly.

v6.0.0

17 Jan 15:20
Compare
Choose a tag to compare

⚠️ Breaking: removed initial option of the map/reduce functionality. Now Supercluster uses the first mapped item of the cluster as the initial value:

// before
value = initial;
reduce(value, a);
reduce(value, b);
...
// after
value = a;
reduce(value, b);
...

In most cases, you can simply remove the initial option and things will work. There are some exceptions where you'd need to update your map function to make up for lack of initial, but they should be rare.

v5.0.0

22 Nov 13:36
Compare
Choose a tag to compare
  • ⚠️ breaking: changed the API entry point to new Supercluster(...) in place of supercluster(...). This makes it more in line with idiomatic modern ES, and also more flexible (i.e. you can extend the class). #109
  • Fixed getClusterExpansionZoom not returning the right result on maxZoom. #106
  • Modernized the code base — now the module entry point exposes idiomatic ES6 code, while the main entry point remains a ES5-compatible UMD build.

v4.1.1

24 Jul 08:50
Compare
Choose a tag to compare

Fix a build issue that prevented v4.1.0 from being published to NPM.

v4.1.0

23 Jul 23:18
6bfdce4
Compare
Choose a tag to compare

Assign feature ids clusters and retain ids on input features.

v4.0.1

24 Jul 08:39
Compare
Choose a tag to compare

Fix a bug where getClusters didn't return correct results with a -180..180 bbox.

v4.0.0

11 Jun 16:25
Compare
Choose a tag to compare

Exposed Supercluster as a proper ES module.

v3.0.3

06 Jun 15:23
Compare
Choose a tag to compare

Fixed a bug that could cause supercluster to get stuck in an infinite loop when given unwrapped bbox values in getClusters. #80 #73

v3.0.2

22 Dec 09:39
Compare
Choose a tag to compare

Fixed getClusters queries with the bbox crossing the date line.

v3.0.1

21 Dec 10:05
Compare
Choose a tag to compare

Added default export for better ES6 modules / transpiler support.