Socket
Socket
Sign inDemoInstall

@datastructures-js/heap

Package Overview
Dependencies
0
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
23Next

4.3.3

Diff

Changelog

Source

[4.3.3] - 2024-01-07

Fixed

  • default compare function for MinHeap
eyas-ranjous
published 4.3.2 •

Changelog

Source

[4.3.2] - 2023-06-19

Fixed

  • ts types.
eyas-ranjous
published 4.3.1 •

Changelog

Source

[4.3.1] - 2023-01-08

Fixed

  • lint config.
eyas-ranjous
published 4.3.0 •

Changelog

Source

[4.3.0] - 2023-01-08

Added

  • toArray to convert the heap into an array without sorting.
eyas-ranjous
published 4.2.2 •

Changelog

Source

[4.2.2] - 2022-12-24

Fixed

  • add iterable for ts definitions.
eyas-ranjous
published 4.2.1 •

Changelog

Source

[4.2.1] - 2022-12-23

Fixed

  • typo in readme.
eyas-ranjous
published 4.2.0 •

Changelog

Source

[4.2.0] - 2022-12-23

Added

  • Symbol.iterator to iterate on heaps pop.

Fixed

  • .fix() to also fix heap leaf value in addition to nodes positions.
eyas-ranjous
published 4.1.2 •

Changelog

Source

[4.1.2] - 2022-09-04

Fixed

  • Optimize .fix() to run in O(n) runtime instead of O(n*log(n)).
eyas-ranjous
published 4.1.1 •

Changelog

Source

[4.1.1] - 2022-08-15

Fixed

  • add types to package.json
eyas-ranjous
published 4.1.0 •

Changelog

Source

[4.1.0] - 2022-05-30

Added

  • push, pop & top as alias methods for insert, extractRoot & root
23Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc