Skip to content

Commit

Permalink
📝 docs(README.md): update changelog for version 2.5 with improvements…
Browse files Browse the repository at this point in the history
… to limit

🚀 chore(package.json): bump version to 2.5.0 for latest changes and improvements
  • Loading branch information
ignlg committed Mar 1, 2024
1 parent 103116e commit 8e6896f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ heap vs array: push + top(50) of 100

## Changelog

### 2.5

- Improves the `limit` property to support negative, Infinity, and NaN values. They will be set as `0` and the heap will not be limited.
- Adds the `setLimit` method to set the limit of the heap. It returns `NaN` if the limit is negative, or NaN. This method is useful to check if the limit was set as expected.
- Improves tests and documentation.

### 2.4

- Adds the `indexOf` method to find the first index of an element in the heap.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "heap-js",
"version": "2.4.0",
"version": "2.5.0",
"description": "Efficient Binary heap (priority queue, binary tree) data structure for JavaScript / TypeScript. Includes JavaScript methods, Python's heapq module methods, and Java's PriorityQueue methods.",
"keywords": [
"heap",
Expand Down

0 comments on commit 8e6896f

Please sign in to comment.