Skip to content

Commit e26521b

Browse files
authored
Bump minimum version of node + update superagent (#94)
* Redo * Bump version matrix * Revert version bump * Revert version bump * Update changelog
1 parent 17ece8e commit e26521b

File tree

9 files changed

+4829
-3580
lines changed

9 files changed

+4829
-3580
lines changed

Diff for: .github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node: ['10', '12', '14', '16']
14+
node: ['18', '20', '22']
1515
max-parallel: 1
1616

1717
name: Node ${{ matrix.node }} Test

Diff for: .nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.13.0
1+
18.18.2

Diff for: CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +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.2.0] - 2024-05-06
9+
10+
### Breaking
11+
12+
- Drops support for node.js < 18
13+
814
## [2.1.1] - 2023-04-18
915

1016
### Added

Diff for: Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16.16 AS base
1+
FROM node:18.18 AS base
22

33
WORKDIR /data
44

Diff for: package-lock.json

+3,231-2,483
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+13-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@patch-technology/patch",
3-
"version": "2.1.1",
3+
"version": "2.2.0",
44
"description": "Node.js wrapper for the Patch API",
55
"license": "MIT",
66
"repository": {
@@ -12,8 +12,7 @@
1212
"fs": false
1313
},
1414
"engines": {
15-
"node": ">=10.16.3",
16-
"npm": ">=6.9.0"
15+
"node": ">=18.0.0"
1716
},
1817
"scripts": {
1918
"build": "babel src -d dist",
@@ -22,11 +21,11 @@
2221
},
2322
"dependencies": {
2423
"query-string": "^7.0.1",
25-
"superagent": "^5.3.1"
24+
"superagent": "^9.0.2"
2625
},
2726
"devDependencies": {
28-
"@babel/cli": "^7.16.0",
29-
"@babel/core": "^7.16.0",
27+
"@babel/cli": "^7.24.0",
28+
"@babel/core": "^7.24.0",
3029
"@babel/plugin-proposal-class-properties": "^7.0.0",
3130
"@babel/plugin-proposal-decorators": "^7.0.0",
3231
"@babel/plugin-proposal-do-expressions": "^7.0.0",
@@ -43,14 +42,14 @@
4342
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
4443
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
4544
"@babel/plugin-syntax-import-meta": "^7.0.0",
46-
"@babel/preset-env": "^7.16.0",
47-
"@babel/register": "^7.16.0",
48-
"chai": "^4.3.0",
49-
"husky": "^8.0.3",
50-
"lint-staged": "^13.2.1",
51-
"mocha": "^9.1.0",
52-
"sinon": "^7.2.0",
53-
"prettier": "^2.0.5"
45+
"@babel/preset-env": "^7.24.0",
46+
"@babel/register": "^7.23.0",
47+
"chai": "^4.4.0",
48+
"husky": "^4.2.5",
49+
"lint-staged": "^10.5.4",
50+
"mocha": "^10.4.0",
51+
"sinon": "^17.0.1",
52+
"prettier": "^3.2.5"
5453
},
5554
"files": [
5655
"dist"

Diff for: src/ApiClient.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ApiClient {
1616
};
1717

1818
this.defaultHeaders = {
19-
'User-Agent': 'patch-node/2.1.1',
19+
'User-Agent': 'patch-node/2.2.0',
2020
'Patch-Version': 2
2121
};
2222

Diff for: test/integration/estimates.test.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ describe('Estimates Integration', function () {
1010
});
1111
const estimateId = createEstimateResponse.data.id;
1212

13-
const retrieveEstimateResponse = await patch.estimates.retrieveEstimate(
14-
estimateId
15-
);
13+
const retrieveEstimateResponse =
14+
await patch.estimates.retrieveEstimate(estimateId);
1615
expect(retrieveEstimateResponse.data.id).to.equal(estimateId);
1716
expect(retrieveEstimateResponse.data.order.state).to.equal('reserved');
1817

0 commit comments

Comments
 (0)