From fe1803e0cdceb5498597f879a11d497a81b16a7c Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Fri, 6 Sep 2024 11:12:48 +0200 Subject: [PATCH] Bumped v10.0.0 Signed-off-by: Matteo Collina --- package.json | 8 ++++---- test/test.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index f2cf72b..8038283 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", @@ -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": { diff --git a/test/test.js b/test/test.js index e643d8a..03744c6 100644 --- a/test/test.js +++ b/test/test.js @@ -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) => { @@ -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({