@fastify/reply-from 7.0.1 → 8.0.0

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.
Files changed (75) hide show
  1. package/.github/workflows/ci.yml +1 -1
  2. package/index.js +1 -1
  3. package/package.json +4 -4
  4. package/test/async-route-handler.js +2 -2
  5. package/test/base-get.js +2 -2
  6. package/test/base-path.js +1 -1
  7. package/test/base-querystring.js +2 -2
  8. package/test/core-with-path-in-base.js +2 -2
  9. package/test/custom-undici-instance.js +3 -3
  10. package/test/fastify-multipart-incompatibility.js +2 -2
  11. package/test/full-get.js +2 -2
  12. package/test/full-https-get.js +2 -2
  13. package/test/full-post-extended-content-type.js +2 -2
  14. package/test/full-post-http2.js +2 -2
  15. package/test/full-post-stream-core.js +2 -2
  16. package/test/full-post-stream.js +2 -2
  17. package/test/full-post.js +2 -2
  18. package/test/full-querystring-rewrite-option-complex.js +2 -2
  19. package/test/full-querystring-rewrite-option-function.js +2 -2
  20. package/test/full-querystring-rewrite-option.js +2 -2
  21. package/test/full-querystring-rewrite-string.js +2 -2
  22. package/test/full-querystring-rewrite.js +2 -2
  23. package/test/full-querystring.js +2 -2
  24. package/test/full-rewrite-body-content-type.js +2 -2
  25. package/test/full-rewrite-body-http.js +2 -2
  26. package/test/full-rewrite-body-to-empty-string.js +2 -2
  27. package/test/full-rewrite-body-to-null.js +2 -2
  28. package/test/full-rewrite-body.js +2 -2
  29. package/test/get-upstream-http.js +3 -3
  30. package/test/get-upstream-undici.js +2 -2
  31. package/test/get-with-body.js +2 -2
  32. package/test/head-with-body.js +2 -2
  33. package/test/host-header.js +2 -2
  34. package/test/http-agents.js +2 -2
  35. package/test/http-http2.js +2 -2
  36. package/test/http-invalid-target.js +1 -1
  37. package/test/http-retry.js +6 -6
  38. package/test/http-timeout.js +2 -2
  39. package/test/http2-http2.js +2 -2
  40. package/test/http2-https.js +2 -2
  41. package/test/http2-invalid-target.js +1 -1
  42. package/test/http2-target-crash.js +2 -2
  43. package/test/http2-target-multi-crash.js +3 -3
  44. package/test/http2-timeout.js +4 -4
  45. package/test/https-agents.js +2 -2
  46. package/test/index.test-d.ts +2 -2
  47. package/test/modifyCoreObjects-false.js +2 -2
  48. package/test/no-body-opts-with-get.js +2 -2
  49. package/test/no-body-opts-with-head.js +2 -2
  50. package/test/no-stream-body-option.js +2 -2
  51. package/test/on-error.js +2 -2
  52. package/test/onResponse.js +2 -2
  53. package/test/padded-body.js +2 -2
  54. package/test/post-formbody.js +2 -2
  55. package/test/post-plain-text.js +2 -2
  56. package/test/post-with-custom-encoded-contenttype.js +2 -2
  57. package/test/retry-on-503.js +6 -6
  58. package/test/rewrite-headers.js +2 -2
  59. package/test/rewrite-request-headers.js +2 -2
  60. package/test/transform-body.js +2 -2
  61. package/test/undici-agent.js +2 -2
  62. package/test/undici-body.js +2 -2
  63. package/test/undici-options.js +2 -2
  64. package/test/undici-retry.js +6 -6
  65. package/test/undici-timeout-body-partial.js +2 -2
  66. package/test/undici-timeout-body.js +2 -2
  67. package/test/undici-timeout.js +2 -2
  68. package/test/undici-with-path-in-base.js +2 -2
  69. package/test/undici.js +2 -2
  70. package/test/unexpected-error.js +1 -1
  71. package/test/unix-http-undici-from.js +1 -1
  72. package/test/unix-http-undici.js +1 -1
  73. package/test/unix-http.js +1 -1
  74. package/test/unix-https-undici.js +1 -1
  75. package/test/unix-https.js +1 -1
@@ -51,7 +51,7 @@ instance.get('/', (request, reply) => {
51
51
 
52
52
  t.teardown(target.close.bind(target))
53
53
 
54
- instance.listen(0, (err) => {
54
+ instance.listen({ port: 0 }, (err) => {
55
55
  t.error(err)
56
56
 
57
57
  target.listen(socketPath, (err) => {