Skip to content

Commit ca19fdd

Browse files
committed
feature(files-io) drop support of node < 14
1 parent b67a14d commit ca19fdd

File tree

7 files changed

+17
-31
lines changed

7 files changed

+17
-31
lines changed

.eslintrc.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
{
2-
"overrides": [{
3-
"files": ["test/**"],
4-
"rules": {
5-
"node/no-unpublished-require": "off"
6-
}
7-
}],
82
"extends": [
9-
"plugin:putout/recommended",
10-
"plugin:node/recommended"
3+
"plugin:node/recommended",
4+
"plugin:putout/recommended"
115
],
126
"plugins": [
137
"putout",

.eslintrc.test

Lines changed: 0 additions & 6 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ node_modules
33
npm-debug.log
44
yarn-error.log
55

6+
.putoutcache
7+
*.swp

.madrun.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ const {run} = require('madrun');
44

55
module.exports = {
66
'fix:lint': () => run('lint', '--fix'),
7-
'lint': () => 'putout lib test madrun.js',
7+
'lint': () => 'putout .',
8+
'fresh:lint': () => run('lint', '--fresh'),
9+
'lint:fresh': () => run('lint', '--fresh'),
810
'lint:test': () => 'putout -c .putoutrc.test test',
911
'test': () => 'tape test/*.js',
1012
'coverage': () => 'nyc npm test',

.travis.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
language: node_js
22
node_js:
3-
- 13
4-
- 12
5-
- 10
6-
- 8
7-
3+
- 15
4+
- 14
85
script:
96
- npm run lint
107
- npm run coverage && npm run report
11-
128
notifications:
13-
email:
14-
on_success: never
15-
on_failure: change
16-
9+
email:
10+
on_success: never
11+
on_failure: change
1712
sudo: false
18-
13+
cache: false

lib/files.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
'use strict';
2-
3-
const {promisify} = require('util');
4-
const fs = require('fs');
2+
const {
3+
readFile
4+
} = require('fs/promises');
55
const zlib = require('zlib');
66
const assert = require('assert');
77

88
const pipe = require('pipe-io');
99
const {assign} = Object;
10-
const readFile = promisify(fs.readFile);
1110

1211
module.exports.read = async (files, options) => {
1312
const filesData = {};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"putout": "^13.9.1"
2727
},
2828
"engines": {
29-
"node": ">=8.3.0"
29+
"node": ">=14"
3030
},
3131
"license": "MIT",
3232
"devDependencies": {

0 commit comments

Comments
 (0)