Releases: ignlg/heap-js
Releases · ignlg/heap-js
v2.3.0
v2.2.0
Quick changelog:
- Fixes .iterator() method to follow Java's PriorityQueue implementation:
The Iterator provided in method iterator() is not guaranteed to traverse the elements of the priority queue in any particular order.
v2.1.6
v2.1.2
v2.0.0
The main breaking change is that now top(N) does NOT sort the output. It should not be part of the spec for a priority queue, the output should be the top N elements. It will be partially ordered with the peek at index 0 by definition, that is all.
- top(N) is unordered, only the first element is guaranteed to be the top priority element.
- Fixes custom heap issue #31.
- Performance improvements.
- More tests, including those for custom heaps.
- Auxiliary experimental topN algorithms.
- (wip) Benchmarks.
v2.0.0-beta.1
The main breaking change is that now top(N)
does NOT sort the output. It should not be part of the spec for a priority queue, the output should be the top N elements. It will be partially ordered by definition, that is all.
v1.6.0-beta.0
v1.6.0-alpha.0
- Performance improvements.
- Benchmarks.