Skip to content

Upgrading from v1.4.1 to v2.0.0

Choose a tag to compare

@moroshko moroshko released this 19 Sep 20:48
· 10 commits to master since this release
- 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 })