Skip to content

Commit 6d20bec

Browse files
Merge branch 'master' of github.com:expressjs/compression
2 parents 1abb056 + ad5113b commit 6d20bec

File tree

6 files changed

+53
-34
lines changed

6 files changed

+53
-34
lines changed

.eslintrc.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
root: true
2-
extends: standard
2+
extends:
3+
- standard
4+
- plugin:markdown/recommended
5+
plugins:
6+
- markdown
7+
overrides:
8+
- files: '**/*.md'
9+
processor: 'markdown/markdown'

.github/workflows/ci.yml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,73 +29,83 @@ jobs:
2929
- Node.js 14.x
3030
- Node.js 15.x
3131
- Node.js 16.x
32+
- Node.js 17.x
3233

3334
include:
3435
- name: Node.js 0.8
3536
node-version: "0.8"
3637
37-
npm-rm: istanbul
38+
npm-rm: nyc
3839

3940
- name: Node.js 0.10
4041
node-version: "0.10"
41-
42+
4243

4344
- name: Node.js 0.12
4445
node-version: "0.12"
45-
46+
4647

4748
- name: io.js 1.x
4849
node-version: "1.8"
49-
50+
5051

5152
- name: io.js 2.x
5253
node-version: "2.5"
53-
54+
5455

5556
- name: io.js 3.x
5657
node-version: "3.3"
57-
58+
5859

5960
- name: Node.js 4.x
6061
node-version: "4.9"
61-
62+
6263

6364
- name: Node.js 5.x
6465
node-version: "5.12"
65-
66+
6667

6768
- name: Node.js 6.x
6869
node-version: "6.17"
70+
6971

7072
- name: Node.js 7.x
7173
node-version: "7.10"
74+
7275

7376
- name: Node.js 8.x
7477
node-version: "8.16"
78+
7579

7680
- name: Node.js 9.x
7781
node-version: "9.11"
82+
7883

7984
- name: Node.js 10.x
8085
node-version: "10.16"
86+
8187

8288
- name: Node.js 11.x
8389
node-version: "11.15"
90+
8491

8592
- name: Node.js 12.x
8693
node-version: "12.22"
8794

8895
- name: Node.js 13.x
89-
node-version: "13.13"
96+
node-version: "13.14"
9097

9198
- name: Node.js 14.x
92-
node-version: "14.18"
99+
node-version: "14.19"
93100

94101
- name: Node.js 15.x
95102
node-version: "15.14"
96103

97104
- name: Node.js 16.x
98-
node-version: "16.13"
105+
node-version: "16.15"
106+
107+
- name: Node.js 17.x
108+
node-version: "17.9"
99109

100110
steps:
101111
- uses: actions/checkout@v2
@@ -150,7 +160,7 @@ jobs:
150160
- name: Run tests
151161
shell: bash
152162
run: |
153-
if npm -ps ls istanbul | grep -q istanbul; then
163+
if npm -ps ls nyc | grep -q nyc; then
154164
npm run test-ci
155165
else
156166
npm test
@@ -162,7 +172,7 @@ jobs:
162172

163173
- name: Collect code coverage
164174
uses: coverallsapp/github-action@master
165-
if: steps.list_env.outputs.istanbul != ''
175+
if: steps.list_env.outputs.nyc != ''
166176
with:
167177
github-token: ${{ secrets.GITHUB_TOKEN }}
168178
flag-name: run-${{ matrix.test_number }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.nyc_output/
12
coverage
23
node_modules
34
npm-debug.log
5+
package-lock.json

HISTORY.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
unreleased
22
==========
33

4-
* deps: accepts@~1.3.7
4+
* deps: accepts@~1.3.8
55
- Fix sorting encoding with extra parameters
6-
- deps: mime-types@~2.1.24
7-
8-
* deps: compressible@~2.0.17
9-
- deps: mime-db@'>= 1.40.0 < 2'
6+
- deps: mime-types@~2.1.34
7+
8+
* deps: compressible@~2.0.18
9+
- Mark `font/ttf` as compressible
10+
- Remove compressible from `multipart/mixed`
11+
- deps: mime-db@'>= 1.43.0 < 2'
1012
1113

1214
1.7.4 / 2019-03-18

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ $ npm install compression
2424

2525
## API
2626

27-
<!-- eslint-disable no-unused-vars -->
28-
2927
```js
3028
var compression = require('compression')
3129
```

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"repository": "expressjs/compression",
1111
"dependencies": {
1212
"@stdlib/assert-is-uint8array": "^0.0.8",
13-
"accepts": "~1.3.7",
13+
"accepts": "~1.3.8",
1414
"bytes": "3.0.0",
15-
"compressible": "~2.0.17",
15+
"compressible": "~2.0.18",
1616
"debug": "2.6.9",
1717
"on-headers": "~1.0.2",
1818
"safe-buffer": "5.2.1",
@@ -22,14 +22,14 @@
2222
"after": "0.8.2",
2323
"eslint": "7.32.0",
2424
"eslint-config-standard": "14.1.1",
25-
"eslint-plugin-import": "2.25.3",
26-
"eslint-plugin-markdown": "1.0.0",
27-
"eslint-plugin-node": "9.2.0",
28-
"eslint-plugin-promise": "4.2.1",
29-
"eslint-plugin-standard": "4.0.1",
30-
"istanbul": "0.4.5",
31-
"mocha": "6.2.3",
32-
"supertest": "4.0.2",
25+
"eslint-plugin-import": "2.26.0",
26+
"eslint-plugin-markdown": "2.2.1",
27+
"eslint-plugin-node": "11.1.0",
28+
"eslint-plugin-promise": "5.2.0",
29+
"eslint-plugin-standard": "4.1.0",
30+
"mocha": "9.2.2",
31+
"nyc": "15.1.0",
32+
"supertest": "6.2.3",
3333
"sinon": "4.5.0"
3434
},
3535
"files": [
@@ -41,9 +41,9 @@
4141
"node": ">= 0.8.0"
4242
},
4343
"scripts": {
44-
"lint": "eslint --plugin markdown --ext js,md .",
44+
"lint": "eslint .",
4545
"test": "mocha --check-leaks --reporter spec --bail",
46-
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --check-leaks --reporter spec",
47-
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --check-leaks --reporter dot"
46+
"test-ci": "nyc --reporter=lcovonly --reporter=text npm test",
47+
"test-cov": "nyc --reporter=html --reporter=text npm test"
4848
}
4949
}

0 commit comments

Comments
 (0)