diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c7b048f1..d6bb16851 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,30 @@ +# [24.0.0-main.9](https://github.com/terrestris/react-geo/compare/v24.0.0-main.8...v24.0.0-main.9) (2024-06-10) + + +### Features + +* update coordinate button to use the new result value ([a41b996](https://github.com/terrestris/react-geo/commit/a41b9968ebe0c308381217f9be6093267893ffbb)) + + +### BREAKING CHANGES + +* The input of the render function is no longer grouped by featureType + but returns an object for each feature that contains the feature, the layer and the feature type. + +If you need the grouping, you can do the following + +``` +import { groupBy, mapValues } from 'lodash'; + + { + const grouped = groupBy(features, 'featureType'); + const groupedAndMapped = mapValues(grouped, results => results.map(r => r.feature)); + // ... + }} +/> +``` + # [24.0.0-main.8](https://github.com/terrestris/react-geo/compare/v24.0.0-main.7...v24.0.0-main.8) (2024-06-06) diff --git a/package-lock.json b/package-lock.json index da4818a07..2ee57a46f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@terrestris/react-geo", - "version": "24.0.0-main.8", + "version": "24.0.0-main.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@terrestris/react-geo", - "version": "24.0.0-main.8", + "version": "24.0.0-main.9", "license": "BSD-2-Clause", "dependencies": { "@camptocamp/inkmap": "^1.4.0", diff --git a/package.json b/package.json index b033a7d84..e7f61bda1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@terrestris/react-geo", - "version": "24.0.0-main.8", + "version": "24.0.0-main.9", "description": "A set of geo related modules. To use in combination with react, antd and ol.", "keywords": [ "react",