Skip to content

Commit 60e89ae

Browse files
committed
Drop support for node < v18
1 parent 74a4554 commit 60e89ae

23 files changed

+800
-441
lines changed

.eslintrc

Lines changed: 175 additions & 205 deletions
Large diffs are not rendered by default.

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
node-version: [16, 18]
23+
node-version: [18, 20]
2424
os: [ubuntu-latest, windows-latest]
2525

2626
steps:
@@ -47,10 +47,10 @@ jobs:
4747
- name: Checkout repository
4848
uses: actions/checkout@v3
4949

50-
- name: Use Node.js 20
50+
- name: Use latest Node.js
5151
uses: actions/setup-node@v3
5252
with:
53-
node-version: 20
53+
node-version: latest
5454
cache: "npm"
5555

5656
- name: Install

CHANGELOG.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
unreleased:
2+
breaking changes:
3+
- GH-1605 Dropped support for Node < v18
4+
chores:
5+
- GH-1605 Updated dependencies
6+
- GH-1605 Updated ESLint rules
7+
- GH-1605 Run code coverage on latest Node version in CI
8+
19
6.2.1:
210
date: 2024-08-20
311
fixed bugs:

lib/config/rc-file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable no-process-env */
1+
/* eslint-disable n/no-process-env */
22
var _ = require('lodash'),
33
fs = require('fs'),
44
join = require('path').join,

lib/reporters/cli/cli-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ cliUtils = {
175175
}
176176

177177
return {
178-
exists: !(Boolean(process.env.CI) || !process.stdout.isTTY), // eslint-disable-line no-process-env
178+
exists: !(Boolean(process.env.CI) || !process.stdout.isTTY), // eslint-disable-line n/no-process-env
179179
width: width,
180180
height: height
181181
};

lib/reporters/cli/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ PostmanCLIReporter = function (emitter, reporterOptions, options) {
259259
}
260260

261261
reqText = wrap(reqText, ` ${colors.white(symbols.console.middle)} `);
262-
// eslint-disable-next-line max-len
262+
// eslint-disable-next-line @stylistic/js/max-len
263263
print.buffer(` ${colors.white(symbols.console.top)} ${colors.white(symbols.up)} ${reqBodyMode} ${colors.gray(symbols.star)} ${util.filesize(reqTextLen)}\n`,
264264
colors.white(` ${symbols.console.bottom}`))
265265
// tweak the message to ensure that its surrounding is not brightly coloured.
@@ -278,7 +278,7 @@ PostmanCLIReporter = function (emitter, reporterOptions, options) {
278278
}
279279

280280
resText = wrap(resText, ` ${colors.white(symbols.console.middle)} `);
281-
// eslint-disable-next-line max-len
281+
// eslint-disable-next-line @stylistic/js/max-len
282282
print.buffer(` ${colors.white(symbols.console.top)} ${colors.white(symbols.down)} ${resSummary} ${colors.gray(symbols.star)} ${util.filesize(resTextLen)}\n`,
283283
colors.white(` ${symbols.console.bottom}`))
284284
// tweak the message to ensure that its surrounding is not brightly coloured.

lib/run/export-file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ module.exports = function (options, done) {
103103
});
104104
},
105105
function (next) {
106-
fs.stat(path.unparsed, function (err, stat) { // eslint-disable-line handle-callback-err
106+
fs.stat(path.unparsed, function (err, stat) { // eslint-disable-line n/handle-callback-err
107107
next(null, stat);
108108
});
109109
},

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ util = {
196196
if (response.statusCode !== 200) {
197197
const resource = isPostmanHost ? _(urlObj.getPath()).split('/').get(1).slice(0, -1) : 'resource',
198198
error = new Error(_.get(body, 'error.message',
199-
// eslint-disable-next-line max-len
199+
// eslint-disable-next-line @stylistic/js/max-len
200200
`Error fetching ${resource}, the provided URL returned status code: ${response.statusCode}`));
201201

202202
return callback(_.assign(error, {

0 commit comments

Comments
 (0)