Releases: TarekRaafat/autoComplete.js
Releases · TarekRaafat/autoComplete.js
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
v9.1.1
v9.1.1 ✨
! Important Note:
Starting next major release:
- "noResults" API will accept "Boolean" instead of function to be replaced with "resultsList.container"
- "fetch" eventEmitter will be renamed to "response"
- All "className" APIs will be renamed to "classList"
v9.1.0
v9.1.0 ✨
! Important Note:
Starting next major release:
- "noResults" API will accept "Boolean" instead of function to be replaced with "resultsList.container"
- "fetch" eventEmitter will be renamed to "response"
- ➕ Added: New
data
parameter toresultsList.container
method that contains (input, query, matches, results) values - 🔝 Updated:
resultsList.container.className
default value to beundefined
- 🔝 Updated: Code with some refactoring & cleanup
- 🔝 Updated: Development dependencies
- 🔧 Fixed:
resultsList
error onEnter
key press with no selection - 🔧 Fixed: Input field
aria-activedescendant
was not removed on eachresultsList
regeneration - 🔧 Fixed:
noResults
error onEnter
key press - 🔧 Fixed: Input field
aria-expanded
set totrue
even whennoResults
was not active - 🔧 Fixed:
resultsList
onclose
event did not fire whennoResults
was active - 🔧 Fixed:
unInit
method did not remove allinputField
set event listeners except forinput
event - 🔧 Fixed:
open
eventEmitter unexpected behavior that used to fire on each trigger event
v9.0.5
v9.0.5 ✨
- 🔧 Fixed:
resultsList.container
hierarchy comes after list rendering instead of before
v9.0.4
v9.0.3
v9.0.3 ✨
- 🔧 Fixed:
TAB
button behavior - 🔧 Fixed:
resultsList
close behavior oninputField
double click
v9.0.2
v9.0.1
v9.0.1 ✨
- 🔧 Fixed:
resultItem.idName
issue - 🔝 Updated:
Tab
button behavior (Thanks 👍 @ronmichael @codyjames) #175 #202
v9.0.0
v9.0.0 ✨
This version has breaking changes, kindly check the list
- 🔧 Fixed:
esc
button not working withnoResults
in some cases (Thanks 👍 @sunshineplan) #157 - ➕ Added:
selection
&highlight
customclassName
API methods (Thanks 👍 @jerrykan) #184 - ➕ Added:
eventEmitter
forresultsList
fires on listclose
event (Thanks 👍 @yliharma) #188 - ➕ Added:
event
parameter totrigger.event
API method (Thanks 👍 @nornes) #189 - 🌀 Changed:
maxResults
API moved underresultsList
- 🌀 Changed:
noResults
API moved underresultsList
- 🌀 Changed:
highlight
API moved underresultItem
- 🌀 Changed:
selection
API moved underresultItem
with the name ofselected
- 🌀 Changed:
rendered
eventEmitter
name toopen
- 🌀 Changed:
navigation
eventEmitter
name tonavigate
- 🌀 Changed:
closeAllLists
refactored and renamed tocloseList
- 🌀 Changed:
generateList
stage with some refactoring - 🌀 Changed:
start
stage with some refactoring - 🌀 Changed:
noResults
API method with some refactoring details - 🌀 Changed:
highlight
API fromString
toObject
details - ❗ Removed:
sort
API due to its redundancydata.results
could be used instead - ❗ Removed:
connect
eventEmitter
from thepreInit
stage - 🔝 Updated: Replaced
Uglify
withTerser
- 🔝 Updated: Development dependencies
- 🔝 Updated: Code comments
- 🔝 Updated: Documentation