Skip to content

Commit 24b7f25

Browse files
authored
Merge pull request #7 from mountain-pass/changeset-release/main
Version Packages
2 parents af36bee + 117f0ba commit 24b7f25

10 files changed

Lines changed: 92 additions & 40 deletions

File tree

.changeset/core-search-postcode-locality-state.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

.changeset/postcode-locality-state-components.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/core/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @mountainpass/addressr-core
22

3+
## 0.7.0
4+
5+
### Minor Changes
6+
7+
- 825cf97: Add `searchPostcodes`, `searchLocalities`, and `searchStates` methods to `createAddressrClient`. Each method mirrors `searchAddresses` (debounce, abort, retry, HATEOAS root discovery) but targets the new narrower endpoints via distinct rel URIs.
8+
9+
New public types: `PostcodeSearchResult`, `LocalitySearchResult`, `StateSearchResult`.
10+
11+
`SearchPage` is now generic: `SearchPage<T = AddressSearchResult>`. Existing consumers referencing the concrete `SearchPage` type remain source-compatible; the default type argument preserves behaviour.
12+
13+
Internally extracted a private `searchByRel<T>(rel, query, signal)` helper that holds the shared search body; `searchAddresses` now delegates to it. No change to existing `searchAddresses` behaviour or signature.
14+
15+
See ADR 006 for the architectural rationale.
16+
17+
**Note**: consumers behind RapidAPI may need to wait for the edge cache to refresh before the new rels become discoverable from the API root. See PROB-004.
18+
319
## 0.6.1
420

