Releases: gwtw/ts-avl-tree
Releases · gwtw/ts-avl-tree
2.0.6
2.0.5
- Upgraded to TypeScript 3
- Enabled all strict checks in TypeScript (#2), making the API more explicit on whether calls return undefined and/or null
- Fixed error when calling
AvlTree.get
on a key that doesn't exist, it will not returnnull
- The implementation now implements the
AvlTree
definition in the declaration file, this lets the TS compiler ensure that the API is correct
2.0.0
The module @tyriar/avl-tree
has been moved from gwtw/js-avl-tree to this implementation. The API to import is now:
import { AvlTree } from '@tyriar/avl-tree'
size
and isEmpty
have become getters rather than functions, you no longer need to add the ()
to call them:
console.log(tree.size);
console.log(tree.isEmpty);