zeba_academy_priority_queue 0.0.1
zeba_academy_priority_queue: ^0.0.1 copied to clipboard
A lightweight generic priority queue for Dart and Flutter with custom priority ordering.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.0.1 - 2026-08-11 #
Added #
- Added the initial release of
zeba_academy_priority_queue. - Added generic
ZebaPriorityQueue<T>implementation. - Added priority-based item ordering.
- Added configurable priority extraction through the
prioritycallback. - Added customizable priority ordering through
priorityComparator. - Added default highest-priority-first behavior.
- Added
enqueue()for inserting items into the queue. - Added
dequeue()for removing the highest-priority item. - Added
peek()for inspecting the highest-priority item without removing it. - Added
clear()for removing all queued items. - Added
lengthfor tracking the number of queued items. - Added
isEmptystate checking. - Added
isNotEmptystate checking. - Added
toList()for retrieving items in priority order. - Added support for duplicate priority values.
- Added support for duplicate items.
- Added an unmodifiable result from
toList()to protect internal queue state. - Added comprehensive unit tests covering core queue behavior.
- Added tests for custom priority comparators.
- Added tests for empty queue behavior.
- Added tests for enqueue and dequeue ordering.
- Added tests for peek behavior.
- Added tests for clearing the queue.
- Added tests for queue length tracking.
- Added tests for duplicate priorities and duplicate items.
- Added package documentation and usage examples.
- Added GPL-3.0 licensing information.
- Added Zeba Academy project branding and documentation.