Socket
Socket
Sign inDemoInstall

priorityqueue

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-0 to 2.0.0

9

CHANGELOG.md

@@ -0,1 +1,10 @@

# [2.0.0](https://github.com/berlysia/priorityqueuejs/compare/v2.0.0-0...v2.0.0) (2022-11-04)
### Features
* export type of option ([01ff281](https://github.com/berlysia/priorityqueuejs/commit/01ff2810dd2106b5da7de494aa4cb926d3a2c6b9))
# [2.0.0-0](https://github.com/berlysia/priorityqueuejs/compare/v1.0.0...v2.0.0-0) (2022-11-04)

@@ -2,0 +11,0 @@

2

lib/index.d.ts
export { default } from "./BinaryHeap";
export type { PriorityQueueInstance, PriorityQueueStatic, } from "./PriorityQueue";
export type { PriorityQueueInstance, PriorityQueueStatic, PriorityQueueOption, } from "./PriorityQueue";
{
"name": "priorityqueue",
"version": "2.0.0-0",
"version": "2.0.0",
"description": "An implementation of Priority Queue",

@@ -41,7 +41,7 @@ "main": "lib/index.js",

"changelog": "conventional-changelog --preset angular --infile CHANGELOG.md --same-file --release-count 0",
"preversion": "run-s lint test typecheck build",
"preversion": "run-s ci build",
"version": "run-s changelog && git add CHANGELOG.md",
"ci": "run-s lint typecheck test:ci",
"postci": "codecov",
"documentation": "typedoc ./src ./src/BinaryHeap.ts ./src/PairingHeap.ts ./src/SkewHeap.ts && touch docs/.nojekyll",
"documentation": "typedoc ./src/index.ts ./src/BinaryHeap.ts ./src/PairingHeap.ts ./src/SkewHeap.ts && touch docs/.nojekyll",
"postpublish": "yarn documentation && gh-pages -d docs --dotfiles",

@@ -48,0 +48,0 @@ "prepare": "git config --local core.hooksPath .githooks && echo 'githooks installed' || echo 'githooks install failed'"

@@ -45,14 +45,7 @@ # PriorityQueue

## Options
## References
## PriorityQueue(options = {})
- [instance methods](http://berlysia.github.io/priorityqueuejs/types/index.PriorityQueueInstance.html)
- [static methods](http://berlysia.github.io/priorityqueuejs/types/index.PriorityQueueStatic.html)
### options.comparator
`options.comparator` defines an order of each values in PriorityQueue.
A comparator function format is in according with an argument of [`Array.prototype.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort).
⚠️ The predefined order is also the same as [`Array.prototype.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort).
## Variation

@@ -59,0 +52,0 @@

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