# Changelog

## 3.4.1 (2026-07-27)

### Patch Changes

- Bump `@ideal-postcodes/core-axios` to `~4.1.9` (axios `~1.18.1`)

## 3.4.0 (2026-07-13)

### Minor Changes

- Add a `shouldAddressPopulate` hook, run before a selected address is written to the form, so you can gate population (for example, delivery-area checks or custom confirmation flows). Returning `false` cancels population; other lifecycle callbacks still fire.

## 3.3.2

### Patch Changes

- Update `@ideal-postcodes/core-axios` to 4.1.8, which upgrades axios to 1.16.1. This resolves all published axios security advisories, including a regular expression denial of service via cookie names (GHSA-hfxv-24rg-xrqf) and a family of prototype pollution gadget issues fixed in axios 1.15.1–1.16.0.

## 3.3.1

### Patch Changes

- Update npm package metadata so `repository`, `bugs`, and `homepage` links on the npm page point to active resources: the issue tracker at `ideal-postcodes/feedback` and the docs at `docs.ideal-postcodes.co.uk`.
- Fix the address `select` not firing a `change` event when the first address in the list is chosen. The placeholder option is now marked as selected, so choosing any address — including the first — triggers a real value change and populates the form fields.
- The package is now distributed under the IDDQD Limited licence (see `LICENSE`) rather than AGPL-3.0.

## 3.3.0 (2026-04-13)

### Features

- **Accessibility:** Add ARIA support for screen readers

## 3.2.3 (2026-03-12)

### Bug Fixes

- **Release:** Disable provenane

## 3.2.2 (2026-03-12)

### Bug Fixes

- **Release:** Trigger new release

## 3.2.1 (2026-03-11)

### Bug Fixes

- **axios:** bump @ideal-postcodes/core-axios from 4.1.6 to 4.1.7
- **Release:** Fix release process

## 3.2.0 (2025-10-27)

### Features

- **autoSearch:** add autoSearchSingleSuggestion config to control automatic search behavior

## 3.1.6 (2025-09-15)

### Bug Fixes

- **axios:** bump @ideal-postcodes/core-axios from 4.1.5 to 4.1.6

## 3.1.5 (2025-05-27)

### Bug Fixes

- **unhide:** Add keyboard event for unhide button

## 3.1.4 (2025-03-24)

### Bug Fixes

- **core-axios:** Fix security issue axios < 1.8.3

## 3.1.3 (2025-03-14)

### Bug Fixes

- **jsutil:** Update jsutil to version 7.4.3

## 3.1.2 (2025-03-04)

### Bug Fixes

- **jsutil:** Update jsutil to 7.4.2

## 3.1.1 (2025-03-04)

### Bug Fixes

- **jsutil:** Update jsutil to 7.4.1
- **release:** Fix semantic release issue with credentials

## 3.1.0 (2025-01-10)

### Features

- **Address Format:** Switch to 3 line format
- **Select:** Fix select container

## 3.0.0 (2024-08-21)

### Bug Fixes

- **ci:** Update node version in ci and release
- **semantic-release:** Bump to version supporting esmodules
- **semantic-release:** Bump to version supporting esmodules

### Features

- **Dependencies:** Update Axios to 1.7.4

### BREAKING CHANGES

- **Dependencies:** Drop support for IE11. Removed polyfills that enable IE11 support for smaller bundle sizes

## 2.0.0 (2024-06-10)

### Features

- **JSUtil:** Upgrade to Version 7

### BREAKING CHANGES

- **JSUtil:** Post towns capitalised by default
  Remove populateOrganisation
  Drops api-typings depedancy
  Renames GbrAddress types

## 1.11.2 (2023-11-27)

### Bug Fixes

- **core-axios:** Bump to version 4.1.2

## 1.11.1 (2023-06-23)

### Bug Fixes

- **event:** Remove conflict with cancelable=false events

## 1.11.0 (2022-09-20)

### Features

- **npm:** Use package-lock version 2
- **Postcode Suggestions:** Suggest correct postcode to user
- **Suggestions:** Apply suggestions on postcode lookup

## 1.10.2 (2022-05-23)

### Bug Fixes

- **Bind:** Allow Custom Markers

## 1.10.1 (2021-10-06)

### Bug Fixes

- **Deps:** bump @ideal-postcodes/core-axios from 3.0.0 to 3.0.5

## 1.10.0 (2021-09-07)

### Features

- **Watch:** Add watch method

## 1.9.1 (2021-09-06)

### Bug Fixes

- **Build:** Pin to ES2020

## 1.9.0 (2021-07-23)

### Features

- **deps:** bump @ideal-postcodes/core-axios from 2.2.4 to 3.0.0

## 1.8.1 (2021-05-25)

### Bug Fixes

- **Population:** Add suppression options

## 1.8.0 (2021-05-25)

### Features

- **Style:** Apply custom styles to elems

## 1.7.3 (2021-05-09)

### Bug Fixes

- **SSR:** Improve SSR compatibility

## 1.7.2 (2021-03-31)

### Bug Fixes

- **Mobile:** Drop touchstart default interceptor

## 1.7.1 (2021-03-15)

### Bug Fixes

- **JSUtil:** Bump to latest

## 1.7.0 (2021-03-11)

### Features

- **Chrome:** Prevent autofill

## 1.6.2 (2021-03-04)

### Bug Fixes

- **Exports:** Export Controller and Config types

## 1.6.1 (2021-02-17)

### Bug Fixes

- **Hide Feature:** Improve screen reader accessibility

## 1.6.0 (2021-02-02)

### Features

- **Hide Fields:** Add onUnhide callback
- **Hide Fields:** Hide/unhide input fields

## 1.5.4 (2021-02-01)

### Bug Fixes

- **Rollup:** Export rollup requirements

## 1.5.3 (2021-02-01)

### Bug Fixes

- **Keyboard Events:** Futureproof

## 1.5.2 (2021-01-18)

### Bug Fixes

- **Deps:** Bump jsutil to 4.0.1

## 1.5.1 (2021-01-15)

### Bug Fixes

- **Deps:** Bump core-axios to 2.2.4

## 1.5.0 (2021-01-13)

### Features

- **Defaults:** Export defaults
- **WAI-ARIA:** Add accessibility attributes

## 1.4.1 (2021-01-12)

### Bug Fixes

- **Message:** Apply custom styles

## 1.4.0 (2021-01-11)

### Bug Fixes

- **Containers:** Hide/Unhide Containers

### Features

- **UX:** Option to populate single Premise search

## 1.3.3 (2021-01-07)

### Bug Fixes

- **Custom Elements:** Prevent custom element movement

## 1.3.2 (2021-01-05)

### Bug Fixes

- **deps:** [security] bump axios from 0.21.0 to 0.21.1

## 1.3.1 (2021-01-04)

### Bug Fixes

- **Dependencies:** Drop unused dep

## 1.3.0 (2020-12-21)

### Features

- **Styles:** Allow injection of style attribute

## 1.2.0 (2020-12-16)

### Features

- **Callbacks:** Add new callbacks

## 1.1.0 (2020-12-16)

### Features

- **Address Lines:** Dynamic address lines

## 1.0.1 (2020-10-21)

### Bug Fixes

- **README:** Update docs

## 1.0.0 (2020-10-21)

### Bug Fixes

- **Release:** Initial commit
