v10.0
v10.0 ✨
Important Note:This release has several breaking changes, so kindly check all the below changes.
- ➕ Added: Automatic field wrapping inside
DIV
- ➕ Added: Document
readyState
listener that initializes the library afterDOM
content is loaded - ➕ Added:
query
value todata.src
for easier data fetching - ➕ Added:
resultsList
navigation auto scrolling for long lists - ➕ Added:
resultsList.tabSelect
API property to controltab
button behavior - ➕ Added:
events
list API property that holds and assigns events toinput
&list
(Thanks 👍 @stell) #223 - ➕ Added:
close
API method controlsresultsList
state - ➕ Added:
open
API method controlsresultsList
state - ➕ Added:
goTo
API method controlsresultsList
navigation by index - ➕ Added:
next
API method controlsresultsList
navigation - ➕ Added:
previous
API method controlsresultsList
navigation - ➕ Added:
select
API method controlsresultsList
selection by index - ➕ Added:
search
API method to avail autoComplete.js powerful engine for external use - ➕ Added:
isOpen
APIboolean
property that holdsresultsList
statetrue
openedfalse
closed - ➕ Added:
list
API property holds the entire list html element - ➕ Added:
wrapper
API property holds the entire wrapper html element - ➕ Added:
cursor
API property holds the index of the current selection or-1
orundefined
for idle - ➕ Added:
id
API property holds the current instance number - ➕ Added:
name
API property that changes all theclassName
properties accordingly - ➕ Added:
options
API property that holds all the custom setconfig
options for separation - ➕ Added:
data.src
fetching error message/instance toresponse
event detail (Thanks 👍 @folknor) #207 - 🔝 Updated: Data caching with a better mechanism
- 🔝 Updated:
WAI-ARIA
configurations for significantly better support - 🔝 Updated:
dataFeedback
event information - 🔧 Fixed:
diacritics
highlighting issue instrict
mode - 🔧 Fixed:
resultsList
eventEmitters unexpected behavior which was firing multiple times - 🔧 Fixed: Empty
className
values do not assign any classes instead ofundefined
- 🌀 Changed: The core library architecture for an improved performance and code separation
- 🌀 Changed: API to only include the used options instead of including unused ones with
undefined
value - 🌀 Changed:
fetch
eventEmitter name toresponse
- 🌀 Changed:
inputField
API property name toinput
- 🌀 Changed:
dataFeedback
API property name tofeedback
- 🌀 Changed:
trigger
API property type fromObject
toFunction
formerly calledtrigger.condition
- 🌀 Changed:
data.results
API property name todata.filter
- 🌀 Changed:
noResults
API to acceptboolean
instead ofFunction
to be replaced withresultsList.container
- 🌀 Changed:
resultItem.highlight
API property type fromObject
to acceptBoolean
orString
formerly calledresultItem.highlight.class
- 🌀 Changed:
resultItem.selected
API property type fromObject
toString
formerly calledresultItem.selected.class
- 🌀 Changed:
resultItem.content
API parameters order from(data, element)
to(element, data)
for consistency - 🌀 Changed:
resultItem.idName
API property name toresultItem.id
- 🌀 Changed:
resultItem.className
API property name toresultItem.class
- 🌀 Changed:
resultItem.content
API property name toresultItem.element
- 🌀 Changed:
resultsList.idName
API property nameresultsList.id
- 🌀 Changed:
resultsList.className
API property nameresultsList.class
- 🌀 Changed:
resultsList.container
API property name toresultsList.element
- 🌀 Changed: Highlighted characters wrapper element to be
mark
instead ofspan
(Thanks 👍 @aarongerig) #195 - 🌀 Changed:
query
API property type fromObject
toFunction
formerly calledquery.manipulate
- 🌀 Changed:
observer
API property nameobserve
- 🌀 Changed:
data.key
API property namedata.keys
- ❗ Removed:
onSelection
API method to be replaced withselection
eventEmitter - ❗ Removed:
resultsList.render
API property to be replaced withresultsList
to acceptBoolean
instead ofObject
in case of disabling list rendering - ❗ Removed:
trigger.event
API property to be replaced withevents
- ❗ Removed:
feedback
API method to be replaced withnavigate
event - ❗ Removed:
resultsList.navigation
API method to be replaced withevents
- ❗ Removed:
nav
API property to be replaced withevents
- ❗ Removed:
hook
API method to be replaced withstart
API - ❗ Removed:
onSelection
API method to be replaced withselection
eventEmitter - ❗ Removed:
input
property fromfeedback
due to the existence ofquery
already - ❗ Removed:
unInit
eventEmitter