Skip to content

Releases: gwtw/ts-avl-tree

2.0.6

04 Sep 00:00
Compare
Choose a tag to compare
  • Add more features to readme
  • Exclude testUtils.ts file from coverage report

2.0.5

02 Sep 21:00
99bbfb3
Compare
Choose a tag to compare
  • 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 return null
  • 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

22 Jan 01:27
Compare
Choose a tag to compare

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);