Skip to content
Open
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
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: 2.1
orbs:
node: circleci/node@5.0.3
node: circleci/node@7.2.1
jobs:
build:
docker:
- image: cimg/base:stable
steps:
- checkout
- node/install:
node-version: '14.19.3'
node-version: '20'
- node/install-packages:
cache-path: ~/project/node_modules
override-ci-command: npm install
Expand Down
11 changes: 1 addition & 10 deletions .nsprc
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
{
"GHSA-f8q6-p94x-37v3": {
"active": true,
"notes": "A long dependency chain from 'bunyan' till 'minimatch'. 'bunyan' uses 'minimatch' only via an optional dependency 'mv', which we don't install. So not affected"
},
"GHSA-27h2-hvpr-p74q": {
"active": true,
"notes": "The vulnerability is in maester-client v4.x because of cross-dependency with component-commons-library. Maester-client of v4.x doesn't use jwt.verify function. So not affected"
}
}
{}
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# 6.0.1 (January 31, 2026)
* Updated development dependencies to support Node.js v20 and TypeScript v5.9.
* Resolved TypeScript compilation errors related to `jsonwebtoken.sign` and `dom` types.
* Added explicit return type annotations to `deleteOne` and `deleteAllByParams` to fix portable type error (TS2742).
* Updated CircleCI configuration to use Node.js v20 and the latest `circleci/node` orb.
* Added `engines` field to `package.json` to specify Node.js `^20.0.0` compatibility.
* Fix audit vulnerability issues
* Updated axios to 1.13.5 version
* Increased default timeouts and retry counts

# 6.0.0 (March 21, 2025)
* (breaking change) Bumped Axios from 0.27.2 to 1.8.2 ([#45](https://github.com/elasticio/maester-client/issues/45)) which brings several potential breaking changes. For example, Axios headers return as an Axios Headers instance, not as a plain JSON object.

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Note: All the code snippets written in Typescript
### Environment variables

*REQUEST_MAX_RETRY* - specifies amount of tries to repeat failed request if server/connection error occurred. <br>
Default value: 2. Min value: 0. Max value: 4. If entered value is out of limits - default value will be used.
Default value: 3. Min value: 0. Max value: 4. If entered value is out of limits - default value will be used.

*REQUEST_TIMEOUT* - specifies the number of milliseconds before the request times out. If the request takes longer than 'timeout', the request will be aborted. <br>
Default value: 10000 (10s). Min value: 500 (0.5s). Max value: 20000 (20s). If entered value is out of limits - default value will be used.
Default value: 15000 (15s). Min value: 500 (0.5s). Max value: 20000 (20s). If entered value is out of limits - default value will be used.

### Create client
```
Expand Down
Loading