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.mdfor 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 debounceconfig option - Add suggestion retrieval from remote
- Add possibility to limit items found in trie
- integrate
triesearch 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
onSelecthandler to helper - Add unit test for normalizer
- Add
normalizerand 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
keyuplistener in favor ofinputlistener - 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,selectNextwhen handling limited suggestions - Add, config
grouptemplate. DeprecaterenderGroupconfig option - Add
notFoundtemplate, deprecateemptyMsg, wrap header, footer templates - Add support for
headerandfootertemplate - deprecate
renderconfig option - Add templates for
suggestions
v1.6.0
- Deprecate
showOnFocusconfig option - Fix showOnFocus config option
- Deprecate
resizeevent handler - deprecate
scrollevent handler
v1.5.0
- Add example demonstrating ajax requests
- deprecate
customizeconfig 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
hintoption 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
settingstoconfig, update dependencies - Provide a default
onSelectfn, add helpers
v1.1.0
- Update Demo to include live example, add tracking
- upgrade all dev packages