Skip to content

Releases: moroshko/autosuggest-trie

v2.1.1

Choose a tag to compare

@moroshko moroshko released this 02 May 23:50

Fixed #6

v2.1.0

Choose a tag to compare

@moroshko moroshko released this 28 Apr 00:49
  • Added options.splitRegex to createTrie
  • Added options.splitRegex to getMatches

Upgrading from v1.4.1 to v2.0.0

Choose a tag to compare

@moroshko moroshko released this 19 Sep 20:48
- import autosuggestTrie from 'autosuggest-trie';
- const trie = autosuggestTrie.create(locations, 'location', locationsComparator);
- trie.getMatches('ri', 2)

+ import createTrie from 'autosuggest-trie';
+ const trie = createTrie(locations, 'name', { comparator: locationsComparator });
+ trie.getMatches('ri', { limit: 2 })