Skip to content

Commit 9f525cc

Browse files
committed
chore: release v7.0.0
1 parent 9e48d00 commit 9f525cc

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11

22

3+
## [7.0.0](https://github.com/terrestris/react-util/compare/v6.0.2...v7.0.0) (2024-06-03)
4+
5+
6+
### ⚠ BREAKING CHANGES
7+
8+
* The `useWfs` and `useNominatim` hooks are removed. You can instead now use the `useSearch` hook with the needed search functions for example like this:
9+
10+
```
11+
const [searchTerm, setSearchTerm] = useState<string>('');
12+
const searchFunction = useCallback(createNominatimSearchFunction({}), []);
13+
const {
14+
featureCollection,
15+
loading
16+
} = useSearch(searchFunction, searchTerm);
17+
```
18+
19+
### Features
20+
21+
* unify functionality of useWfs and useNominatim into on useSearch hook ([9d37d20](https://github.com/terrestris/react-util/commit/9d37d20939c44d4f2132aca603116bdc301b8497))
22+
323
## [6.0.2](https://github.com/terrestris/react-util/compare/v6.0.1...v6.0.2) (2024-05-27)
424

525

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@terrestris/react-util",
3-
"version": "6.0.2",
3+
"version": "7.0.0",
44
"description": "A set of utilities enhancing the development of react applications.",
55
"keywords": [
66
"react",

0 commit comments

Comments
 (0)