Skip to content

Releases: terrestris/react-util

v10.0.1

24 Oct 06:49
Compare
Choose a tag to compare

10.0.1 (2024-10-24)

Bug Fixes

  • rename to cjs file since project is defined as module (1af2036)

v10.0.0

21 Oct 13:00
Compare
Choose a tag to compare

10.0.0 (2024-10-21)

chore

BREAKING CHANGES

  • upgrade eslint to v9

v9.0.0

20 Sep 09:42
Compare
Choose a tag to compare

9.0.0 (2024-09-20)

chore

BREAKING CHANGES

  • required peer dependency for ol is >= 10 now

v8.0.5

19 Jun 08:16
Compare
Choose a tag to compare

8.0.5 (2024-06-19)

Bug Fixes

  • useCoordinateInfo: clone before setting state (766dfe6)
  • useCoordinateInfo: propagate state (85fb3d8)
  • useCoordinateInfo: remove return and use continue (0cd2bc7)

v8.0.4

17 Jun 07:14
Compare
Choose a tag to compare

8.0.4 (2024-06-17)

Bug Fixes

  • useCoordinateInfo: do not use loading state in hook where it is used (685bcd5)

v8.0.3

12 Jun 07:38
Compare
Choose a tag to compare

8.0.3 (2024-06-12)

Bug Fixes

  • cleanup tooltips also when the containing component gets removed (0aa866b)
  • missing semicolon (6e5da12)

Release 8.0.2

10 Jun 12:31
Compare
Choose a tag to compare

8.0.2 (2024-06-10)

Bug Fixes

  • remove functions from dependency lists that normally change on every render (30d8e5b)

Release 8.0.1

10 Jun 08:16
Compare
Choose a tag to compare

8.0.1 (2024-06-10)

Bug Fixes

  • add eslint react linting and fix warnings about dependency lists (89e70e2)
  • add react hooks eslint plugin & fix dependencies (1d521c3)
  • remove defaultFunc from dependencies of usePropOrDefault (f10b2b2)

Release 8.0.0

06 Jun 14:55
Compare
Choose a tag to compare

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

03 Jun 08:47
Compare
Choose a tag to compare

7.0.0 (2024-06-03)

⚠ BREAKING CHANGES

  • The useWfs and useNominatim hooks are removed. You can instead now use the useSearch 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)