@mccaskie-labs/workbench-places 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mccaskie-labs/workbench-places
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - README: the project template's `/api/places` route (`src/lib/places.ts`), which a form page's Address field searches. This is the first version published through the trusted publisher.
8
+
3
9
  ## 0.1.1
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -15,3 +15,7 @@ The PSA publishes a new PSGC every three months. Download `barangay_flat.json` f
15
15
  ## Used by
16
16
 
17
17
  - The form tool's Address field (`workbench-forms` 0.19.0): its barangay-and-town search reads `searchPlaceLists`, and its suggestions come through `placesRoute`.
18
+
19
+ ## In a project
20
+
21
+ The project template answers `GET /api/places` with `placesRoute` (`src/lib/places.ts`): the Philippines' place list for `kind=place`, and the Gateway's look-up with the project's own key for `kind=address`. `formHtml` passes `places: { url: "/api/places" }` to `renderForm`, so every Address field gets its search.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mccaskie-labs/workbench-places",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Places for Workbench apps: the Philippines' official place list (every barangay, from the PSGC), place search that runs in the project for free, each country's address parts, and the client for the Gateway's address look-up. No forms or maps in it, so both can use it.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",