Skip to content

Commit

Permalink
Merge pull request #658 from ignlg/next
Browse files Browse the repository at this point in the history
Improve performance, upgrade packages, and bump to v2.6
ignlg authored Dec 28, 2024
2 parents a71e93f + c43aed3 commit c6bce4c
Showing 28 changed files with 3,956 additions and 6,712 deletions.
51 changes: 45 additions & 6 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
@@ -10,23 +10,62 @@ on:
branches: ["master", "next"]

jobs:
build:
lint:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm install --global yarn
- run: yarn
# - run: npm run build --if-present
- run: yarn --immutable
- run: npm run lint
- run: npm run test

test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [lts/*, current]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install yarn
run: npm install --global yarn
- name: Install dependencies
run: yarn --immutable
- name: Run tests
run: npm run test

build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [lts/*, current]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm install --global yarn
- run: yarn --immutable
- run: npm run build
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -43,6 +43,11 @@ heap vs array: push + top(50) of 100

## Changelog

### 2.6

- Improves performance of remove and sorting methods.
- Improves tests and documentation.

### 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.
@@ -331,9 +336,13 @@ To do:

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

## Contributing
## Sponsor

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.

## Collaborate

Development of **Heap.js** happens in the open on GitHub, and I am grateful to the community for contributing bug fixes and improvements.
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!

### Dev setup

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

### License

Heap.js is [BSD licensed](LICENSE).
Heap.js is [BSD 3-Clause Licensed](LICENSE).
Loading

0 comments on commit c6bce4c

Please sign in to comment.