Skip to content

Latest commit

 

History

History
299 lines (153 loc) · 12.6 KB

CHANGELOG.md

File metadata and controls

299 lines (153 loc) · 12.6 KB

10.0.1 (2024-10-24)

Bug Fixes

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

10.0.0 (2024-10-21)

chore

BREAKING CHANGES

  • upgrade eslint to v9

9.0.0 (2024-09-20)

chore

BREAKING CHANGES

  • required peer dependency for ol is >= 10 now

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)

8.0.4 (2024-06-17)

Bug Fixes

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

8.0.3 (2024-06-12)

Bug Fixes

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

8.0.2 (2024-06-10)

Bug Fixes

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

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)

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)

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 = useCallback(createNominatimSearchFunction({}), []);
const {
  featureCollection,
  loading
} = useSearch(searchFunction, searchTerm);

Features

  • unify functionality of useWfs and useNominatim into on useSearch hook (9d37d20)

6.0.2 (2024-05-27)

Bug Fixes

  • remove conditional hook calls (8c3c222)

6.0.1 (2024-05-27)

Bug Fixes

6.0.0 (2024-05-24)

⚠ BREAKING CHANGES

  • switch to es2022 build

Code Refactoring

5.2.0 (2024-05-22)

Features

  • allow CoordinateInfo to request Feature Info in json format (8ddc8b9)

5.1.0 (2024-05-15)

Features

  • add onFetchSuccess callbacks to useWfs and useNominatim (8f9bae4)

5.0.0 (2024-05-14)

⚠ BREAKING CHANGES

  • removes the wms layer type utils. These live now in ol-util

Features

  • remove type utils and use the ones from ol-util (bf62700)

5.0.0-beta.1 (2024-05-06)

Features

5.0.0-beta.0 (2024-05-06)

⚠ BREAKING CHANGES

  • the removed components have been moved to react-geo

Features

Bug Fixes

  • include the style (6e1aaae)
  • restore display of selected layer in preview (c3c72d1)
  • several styling and functional issues (06e98d8)

Code Refactoring

4.0.0 (2024-04-30)

4.0.0-beta.4 (2024-04-04)

⚠ BREAKING CHANGES

  • ol 9 is now the minimum required peer version

Miscellaneous Chores

  • update peer dependencies (c57370c)

4.0.0-beta.3 (2024-03-11)

Features

Bug Fixes

  • null check for searchConfig (29f0797)
  • set features and loading state to init values for empty search term (4cb06b7)

4.0.0-beta.2 (2024-02-29)

Features

  • introduce useCoordinateInfoHook (45a132a)
  • introduce useNominatim hook (db4375b)
  • introduce useProjFromEpsgIO hook (8cf5fb2)

Bug Fixes

  • adds missing inkmap dependency (83eb5c5)
  • remove @types-react from peer-dependencies (0cebe8b)
  • use async function call and return CoordinateInfoResult directly (894cd83)

4.0.0-beta.1 (2024-02-16)

⚠ BREAKING CHANGES

  • ol 8.2.0 is now the minimum required peer version

Features

  • add zoomTo util function (e3fb4ee)

Bug Fixes

  • typings of digitize layer (51e301e)

Miscellaneous Chores

4.0.0-beta.0 (2023-10-26)

⚠ BREAKING CHANGES

  • imports must be adjusted
  • imports must be adjusted
  • removed all HOCs in favour of hooks
  • updates several hook export paths

Features

Bug Fixes

  • export all default exports (b184210)
  • harmonize hooks files/folders (6eae470)
  • hide the layer depending on the active status and add NaN check (2508d21)
  • list required peer dependencies (17ec6ff)
  • place components in dedicated subdirectory (8c9bc29)
  • rename hooks directory to Hooks (36597a2)
  • replace react-geo statics with react-util (8fb8353)
  • set correct import paths (6472a3a)
  • update doc (9157002)

3.0.0 (2023-09-19)

Features

  • useModify hook (786610e)
  • add support vor mapbox vector tiles (52a6982)
  • create useSelectFeatures and usePropOrDefault hooks (c0df0ed)
  • introduce useGeoLocation hook (db0bc0d)
  • refactor code into useDraw hook (920f823)

Bug Fixes

  • add docs regarding vector tile layer support (459fdcc)
  • clear collection on deactivate (605cb90)
  • fix prepublish script (68a95fe)