Releases: digitalfortress-tech/typeahead-standalone
Releases · digitalfortress-tech/typeahead-standalone
v2.0.0
Breaking Changes:
Fetch()
hook is deprecated and discontinued.
Providing your own suggestions(local/remote) via the fetch
hook has been discarded in favor of calculating matches using the fast and efficient trie
algorithm.
Use the New source: {...}
config option
The new source
config parameter should be used to provide data to the typeahead engine. See the documentation for detailed usage.
source: {
local: [];
remote: {
url: 'https://remoteapi/%QUERY';
wildcard: '%QUERY';
transform: function (data) {
// modify remote data if needed
return data;
};
};
identifier: '';
}
Release Notes
- Update
readme.md
for major version - check
noSuggestionCb()
immediately in update hook - use frozen input as the cache string
- render notFound template only when remote results are available
- Better handling of noResults templates, check-templates existence earlier
- optimize checks for existence of remote
- deprecate
updateScroll()
method - Make listContainer to stay in DOM, play only with visibility
- Add
remote debounce
config option - Add suggestion retrieval from remote
- Add possibility to limit items found in trie
- integrate
trie
search with typeahead, deprecateconfig.fetch()
v1.9.0
- update typeaheadSource type, test fetchWrapper
- refactor to use async, await. Remove unrequired post method from fetchWrapper
- Add
fetchWrapper
- update trie algorithm to add multiple words, update tests
- move
onSelect
handler to helper - Add unit test for normalizer
- Add
normalizer
and normalize local data - Add new config option -
normalizer
- Add unit test for trie
- Add, configure Jest unit testing
- Add/use trie data structure algorithm for autocomplete
- update search input type from text to search
- Add templating JS fiddle as the 3rd example
v1.8.0
- update Readme to clarify overriding styling
- Deprecate
keyup
listener in favor ofinput
listener - rename variables for greater clarity
- Style demo search item box by its templates
- Add custom class to wrapper element instead of list container
v1.7.0
- Style demo and use in-house code editor
- update demo dev mode handling
- fix:
selectPrev
,selectNext
when handling limited suggestions - Add, config
group
template. DeprecaterenderGroup
config option - Add
notFound
template, deprecateemptyMsg
, wrap header, footer templates - Add support for
header
andfooter
template - deprecate
render
config option - Add templates for
suggestions
v1.6.0
- Deprecate
showOnFocus
config option - Fix showOnFocus config option
- Deprecate
resize
event handler - deprecate
scroll
event handler
v1.5.0
- Add example demonstrating ajax requests
- deprecate
customize
config param - if raw input is empty, clear everything immediately
- use selected item on tab
- improve scroll perf
- Update position of listbox, update classnames
v1.4.0
- Update wrapper classnames
- Add, config
hint
option to typeahead, update types - normalize user input
- Undo perf tweak
- improve perf of highlighting text
v1.3.0
- Auto-select first suggestion by default
- Add support for highlighting text
- Add limit config option to limit suggestions, set target to es6
- update readme badges
v1.2.0
- Select by default only when a single suggestion is available
- prefix
tt-*
to all classnames for exclusivity - refactor
settings
toconfig
, update dependencies - Provide a default
onSelect
fn, add helpers
v1.1.0
- Update Demo to include live example, add tracking
- upgrade all dev packages