diff --git a/CHANGELOG.md b/CHANGELOG.md index a54e4b7..cd38864 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ +## [7.0.0](https://github.com/terrestris/react-util/compare/v6.0.2...v7.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(''); +const searchFunction = useCallback(createNominatimSearchFunction({}), []); +const { + featureCollection, + loading +} = useSearch(searchFunction, searchTerm); +``` + +### Features + +* unify functionality of useWfs and useNominatim into on useSearch hook ([9d37d20](https://github.com/terrestris/react-util/commit/9d37d20939c44d4f2132aca603116bdc301b8497)) + ## [6.0.2](https://github.com/terrestris/react-util/compare/v6.0.1...v6.0.2) (2024-05-27) diff --git a/package-lock.json b/package-lock.json index 715ddc1..da879e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@terrestris/react-util", - "version": "6.0.2", + "version": "7.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@terrestris/react-util", - "version": "6.0.2", + "version": "7.0.0", "license": "BSD-2-Clause", "dependencies": { "@camptocamp/inkmap": "^1.4.0", diff --git a/package.json b/package.json index eed9ee7..a690326 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@terrestris/react-util", - "version": "6.0.2", + "version": "7.0.0", "description": "A set of utilities enhancing the development of react applications.", "keywords": [ "react",