Skip to content

Commit c6bce4c

Browse files
authored
Merge pull request #658 from ignlg/next
Improve performance, upgrade packages, and bump to v2.6
2 parents a71e93f + c43aed3 commit c6bce4c

28 files changed

+3956
-6712
lines changed

.github/workflows/npm-test.yml

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,62 @@ on:
1010
branches: ["master", "next"]
1111

1212
jobs:
13-
build:
13+
lint:
1414
runs-on: ubuntu-latest
1515

1616
strategy:
1717
matrix:
18-
node-version: [16.x, 18.x, 20.x]
18+
node-version: [lts/*, current]
1919
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2020

2121
steps:
2222
- uses: actions/checkout@v3
2323
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2525
with:
2626
node-version: ${{ matrix.node-version }}
2727
cache: "npm"
2828
- run: npm install --global yarn
29-
- run: yarn
30-
# - run: npm run build --if-present
29+
- run: yarn --immutable
3130
- run: npm run lint
32-
- run: npm run test
31+
32+
test:
33+
runs-on: ubuntu-latest
34+
35+
strategy:
36+
matrix:
37+
node-version: [lts/*, current]
38+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
39+
40+
steps:
41+
- uses: actions/checkout@v3
42+
- name: Use Node.js ${{ matrix.node-version }}
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: ${{ matrix.node-version }}
46+
cache: "npm"
47+
- name: Install yarn
48+
run: npm install --global yarn
49+
- name: Install dependencies
50+
run: yarn --immutable
51+
- name: Run tests
52+
run: npm run test
53+
54+
build:
55+
runs-on: ubuntu-latest
56+
57+
strategy:
58+
matrix:
59+
node-version: [lts/*, current]
60+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
61+
62+
steps:
63+
- uses: actions/checkout@v3
64+
- name: Use Node.js ${{ matrix.node-version }}
65+
uses: actions/setup-node@v4
66+
with:
67+
node-version: ${{ matrix.node-version }}
68+
cache: "npm"
69+
- run: npm install --global yarn
70+
- run: yarn --immutable
71+
- run: npm run build

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ heap vs array: push + top(50) of 100
4343

4444
## Changelog
4545

46+
### 2.6
47+
48+
- Improves performance of remove and sorting methods.
49+
- Improves tests and documentation.
50+
4651
### 2.5
4752

4853
- Improves the `limit` property to support negative, Infinity, and NaN values. They will be set as `0` and the heap will not be limited.
@@ -331,9 +336,13 @@ To do:
331336

332337
<https://ignlg.github.io/heap-js/>
333338

334-
## Contributing
339+
## Sponsor
340+
341+
We are looking for sponsors to help us maintain and improve **Heap.js**. If you're interested in supporting this project, please get in touch with us.
342+
343+
## Collaborate
335344

336-
Development of **Heap.js** happens in the open on GitHub, and I am grateful to the community for contributing bug fixes and improvements.
345+
Would you like to contribute to **Heap.js**? Feel free to submit a pull request, open an issue, or reach out to the maintainers. We welcome your feedback and ideas!
337346

338347
### Dev setup
339348

@@ -355,4 +364,4 @@ npm run benchmarks
355364

356365
### License
357366

358-
Heap.js is [BSD licensed](LICENSE).
367+
Heap.js is [BSD 3-Clause Licensed](LICENSE).

0 commit comments

Comments
 (0)