521
### Patch Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mountainpass/addressr-core",
3-
"version": "0.6.1",
3+
"version": "0.7.0",
44
"description": "Framework-agnostic HATEOAS client and types for Australian address search via Addressr",
55
"author": {
66
"name": "Mountain Pass",

packages/react/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# @mountainpass/addressr-react
22

3+
## 0.7.0
4+
5+
### Minor Changes
6+
7+
- 54cce83: Add `PostcodeAutocomplete`, `LocalityAutocomplete`, and `StateAutocomplete` components plus matching headless hooks/stores/composables (`usePostcodeSearch`/`useLocalitySearch`/`useStateSearch` for React and Vue, `createPostcodeSearch`/`createLocalitySearch`/`createStateSearch` for Svelte) across all three framework packages.
8+
9+
Each component mirrors the existing `AddressAutocomplete` baseline:
10+
- WAI-ARIA combobox (`role="combobox"`, `aria-expanded`, `aria-controls`, `aria-activedescendant`, `aria-required`, `aria-invalid`, `aria-describedby`)
11+
- `role="status"` `aria-live="polite"` live region with entity-specific announcements
12+
- Full keyboard support (ArrowDown/Up, Enter, Escape; ArrowDown opens menu when closed)
13+
- 44px minimum touch target and 3:1 focus ring inherited from existing `--addressr-*` tokens (no new tokens)
14+
- Same four render zones per ADR 004: `renderItem`/`renderLoading`/`renderNoResults`/`renderError` (props in React, slots in Svelte/Vue: `item`, `loading`, `no-results`, `error`)
15+
16+
`onSelect` (React)/`select` event (Vue)/`onSelect` prop (Svelte) emits the search result directly — postcode, locality, and state results carry every field consumers need, so no follow-up HATEOAS detail fetch is performed (asymmetry with `AddressAutocomplete` is deliberate; see ADR 006).
17+
18+
Internal refactor: `useAddressSearch` (React/Vue) and `createAddressSearch` (Svelte) now delegate to a private generic primitive (`useSearch<T>` / `createSearch<T>`) shared with the new wrappers. Public API and behaviour unchanged — covered by existing test suites as a regression gate.
19+
20+
See ADR 006 (`docs/decisions/006-additional-search-endpoints.accepted.md`) for the architectural rationale.
21+
22+
### Patch Changes
23+
24+
- Updated dependencies [825cf97]
25+
- @mountainpass/addressr-core@0.7.0
26+
327
## 0.6.1
428

529
### Patch Changes

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mountainpass/addressr-react",
3-
"version": "0.6.1",
3+
"version": "0.7.0",
44
"description": "React address autocomplete component for Australian address search via Addressr",
55
"author": {
66
"name": "Mountain Pass",

packages/svelte/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# @mountainpass/addressr-svelte
22

3+
## 0.7.0
4+
5+
### Minor Changes
6+
7+
- 54cce83: Add `PostcodeAutocomplete`, `LocalityAutocomplete`, and `StateAutocomplete` components plus matching headless hooks/stores/composables (`usePostcodeSearch`/`useLocalitySearch`/`useStateSearch` for React and Vue, `createPostcodeSearch`/`createLocalitySearch`/`createStateSearch` for Svelte) across all three framework packages.
8+
9+
Each component mirrors the existing `AddressAutocomplete` baseline:
10+
- WAI-ARIA combobox (`role="combobox"`, `aria-expanded`, `aria-controls`, `aria-activedescendant`, `aria-required`, `aria-invalid`, `aria-describedby`)
11+
- `role="status"` `aria-live="polite"` live region with entity-specific announcements
12+
- Full keyboard support (ArrowDown/Up, Enter, Escape; ArrowDown opens menu when closed)
13+
- 44px minimum touch target and 3:1 focus ring inherited from existing `--addressr-*` tokens (no new tokens)
14+
- Same four render zones per ADR 004: `renderItem`/`renderLoading`/`renderNoResults`/`renderError` (props in React, slots in Svelte/Vue: `item`, `loading`, `no-results`, `error`)
15+
16+
`onSelect` (React)/`select` event (Vue)/`onSelect` prop (Svelte) emits the search result directly — postcode, locality, and state results carry every field consumers need, so no follow-up HATEOAS detail fetch is performed (asymmetry with `AddressAutocomplete` is deliberate; see ADR 006).
17+
18+
Internal refactor: `useAddressSearch` (React/Vue) and `createAddressSearch` (Svelte) now delegate to a private generic primitive (`useSearch<T>` / `createSearch<T>`) shared with the new wrappers. Public API and behaviour unchanged — covered by existing test suites as a regression gate.
19+
20+
See ADR 006 (`docs/decisions/006-additional-search-endpoints.accepted.md`) for the architectural rationale.
21+
22+
### Patch Changes
23+
24+
- Updated dependencies [825cf97]
25+
- @mountainpass/addressr-core@0.7.0
26+
327
## 0.6.1
428

529
### Patch Changes

packages/svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mountainpass/addressr-svelte",
3-
"version": "0.6.1",
3+
"version": "0.7.0",
44
"description": "Svelte address autocomplete component for Australian address search via Addressr",
55
"author": {
66
"name": "Mountain Pass",

packages/vue/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# @mountainpass/addressr-vue
22

3+
## 0.7.0
4+
5+
### Minor Changes
6+
7+
- 54cce83: Add `PostcodeAutocomplete`, `LocalityAutocomplete`, and `StateAutocomplete` components plus matching headless hooks/stores/composables (`usePostcodeSearch`/`useLocalitySearch`/`useStateSearch` for React and Vue, `createPostcodeSearch`/`createLocalitySearch`/`createStateSearch` for Svelte) across all three framework packages.
8+
9+
Each component mirrors the existing `AddressAutocomplete` baseline:
10+
- WAI-ARIA combobox (`role="combobox"`, `aria-expanded`, `aria-controls`, `aria-activedescendant`, `aria-required`, `aria-invalid`, `aria-describedby`)
11+
- `role="status"` `aria-live="polite"` live region with entity-specific announcements
12+
- Full keyboard support (ArrowDown/Up, Enter, Escape; ArrowDown opens menu when closed)
13+
- 44px minimum touch target and 3:1 focus ring inherited from existing `--addressr-*` tokens (no new tokens)
14+
- Same four render zones per ADR 004: `renderItem`/`renderLoading`/`renderNoResults`/`renderError` (props in React, slots in Svelte/Vue: `item`, `loading`, `no-results`, `error`)
15+
16+
`onSelect` (React)/`select` event (Vue)/`onSelect` prop (Svelte) emits the search result directly — postcode, locality, and state results carry every field consumers need, so no follow-up HATEOAS detail fetch is performed (asymmetry with `AddressAutocomplete` is deliberate; see ADR 006).
17+
18+
Internal refactor: `useAddressSearch` (React/Vue) and `createAddressSearch` (Svelte) now delegate to a private generic primitive (`useSearch<T>` / `createSearch<T>`) shared with the new wrappers. Public API and behaviour unchanged — covered by existing test suites as a regression gate.
19+
20+
See ADR 006 (`docs/decisions/006-additional-search-endpoints.accepted.md`) for the architectural rationale.
21+
22+
### Patch Changes
23+
24+
- Updated dependencies [825cf97]
25+
- @mountainpass/addressr-core@0.7.0
26+
327
## 0.6.1
428

529
### Patch Changes

packages/vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mountainpass/addressr-vue",
3-
"version": "0.6.1",
3+
"version": "0.7.0",
44
"description": "Vue address autocomplete component for Australian address search via Addressr",
55
"author": {
66
"name": "Mountain Pass",

0 commit comments

Comments
 (0)