Skip to content

Commit

Permalink
Upgrade undici and update deps (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simone Sanfratello committed Jun 25, 2021
1 parent b935d80 commit 11f4d0b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
node-version: [10, 12, 14, 16]
node-version: [12, 14, 16]
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
Expand Down
4 changes: 3 additions & 1 deletion lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ function buildRequest (opts) {
done(new Error('unix socket not supported with undici yet'))
return
} else {
pool = undiciAgent.get(baseUrl || opts.url.origin)
const options = getUndiciOptions(opts.undici)
options.dispatcher = undiciAgent
pool = new undici.Pool(baseUrl || opts.url.origin, options)
}

// remove forbidden headers
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,39 +27,39 @@
"url": "https://github.com/fastify/fastify-reply-from/issues"
},
"engines": {
"node": ">=10.0.0"
"node": ">=12.18"
},
"homepage": "https://github.com/fastify/fastify-reply-from#readme",
"devDependencies": {
"@sinonjs/fake-timers": "^7.0.0",
"@types/node": "^15.0.0",
"@types/tap": "^15.0.0",
"fastify": "^3.7.0",
"@sinonjs/fake-timers": "^7.1.2",
"@types/node": "^15.12.2",
"@types/tap": "^15.0.3",
"fastify": "^3.17.0",
"fastify-formbody": "^5.0.0",
"fastify-multipart": "^4.0.0",
"fastify-multipart": "^4.0.6",
"form-data": "^4.0.0",
"got": "^11.8.0",
"got": "^11.8.2",
"h2url": "^0.2.0",
"msgpack5": "^5.0.0",
"nock": "^13.0.4",
"msgpack5": "^5.3.2",
"nock": "^13.1.0",
"pre-commit": "^1.2.2",
"proxyquire": "^2.1.3",
"simple-get": "^4.0.0",
"snazzy": "^9.0.0",
"split2": "^3.2.2",
"standard": "^16.0.3",
"tap": "^15.0.0",
"tsd": "^0.14.0",
"typescript": "^4.0.3"
"tap": "^15.0.9",
"tsd": "^0.17.0",
"typescript": "^4.3.2"
},
"dependencies": {
"end-of-stream": "^1.4.1",
"end-of-stream": "^1.4.4",
"fastify-plugin": "^3.0.0",
"http-errors": "^1.8.0",
"pump": "^3.0.0",
"semver": "^7.2.1",
"tiny-lru": "^7.0.0",
"undici": "^3.3.1"
"semver": "^7.3.5",
"tiny-lru": "^7.0.6",
"undici": "^4.0.0"
},
"tsd": {
"directory": "test"
Expand Down

0 comments on commit 11f4d0b

Please sign in to comment.