Skip to content

Releases: digitalfortress-tech/typeahead-standalone

v2.0.0

19 Nov 22:59
Compare
Choose a tag to compare

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, deprecate config.fetch()

v1.9.0

14 Nov 16:28
Compare
Choose a tag to compare
  • 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

08 Nov 23:57
Compare
Choose a tag to compare
  • update Readme to clarify overriding styling
  • Deprecate keyup listener in favor of input 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

04 Nov 23:53
Compare
Choose a tag to compare
  • Style demo and use in-house code editor
  • update demo dev mode handling
  • fix: selectPrev, selectNext when handling limited suggestions
  • Add, config group template. Deprecate renderGroup config option
  • Add notFound template, deprecate emptyMsg, wrap header, footer templates
  • Add support for header and footer template
  • deprecate render config option
  • Add templates for suggestions

v1.6.0

28 Oct 22:30
Compare
Choose a tag to compare
  • Deprecate showOnFocus config option
  • Fix showOnFocus config option
  • Deprecate resize event handler
  • deprecate scroll event handler

v1.5.0

27 Oct 22:52
Compare
Choose a tag to compare
  • 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

26 Oct 12:12
Compare
Choose a tag to compare
  • 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

22 Oct 21:05
Compare
Choose a tag to compare
  • 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

20 Oct 21:51
Compare
Choose a tag to compare
  • Select by default only when a single suggestion is available
  • prefix tt-* to all classnames for exclusivity
  • refactor settings to config, update dependencies
  • Provide a default onSelect fn, add helpers

v1.1.0

19 Oct 21:07
Compare
Choose a tag to compare
  • Update Demo to include live example, add tracking
  • upgrade all dev packages