Releases: terrestris/react-util
Releases · terrestris/react-util
v10.0.1
v10.0.0
v9.0.0
v8.0.5
v8.0.4
v8.0.3
Release 8.0.2
Release 8.0.1
Release 8.0.0
8.0.0 (2024-06-06)
⚠ BREAKING CHANGES
- The features result of the useCoordinateInfo hook 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 { features } = useCoordinateInfo();
const grouped = groupBy(features, 'featureType');
const groupedAndMapped = mapValues(grouped, results => results.map(r => r.feature));
Features
- include layer in coordinate info result (11a4c70)
Release 7.0.0
7.0.0 (2024-06-03)
⚠ BREAKING CHANGES
- The
useWfs
anduseNominatim
hooks are removed. You can instead now use theuseSearch
hook with the needed search functions for example like this:
const [searchTerm, setSearchTerm] = useState<string>('');
const searchFunction = useMemo(() => createNominatimSearchFunction({}), []);
const {
featureCollection,
loading
} = useSearch(searchFunction, searchTerm);
Features
- unify functionality of useWfs and useNominatim into on useSearch hook (9d37d20)