Releases: datastructures-js/trie
Releases · datastructures-js/trie
@datastructures-js/trie-v4.2.2
[4.2.2] - 2022-08-15
Fixed
- add types to package.json
@datastructures-js/trie-v4.2.1
[4.2.1] - 2022-06-06
Fixed
- readme.
@datastructures-js/trie-v4.2.0
[4.2.0] - 2021-12-01
Added
isLeaf()
to TrieNode: leaf is a node that has no children.
Fixed
-
remove(word)
two edge cases that were not covered:- the case when removing a word that does not exist, count should not change.
- the case when another word overlaps with the word being deleted, it was removing all the word chars regardless if one char is an end of another word.
Credit: 王悠悠 https://github.com/anson09
@datastructures-js/trie-v4.1.1
[4.1.1] - 2021-06-20
Fixed
- index.d.ts
@datastructures-js/trie-v4.1.0
[4.1.0] - 2021-06-20
Added
- typescript.
@datastructures-js/trie-v4.0.1
[4.0.1] - 2021-02-25
Fixed
- README
@datastructures-js/trie-v4.0.0
[4.0.0] - 2021-02-23
Changed
.insert
can be chained..remove
now returns the removed word.- better handling for null & undefined.
Added
.fromArray
static function to convert a list into a trie.
Fixed
- jsdoc
- README
@datastructures-js/trie-v3.0.1
[3.0.1] - 2020-04-18
Fixed
- jsdoc
- README
@datastructures-js/trie-v3.0.0
[3.0.0] - 2020-04-09
Changed
- renamed
.getWordsCount()
&.getNodesCount()
to.wordsCount()
&.nodesCount()
.
Fixed
- README
- jsdoc
@datastructures-js/trie-v2.0.0
[2.0.0] - 2020-03-24
Changed
- new implementation and interface