Skip to content

Commit 60b921c

Browse files
authored
switch to built-in heap from heap-js (#64)
* switch to builtin heap-js * remove more functions * add @types/node
1 parent 1e2956d commit 60b921c

File tree

9 files changed

+963
-42
lines changed

9 files changed

+963
-42
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/coverage
22
/node_modules
3-
/index.d.ts
3+
/*.d.ts
44
/es6
55
/cjs

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [2.0.0] 2023-01-19
8+
## [2.1.0]
9+
- Builtin ultra-light heap implementation from [`heap-js`](https://github.com/ignlg/heap-js) by @ignlg
10+
- Drop the default export
11+
- Size down to 1.5KBytes when compressed
12+
13+
# [2.0.0] 2023-01-19
914
- Almost complete rewrite in TypeScript
1015
- Use `PriorityQueue` from `typescript-collection`
1116
- O(log(n)) in all cases

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Node.js CI](https://github.com/mmomtchev/Queue/workflows/Node.js%20CI/badge.svg)](https://github.com/mmomtchev/Queue/actions?query=workflow%3A%22Node.js+CI%22)
77
[![codecov](https://codecov.io/gh/mmomtchev/Queue/branch/master/graph/badge.svg)](https://codecov.io/gh/mmomtchev/Queue)
88

9-
Total size, including `typescript-collections/PriorityQueue.js`: **`6.6Kbytes` uncompressed, `2.2KBytes` gzip-compressed**
9+
Zero-dependency, total size: **`3.9 KBytes` uncompressed and `1.4 KBytes` gzip-compressed**
1010

1111
There is a medium story about using this package to parallelize download loops : [Parallelizing download loops in JS with async-await-queue](https://medium.com/@mmomtchev/parallelizing-download-loops-in-js-with-async-await-queue-670420880cd6)
1212

@@ -37,7 +37,6 @@ Require as **CJS**
3737
const { Queue } = require('async-await-queue');
3838
```
3939

40-
Import as **ES Module**
4140
Import as **ES6 Module**
4241
```js
4342
import { Queue } from 'async-await-queue';

0 commit comments

Comments
 (0)