- Fix: Guarantee that form cannot be submitted on Enter keypress
- Docs: Remove documentation.md. This is maintained on https://ideal-postcodes.co.uk/documentation/jquery-plugin
- Test: Test on jQuery 3.4 and 3.3
- Fix: Custom API endpoint can be passed to setup configuration object
- Fix: Class Methods
lookupPostcode
,lookupAddress
andcheckKey
accept custom endpoint - Reduce library size. Commented out optional configuration attributes which currently serve as documentation. Will be removed altogether in final minified payload
- Fix: Sublicensee key now passed into key checking API calls if
check_key: true
- Added placeholder to input field. The placeholder is determined by the
placeholder_label
attribute - Added
onDropdownDestroyed
destroyed callback, invoked when dropdown is removed from DOM following a new search
- Added shouldLookupTrigger callback
- Added licensee attribute to configuration object
- API Request timeouts now bubble up to API. Default request timeout increased to 10 seconds.
- Significant API backwards incompatible API changes
- Simplified
$.idealPostcodes.lookupPostcode and $ .idealPostcodes.lookupAddress APIs - Added request tagging read more here
- Added new callbacks and renamed existing callbacks
- onLookupSuccess is now onSearchCompleted
- Added callbacks onAddressesReceived, onDropdownCreated, onLookupTriggered, onSearchError
- Added ability to insert error messages into custom containers
- Configuration object now accepts dropdown_container to specify a custom container to display the results dropdown
- onLookupSuccess is now also triggered when pre-flight postcode validation fails
- Added optional max_results for address searches
- Added fallback to address search if address_search: true. Any postcode search which does not validate as a postcode will be passed through to the address search API.
- Key checks are only performed against the API if the plugin is invoked in the DOM and not upon initialisation
- Results from a key check are now cached and multiple calls to the same key are merged into the same request
- Changed lookup behaviour. Looking up a new postcode no longer clears existing results
- Added option to strip organisation name from address lines
- Deprecated old configuration method of .setup() followed by $.fn.setupPostcodeLookup
- Added pre-initialisation checks
- Added callbacks: onLoaded, onCheckFailed
- Bug fix for IE7
- Added custom input and lookup button configuration parameters
- Avoids use of object.class. For Safari 4.0 and 5.0
- Avoid setting type. Fixes for earlier jQuery version in older browsers
- Fixed removal of elements from DOM
- Significant rewrite to allow for multiple lookups per page
- Minor fix for when label is selected in address dropdown