Skip to content

Releases: datastructures-js/trie

@datastructures-js/trie-v4.2.2

16 Aug 04:45
Compare
Choose a tag to compare

[4.2.2] - 2022-08-15

Fixed

  • add types to package.json

@datastructures-js/trie-v4.2.1

06 Jun 08:00
Compare
Choose a tag to compare

[4.2.1] - 2022-06-06

Fixed

  • readme.

@datastructures-js/trie-v4.2.0

02 Dec 07:47
cd83900
Compare
Choose a tag to compare

[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:

    1. the case when removing a word that does not exist, count should not change.
    2. 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

20 Jun 20:10
4115eb2
Compare
Choose a tag to compare

[4.1.1] - 2021-06-20

Fixed

  • index.d.ts

@datastructures-js/trie-v4.1.0

20 Jun 09:18
45c6ea9
Compare
Choose a tag to compare

[4.1.0] - 2021-06-20

Added

  • typescript.

@datastructures-js/trie-v4.0.1

25 Feb 18:50
6314baa
Compare
Choose a tag to compare

[4.0.1] - 2021-02-25

Fixed

  • README

@datastructures-js/trie-v4.0.0

23 Feb 05:16
a359fe5
Compare
Choose a tag to compare

[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

19 Apr 03:34
d59180e
Compare
Choose a tag to compare

[3.0.1] - 2020-04-18

Fixed

  • jsdoc
  • README

@datastructures-js/trie-v3.0.0

09 Apr 19:42
284f7b2
Compare
Choose a tag to compare

[3.0.0] - 2020-04-09

Changed

  • renamed .getWordsCount() & .getNodesCount() to .wordsCount() & .nodesCount().

Fixed

  • README
  • jsdoc

@datastructures-js/trie-v2.0.0

25 Mar 05:24
859f48d
Compare
Choose a tag to compare

[2.0.0] - 2020-03-24

Changed

  • new implementation and interface