- Now
priorityqueue
is dual exported package. - Simpler build pipeline thanks to use of Vite & Vitest.
BREAKING CHANGE
Change the import manner of other strategies.
before
import PriorityQueue, { BinaryHeap, SkewHeap, PairingHeap } from "priorityqueue";
console.log(PriorityQueue === BinaryHeap); // true
after
import PriorityQueue from "priorityqueue";
import BinaryHeap from "priorityqueue/BinaryHeap";
import SkewHeapfrom "priorityqueue/SkewHeap";
import PairingHeap from "priorityqueue/PairingHeap";
console.log(PriorityQueue === BinaryHeap); // true
All alias methods are removed
instance.peek()
-> useinstance.top()
instance.enqueue(x)
-> useinstance.push(x)
instance.dequeue()
-> useinstance.pop()