Skip to content

Commit

Permalink
Bumped v10.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed Sep 6, 2024
1 parent a353530 commit fe1803e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fastify/http-proxy",
"version": "10.0.0-pre.fv5.2",
"version": "10.0.0",
"description": "proxy http requests, for Fastify",
"main": "index.js",
"type": "commonjs",
Expand Down Expand Up @@ -37,7 +37,7 @@
"express": "^4.19.2",
"express-http-proxy": "^2.0.0",
"fast-proxy": "^2.1.0",
"fastify": "^5.0.0-alpha.3",
"fastify": "^5.0.0-alpha.4",
"got": "^11.8.6",
"http-errors": "^2.0.0",
"http-proxy": "^1.18.1",
Expand All @@ -52,9 +52,9 @@
"why-is-node-running": "^3.0.0"
},
"dependencies": {
"@fastify/reply-from": "^10.0.0-pre.fv5.1",
"@fastify/reply-from": "^11.0.0",
"fast-querystring": "^1.1.2",
"fastify-plugin": "^5.0.0-pre.fv5.1",
"fastify-plugin": "^5.0.0",
"ws": "^8.16.0"
},
"tsd": {
Expand Down
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function run () {
})

origin.get('/redirect', async (request, reply) => {
return reply.redirect(302, 'https://fastify.dev')
return reply.redirect('https://fastify.dev', 302)
})

origin.post('/this-has-data', async (request, reply) => {
Expand Down Expand Up @@ -666,7 +666,7 @@ async function run () {
upstream: `http://localhost:${origin.server.address().port}`,
prefix: '/api',
replyOptions: {
onResponse (request, reply, stream) {
onResponse (request, reply, { stream }) {
return reply.send(
stream.pipe(
new Transform({
Expand Down

0 comments on commit fe1803e

Please sign in to comment.