Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:

strategy:
matrix:
node-version: [14.x, 15.x, 16.x, 18.x]
node-version: [16.x, 18.x, 20.x, 22.x, 24.x]

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -26,4 +26,4 @@ jobs:
run: npm run test

- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
uses: coverallsapp/github-action@v2
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Changelog

All notable changes to this project will be documented in this file.

## [1.2.0] - 2026-02-13

### Added
- Node.js v20, v22, and v24 support
- `engines` field in package.json specifying minimum Node.js version

### Changed
- Dockerfile updated from Node 22 to Node 24
- CI matrix updated to test against Node.js 16, 18, 20, 22, and 24
- Updated GitHub Actions to latest versions (checkout@v4, setup-node@v4)
- Minimum supported Node.js version updated from v8 to v16
- README updated to reflect current Node.js compatibility

## [1.1.1] - Previous release

- Initial tracked version
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:22-slim
FROM node:24-slim

USER node
ARG APP_DIR=/home/node/app
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Alternatively keep reading below.

#### Prerequisites

- Minimum NodeJs v8 (npm v5 and above)
- Working on NodeJs v18
- Minimum NodeJs v16 (npm v7 and above)
- Tested on NodeJs v16, v18, v20, v22, v24
- Free or Paid account with CurrencyApi.net

#### Test Coverage
Expand Down
22 changes: 20 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
"role": "Developer"
}
],
"version": "1.1.1",
"version": "1.2.0",
"engines": {
"node": ">=16.0.0"
},
"scripts": {
"test": "jest --coverage --collectCoverageFrom='./src/**'"
},
Expand Down
2 changes: 1 addition & 1 deletion run.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// run.js
import CurrencyApi from './src/CurrencyApi.js';
const CurrencyApi = require('./src/CurrencyApi');

const currency = new CurrencyApi('YOUR_API_KEY');

Expand Down
Loading