@fastify/compress 6.1.0 → 6.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,4 +14,5 @@ jobs:
14
14
  test:
15
15
  uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3
16
16
  with:
17
+ license-check: true
17
18
  lint: true
package/README.md CHANGED
@@ -85,7 +85,7 @@ app.get('/', (req, reply) => {
85
85
  .compress(fs.createReadStream('./package.json'))
86
86
  })
87
87
 
88
- await app.listen(3000)
88
+ await app.listen({ port: 3000 })
89
89
  ```
90
90
 
91
91
  ## Compress Options
@@ -163,7 +163,7 @@ You can tune compression by setting the `brotliOptions` and `zlibOptions` proper
163
163
  },
164
164
  },
165
165
  zlibOptions: {
166
- level: 9, // default is 9, max is 9, min is 0
166
+ level: 6, // default is typically 6, max is 9, min is 0
167
167
  }
168
168
  });
169
169
  ```
package/index.js CHANGED
@@ -8,7 +8,7 @@ const intoStream = require('into-stream')
8
8
  const peek = require('peek-stream')
9
9
  const Minipass = require('minipass')
10
10
  const pumpify = require('pumpify')
11
- const encodingNegotiator = require('encoding-negotiator')
11
+ const encodingNegotiator = require('@fastify/accept-negotiator')
12
12
  const { inherits, format } = require('util')
13
13
 
14
14
  const { isStream, isGzip, isDeflate } = require('./lib/utils')
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@fastify/compress",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "Fastify compression utils",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "dependencies": {
8
- "encoding-negotiator": "^2.0.1",
9
- "fastify-plugin": "^3.0.0",
8
+ "@fastify/accept-negotiator": "^1.0.0",
9
+ "fastify-plugin": "^4.0.0",
10
10
  "into-stream": "^6.0.0",
11
11
  "mime-db": "^1.51.0",
12
12
  "minipass": "^3.1.6",
@@ -15,16 +15,16 @@
15
15
  "pumpify": "^2.0.1"
16
16
  },
17
17
  "devDependencies": {
18
- "@types/node": "^17.0.8",
18
+ "@fastify/pre-commit": "^2.0.2",
19
+ "@types/node": "^18.0.0",
19
20
  "@typescript-eslint/eslint-plugin": "^5.9.0",
20
21
  "@typescript-eslint/parser": "^5.9.0",
21
22
  "adm-zip": "^0.5.9",
22
23
  "fastify": "^4.0.0-rc.2",
23
24
  "jsonstream": "^1.0.3",
24
- "pre-commit": "^1.2.2",
25
25
  "standard": "^17.0.0",
26
26
  "tap": "^16.0.0",
27
- "tsd": "^0.21.0",
27
+ "tsd": "^0.22.0",
28
28
  "typescript": "^4.5.4"
29
29
  },
30
30
  "scripts": {