You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BUILD.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Use this guide to set up a local workstation and verify changes before publishin
5
5
6
6
## 1. Prerequisites
7
7
8
-
- Node.js 18+ and npm 10+
8
+
- Node.js 20.19+ or 22.12+ and npm 10+
9
9
- For the documentation site: Python 3.9+ with `pip`
10
10
11
11
## 2. Install Dependencies
@@ -14,7 +14,7 @@ Use this guide to set up a local workstation and verify changes before publishin
14
14
npm install
15
15
```
16
16
17
-
This installs all workspace packages, including the demo app dependencies.
17
+
This installs the library dependencies. The demo app has its own dependency tree under `example/`.
18
18
19
19
## 3. Build the Library
20
20
@@ -28,8 +28,10 @@ npm run build
28
28
29
29
## 4. Run Quality Gates
30
30
31
-
-**Unit tests:**`npm run test`
32
-
-**Linting:**`npm run lint`
31
+
-**Complete test pipeline:**`npm test`
32
+
-**Unit tests only:**`npm run test:unit`
33
+
-**Linting only:**`npm run test:lint`
34
+
-**Build only:**`npm run build`
33
35
34
36
These should be clean before submitting changes or publishing.
35
37
@@ -50,7 +52,7 @@ The demo showcases three interactive examples:
50
52
npm install
51
53
npm start # serves the demo on http://localhost:3000
52
54
```
53
-
3. The demo watches both the library and app; rebuilding the library will refresh the demo automatically.
55
+
3. The demo links to the library in the parent directory. After changing the library source, run `npm run build` from the repository root; Vite will then reload the linked output.
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ It provides an easy-to-use React wrapper for the [Geoapify Geocoding Autocomplet
25
25
* Customizable design: easily style or theme your component.
26
26
* Accessible with keyboard navigation and ARIA support.
27
27
* Rich results including coordinates, structured address, and metadata.
28
-
* Compatible with React 18–19.
28
+
* Compatible with React 19.
29
29
30
30
## Quick Start
31
31
@@ -69,7 +69,7 @@ Wrap your component with the `GeoapifyContext` and provide your API key:
69
69
</GeoapifyContext>
70
70
```
71
71
72
-
Tip: Store your API key in an environment variable and reference it as `process.env.REACT_APP_GEOAPIFY_KEY` for better maintainability.
72
+
Tip: Store your API key in your framework's client-side environment configuration (for example, `import.meta.env.VITE_GEOAPIFY_KEY` in Vite). Client-side API keys are visible in the browser, so configure suitable key restrictions in your Geoapify project.
> If you prefer to use the library directly without React bindings, check the **[Standalone Usage](https://geoapify.github.io/react-geocoder-autocomplete/standalone-usage/)** section.
116
116
@@ -133,7 +133,7 @@ The component includes many options for configuration and customization. Below a
Enables category-based search for nearby Points of Interest (POIs) below the input field, filtered by category.
296
+
Enables category-based search and displays nearby Points of Interest (POIs) below the input. The circle filter restricts results to five kilometers around central Berlin.
Copy file name to clipboardExpand all lines: docs-site/docs/index.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ It's designed to offer a fast, accessible, and customizable autocomplete experie
27
27
28
28
***Rich structured output** – Emits detailed selection events containing coordinates, formatted addresses, and Geoapify metadata that can be directly used in your app logic.
29
29
30
-
***React compatibility** – Works with React 18 and newer versions. The recommended setup is **React 18+** for the best performance and API alignment.
30
+
***React compatibility** – Version 3.x supports React 19. See the compatibility table in the project README when using an earlier React release.
31
31
32
32
## Learn More
33
33
@@ -38,4 +38,3 @@ It's designed to offer a fast, accessible, and customizable autocomplete experie
38
38
-[Geoapify Geocoding API documentation](https://apidocs.geoapify.com/docs/geocoding/)
0 commit comments