All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
0.2.0 (2019-08-30)
- rename package name from
tried
totrieste
(c612f2d)
- index: do not override nodes that share the same key (5ae0d9c)
- index: make sure to delete the correct key during remove (098a216)
- package: build umd library with rollup (adc37db)
- package: minify rollup output with uglifyjs (e376252)
- change methods so arguments are accepted instead of one (e8ceb14)
- index: accept string argument for trie functions (64c9910)
- clone project from
npm-package-template
(9eab0ad) - index: accept an array of strings as 1st argument for
remove
(608aad1) - index: add
contains
that returns false for invalid argument (d84e597) - index: add
get
method that returns the end of word value (879a7f1) - index: add
remove
to remove a string from the trie (4f205ee) - index: add constructor
Trie
and update main exporttried
(5c41248) - index: add end of word constants and generate basic trie (32e016b)
- index: allow
add
to method chain by returning trie instance (2ad16cf) - index: include
add
method that adds words to trie (4bb9f00) - index: return
{}
whenundefined
or[]
is passed (f4d6a6b) - index: update
contains
to check if string is in trie (1f1f8fa) - index: update arguments that can return
{}
(4229e25) - lib: add
utilities.assign
, which polyfillsObject.assign
(5b187eb) - update
tried
&Trie
to receive options instead of arguments (a937202) - lib: update
add
andremove
to use options (be41621) - lib: update
add
to allow custom value to be set (350be0e) - lib: update
contains
andget
to use options (eadd0af)
- data: refactor tests and move invalid arguments to data (325533b)
- index: add more test cases (8d00f45)
- index: add test case for 'remove' if argument is invalid (ec99efd)
- index: add test for adding to and removing from trie (0533fde)
- index: add tests for
add
andremove
with custom options (b3f4d7e) - index: add tests for
contains
andget
with custom options (c998122) - index: fix incorrect test in 'add' (fb875e3)
- index: move test data & constants from
index.js
todata.js
(ccc1eaa) - index: organize tests under suite
data
(c882101) - index: refactor add/remove test to use key/value constants (6f8ef27)
- index: replace
assert.ok
withassert.strictEqual
(a72c841) - index: tidy tests so they're more readable (85e5ffa)
- index: update the 'add' test suite to use the data (3fa8794)
- index: verify string is not removed from trie if not found (61bec46)
- utilities: add case for 'assign' when source is not an object (e679b67)
- refactor test files to use constants from
lib/constants.js
(f52a539) - utilities: add tests for
utilities.isObjectEmpty
(3053868)