Skip to content

Commit a953087

Browse files
committed
Require Node.js 12 and upgrade dependencies
Closes #119 Fixes #118
1 parent 87ff53d commit a953087

File tree

6 files changed

+17
-27
lines changed

6 files changed

+17
-27
lines changed

.github/funding.yml

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

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
node-version:
13+
- 16
1314
- 14
1415
- 12
15-
- 10
16-
- 8
1716
steps:
1817
- uses: actions/checkout@v2
19-
- uses: actions/setup-node@v1
18+
- uses: actions/setup-node@v2
2019
with:
2120
node-version: ${{ matrix.node-version }}
2221
- run: npm install

license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
3+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"author": {
88
"name": "Sindre Sorhus",
99
"email": "sindresorhus@gmail.com",
10-
"url": "sindresorhus.com"
10+
"url": "https://sindresorhus.com"
1111
},
1212
"engines": {
13-
"node": ">=8"
13+
"node": ">=12"
1414
},
1515
"scripts": {
1616
"test": "xo && ava"
@@ -30,19 +30,19 @@
3030
"postcss-runner"
3131
],
3232
"dependencies": {
33-
"autoprefixer": "^9.6.1",
34-
"fancy-log": "^1.3.2",
33+
"autoprefixer": "^10.2.6",
34+
"fancy-log": "^1.3.3",
3535
"plugin-error": "^1.0.1",
36-
"postcss": "^7.0.17",
37-
"through2": "^3.0.1",
36+
"postcss": "^8.3.0",
37+
"through2": "^4.0.2",
3838
"vinyl-sourcemaps-apply": "^0.2.1"
3939
},
4040
"devDependencies": {
41-
"ava": "^2.3.0",
42-
"gulp-sourcemaps": "^2.6.0",
43-
"p-event": "^4.1.0",
44-
"vinyl": "^2.1.0",
45-
"xo": "^0.24.0"
41+
"ava": "^2.4.0",
42+
"gulp-sourcemaps": "^3.0.0",
43+
"p-event": "^4.2.0",
44+
"vinyl": "^2.2.1",
45+
"xo": "^0.39.0"
4646
},
4747
"peerDependencies": {
4848
"gulp": ">=4"

readme.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
55
*Issues with the output should be reported on the Autoprefixer [issue tracker](https://github.com/postcss/autoprefixer/issues).*
66

7-
87
## Install
98

109
```
1110
$ npm install --save-dev gulp-autoprefixer
1211
```
1312

14-
1513
## Usage
1614

1715
```js
@@ -27,7 +25,6 @@ exports.default = () => (
2725
);
2826
```
2927

30-
3128
## API
3229

3330
### autoprefixer(options?)
@@ -38,7 +35,6 @@ Type: `object`
3835

3936
See the Autoprefixer [options](https://github.com/postcss/autoprefixer#options).
4037

41-
4238
## Source Maps
4339

4440
Use [gulp-sourcemaps](https://github.com/gulp-sourcemaps/gulp-sourcemaps) like this:
@@ -59,7 +55,6 @@ exports.default = () => (
5955
);
6056
```
6157

62-
6358
## Tip
6459

6560
If you use other PostCSS based tools, like `cssnano`, you may want to run them together using [`gulp-postcss`](https://github.com/postcss/autoprefixer#gulp) instead of `gulp-autoprefixer`. It will be faster, as the CSS is parsed only once for all PostCSS based tools, including Autoprefixer.

test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test('autoprefix CSS', async t => {
1717
}));
1818

1919
const file = await data;
20-
t.true(/-/.test(file.contents.toString()));
20+
t.regex(file.contents.toString(), /-/);
2121
t.is(file.relative, 'fixture.css');
2222
});
2323

@@ -43,8 +43,8 @@ test('generate source maps', async t => {
4343
const file = await data;
4444
t.is(file.sourceMap.mappings, 'AAAA;CACC,aAAa;AACd');
4545
const contents = file.contents.toString();
46-
t.true(/flex/.test(contents));
47-
t.true(/sourceMappingURL=data:application\/json;charset=utf8;base64/.test(contents));
46+
t.regex(contents, /flex/);
47+
t.regex(contents, /sourceMappingURL=data:application\/json;charset=utf8;base64/);
4848
});
4949

5050
test('read upstream source maps', async t => {

0 commit comments

Comments
 (0)